configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xbiff 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xbiff/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xbiff'
607 PACKAGE_TARNAME='xbiff'
608 PACKAGE_VERSION='1.0.5'
609 PACKAGE_STRING='xbiff 1.0.5'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xbiff/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 XBIFF_LIBS
652 XBIFF_CFLAGS
653 MAN_SUBSTS
654 XORG_MAN_PAGE
655 ADMIN_MAN_DIR
656 DRIVER_MAN_DIR
657 MISC_MAN_DIR
658 FILE_MAN_DIR
659 LIB_MAN_DIR
660 APP_MAN_DIR
661 ADMIN_MAN_SUFFIX
662 DRIVER_MAN_SUFFIX
663 MISC_MAN_SUFFIX
664 FILE_MAN_SUFFIX
665 LIB_MAN_SUFFIX
666 APP_MAN_SUFFIX
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
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 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 CSCOPE
705 ETAGS
706 CTAGS
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 runstatedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL
769 am__quote'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_dependency_tracking
775 enable_selective_werror
776 enable_strict_compilation
777 enable_largefile
778 with_mailbox_directory
779 enable_year2038
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 PKG_CONFIG
790 PKG_CONFIG_PATH
791 PKG_CONFIG_LIBDIR
792 XBIFF_CFLAGS
793 XBIFF_LIBS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 runstatedir='${localstatedir}/run'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
854 fi
855
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: '$ac_useropt'"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: '$ac_useropt'"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -runstatedir | --runstatedir | --runstatedi | --runstated \
1084 | --runstate | --runstat | --runsta | --runst | --runs \
1085 | --run | --ru | --r)
1086 ac_prev=runstatedir ;;
1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089 | --run=* | --ru=* | --r=*)
1090 runstatedir=$ac_optarg ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: '$ac_useropt'"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: '$ac_useropt'"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: '$ac_option'
1188 Try '$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir runstatedir
1230 do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: '$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 printf "%s\n" X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 'configure' configures xbiff 1.0.5 to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print 'checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for '--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or '..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, 'make install' will install all the files in
1369 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than '$ac_default_prefix' using '--prefix',
1371 for instance '--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/xbiff]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of xbiff 1.0.5:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --disable-selective-werror
1428 Turn off selective compiler errors. (default:
1429 enabled)
1430 --enable-strict-compilation
1431 Enable all warnings from compiler and make them
1432 errors (default: disabled)
1433 --disable-largefile omit support for large files
1434 --enable-year2038 support timestamps after 2038
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-mailbox-directory=PATH
1440 specify directory to check for system mailboxes
1441
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 PKG_CONFIG path to pkg-config utility
1451 PKG_CONFIG_PATH
1452 directories to add to pkg-config's search path
1453 PKG_CONFIG_LIBDIR
1454 path overriding pkg-config's built-in search path
1455 XBIFF_CFLAGS
1456 C compiler flags for XBIFF, overriding pkg-config
1457 XBIFF_LIBS linker flags for XBIFF, overriding pkg-config
1458
1459 Use these variables to override the choices made by 'configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/issues>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for configure.gnu first; this name is used for a wrapper for
1509 # Metaconfig's "Configure" on case-insensitive file systems.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 xbiff configure 1.0.5
1527 generated by GNU Autoconf 2.72
1528
1529 Copyright (C) 2023 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext conftest.beam
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 printf "%s\n" "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext
1566 then :
1567 ac_retval=0
1568 else case e in #(
1569 e) printf "%s\n" "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1 ;;
1573 esac
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1581 # ------------------------------------------------------------------
1582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1583 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1584 ac_fn_check_decl ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 as_decl_name=`echo $2|sed 's/ *(.*//'`
1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1589 printf %s "checking whether $as_decl_name is declared... " >&6; }
1590 if eval test \${$3+y}
1591 then :
1592 printf %s "(cached) " >&6
1593 else case e in #(
1594 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1595 eval ac_save_FLAGS=\$$6
1596 as_fn_append $6 " $5"
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 $4
1600 int
1601 main (void)
1602 {
1603 #ifndef $as_decl_name
1604 #ifdef __cplusplus
1605 (void) $as_decl_use;
1606 #else
1607 (void) $as_decl_name;
1608 #endif
1609 #endif
1610
1611 ;
1612 return 0;
1613 }
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"
1616 then :
1617 eval "$3=yes"
1618 else case e in #(
1619 e) eval "$3=no" ;;
1620 esac
1621 fi
1622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1623 eval $6=\$ac_save_FLAGS
1624 ;;
1625 esac
1626 fi
1627 eval ac_res=\$$3
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 printf "%s\n" "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632 } # ac_fn_check_decl
1633
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 printf %s "checking for $2... " >&6; }
1643 if eval test \${$3+y}
1644 then :
1645 printf %s "(cached) " >&6
1646 else case e in #(
1647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"
1653 then :
1654 eval "$3=yes"
1655 else case e in #(
1656 e) eval "$3=no" ;;
1657 esac
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1660 esac
1661 fi
1662 eval ac_res=\$$3
1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 printf "%s\n" "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667 } # ac_fn_c_check_header_compile
1668
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 printf "%s\n" "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 test -x conftest$ac_exeext
1697 }
1698 then :
1699 ac_retval=0
1700 else case e in #(
1701 e) printf "%s\n" "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1 ;;
1705 esac
1706 fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716 ac_configure_args_raw=
1717 for ac_arg
1718 do
1719 case $ac_arg in
1720 *\'*)
1721 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 esac
1723 as_fn_append ac_configure_args_raw " '$ac_arg'"
1724 done
1725
1726 case $ac_configure_args_raw in
1727 *$as_nl*)
1728 ac_safe_unquote= ;;
1729 *)
1730 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1731 ac_unsafe_a="$ac_unsafe_z#~"
1732 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1733 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1734 esac
1735
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by xbiff $as_me 1.0.5, which was
1741 generated by GNU Autoconf 2.72. Invocation command line was
1742
1743 $ $0$ac_configure_args_raw
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775 IFS=$as_save_IFS
1776 case $as_dir in #(((
1777 '') as_dir=./ ;;
1778 */) ;;
1779 *) as_dir=$as_dir/ ;;
1780 esac
1781 printf "%s\n" "PATH: $as_dir"
1782 done
1783 IFS=$as_save_IFS
1784
1785 } >&5
1786
1787 cat >&5 <<_ACEOF
1788
1789
1790 ## ----------- ##
1791 ## Core tests. ##
1792 ## ----------- ##
1793
1794 _ACEOF
1795
1796
1797 # Keep a trace of the command line.
1798 # Strip out --no-create and --no-recursion so they do not pile up.
1799 # Strip out --silent because we don't want to record it for future runs.
1800 # Also quote any args containing shell meta-characters.
1801 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_configure_args=
1803 ac_configure_args0=
1804 ac_configure_args1=
1805 ac_must_keep_next=false
1806 for ac_pass in 1 2
1807 do
1808 for ac_arg
1809 do
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
1815 *\'*)
1816 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 case $ac_pass in
1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1820 2)
1821 as_fn_append ac_configure_args1 " '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1824 else
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1833 ;;
1834 -* ) ac_must_keep_next=true ;;
1835 esac
1836 fi
1837 as_fn_append ac_configure_args " '$ac_arg'"
1838 ;;
1839 esac
1840 done
1841 done
1842 { ac_configure_args0=; unset ac_configure_args0;}
1843 { ac_configure_args1=; unset ac_configure_args1;}
1844
1845 # When interrupted or exit'd, cleanup temporary files, and complete
1846 # config.log. We remove comments because anyway the quotes in there
1847 # would cause problems or look ugly.
1848 # WARNING: Use '\'' to represent an apostrophe within the trap.
1849 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850 trap 'exit_status=$?
1851 # Sanitize IFS.
1852 IFS=" "" $as_nl"
1853 # Save into config.log some information that might help in debugging.
1854 {
1855 echo
1856
1857 printf "%s\n" "## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##"
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
1862 (
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
1868 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1869 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 *) { eval $ac_var=; unset $ac_var;} ;;
1875 esac ;;
1876 esac
1877 done
1878 (set) 2>&1 |
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1881 sed -n \
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
1885 *)
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ;;
1888 esac |
1889 sort
1890 )
1891 echo
1892
1893 printf "%s\n" "## ----------------- ##
1894 ## Output variables. ##
1895 ## ----------------- ##"
1896 echo
1897 for ac_var in $ac_subst_vars
1898 do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 printf "%s\n" "$ac_var='\''$ac_val'\''"
1904 done | sort
1905 echo
1906
1907 if test -n "$ac_subst_files"; then
1908 printf "%s\n" "## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##"
1911 echo
1912 for ac_var in $ac_subst_files
1913 do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 printf "%s\n" "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1921 fi
1922
1923 if test -s confdefs.h; then
1924 printf "%s\n" "## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##"
1927 echo
1928 cat confdefs.h
1929 echo
1930 fi
1931 test "$ac_signal" != 0 &&
1932 printf "%s\n" "$as_me: caught signal $ac_signal"
1933 printf "%s\n" "$as_me: exit $exit_status"
1934 } >&5
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 exit $exit_status
1938 ' 0
1939 for ac_signal in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1941 done
1942 ac_signal=0
1943
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest* confdefs.h
1946
1947 printf "%s\n" "/* confdefs.h */" > confdefs.h
1948
1949 # Predefined preprocessor variables.
1950
1951 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1952
1953 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1954
1955 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1956
1957 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1958
1959 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1960
1961 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1962
1963
1964 # Let the site file select an alternate cache file if it wants to.
1965 # Prefer an explicitly selected file to automatically selected ones.
1966 if test -n "$CONFIG_SITE"; then
1967 ac_site_files="$CONFIG_SITE"
1968 elif test "x$prefix" != xNONE; then
1969 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1970 else
1971 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1972 fi
1973
1974 for ac_site_file in $ac_site_files
1975 do
1976 case $ac_site_file in #(
1977 */*) :
1978 ;; #(
1979 *) :
1980 ac_site_file=./$ac_site_file ;;
1981 esac
1982 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1984 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1985 sed 's/^/| /' "$ac_site_file" >&5
1986 . "$ac_site_file" \
1987 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1989 as_fn_error $? "failed to load site script $ac_site_file
1990 See 'config.log' for more details" "$LINENO" 5; }
1991 fi
1992 done
1993
1994 if test -r "$cache_file"; then
1995 # Some versions of bash will fail to source /dev/null (special files
1996 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1997 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1999 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2000 case $cache_file in
2001 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2002 *) . "./$cache_file";;
2003 esac
2004 fi
2005 else
2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2007 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2008 >$cache_file
2009 fi
2010
2011 # Test code for whether the C compiler supports C89 (global declarations)
2012 ac_c_conftest_c89_globals='
2013 /* Does the compiler advertise C89 conformance?
2014 Do not test the value of __STDC__, because some compilers set it to 0
2015 while being otherwise adequately conformant. */
2016 #if !defined __STDC__
2017 # error "Compiler does not advertise C89 conformance"
2018 #endif
2019
2020 #include <stddef.h>
2021 #include <stdarg.h>
2022 struct stat;
2023 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2024 struct buf { int x; };
2025 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2026 static char *e (char **p, int i)
2027 {
2028 return p[i];
2029 }
2030 static char *f (char * (*g) (char **, int), char **p, ...)
2031 {
2032 char *s;
2033 va_list v;
2034 va_start (v,p);
2035 s = g (p, va_arg (v,int));
2036 va_end (v);
2037 return s;
2038 }
2039
2040 /* C89 style stringification. */
2041 #define noexpand_stringify(a) #a
2042 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2043
2044 /* C89 style token pasting. Exercises some of the corner cases that
2045 e.g. old MSVC gets wrong, but not very hard. */
2046 #define noexpand_concat(a,b) a##b
2047 #define expand_concat(a,b) noexpand_concat(a,b)
2048 extern int vA;
2049 extern int vbee;
2050 #define aye A
2051 #define bee B
2052 int *pvA = &expand_concat(v,aye);
2053 int *pvbee = &noexpand_concat(v,bee);
2054
2055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2056 function prototypes and stuff, but not \xHH hex character constants.
2057 These do not provoke an error unfortunately, instead are silently treated
2058 as an "x". The following induces an error, until -std is added to get
2059 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2060 array size at least. It is necessary to write \x00 == 0 to get something
2061 that is true only with -std. */
2062 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2063
2064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2065 inside strings and character constants. */
2066 #define FOO(x) '\''x'\''
2067 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2068
2069 int test (int i, double x);
2070 struct s1 {int (*f) (int a);};
2071 struct s2 {int (*f) (double a);};
2072 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2073 int, int);'
2074
2075 # Test code for whether the C compiler supports C89 (body of main).
2076 ac_c_conftest_c89_main='
2077 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2078 '
2079
2080 # Test code for whether the C compiler supports C99 (global declarations)
2081 ac_c_conftest_c99_globals='
2082 /* Does the compiler advertise C99 conformance? */
2083 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2084 # error "Compiler does not advertise C99 conformance"
2085 #endif
2086
2087 // See if C++-style comments work.
2088
2089 #include <stdbool.h>
2090 extern int puts (const char *);
2091 extern int printf (const char *, ...);
2092 extern int dprintf (int, const char *, ...);
2093 extern void *malloc (size_t);
2094 extern void free (void *);
2095
2096 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2097 // dprintf is used instead of fprintf to avoid needing to declare
2098 // FILE and stderr.
2099 #define debug(...) dprintf (2, __VA_ARGS__)
2100 #define showlist(...) puts (#__VA_ARGS__)
2101 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2102 static void
2103 test_varargs_macros (void)
2104 {
2105 int x = 1234;
2106 int y = 5678;
2107 debug ("Flag");
2108 debug ("X = %d\n", x);
2109 showlist (The first, second, and third items.);
2110 report (x>y, "x is %d but y is %d", x, y);
2111 }
2112
2113 // Check long long types.
2114 #define BIG64 18446744073709551615ull
2115 #define BIG32 4294967295ul
2116 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2117 #if !BIG_OK
2118 #error "your preprocessor is broken"
2119 #endif
2120 #if BIG_OK
2121 #else
2122 #error "your preprocessor is broken"
2123 #endif
2124 static long long int bignum = -9223372036854775807LL;
2125 static unsigned long long int ubignum = BIG64;
2126
2127 struct incomplete_array
2128 {
2129 int datasize;
2130 double data[];
2131 };
2132
2133 struct named_init {
2134 int number;
2135 const wchar_t *name;
2136 double average;
2137 };
2138
2139 typedef const char *ccp;
2140
2141 static inline int
2142 test_restrict (ccp restrict text)
2143 {
2144 // Iterate through items via the restricted pointer.
2145 // Also check for declarations in for loops.
2146 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2147 continue;
2148 return 0;
2149 }
2150
2151 // Check varargs and va_copy.
2152 static bool
2153 test_varargs (const char *format, ...)
2154 {
2155 va_list args;
2156 va_start (args, format);
2157 va_list args_copy;
2158 va_copy (args_copy, args);
2159
2160 const char *str = "";
2161 int number = 0;
2162 float fnumber = 0;
2163
2164 while (*format)
2165 {
2166 switch (*format++)
2167 {
2168 case '\''s'\'': // string
2169 str = va_arg (args_copy, const char *);
2170 break;
2171 case '\''d'\'': // int
2172 number = va_arg (args_copy, int);
2173 break;
2174 case '\''f'\'': // float
2175 fnumber = va_arg (args_copy, double);
2176 break;
2177 default:
2178 break;
2179 }
2180 }
2181 va_end (args_copy);
2182 va_end (args);
2183
2184 return *str && number && fnumber;
2185 }
2186 '
2187
2188 # Test code for whether the C compiler supports C99 (body of main).
2189 ac_c_conftest_c99_main='
2190 // Check bool.
2191 _Bool success = false;
2192 success |= (argc != 0);
2193
2194 // Check restrict.
2195 if (test_restrict ("String literal") == 0)
2196 success = true;
2197 char *restrict newvar = "Another string";
2198
2199 // Check varargs.
2200 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2201 test_varargs_macros ();
2202
2203 // Check flexible array members.
2204 struct incomplete_array *ia =
2205 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2206 ia->datasize = 10;
2207 for (int i = 0; i < ia->datasize; ++i)
2208 ia->data[i] = i * 1.234;
2209 // Work around memory leak warnings.
2210 free (ia);
2211
2212 // Check named initializers.
2213 struct named_init ni = {
2214 .number = 34,
2215 .name = L"Test wide string",
2216 .average = 543.34343,
2217 };
2218
2219 ni.number = 58;
2220
2221 int dynamic_array[ni.number];
2222 dynamic_array[0] = argv[0][0];
2223 dynamic_array[ni.number - 1] = 543;
2224
2225 // work around unused variable warnings
2226 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2227 || dynamic_array[ni.number - 1] != 543);
2228 '
2229
2230 # Test code for whether the C compiler supports C11 (global declarations)
2231 ac_c_conftest_c11_globals='
2232 /* Does the compiler advertise C11 conformance? */
2233 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2234 # error "Compiler does not advertise C11 conformance"
2235 #endif
2236
2237 // Check _Alignas.
2238 char _Alignas (double) aligned_as_double;
2239 char _Alignas (0) no_special_alignment;
2240 extern char aligned_as_int;
2241 char _Alignas (0) _Alignas (int) aligned_as_int;
2242
2243 // Check _Alignof.
2244 enum
2245 {
2246 int_alignment = _Alignof (int),
2247 int_array_alignment = _Alignof (int[100]),
2248 char_alignment = _Alignof (char)
2249 };
2250 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2251
2252 // Check _Noreturn.
2253 int _Noreturn does_not_return (void) { for (;;) continue; }
2254
2255 // Check _Static_assert.
2256 struct test_static_assert
2257 {
2258 int x;
2259 _Static_assert (sizeof (int) <= sizeof (long int),
2260 "_Static_assert does not work in struct");
2261 long int y;
2262 };
2263
2264 // Check UTF-8 literals.
2265 #define u8 syntax error!
2266 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2267
2268 // Check duplicate typedefs.
2269 typedef long *long_ptr;
2270 typedef long int *long_ptr;
2271 typedef long_ptr long_ptr;
2272
2273 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2274 struct anonymous
2275 {
2276 union {
2277 struct { int i; int j; };
2278 struct { int k; long int l; } w;
2279 };
2280 int m;
2281 } v1;
2282 '
2283
2284 # Test code for whether the C compiler supports C11 (body of main).
2285 ac_c_conftest_c11_main='
2286 _Static_assert ((offsetof (struct anonymous, i)
2287 == offsetof (struct anonymous, w.k)),
2288 "Anonymous union alignment botch");
2289 v1.i = 2;
2290 v1.w.k = 5;
2291 ok |= v1.i != 5;
2292 '
2293
2294 # Test code for whether the C compiler supports C11 (complete).
2295 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2296 ${ac_c_conftest_c99_globals}
2297 ${ac_c_conftest_c11_globals}
2298
2299 int
2300 main (int argc, char **argv)
2301 {
2302 int ok = 0;
2303 ${ac_c_conftest_c89_main}
2304 ${ac_c_conftest_c99_main}
2305 ${ac_c_conftest_c11_main}
2306 return ok;
2307 }
2308 "
2309
2310 # Test code for whether the C compiler supports C99 (complete).
2311 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2312 ${ac_c_conftest_c99_globals}
2313
2314 int
2315 main (int argc, char **argv)
2316 {
2317 int ok = 0;
2318 ${ac_c_conftest_c89_main}
2319 ${ac_c_conftest_c99_main}
2320 return ok;
2321 }
2322 "
2323
2324 # Test code for whether the C compiler supports C89 (complete).
2325 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2326
2327 int
2328 main (int argc, char **argv)
2329 {
2330 int ok = 0;
2331 ${ac_c_conftest_c89_main}
2332 return ok;
2333 }
2334 "
2335
2336 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2337 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2338 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2339 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2340 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2341 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2342 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2343 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2344 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2345
2346 # Auxiliary files required by this configure script.
2347 ac_aux_files="config.guess config.sub compile missing install-sh"
2348
2349 # Locations in which to look for auxiliary files.
2350 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2351
2352 # Search for a directory containing all of the required auxiliary files,
2353 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2354 # If we don't find one directory that contains all the files we need,
2355 # we report the set of missing files from the *first* directory in
2356 # $ac_aux_dir_candidates and give up.
2357 ac_missing_aux_files=""
2358 ac_first_candidate=:
2359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 as_found=false
2362 for as_dir in $ac_aux_dir_candidates
2363 do
2364 IFS=$as_save_IFS
2365 case $as_dir in #(((
2366 '') as_dir=./ ;;
2367 */) ;;
2368 *) as_dir=$as_dir/ ;;
2369 esac
2370 as_found=:
2371
2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2373 ac_aux_dir_found=yes
2374 ac_install_sh=
2375 for ac_aux in $ac_aux_files
2376 do
2377 # As a special case, if "install-sh" is required, that requirement
2378 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2379 # and $ac_install_sh is set appropriately for whichever one is found.
2380 if test x"$ac_aux" = x"install-sh"
2381 then
2382 if test -f "${as_dir}install-sh"; then
2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2384 ac_install_sh="${as_dir}install-sh -c"
2385 elif test -f "${as_dir}install.sh"; then
2386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2387 ac_install_sh="${as_dir}install.sh -c"
2388 elif test -f "${as_dir}shtool"; then
2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2390 ac_install_sh="${as_dir}shtool install -c"
2391 else
2392 ac_aux_dir_found=no
2393 if $ac_first_candidate; then
2394 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2395 else
2396 break
2397 fi
2398 fi
2399 else
2400 if test -f "${as_dir}${ac_aux}"; then
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2402 else
2403 ac_aux_dir_found=no
2404 if $ac_first_candidate; then
2405 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2406 else
2407 break
2408 fi
2409 fi
2410 fi
2411 done
2412 if test "$ac_aux_dir_found" = yes; then
2413 ac_aux_dir="$as_dir"
2414 break
2415 fi
2416 ac_first_candidate=false
2417
2418 as_found=false
2419 done
2420 IFS=$as_save_IFS
2421 if $as_found
2422 then :
2423
2424 else case e in #(
2425 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2426 esac
2427 fi
2428
2429
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 if test -f "${ac_aux_dir}config.guess"; then
2435 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2436 fi
2437 if test -f "${ac_aux_dir}config.sub"; then
2438 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2439 fi
2440 if test -f "$ac_aux_dir/configure"; then
2441 ac_configure="$SHELL ${ac_aux_dir}configure"
2442 fi
2443
2444 # Check that the precious variables saved in the cache have kept the same
2445 # value.
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2453 set,)
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2455 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,set)
2458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2459 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,);;
2462 *)
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2469 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2471 else
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2473 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2475 fi
2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2477 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2479 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2480 fi;;
2481 esac
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2484 case $ac_new_val in
2485 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2487 esac
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 esac
2492 fi
2493 done
2494 if $ac_cache_corrupted; then
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2496 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2500 and start over" "$LINENO" 5
2501 fi
2502 ## -------------------- ##
2503 ## Main body of script. ##
2504 ## -------------------- ##
2505
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
2513
2514 ac_config_headers="$ac_config_headers config.h"
2515
2516
2517 # Initialize Automake
2518 am__api_version='1.16'
2519
2520
2521
2522 # Find a good install program. We prefer a C program (faster),
2523 # so one script is as good as another. But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2528 # AIX /bin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537 printf %s "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if test ${ac_cv_path_install+y}
2540 then :
2541 printf %s "(cached) " >&6
2542 else case e in #(
2543 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 case $as_dir in #(((
2548 '') as_dir=./ ;;
2549 */) ;;
2550 *) as_dir=$as_dir/ ;;
2551 esac
2552 # Account for fact that we put trailing slashes in our PATH walk.
2553 case $as_dir in #((
2554 ./ | /[cC]/* | \
2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 /usr/ucb/* ) ;;
2558 *)
2559 # OSF1 and SCO ODT 3.0 have their own names for install.
2560 # Don't use installbsd from OSF since it installs stuff as root
2561 # by default.
2562 for ac_prog in ginstall scoinst install; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2565 if test $ac_prog = install &&
2566 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # AIX install. It has an incompatible calling convention.
2568 :
2569 elif test $ac_prog = install &&
2570 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # program-specific install script used by HP pwplus--don't use.
2572 :
2573 else
2574 rm -rf conftest.one conftest.two conftest.dir
2575 echo one > conftest.one
2576 echo two > conftest.two
2577 mkdir conftest.dir
2578 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2579 test -s conftest.one && test -s conftest.two &&
2580 test -s conftest.dir/conftest.one &&
2581 test -s conftest.dir/conftest.two
2582 then
2583 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2584 break 3
2585 fi
2586 fi
2587 fi
2588 done
2589 done
2590 ;;
2591 esac
2592
2593 done
2594 IFS=$as_save_IFS
2595
2596 rm -rf conftest.one conftest.two conftest.dir
2597 ;;
2598 esac
2599 fi
2600 if test ${ac_cv_path_install+y}; then
2601 INSTALL=$ac_cv_path_install
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 INSTALL=$ac_install_sh
2608 fi
2609 fi
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611 printf "%s\n" "$INSTALL" >&6; }
2612
2613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614 # It thinks the first close brace ends the variable substitution.
2615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
2617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2618
2619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2622 printf %s "checking whether build environment is sane... " >&6; }
2623 # Reject unsafe characters in $srcdir or the absolute working directory
2624 # name. Accept space and tab only in the latter.
2625 am_lf='
2626 '
2627 case `pwd` in
2628 *[\\\"\#\$\&\'\`$am_lf]*)
2629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2630 esac
2631 case $srcdir in
2632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2633 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2634 esac
2635
2636 # Do 'set' in a subshell so we don't clobber the current shell's
2637 # arguments. Must try -L first in case configure is actually a
2638 # symlink; some systems play weird games with the mod time of symlinks
2639 # (eg FreeBSD returns the mod time of the symlink's containing
2640 # directory).
2641 if (
2642 am_has_slept=no
2643 for am_try in 1 2; do
2644 echo "timestamp, slept: $am_has_slept" > conftest.file
2645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2646 if test "$*" = "X"; then
2647 # -L didn't work.
2648 set X `ls -t "$srcdir/configure" conftest.file`
2649 fi
2650 if test "$*" != "X $srcdir/configure conftest.file" \
2651 && test "$*" != "X conftest.file $srcdir/configure"; then
2652
2653 # If neither matched, then we have a broken ls. This can happen
2654 # if, for instance, CONFIG_SHELL is bash and it inherits a
2655 # broken ls alias from the environment. This has actually
2656 # happened. Such a system could not be considered "sane".
2657 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2658 alias in your environment" "$LINENO" 5
2659 fi
2660 if test "$2" = conftest.file || test $am_try -eq 2; then
2661 break
2662 fi
2663 # Just in case.
2664 sleep 1
2665 am_has_slept=yes
2666 done
2667 test "$2" = conftest.file
2668 )
2669 then
2670 # Ok.
2671 :
2672 else
2673 as_fn_error $? "newly created file is older than distributed files!
2674 Check your system clock" "$LINENO" 5
2675 fi
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 printf "%s\n" "yes" >&6; }
2678 # If we didn't sleep, we still need to ensure time stamps of config.status and
2679 # generated files are strictly newer.
2680 am_sleep_pid=
2681 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2682 ( sleep 1 ) &
2683 am_sleep_pid=$!
2684 fi
2685
2686 rm -f conftest.file
2687
2688 test "$program_prefix" != NONE &&
2689 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2690 # Use a double $ so make ignores it.
2691 test "$program_suffix" != NONE &&
2692 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2693 # Double any \ or $.
2694 # By default was 's,x,x', remove it if useless.
2695 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2696 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2697
2698
2699 # Expand $ac_aux_dir to an absolute path.
2700 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2701
2702
2703 if test x"${MISSING+set}" != xset; then
2704 MISSING="\${SHELL} '$am_aux_dir/missing'"
2705 fi
2706 # Use eval to expand $SHELL
2707 if eval "$MISSING --is-lightweight"; then
2708 am_missing_run="$MISSING "
2709 else
2710 am_missing_run=
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2712 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2713 fi
2714
2715 if test x"${install_sh+set}" != xset; then
2716 case $am_aux_dir in
2717 *\ * | *\ *)
2718 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2719 *)
2720 install_sh="\${SHELL} $am_aux_dir/install-sh"
2721 esac
2722 fi
2723
2724 # Installed binaries are usually stripped using 'strip' when the user
2725 # run "make install-strip". However 'strip' might not be the right
2726 # tool to use in cross-compilation environments, therefore Automake
2727 # will honor the 'STRIP' environment variable to overrule this program.
2728 if test "$cross_compiling" != no; then
2729 if test -n "$ac_tool_prefix"; then
2730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2731 set dummy ${ac_tool_prefix}strip; ac_word=$2
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 printf %s "checking for $ac_word... " >&6; }
2734 if test ${ac_cv_prog_STRIP+y}
2735 then :
2736 printf %s "(cached) " >&6
2737 else case e in #(
2738 e) if test -n "$STRIP"; then
2739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 case $as_dir in #(((
2746 '') as_dir=./ ;;
2747 */) ;;
2748 *) as_dir=$as_dir/ ;;
2749 esac
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi ;;
2761 esac
2762 fi
2763 STRIP=$ac_cv_prog_STRIP
2764 if test -n "$STRIP"; then
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2766 printf "%s\n" "$STRIP" >&6; }
2767 else
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 printf "%s\n" "no" >&6; }
2770 fi
2771
2772
2773 fi
2774 if test -z "$ac_cv_prog_STRIP"; then
2775 ac_ct_STRIP=$STRIP
2776 # Extract the first word of "strip", so it can be a program name with args.
2777 set dummy strip; ac_word=$2
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 printf %s "checking for $ac_word... " >&6; }
2780 if test ${ac_cv_prog_ac_ct_STRIP+y}
2781 then :
2782 printf %s "(cached) " >&6
2783 else case e in #(
2784 e) if test -n "$ac_ct_STRIP"; then
2785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 case $as_dir in #(((
2792 '') as_dir=./ ;;
2793 */) ;;
2794 *) as_dir=$as_dir/ ;;
2795 esac
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_ac_ct_STRIP="strip"
2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi ;;
2807 esac
2808 fi
2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810 if test -n "$ac_ct_STRIP"; then
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812 printf "%s\n" "$ac_ct_STRIP" >&6; }
2813 else
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 printf "%s\n" "no" >&6; }
2816 fi
2817
2818 if test "x$ac_ct_STRIP" = x; then
2819 STRIP=":"
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 STRIP=$ac_ct_STRIP
2828 fi
2829 else
2830 STRIP="$ac_cv_prog_STRIP"
2831 fi
2832
2833 fi
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2838 printf %s "checking for a race-free mkdir -p... " >&6; }
2839 if test -z "$MKDIR_P"; then
2840 if test ${ac_cv_path_mkdir+y}
2841 then :
2842 printf %s "(cached) " >&6
2843 else case e in #(
2844 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2846 do
2847 IFS=$as_save_IFS
2848 case $as_dir in #(((
2849 '') as_dir=./ ;;
2850 */) ;;
2851 *) as_dir=$as_dir/ ;;
2852 esac
2853 for ac_prog in mkdir gmkdir; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2856 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2857 'mkdir ('*'coreutils) '* | \
2858 *'BusyBox '* | \
2859 'mkdir (fileutils) '4.1*)
2860 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2861 break 3;;
2862 esac
2863 done
2864 done
2865 done
2866 IFS=$as_save_IFS
2867 ;;
2868 esac
2869 fi
2870
2871 test -d ./--version && rmdir ./--version
2872 if test ${ac_cv_path_mkdir+y}; then
2873 MKDIR_P="$ac_cv_path_mkdir -p"
2874 else
2875 # As a last resort, use plain mkdir -p,
2876 # in the hope it doesn't have the bugs of ancient mkdir.
2877 MKDIR_P='mkdir -p'
2878 fi
2879 fi
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2881 printf "%s\n" "$MKDIR_P" >&6; }
2882
2883 for ac_prog in gawk mawk nawk awk
2884 do
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 printf %s "checking for $ac_word... " >&6; }
2889 if test ${ac_cv_prog_AWK+y}
2890 then :
2891 printf %s "(cached) " >&6
2892 else case e in #(
2893 e) if test -n "$AWK"; then
2894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_AWK="$ac_prog"
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi ;;
2916 esac
2917 fi
2918 AWK=$ac_cv_prog_AWK
2919 if test -n "$AWK"; then
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2921 printf "%s\n" "$AWK" >&6; }
2922 else
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 printf "%s\n" "no" >&6; }
2925 fi
2926
2927
2928 test -n "$AWK" && break
2929 done
2930
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2932 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2933 set x ${MAKE-make}
2934 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2935 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2936 then :
2937 printf %s "(cached) " >&6
2938 else case e in #(
2939 e) cat >conftest.make <<\_ACEOF
2940 SHELL = /bin/sh
2941 all:
2942 @echo '@@@%%%=$(MAKE)=@@@%%%'
2943 _ACEOF
2944 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2946 *@@@%%%=?*=@@@%%%*)
2947 eval ac_cv_prog_make_${ac_make}_set=yes;;
2948 *)
2949 eval ac_cv_prog_make_${ac_make}_set=no;;
2950 esac
2951 rm -f conftest.make ;;
2952 esac
2953 fi
2954 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956 printf "%s\n" "yes" >&6; }
2957 SET_MAKE=
2958 else
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 printf "%s\n" "no" >&6; }
2961 SET_MAKE="MAKE=${MAKE-make}"
2962 fi
2963
2964 rm -rf .tst 2>/dev/null
2965 mkdir .tst 2>/dev/null
2966 if test -d .tst; then
2967 am__leading_dot=.
2968 else
2969 am__leading_dot=_
2970 fi
2971 rmdir .tst 2>/dev/null
2972
2973 # Check whether --enable-silent-rules was given.
2974 if test ${enable_silent_rules+y}
2975 then :
2976 enableval=$enable_silent_rules;
2977 fi
2978
2979 case $enable_silent_rules in # (((
2980 yes) AM_DEFAULT_VERBOSITY=0;;
2981 no) AM_DEFAULT_VERBOSITY=1;;
2982 *) AM_DEFAULT_VERBOSITY=1;;
2983 esac
2984 am_make=${MAKE-make}
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2986 printf %s "checking whether $am_make supports nested variables... " >&6; }
2987 if test ${am_cv_make_support_nested_variables+y}
2988 then :
2989 printf %s "(cached) " >&6
2990 else case e in #(
2991 e) if printf "%s\n" 'TRUE=$(BAR$(V))
2992 BAR0=false
2993 BAR1=true
2994 V=1
2995 am__doit:
2996 @$(TRUE)
2997 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2998 am_cv_make_support_nested_variables=yes
2999 else
3000 am_cv_make_support_nested_variables=no
3001 fi ;;
3002 esac
3003 fi
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3005 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3006 if test $am_cv_make_support_nested_variables = yes; then
3007 AM_V='$(V)'
3008 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3009 else
3010 AM_V=$AM_DEFAULT_VERBOSITY
3011 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3012 fi
3013 AM_BACKSLASH='\'
3014
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022 fi
3023 fi
3024
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3029 else
3030 CYGPATH_W=echo
3031 fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036 PACKAGE='xbiff'
3037 VERSION='1.0.5'
3038
3039
3040 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3041
3042
3043 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3044
3045 # Some tools Automake needs.
3046
3047 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3048
3049
3050 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3051
3052
3053 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3054
3055
3056 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3057
3058
3059 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3060
3061 # For better backward compatibility. To be removed once Automake 1.9.x
3062 # dies out for good. For more background, see:
3063 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3064 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3065 mkdir_p='$(MKDIR_P)'
3066
3067 # We need awk for the "check" target (and possibly the TAP driver). The
3068 # system "awk" is bad on some platforms.
3069 # Always define AMTAR for backward compatibility. Yes, it's still used
3070 # in the wild :-( We should find a proper way to deprecate it ...
3071 AMTAR='$${TAR-tar}'
3072
3073
3074 # We'll loop over all known methods to create a tar archive until one works.
3075 _am_tools='gnutar pax cpio none'
3076
3077 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3078
3079
3080
3081
3082
3083 # Variables for tags utilities; see am/tags.am
3084 if test -z "$CTAGS"; then
3085 CTAGS=ctags
3086 fi
3087
3088 if test -z "$ETAGS"; then
3089 ETAGS=etags
3090 fi
3091
3092 if test -z "$CSCOPE"; then
3093 CSCOPE=cscope
3094 fi
3095
3096
3097
3098 # POSIX will say in a future version that running "rm -f" with no argument
3099 # is OK; and we want to be able to make that assumption in our Makefile
3100 # recipes. So use an aggressive probe to check that the usage we want is
3101 # actually supported "in the wild" to an acceptable degree.
3102 # See automake bug#10828.
3103 # To make any issue more visible, cause the running configure to be aborted
3104 # by default if the 'rm' program in use doesn't match our expectations; the
3105 # user can still override this though.
3106 if rm -f && rm -fr && rm -rf; then : OK; else
3107 cat >&2 <<'END'
3108 Oops!
3109
3110 Your 'rm' program seems unable to run without file operands specified
3111 on the command line, even when the '-f' option is present. This is contrary
3112 to the behaviour of most rm programs out there, and not conforming with
3113 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3114
3115 Please tell bug-automake@gnu.org about your system, including the value
3116 of your $PATH and any error possibly output before this message. This
3117 can help us improve future automake versions.
3118
3119 END
3120 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3121 echo 'Configuration will proceed anyway, since you have set the' >&2
3122 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3123 echo >&2
3124 else
3125 cat >&2 <<'END'
3126 Aborting the configuration process, to ensure you take notice of the issue.
3127
3128 You can download and install GNU coreutils to get an 'rm' implementation
3129 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3130
3131 If you want to complete the configuration process using your problematic
3132 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3133 to "yes", and re-run configure.
3134
3135 END
3136 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3137 fi
3138 fi
3139
3140
3141 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162 DEPDIR="${am__leading_dot}deps"
3163
3164 ac_config_commands="$ac_config_commands depfiles"
3165
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3167 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3168 cat > confinc.mk << 'END'
3169 am__doit:
3170 @echo this is the am__doit target >confinc.out
3171 .PHONY: am__doit
3172 END
3173 am__include="#"
3174 am__quote=
3175 # BSD make does it like this.
3176 echo '.include "confinc.mk" # ignored' > confmf.BSD
3177 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3178 echo 'include confinc.mk # ignored' > confmf.GNU
3179 _am_result=no
3180 for s in GNU BSD; do
3181 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3182 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 case $?:`cat confinc.out 2>/dev/null` in #(
3187 '0:this is the am__doit target') :
3188 case $s in #(
3189 BSD) :
3190 am__include='.include' am__quote='"' ;; #(
3191 *) :
3192 am__include='include' am__quote='' ;;
3193 esac ;; #(
3194 *) :
3195 ;;
3196 esac
3197 if test "$am__include" != "#"; then
3198 _am_result="yes ($s style)"
3199 break
3200 fi
3201 done
3202 rm -f confinc.* confmf.*
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3204 printf "%s\n" "${_am_result}" >&6; }
3205
3206 # Check whether --enable-dependency-tracking was given.
3207 if test ${enable_dependency_tracking+y}
3208 then :
3209 enableval=$enable_dependency_tracking;
3210 fi
3211
3212 if test "x$enable_dependency_tracking" != xno; then
3213 am_depcomp="$ac_aux_dir/depcomp"
3214 AMDEPBACKSLASH='\'
3215 am__nodep='_no'
3216 fi
3217 if test "x$enable_dependency_tracking" != xno; then
3218 AMDEP_TRUE=
3219 AMDEP_FALSE='#'
3220 else
3221 AMDEP_TRUE='#'
3222 AMDEP_FALSE=
3223 fi
3224
3225
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 printf %s "checking for $ac_word... " >&6; }
3236 if test ${ac_cv_prog_CC+y}
3237 then :
3238 printf %s "(cached) " >&6
3239 else case e in #(
3240 e) if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 case $as_dir in #(((
3248 '') as_dir=./ ;;
3249 */) ;;
3250 *) as_dir=$as_dir/ ;;
3251 esac
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi ;;
3263 esac
3264 fi
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 printf "%s\n" "$CC" >&6; }
3269 else
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 printf "%s\n" "no" >&6; }
3272 fi
3273
3274
3275 fi
3276 if test -z "$ac_cv_prog_CC"; then
3277 ac_ct_CC=$CC
3278 # Extract the first word of "gcc", so it can be a program name with args.
3279 set dummy gcc; ac_word=$2
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 printf %s "checking for $ac_word... " >&6; }
3282 if test ${ac_cv_prog_ac_ct_CC+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else case e in #(
3286 e) if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 case $as_dir in #(((
3294 '') as_dir=./ ;;
3295 */) ;;
3296 *) as_dir=$as_dir/ ;;
3297 esac
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_ac_ct_CC="gcc"
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi ;;
3309 esac
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 printf "%s\n" "$ac_ct_CC" >&6; }
3315 else
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 printf "%s\n" "no" >&6; }
3318 fi
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 CC=$ac_ct_CC
3330 fi
3331 else
3332 CC="$ac_cv_prog_CC"
3333 fi
3334
3335 if test -z "$CC"; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}cc; ac_word=$2
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 printf %s "checking for $ac_word... " >&6; }
3341 if test ${ac_cv_prog_CC+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else case e in #(
3345 e) if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 case $as_dir in #(((
3353 '') as_dir=./ ;;
3354 */) ;;
3355 *) as_dir=$as_dir/ ;;
3356 esac
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_CC="${ac_tool_prefix}cc"
3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi ;;
3368 esac
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 printf "%s\n" "$CC" >&6; }
3374 else
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 fi
3382 if test -z "$CC"; then
3383 # Extract the first word of "cc", so it can be a program name with args.
3384 set dummy cc; ac_word=$2
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 printf %s "checking for $ac_word... " >&6; }
3387 if test ${ac_cv_prog_CC+y}
3388 then :
3389 printf %s "(cached) " >&6
3390 else case e in #(
3391 e) if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 ac_prog_rejected=no
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 case $as_dir in #(((
3400 '') as_dir=./ ;;
3401 */) ;;
3402 *) as_dir=$as_dir/ ;;
3403 esac
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3407 ac_prog_rejected=yes
3408 continue
3409 fi
3410 ac_cv_prog_CC="cc"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 if test $ac_prog_rejected = yes; then
3419 # We found a bogon in the path, so make sure we never use it.
3420 set dummy $ac_cv_prog_CC
3421 shift
3422 if test $# != 0; then
3423 # We chose a different compiler from the bogus one.
3424 # However, it has the same basename, so the bogon will be chosen
3425 # first if we set CC to just the basename; use the full file name.
3426 shift
3427 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3428 fi
3429 fi
3430 fi ;;
3431 esac
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 printf "%s\n" "$CC" >&6; }
3437 else
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 printf "%s\n" "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 for ac_prog in cl.exe
3447 do
3448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 printf %s "checking for $ac_word... " >&6; }
3452 if test ${ac_cv_prog_CC+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else case e in #(
3456 e) if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 case $as_dir in #(((
3464 '') as_dir=./ ;;
3465 */) ;;
3466 *) as_dir=$as_dir/ ;;
3467 esac
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi ;;
3479 esac
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 printf "%s\n" "$CC" >&6; }
3485 else
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 printf "%s\n" "no" >&6; }
3488 fi
3489
3490
3491 test -n "$CC" && break
3492 done
3493 fi
3494 if test -z "$CC"; then
3495 ac_ct_CC=$CC
3496 for ac_prog in cl.exe
3497 do
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 printf %s "checking for $ac_word... " >&6; }
3502 if test ${ac_cv_prog_ac_ct_CC+y}
3503 then :
3504 printf %s "(cached) " >&6
3505 else case e in #(
3506 e) if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512 IFS=$as_save_IFS
3513 case $as_dir in #(((
3514 '') as_dir=./ ;;
3515 */) ;;
3516 *) as_dir=$as_dir/ ;;
3517 esac
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_ac_ct_CC="$ac_prog"
3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi ;;
3529 esac
3530 fi
3531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3532 if test -n "$ac_ct_CC"; then
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3534 printf "%s\n" "$ac_ct_CC" >&6; }
3535 else
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 printf "%s\n" "no" >&6; }
3538 fi
3539
3540
3541 test -n "$ac_ct_CC" && break
3542 done
3543
3544 if test "x$ac_ct_CC" = x; then
3545 CC=""
3546 else
3547 case $cross_compiling:$ac_tool_warned in
3548 yes:)
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3551 ac_tool_warned=yes ;;
3552 esac
3553 CC=$ac_ct_CC
3554 fi
3555 fi
3556
3557 fi
3558 if test -z "$CC"; then
3559 if test -n "$ac_tool_prefix"; then
3560 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3561 set dummy ${ac_tool_prefix}clang; ac_word=$2
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 printf %s "checking for $ac_word... " >&6; }
3564 if test ${ac_cv_prog_CC+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else case e in #(
3568 e) if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 case $as_dir in #(((
3576 '') as_dir=./ ;;
3577 */) ;;
3578 *) as_dir=$as_dir/ ;;
3579 esac
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_CC="${ac_tool_prefix}clang"
3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 fi ;;
3591 esac
3592 fi
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 printf "%s\n" "$CC" >&6; }
3597 else
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 printf "%s\n" "no" >&6; }
3600 fi
3601
3602
3603 fi
3604 if test -z "$ac_cv_prog_CC"; then
3605 ac_ct_CC=$CC
3606 # Extract the first word of "clang", so it can be a program name with args.
3607 set dummy clang; ac_word=$2
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 printf %s "checking for $ac_word... " >&6; }
3610 if test ${ac_cv_prog_ac_ct_CC+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else case e in #(
3614 e) if test -n "$ac_ct_CC"; then
3615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 case $as_dir in #(((
3622 '') as_dir=./ ;;
3623 */) ;;
3624 *) as_dir=$as_dir/ ;;
3625 esac
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_ac_ct_CC="clang"
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi ;;
3637 esac
3638 fi
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 printf "%s\n" "$ac_ct_CC" >&6; }
3643 else
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3646 fi
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3658 fi
3659 else
3660 CC="$ac_cv_prog_CC"
3661 fi
3662
3663 fi
3664
3665
3666 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3667 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3668 as_fn_error $? "no acceptable C compiler found in \$PATH
3669 See 'config.log' for more details" "$LINENO" 5; }
3670
3671 # Provide some information about the compiler.
3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3673 set X $ac_compile
3674 ac_compiler=$2
3675 for ac_option in --version -v -V -qversion -version; do
3676 { { ac_try="$ac_compiler $ac_option >&5"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 printf "%s\n" "$ac_try_echo"; } >&5
3683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3684 ac_status=$?
3685 if test -s conftest.err; then
3686 sed '10a\
3687 ... rest of stderr output deleted ...
3688 10q' conftest.err >conftest.er1
3689 cat conftest.er1 >&5
3690 fi
3691 rm -f conftest.er1 conftest.err
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }
3694 done
3695
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main (void)
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 ac_clean_files_save=$ac_clean_files
3708 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3709 # Try to create an executable without -o first, disregard a.out.
3710 # It will help us diagnose broken compilers, and finding out an intuition
3711 # of exeext.
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3713 printf %s "checking whether the C compiler works... " >&6; }
3714 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3715
3716 # The possible output files:
3717 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3718
3719 ac_rmfiles=
3720 for ac_file in $ac_files
3721 do
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3725 esac
3726 done
3727 rm -f $ac_rmfiles
3728
3729 if { { ac_try="$ac_link_default"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 printf "%s\n" "$ac_try_echo"; } >&5
3736 (eval "$ac_link_default") 2>&5
3737 ac_status=$?
3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3740 then :
3741 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3742 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3744 # so that the user can short-circuit this test for compilers unknown to
3745 # Autoconf.
3746 for ac_file in $ac_files ''
3747 do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3751 ;;
3752 [ab].out )
3753 # We found the default executable, but exeext='' is most
3754 # certainly right.
3755 break;;
3756 *.* )
3757 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3758 then :; else
3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 fi
3761 # We set ac_cv_exeext here because the later test for it is not
3762 # safe: cross compilers may not add the suffix if given an '-o'
3763 # argument, so we may need to know it at that point already.
3764 # Even if this section looks crufty: it has the advantage of
3765 # actually working.
3766 break;;
3767 * )
3768 break;;
3769 esac
3770 done
3771 test "$ac_cv_exeext" = no && ac_cv_exeext=
3772
3773 else case e in #(
3774 e) ac_file='' ;;
3775 esac
3776 fi
3777 if test -z "$ac_file"
3778 then :
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 printf "%s\n" "no" >&6; }
3781 printf "%s\n" "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3785 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3786 as_fn_error 77 "C compiler cannot create executables
3787 See 'config.log' for more details" "$LINENO" 5; }
3788 else case e in #(
3789 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 printf "%s\n" "yes" >&6; } ;;
3791 esac
3792 fi
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 printf %s "checking for C compiler default output file name... " >&6; }
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3796 printf "%s\n" "$ac_file" >&6; }
3797 ac_exeext=$ac_cv_exeext
3798
3799 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3800 ac_clean_files=$ac_clean_files_save
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3802 printf %s "checking for suffix of executables... " >&6; }
3803 if { { ac_try="$ac_link"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 printf "%s\n" "$ac_try_echo"; } >&5
3810 (eval "$ac_link") 2>&5
3811 ac_status=$?
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 then :
3815 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3816 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3817 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3818 # 'rm'.
3819 for ac_file in conftest.exe conftest conftest.*; do
3820 test -f "$ac_file" || continue
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3824 break;;
3825 * ) break;;
3826 esac
3827 done
3828 else case e in #(
3829 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3830 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3831 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3832 See 'config.log' for more details" "$LINENO" 5; } ;;
3833 esac
3834 fi
3835 rm -f conftest conftest$ac_cv_exeext
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3837 printf "%s\n" "$ac_cv_exeext" >&6; }
3838
3839 rm -f conftest.$ac_ext
3840 EXEEXT=$ac_cv_exeext
3841 ac_exeext=$EXEEXT
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844 #include <stdio.h>
3845 int
3846 main (void)
3847 {
3848 FILE *f = fopen ("conftest.out", "w");
3849 if (!f)
3850 return 1;
3851 return ferror (f) || fclose (f) != 0;
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 ac_clean_files="$ac_clean_files conftest.out"
3858 # Check that the compiler produces executables we can run. If not, either
3859 # the compiler is broken, or we cross compile.
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3861 printf %s "checking whether we are cross compiling... " >&6; }
3862 if test "$cross_compiling" != yes; then
3863 { { ac_try="$ac_link"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 printf "%s\n" "$ac_try_echo"; } >&5
3870 (eval "$ac_link") 2>&5
3871 ac_status=$?
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3874 if { ac_try='./conftest$ac_cv_exeext'
3875 { { case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881 (eval "$ac_try") 2>&5
3882 ac_status=$?
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; }; then
3885 cross_compiling=no
3886 else
3887 if test "$cross_compiling" = maybe; then
3888 cross_compiling=yes
3889 else
3890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3891 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3892 as_fn_error 77 "cannot run C compiled programs.
3893 If you meant to cross compile, use '--host'.
3894 See 'config.log' for more details" "$LINENO" 5; }
3895 fi
3896 fi
3897 fi
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3899 printf "%s\n" "$cross_compiling" >&6; }
3900
3901 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3902 conftest.o conftest.obj conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3905 printf %s "checking for suffix of object files... " >&6; }
3906 if test ${ac_cv_objext+y}
3907 then :
3908 printf %s "(cached) " >&6
3909 else case e in #(
3910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main (void)
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.o conftest.obj
3922 if { { ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 printf "%s\n" "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3933 then :
3934 for ac_file in conftest.o conftest.obj conftest.*; do
3935 test -f "$ac_file" || continue;
3936 case $ac_file in
3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3939 break;;
3940 esac
3941 done
3942 else case e in #(
3943 e) printf "%s\n" "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3947 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3948 as_fn_error $? "cannot compute suffix of object files: cannot compile
3949 See 'config.log' for more details" "$LINENO" 5; } ;;
3950 esac
3951 fi
3952 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3953 esac
3954 fi
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3956 printf "%s\n" "$ac_cv_objext" >&6; }
3957 OBJEXT=$ac_cv_objext
3958 ac_objext=$OBJEXT
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3960 printf %s "checking whether the compiler supports GNU C... " >&6; }
3961 if test ${ac_cv_c_compiler_gnu+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else case e in #(
3965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967
3968 int
3969 main (void)
3970 {
3971 #ifndef __GNUC__
3972 choke me
3973 #endif
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"
3980 then :
3981 ac_compiler_gnu=yes
3982 else case e in #(
3983 e) ac_compiler_gnu=no ;;
3984 esac
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988 ;;
3989 esac
3990 fi
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995 if test $ac_compiler_gnu = yes; then
3996 GCC=yes
3997 else
3998 GCC=
3999 fi
4000 ac_test_CFLAGS=${CFLAGS+y}
4001 ac_save_CFLAGS=$CFLAGS
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003 printf %s "checking whether $CC accepts -g... " >&6; }
4004 if test ${ac_cv_prog_cc_g+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else case e in #(
4008 e) ac_save_c_werror_flag=$ac_c_werror_flag
4009 ac_c_werror_flag=yes
4010 ac_cv_prog_cc_g=no
4011 CFLAGS="-g"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014
4015 int
4016 main (void)
4017 {
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"
4024 then :
4025 ac_cv_prog_cc_g=yes
4026 else case e in #(
4027 e) CFLAGS=""
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main (void)
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"
4040 then :
4041
4042 else case e in #(
4043 e) ac_c_werror_flag=$ac_save_c_werror_flag
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main (void)
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"
4057 then :
4058 ac_cv_prog_cc_g=yes
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4061 esac
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4064 esac
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4067 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4068 esac
4069 fi
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4072 if test $ac_test_CFLAGS; then
4073 CFLAGS=$ac_save_CFLAGS
4074 elif test $ac_cv_prog_cc_g = yes; then
4075 if test "$GCC" = yes; then
4076 CFLAGS="-g -O2"
4077 else
4078 CFLAGS="-g"
4079 fi
4080 else
4081 if test "$GCC" = yes; then
4082 CFLAGS="-O2"
4083 else
4084 CFLAGS=
4085 fi
4086 fi
4087 ac_prog_cc_stdc=no
4088 if test x$ac_prog_cc_stdc = xno
4089 then :
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4091 printf %s "checking for $CC option to enable C11 features... " >&6; }
4092 if test ${ac_cv_prog_cc_c11+y}
4093 then :
4094 printf %s "(cached) " >&6
4095 else case e in #(
4096 e) ac_cv_prog_cc_c11=no
4097 ac_save_CC=$CC
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 $ac_c_conftest_c11_program
4101 _ACEOF
4102 for ac_arg in '' -std=gnu11
4103 do
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"
4106 then :
4107 ac_cv_prog_cc_c11=$ac_arg
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam
4110 test "x$ac_cv_prog_cc_c11" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC ;;
4114 esac
4115 fi
4116
4117 if test "x$ac_cv_prog_cc_c11" = xno
4118 then :
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 printf "%s\n" "unsupported" >&6; }
4121 else case e in #(
4122 e) if test "x$ac_cv_prog_cc_c11" = x
4123 then :
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125 printf "%s\n" "none needed" >&6; }
4126 else case e in #(
4127 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4128 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4129 CC="$CC $ac_cv_prog_cc_c11" ;;
4130 esac
4131 fi
4132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4133 ac_prog_cc_stdc=c11 ;;
4134 esac
4135 fi
4136 fi
4137 if test x$ac_prog_cc_stdc = xno
4138 then :
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4140 printf %s "checking for $CC option to enable C99 features... " >&6; }
4141 if test ${ac_cv_prog_cc_c99+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else case e in #(
4145 e) ac_cv_prog_cc_c99=no
4146 ac_save_CC=$CC
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 $ac_c_conftest_c99_program
4150 _ACEOF
4151 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4152 do
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"
4155 then :
4156 ac_cv_prog_cc_c99=$ac_arg
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam
4159 test "x$ac_cv_prog_cc_c99" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC ;;
4163 esac
4164 fi
4165
4166 if test "x$ac_cv_prog_cc_c99" = xno
4167 then :
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4169 printf "%s\n" "unsupported" >&6; }
4170 else case e in #(
4171 e) if test "x$ac_cv_prog_cc_c99" = x
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 printf "%s\n" "none needed" >&6; }
4175 else case e in #(
4176 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4177 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4178 CC="$CC $ac_cv_prog_cc_c99" ;;
4179 esac
4180 fi
4181 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4182 ac_prog_cc_stdc=c99 ;;
4183 esac
4184 fi
4185 fi
4186 if test x$ac_prog_cc_stdc = xno
4187 then :
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4189 printf %s "checking for $CC option to enable C89 features... " >&6; }
4190 if test ${ac_cv_prog_cc_c89+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else case e in #(
4194 e) ac_cv_prog_cc_c89=no
4195 ac_save_CC=$CC
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 $ac_c_conftest_c89_program
4199 _ACEOF
4200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4201 do
4202 CC="$ac_save_CC $ac_arg"
4203 if ac_fn_c_try_compile "$LINENO"
4204 then :
4205 ac_cv_prog_cc_c89=$ac_arg
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.beam
4208 test "x$ac_cv_prog_cc_c89" != "xno" && break
4209 done
4210 rm -f conftest.$ac_ext
4211 CC=$ac_save_CC ;;
4212 esac
4213 fi
4214
4215 if test "x$ac_cv_prog_cc_c89" = xno
4216 then :
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 printf "%s\n" "unsupported" >&6; }
4219 else case e in #(
4220 e) if test "x$ac_cv_prog_cc_c89" = x
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 printf "%s\n" "none needed" >&6; }
4224 else case e in #(
4225 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4226 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4227 CC="$CC $ac_cv_prog_cc_c89" ;;
4228 esac
4229 fi
4230 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4231 ac_prog_cc_stdc=c89 ;;
4232 esac
4233 fi
4234 fi
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4249 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4250 if test ${am_cv_prog_cc_c_o+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else case e in #(
4254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256
4257 int
4258 main (void)
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 # Make sure it works both with $CC and with simple cc.
4266 # Following AC_PROG_CC_C_O, we do the test twice because some
4267 # compilers refuse to overwrite an existing .o file with -o,
4268 # though they will create one.
4269 am_cv_prog_cc_c_o=yes
4270 for am_i in 1 2; do
4271 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4272 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } \
4276 && test -f conftest2.$ac_objext; then
4277 : OK
4278 else
4279 am_cv_prog_cc_c_o=no
4280 break
4281 fi
4282 done
4283 rm -f core conftest*
4284 unset am_i ;;
4285 esac
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4288 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4289 if test "$am_cv_prog_cc_c_o" != yes; then
4290 # Losing compiler, so override with the script.
4291 # FIXME: It is wrong to rewrite CC.
4292 # But if we don't then we get into trouble of one sort or another.
4293 # A longer-term fix would be to have automake use am__CC in this case,
4294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4295 CC="$am_aux_dir/compile $CC"
4296 fi
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303
4304 depcc="$CC" am_compiler_list=
4305
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4307 printf %s "checking dependency style of $depcc... " >&6; }
4308 if test ${am_cv_CC_dependencies_compiler_type+y}
4309 then :
4310 printf %s "(cached) " >&6
4311 else case e in #(
4312 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4313 # We make a subdir and do the tests there. Otherwise we can end up
4314 # making bogus files that we don't know about and never remove. For
4315 # instance it was reported that on HP-UX the gcc test will end up
4316 # making a dummy file named 'D' -- because '-MD' means "put the output
4317 # in D".
4318 rm -rf conftest.dir
4319 mkdir conftest.dir
4320 # Copy depcomp to subdir because otherwise we won't find it if we're
4321 # using a relative directory.
4322 cp "$am_depcomp" conftest.dir
4323 cd conftest.dir
4324 # We will build objects and dependencies in a subdirectory because
4325 # it helps to detect inapplicable dependency modes. For instance
4326 # both Tru64's cc and ICC support -MD to output dependencies as a
4327 # side effect of compilation, but ICC will put the dependencies in
4328 # the current directory while Tru64 will put them in the object
4329 # directory.
4330 mkdir sub
4331
4332 am_cv_CC_dependencies_compiler_type=none
4333 if test "$am_compiler_list" = ""; then
4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4335 fi
4336 am__universal=false
4337 case " $depcc " in #(
4338 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4339 esac
4340
4341 for depmode in $am_compiler_list; do
4342 # Setup a source with many dependencies, because some compilers
4343 # like to wrap large dependency lists on column 80 (with \), and
4344 # we should not choose a depcomp mode which is confused by this.
4345 #
4346 # We need to recreate these files for each test, as the compiler may
4347 # overwrite some of them when testing with obscure command lines.
4348 # This happens at least with the AIX C compiler.
4349 : > sub/conftest.c
4350 for i in 1 2 3 4 5 6; do
4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4352 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4353 # Solaris 10 /bin/sh.
4354 echo '/* dummy */' > sub/conftst$i.h
4355 done
4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4357
4358 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4359 # mode. It turns out that the SunPro C++ compiler does not properly
4360 # handle '-M -o', and we need to detect this. Also, some Intel
4361 # versions had trouble with output in subdirs.
4362 am__obj=sub/conftest.${OBJEXT-o}
4363 am__minus_obj="-o $am__obj"
4364 case $depmode in
4365 gcc)
4366 # This depmode causes a compiler race in universal mode.
4367 test "$am__universal" = false || continue
4368 ;;
4369 nosideeffect)
4370 # After this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested.
4372 if test "x$enable_dependency_tracking" = xyes; then
4373 continue
4374 else
4375 break
4376 fi
4377 ;;
4378 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4379 # This compiler won't grok '-c -o', but also, the minuso test has
4380 # not run yet. These depmodes are late enough in the game, and
4381 # so weak that their functioning should not be impacted.
4382 am__obj=conftest.${OBJEXT-o}
4383 am__minus_obj=
4384 ;;
4385 none) break ;;
4386 esac
4387 if depmode=$depmode \
4388 source=sub/conftest.c object=$am__obj \
4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4391 >/dev/null 2>conftest.err &&
4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4396 # icc doesn't choke on unknown options, it will just issue warnings
4397 # or remarks (even with -Werror). So we grep stderr for any message
4398 # that says an option was ignored or not supported.
4399 # When given -MP, icc 7.0 and 7.1 complain thusly:
4400 # icc: Command line warning: ignoring option '-M'; no argument required
4401 # The diagnosis changed in icc 8.0:
4402 # icc: Command line remark: option '-MP' not supported
4403 if (grep 'ignoring option' conftest.err ||
4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4405 am_cv_CC_dependencies_compiler_type=$depmode
4406 break
4407 fi
4408 fi
4409 done
4410
4411 cd ..
4412 rm -rf conftest.dir
4413 else
4414 am_cv_CC_dependencies_compiler_type=none
4415 fi
4416 ;;
4417 esac
4418 fi
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4420 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4421 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4422
4423 if
4424 test "x$enable_dependency_tracking" != xno \
4425 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4426 am__fastdepCC_TRUE=
4427 am__fastdepCC_FALSE='#'
4428 else
4429 am__fastdepCC_TRUE='#'
4430 am__fastdepCC_FALSE=
4431 fi
4432
4433
4434
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4436 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4437 if test ${ac_cv_c_undeclared_builtin_options+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else case e in #(
4441 e) ac_save_CFLAGS=$CFLAGS
4442 ac_cv_c_undeclared_builtin_options='cannot detect'
4443 for ac_arg in '' -fno-builtin; do
4444 CFLAGS="$ac_save_CFLAGS $ac_arg"
4445 # This test program should *not* compile successfully.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448
4449 int
4450 main (void)
4451 {
4452 (void) strchr;
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"
4458 then :
4459
4460 else case e in #(
4461 e) # This test program should compile successfully.
4462 # No library function is consistently available on
4463 # freestanding implementations, so test against a dummy
4464 # declaration. Include always-available headers on the
4465 # off chance that they somehow elicit warnings.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <float.h>
4469 #include <limits.h>
4470 #include <stdarg.h>
4471 #include <stddef.h>
4472 extern void ac_decl (int, char *);
4473
4474 int
4475 main (void)
4476 {
4477 (void) ac_decl (0, (char *) 0);
4478 (void) ac_decl;
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"
4485 then :
4486 if test x"$ac_arg" = x
4487 then :
4488 ac_cv_c_undeclared_builtin_options='none needed'
4489 else case e in #(
4490 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4491 esac
4492 fi
4493 break
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4496 esac
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4499 done
4500 CFLAGS=$ac_save_CFLAGS
4501 ;;
4502 esac
4503 fi
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4505 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4506 case $ac_cv_c_undeclared_builtin_options in #(
4507 'cannot detect') :
4508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4509 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4510 as_fn_error $? "cannot make $CC report undeclared builtins
4511 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4512 'none needed') :
4513 ac_c_undeclared_builtin_options='' ;; #(
4514 *) :
4515 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4516 esac
4517
4518 ac_header= ac_cache=
4519 for ac_item in $ac_header_c_list
4520 do
4521 if test $ac_cache; then
4522 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4523 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4524 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4525 fi
4526 ac_header= ac_cache=
4527 elif test $ac_header; then
4528 ac_cache=$ac_item
4529 else
4530 ac_header=$ac_item
4531 fi
4532 done
4533
4534
4535
4536
4537
4538
4539
4540
4541 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4542 then :
4543
4544 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4545
4546 fi
4547
4548
4549
4550
4551 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4552 if test "x$ac_cv_have_decl___clang__" = xyes
4553 then :
4554 CLANGCC="yes"
4555 else case e in #(
4556 e) CLANGCC="no" ;;
4557 esac
4558 fi
4559 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4560 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4561 then :
4562 INTELCC="yes"
4563 else case e in #(
4564 e) INTELCC="no" ;;
4565 esac
4566 fi
4567 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4568 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4569 then :
4570 SUNCC="yes"
4571 else case e in #(
4572 e) SUNCC="no" ;;
4573 esac
4574 fi
4575
4576
4577
4578
4579
4580
4581
4582
4583 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4584 if test -n "$ac_tool_prefix"; then
4585 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 printf %s "checking for $ac_word... " >&6; }
4589 if test ${ac_cv_path_PKG_CONFIG+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else case e in #(
4593 e) case $PKG_CONFIG in
4594 [\\/]* | ?:[\\/]*)
4595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4596 ;;
4597 *)
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 case $as_dir in #(((
4603 '') as_dir=./ ;;
4604 */) ;;
4605 *) as_dir=$as_dir/ ;;
4606 esac
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4609 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 ;;
4618 esac ;;
4619 esac
4620 fi
4621 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4622 if test -n "$PKG_CONFIG"; then
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4624 printf "%s\n" "$PKG_CONFIG" >&6; }
4625 else
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf "%s\n" "no" >&6; }
4628 fi
4629
4630
4631 fi
4632 if test -z "$ac_cv_path_PKG_CONFIG"; then
4633 ac_pt_PKG_CONFIG=$PKG_CONFIG
4634 # Extract the first word of "pkg-config", so it can be a program name with args.
4635 set dummy pkg-config; ac_word=$2
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 printf %s "checking for $ac_word... " >&6; }
4638 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4639 then :
4640 printf %s "(cached) " >&6
4641 else case e in #(
4642 e) case $ac_pt_PKG_CONFIG in
4643 [\\/]* | ?:[\\/]*)
4644 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4645 ;;
4646 *)
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 case $as_dir in #(((
4652 '') as_dir=./ ;;
4653 */) ;;
4654 *) as_dir=$as_dir/ ;;
4655 esac
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4658 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 ;;
4667 esac ;;
4668 esac
4669 fi
4670 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4671 if test -n "$ac_pt_PKG_CONFIG"; then
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4673 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4674 else
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 printf "%s\n" "no" >&6; }
4677 fi
4678
4679 if test "x$ac_pt_PKG_CONFIG" = x; then
4680 PKG_CONFIG=""
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 PKG_CONFIG=$ac_pt_PKG_CONFIG
4689 fi
4690 else
4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4692 fi
4693
4694 fi
4695 if test -n "$PKG_CONFIG"; then
4696 _pkg_min_version=0.9.0
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4698 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701 printf "%s\n" "yes" >&6; }
4702 else
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 printf "%s\n" "no" >&6; }
4705 PKG_CONFIG=""
4706 fi
4707 fi
4708
4709
4710 # Make sure we can run config.sub.
4711 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4712 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4713
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4715 printf %s "checking build system type... " >&6; }
4716 if test ${ac_cv_build+y}
4717 then :
4718 printf %s "(cached) " >&6
4719 else case e in #(
4720 e) ac_build_alias=$build_alias
4721 test "x$ac_build_alias" = x &&
4722 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4723 test "x$ac_build_alias" = x &&
4724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4725 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4726 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4727 ;;
4728 esac
4729 fi
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4731 printf "%s\n" "$ac_cv_build" >&6; }
4732 case $ac_cv_build in
4733 *-*-*) ;;
4734 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4735 esac
4736 build=$ac_cv_build
4737 ac_save_IFS=$IFS; IFS='-'
4738 set x $ac_cv_build
4739 shift
4740 build_cpu=$1
4741 build_vendor=$2
4742 shift; shift
4743 # Remember, the first character of IFS is used to create $*,
4744 # except with old shells:
4745 build_os=$*
4746 IFS=$ac_save_IFS
4747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4748
4749
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4751 printf %s "checking host system type... " >&6; }
4752 if test ${ac_cv_host+y}
4753 then :
4754 printf %s "(cached) " >&6
4755 else case e in #(
4756 e) if test "x$host_alias" = x; then
4757 ac_cv_host=$ac_cv_build
4758 else
4759 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4760 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4761 fi
4762 ;;
4763 esac
4764 fi
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4766 printf "%s\n" "$ac_cv_host" >&6; }
4767 case $ac_cv_host in
4768 *-*-*) ;;
4769 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4770 esac
4771 host=$ac_cv_host
4772 ac_save_IFS=$IFS; IFS='-'
4773 set x $ac_cv_host
4774 shift
4775 host_cpu=$1
4776 host_vendor=$2
4777 shift; shift
4778 # Remember, the first character of IFS is used to create $*,
4779 # except with old shells:
4780 host_os=$*
4781 IFS=$ac_save_IFS
4782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4783
4784
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4786 printf %s "checking for a sed that does not truncate output... " >&6; }
4787 if test ${ac_cv_path_SED+y}
4788 then :
4789 printf %s "(cached) " >&6
4790 else case e in #(
4791 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4792 for ac_i in 1 2 3 4 5 6 7; do
4793 ac_script="$ac_script$as_nl$ac_script"
4794 done
4795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4796 { ac_script=; unset ac_script;}
4797 if test -z "$SED"; then
4798 ac_path_SED_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_prog in sed gsed
4810 do
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4813 as_fn_executable_p "$ac_path_SED" || continue
4814 # Check for GNU ac_path_SED and select it if it is found.
4815 # Check for GNU $ac_path_SED
4816 case `"$ac_path_SED" --version 2>&1` in #(
4817 *GNU*)
4818 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4819 #(
4820 *)
4821 ac_count=0
4822 printf %s 0123456789 >"conftest.in"
4823 while :
4824 do
4825 cat "conftest.in" "conftest.in" >"conftest.tmp"
4826 mv "conftest.tmp" "conftest.in"
4827 cp "conftest.in" "conftest.nl"
4828 printf "%s\n" '' >> "conftest.nl"
4829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831 as_fn_arith $ac_count + 1 && ac_count=$as_val
4832 if test $ac_count -gt ${ac_path_SED_max-0}; then
4833 # Best one so far, save it but keep looking for a better one
4834 ac_cv_path_SED="$ac_path_SED"
4835 ac_path_SED_max=$ac_count
4836 fi
4837 # 10*(2^10) chars as input seems more than enough
4838 test $ac_count -gt 10 && break
4839 done
4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841 esac
4842
4843 $ac_path_SED_found && break 3
4844 done
4845 done
4846 done
4847 IFS=$as_save_IFS
4848 if test -z "$ac_cv_path_SED"; then
4849 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4850 fi
4851 else
4852 ac_cv_path_SED=$SED
4853 fi
4854 ;;
4855 esac
4856 fi
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4858 printf "%s\n" "$ac_cv_path_SED" >&6; }
4859 SED="$ac_cv_path_SED"
4860 rm -f conftest.sed
4861
4862
4863
4864
4865
4866
4867 # Check whether --enable-selective-werror was given.
4868 if test ${enable_selective_werror+y}
4869 then :
4870 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4871 else case e in #(
4872 e) SELECTIVE_WERROR=yes ;;
4873 esac
4874 fi
4875
4876
4877
4878
4879
4880 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4881 if test "x$SUNCC" = "xyes"; then
4882 BASE_CFLAGS="-v"
4883 else
4884 BASE_CFLAGS=""
4885 fi
4886
4887 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901 xorg_testset_save_CFLAGS="$CFLAGS"
4902
4903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4906 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4907 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4908 then :
4909 printf %s "(cached) " >&6
4910 else case e in #(
4911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 int i;
4914 _ACEOF
4915 if ac_fn_c_try_compile "$LINENO"
4916 then :
4917 xorg_cv_cc_flag_unknown_warning_option=yes
4918 else case e in #(
4919 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4920 esac
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4923 esac
4924 fi
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928 CFLAGS="$xorg_testset_save_CFLAGS"
4929 fi
4930
4931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 fi
4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else case e in #(
4942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"
4947 then :
4948 xorg_cv_cc_flag_unused_command_line_argument=yes
4949 else case e in #(
4950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4951 esac
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4954 esac
4955 fi
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4959 CFLAGS="$xorg_testset_save_CFLAGS"
4960 fi
4961
4962 found="no"
4963
4964 if test $found = "no" ; then
4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967 fi
4968
4969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4971 fi
4972
4973 CFLAGS="$CFLAGS -Wall"
4974
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4976 printf %s "checking if $CC supports -Wall... " >&6; }
4977 cacheid=xorg_cv_cc_flag__Wall
4978 if eval test \${$cacheid+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 int
4986 main (void)
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_link "$LINENO"
4994 then :
4995 eval $cacheid=yes
4996 else case e in #(
4997 e) eval $cacheid=no ;;
4998 esac
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5001 conftest$ac_exeext conftest.$ac_ext ;;
5002 esac
5003 fi
5004
5005
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008 eval supported=\$$cacheid
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010 printf "%s\n" "$supported" >&6; }
5011 if test "$supported" = "yes" ; then
5012 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5013 found="yes"
5014 fi
5015 fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 xorg_testset_save_CFLAGS="$CFLAGS"
5032
5033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else case e in #(
5041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 int i;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"
5046 then :
5047 xorg_cv_cc_flag_unknown_warning_option=yes
5048 else case e in #(
5049 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5050 esac
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5053 esac
5054 fi
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059 fi
5060
5061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064 fi
5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5069 then :
5070 printf %s "(cached) " >&6
5071 else case e in #(
5072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 int i;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"
5077 then :
5078 xorg_cv_cc_flag_unused_command_line_argument=yes
5079 else case e in #(
5080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5081 esac
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5084 esac
5085 fi
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5089 CFLAGS="$xorg_testset_save_CFLAGS"
5090 fi
5091
5092 found="no"
5093
5094 if test $found = "no" ; then
5095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097 fi
5098
5099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101 fi
5102
5103 CFLAGS="$CFLAGS -Wpointer-arith"
5104
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5106 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5107 cacheid=xorg_cv_cc_flag__Wpointer_arith
5108 if eval test \${$cacheid+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else case e in #(
5112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 int i;
5115 int
5116 main (void)
5117 {
5118
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_link "$LINENO"
5124 then :
5125 eval $cacheid=yes
5126 else case e in #(
5127 e) eval $cacheid=no ;;
5128 esac
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5131 conftest$ac_exeext conftest.$ac_ext ;;
5132 esac
5133 fi
5134
5135
5136 CFLAGS="$xorg_testset_save_CFLAGS"
5137
5138 eval supported=\$$cacheid
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5140 printf "%s\n" "$supported" >&6; }
5141 if test "$supported" = "yes" ; then
5142 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5143 found="yes"
5144 fi
5145 fi
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 xorg_testset_save_CFLAGS="$CFLAGS"
5162
5163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5167 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5168 then :
5169 printf %s "(cached) " >&6
5170 else case e in #(
5171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 int i;
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177 xorg_cv_cc_flag_unknown_warning_option=yes
5178 else case e in #(
5179 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5180 esac
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5183 esac
5184 fi
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5188 CFLAGS="$xorg_testset_save_CFLAGS"
5189 fi
5190
5191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194 fi
5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5199 then :
5200 printf %s "(cached) " >&6
5201 else case e in #(
5202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 int i;
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"
5207 then :
5208 xorg_cv_cc_flag_unused_command_line_argument=yes
5209 else case e in #(
5210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5211 esac
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5214 esac
5215 fi
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5219 CFLAGS="$xorg_testset_save_CFLAGS"
5220 fi
5221
5222 found="no"
5223
5224 if test $found = "no" ; then
5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227 fi
5228
5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5231 fi
5232
5233 CFLAGS="$CFLAGS -Wmissing-declarations"
5234
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5236 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5237 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5238 if eval test \${$cacheid+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else case e in #(
5242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 int i;
5245 int
5246 main (void)
5247 {
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_link "$LINENO"
5254 then :
5255 eval $cacheid=yes
5256 else case e in #(
5257 e) eval $cacheid=no ;;
5258 esac
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5261 conftest$ac_exeext conftest.$ac_ext ;;
5262 esac
5263 fi
5264
5265
5266 CFLAGS="$xorg_testset_save_CFLAGS"
5267
5268 eval supported=\$$cacheid
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5270 printf "%s\n" "$supported" >&6; }
5271 if test "$supported" = "yes" ; then
5272 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5273 found="yes"
5274 fi
5275 fi
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291 xorg_testset_save_CFLAGS="$CFLAGS"
5292
5293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5297 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5298 then :
5299 printf %s "(cached) " >&6
5300 else case e in #(
5301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 int i;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"
5306 then :
5307 xorg_cv_cc_flag_unknown_warning_option=yes
5308 else case e in #(
5309 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5310 esac
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5313 esac
5314 fi
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318 CFLAGS="$xorg_testset_save_CFLAGS"
5319 fi
5320
5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324 fi
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5329 then :
5330 printf %s "(cached) " >&6
5331 else case e in #(
5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"
5337 then :
5338 xorg_cv_cc_flag_unused_command_line_argument=yes
5339 else case e in #(
5340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5341 esac
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5344 esac
5345 fi
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5349 CFLAGS="$xorg_testset_save_CFLAGS"
5350 fi
5351
5352 found="no"
5353
5354 if test $found = "no" ; then
5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357 fi
5358
5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361 fi
5362
5363 CFLAGS="$CFLAGS -Wformat=2"
5364
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5366 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5367 cacheid=xorg_cv_cc_flag__Wformat_2
5368 if eval test \${$cacheid+y}
5369 then :
5370 printf %s "(cached) " >&6
5371 else case e in #(
5372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 int i;
5375 int
5376 main (void)
5377 {
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 if ac_fn_c_try_link "$LINENO"
5384 then :
5385 eval $cacheid=yes
5386 else case e in #(
5387 e) eval $cacheid=no ;;
5388 esac
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5391 conftest$ac_exeext conftest.$ac_ext ;;
5392 esac
5393 fi
5394
5395
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397
5398 eval supported=\$$cacheid
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5400 printf "%s\n" "$supported" >&6; }
5401 if test "$supported" = "yes" ; then
5402 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5403 found="yes"
5404 fi
5405 fi
5406
5407 if test $found = "no" ; then
5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411
5412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 fi
5415
5416 CFLAGS="$CFLAGS -Wformat"
5417
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5419 printf %s "checking if $CC supports -Wformat... " >&6; }
5420 cacheid=xorg_cv_cc_flag__Wformat
5421 if eval test \${$cacheid+y}
5422 then :
5423 printf %s "(cached) " >&6
5424 else case e in #(
5425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 int i;
5428 int
5429 main (void)
5430 {
5431
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 if ac_fn_c_try_link "$LINENO"
5437 then :
5438 eval $cacheid=yes
5439 else case e in #(
5440 e) eval $cacheid=no ;;
5441 esac
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5444 conftest$ac_exeext conftest.$ac_ext ;;
5445 esac
5446 fi
5447
5448
5449 CFLAGS="$xorg_testset_save_CFLAGS"
5450
5451 eval supported=\$$cacheid
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5453 printf "%s\n" "$supported" >&6; }
5454 if test "$supported" = "yes" ; then
5455 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5456 found="yes"
5457 fi
5458 fi
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 xorg_testset_save_CFLAGS="$CFLAGS"
5477
5478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5483 then :
5484 printf %s "(cached) " >&6
5485 else case e in #(
5486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"
5491 then :
5492 xorg_cv_cc_flag_unknown_warning_option=yes
5493 else case e in #(
5494 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5495 esac
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5498 esac
5499 fi
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5503 CFLAGS="$xorg_testset_save_CFLAGS"
5504 fi
5505
5506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 fi
5510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else case e in #(
5517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 int i;
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"
5522 then :
5523 xorg_cv_cc_flag_unused_command_line_argument=yes
5524 else case e in #(
5525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5526 esac
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5529 esac
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 found="no"
5538
5539 if test $found = "no" ; then
5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542 fi
5543
5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546 fi
5547
5548 CFLAGS="$CFLAGS -Wstrict-prototypes"
5549
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5551 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5552 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5553 if eval test \${$cacheid+y}
5554 then :
5555 printf %s "(cached) " >&6
5556 else case e in #(
5557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 int i;
5560 int
5561 main (void)
5562 {
5563
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 if ac_fn_c_try_link "$LINENO"
5569 then :
5570 eval $cacheid=yes
5571 else case e in #(
5572 e) eval $cacheid=no ;;
5573 esac
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5576 conftest$ac_exeext conftest.$ac_ext ;;
5577 esac
5578 fi
5579
5580
5581 CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583 eval supported=\$$cacheid
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585 printf "%s\n" "$supported" >&6; }
5586 if test "$supported" = "yes" ; then
5587 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5588 found="yes"
5589 fi
5590 fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 xorg_testset_save_CFLAGS="$CFLAGS"
5607
5608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5612 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else case e in #(
5616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 int i;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"
5621 then :
5622 xorg_cv_cc_flag_unknown_warning_option=yes
5623 else case e in #(
5624 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5625 esac
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5628 esac
5629 fi
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5633 CFLAGS="$xorg_testset_save_CFLAGS"
5634 fi
5635
5636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5639 fi
5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else case e in #(
5647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 int i;
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"
5652 then :
5653 xorg_cv_cc_flag_unused_command_line_argument=yes
5654 else case e in #(
5655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5656 esac
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5659 esac
5660 fi
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 found="no"
5668
5669 if test $found = "no" ; then
5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672 fi
5673
5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 fi
5677
5678 CFLAGS="$CFLAGS -Wmissing-prototypes"
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5681 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5682 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5683 if eval test \${$cacheid+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else case e in #(
5687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 int
5691 main (void)
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"
5699 then :
5700 eval $cacheid=yes
5701 else case e in #(
5702 e) eval $cacheid=no ;;
5703 esac
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5706 conftest$ac_exeext conftest.$ac_ext ;;
5707 esac
5708 fi
5709
5710
5711 CFLAGS="$xorg_testset_save_CFLAGS"
5712
5713 eval supported=\$$cacheid
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5715 printf "%s\n" "$supported" >&6; }
5716 if test "$supported" = "yes" ; then
5717 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5718 found="yes"
5719 fi
5720 fi
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 xorg_testset_save_CFLAGS="$CFLAGS"
5737
5738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else case e in #(
5746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 int i;
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"
5751 then :
5752 xorg_cv_cc_flag_unknown_warning_option=yes
5753 else case e in #(
5754 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5755 esac
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5758 esac
5759 fi
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763 CFLAGS="$xorg_testset_save_CFLAGS"
5764 fi
5765
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else case e in #(
5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"
5782 then :
5783 xorg_cv_cc_flag_unused_command_line_argument=yes
5784 else case e in #(
5785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5786 esac
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5789 esac
5790 fi
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5794 CFLAGS="$xorg_testset_save_CFLAGS"
5795 fi
5796
5797 found="no"
5798
5799 if test $found = "no" ; then
5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802 fi
5803
5804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5806 fi
5807
5808 CFLAGS="$CFLAGS -Wnested-externs"
5809
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5811 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5812 cacheid=xorg_cv_cc_flag__Wnested_externs
5813 if eval test \${$cacheid+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else case e in #(
5817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 int
5821 main (void)
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_c_try_link "$LINENO"
5829 then :
5830 eval $cacheid=yes
5831 else case e in #(
5832 e) eval $cacheid=no ;;
5833 esac
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5836 conftest$ac_exeext conftest.$ac_ext ;;
5837 esac
5838 fi
5839
5840
5841 CFLAGS="$xorg_testset_save_CFLAGS"
5842
5843 eval supported=\$$cacheid
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5845 printf "%s\n" "$supported" >&6; }
5846 if test "$supported" = "yes" ; then
5847 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5848 found="yes"
5849 fi
5850 fi
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 xorg_testset_save_CFLAGS="$CFLAGS"
5867
5868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5873 then :
5874 printf %s "(cached) " >&6
5875 else case e in #(
5876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"
5881 then :
5882 xorg_cv_cc_flag_unknown_warning_option=yes
5883 else case e in #(
5884 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5885 esac
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5888 esac
5889 fi
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5891 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5893 CFLAGS="$xorg_testset_save_CFLAGS"
5894 fi
5895
5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5902 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5903 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int i;
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"
5912 then :
5913 xorg_cv_cc_flag_unused_command_line_argument=yes
5914 else case e in #(
5915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5916 esac
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5919 esac
5920 fi
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5922 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5924 CFLAGS="$xorg_testset_save_CFLAGS"
5925 fi
5926
5927 found="no"
5928
5929 if test $found = "no" ; then
5930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5932 fi
5933
5934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936 fi
5937
5938 CFLAGS="$CFLAGS -Wbad-function-cast"
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5941 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5942 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5943 if eval test \${$cacheid+y}
5944 then :
5945 printf %s "(cached) " >&6
5946 else case e in #(
5947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 int i;
5950 int
5951 main (void)
5952 {
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_link "$LINENO"
5959 then :
5960 eval $cacheid=yes
5961 else case e in #(
5962 e) eval $cacheid=no ;;
5963 esac
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5966 conftest$ac_exeext conftest.$ac_ext ;;
5967 esac
5968 fi
5969
5970
5971 CFLAGS="$xorg_testset_save_CFLAGS"
5972
5973 eval supported=\$$cacheid
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975 printf "%s\n" "$supported" >&6; }
5976 if test "$supported" = "yes" ; then
5977 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5978 found="yes"
5979 fi
5980 fi
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 xorg_testset_save_CFLAGS="$CFLAGS"
5997
5998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6001 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6002 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else case e in #(
6006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"
6011 then :
6012 xorg_cv_cc_flag_unknown_warning_option=yes
6013 else case e in #(
6014 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6015 esac
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6018 esac
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024 fi
6025
6026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6033 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else case e in #(
6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 int i;
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"
6042 then :
6043 xorg_cv_cc_flag_unused_command_line_argument=yes
6044 else case e in #(
6045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6046 esac
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6049 esac
6050 fi
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6052 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6054 CFLAGS="$xorg_testset_save_CFLAGS"
6055 fi
6056
6057 found="no"
6058
6059 if test $found = "no" ; then
6060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062 fi
6063
6064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066 fi
6067
6068 CFLAGS="$CFLAGS -Wold-style-definition"
6069
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6071 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6072 cacheid=xorg_cv_cc_flag__Wold_style_definition
6073 if eval test \${$cacheid+y}
6074 then :
6075 printf %s "(cached) " >&6
6076 else case e in #(
6077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 int i;
6080 int
6081 main (void)
6082 {
6083
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 if ac_fn_c_try_link "$LINENO"
6089 then :
6090 eval $cacheid=yes
6091 else case e in #(
6092 e) eval $cacheid=no ;;
6093 esac
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6096 conftest$ac_exeext conftest.$ac_ext ;;
6097 esac
6098 fi
6099
6100
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102
6103 eval supported=\$$cacheid
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6105 printf "%s\n" "$supported" >&6; }
6106 if test "$supported" = "yes" ; then
6107 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6108 found="yes"
6109 fi
6110 fi
6111
6112 if test $found = "no" ; then
6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116
6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 fi
6120
6121 CFLAGS="$CFLAGS -fd"
6122
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6124 printf %s "checking if $CC supports -fd... " >&6; }
6125 cacheid=xorg_cv_cc_flag__fd
6126 if eval test \${$cacheid+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else case e in #(
6130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 int
6134 main (void)
6135 {
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_link "$LINENO"
6142 then :
6143 eval $cacheid=yes
6144 else case e in #(
6145 e) eval $cacheid=no ;;
6146 esac
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6149 conftest$ac_exeext conftest.$ac_ext ;;
6150 esac
6151 fi
6152
6153
6154 CFLAGS="$xorg_testset_save_CFLAGS"
6155
6156 eval supported=\$$cacheid
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6158 printf "%s\n" "$supported" >&6; }
6159 if test "$supported" = "yes" ; then
6160 BASE_CFLAGS="$BASE_CFLAGS -fd"
6161 found="yes"
6162 fi
6163 fi
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 xorg_testset_save_CFLAGS="$CFLAGS"
6180
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6186 then :
6187 printf %s "(cached) " >&6
6188 else case e in #(
6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 int i;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"
6194 then :
6195 xorg_cv_cc_flag_unknown_warning_option=yes
6196 else case e in #(
6197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6198 esac
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6201 esac
6202 fi
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207 fi
6208
6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6217 then :
6218 printf %s "(cached) " >&6
6219 else case e in #(
6220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"
6225 then :
6226 xorg_cv_cc_flag_unused_command_line_argument=yes
6227 else case e in #(
6228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6229 esac
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6232 esac
6233 fi
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237 CFLAGS="$xorg_testset_save_CFLAGS"
6238 fi
6239
6240 found="no"
6241
6242 if test $found = "no" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246
6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249 fi
6250
6251 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6252
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6254 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6255 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6256 if eval test \${$cacheid+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else case e in #(
6260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 int i;
6263 int
6264 main (void)
6265 {
6266
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"
6272 then :
6273 eval $cacheid=yes
6274 else case e in #(
6275 e) eval $cacheid=no ;;
6276 esac
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6279 conftest$ac_exeext conftest.$ac_ext ;;
6280 esac
6281 fi
6282
6283
6284 CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286 eval supported=\$$cacheid
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288 printf "%s\n" "$supported" >&6; }
6289 if test "$supported" = "yes" ; then
6290 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6291 found="yes"
6292 fi
6293 fi
6294
6295
6296
6297
6298
6299 # This chunk adds additional warnings that could catch undesired effects.
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6320 then :
6321 printf %s "(cached) " >&6
6322 else case e in #(
6323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"
6328 then :
6329 xorg_cv_cc_flag_unknown_warning_option=yes
6330 else case e in #(
6331 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6332 esac
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6335 esac
6336 fi
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6341 fi
6342
6343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 fi
6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else case e in #(
6354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"
6359 then :
6360 xorg_cv_cc_flag_unused_command_line_argument=yes
6361 else case e in #(
6362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6363 esac
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6366 esac
6367 fi
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6372 fi
6373
6374 found="no"
6375
6376 if test $found = "no" ; then
6377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 fi
6380
6381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383 fi
6384
6385 CFLAGS="$CFLAGS -Wunused"
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6388 printf %s "checking if $CC supports -Wunused... " >&6; }
6389 cacheid=xorg_cv_cc_flag__Wunused
6390 if eval test \${$cacheid+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else case e in #(
6394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 int i;
6397 int
6398 main (void)
6399 {
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 if ac_fn_c_try_link "$LINENO"
6406 then :
6407 eval $cacheid=yes
6408 else case e in #(
6409 e) eval $cacheid=no ;;
6410 esac
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6413 conftest$ac_exeext conftest.$ac_ext ;;
6414 esac
6415 fi
6416
6417
6418 CFLAGS="$xorg_testset_save_CFLAGS"
6419
6420 eval supported=\$$cacheid
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6422 printf "%s\n" "$supported" >&6; }
6423 if test "$supported" = "yes" ; then
6424 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6425 found="yes"
6426 fi
6427 fi
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 xorg_testset_save_CFLAGS="$CFLAGS"
6444
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6450 then :
6451 printf %s "(cached) " >&6
6452 else case e in #(
6453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 int i;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"
6458 then :
6459 xorg_cv_cc_flag_unknown_warning_option=yes
6460 else case e in #(
6461 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6462 esac
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6465 esac
6466 fi
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470 CFLAGS="$xorg_testset_save_CFLAGS"
6471 fi
6472
6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else case e in #(
6484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 int i;
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"
6489 then :
6490 xorg_cv_cc_flag_unused_command_line_argument=yes
6491 else case e in #(
6492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6493 esac
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6496 esac
6497 fi
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6499 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6501 CFLAGS="$xorg_testset_save_CFLAGS"
6502 fi
6503
6504 found="no"
6505
6506 if test $found = "no" ; then
6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6509 fi
6510
6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6513 fi
6514
6515 CFLAGS="$CFLAGS -Wuninitialized"
6516
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6518 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6519 cacheid=xorg_cv_cc_flag__Wuninitialized
6520 if eval test \${$cacheid+y}
6521 then :
6522 printf %s "(cached) " >&6
6523 else case e in #(
6524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 int i;
6527 int
6528 main (void)
6529 {
6530
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"
6536 then :
6537 eval $cacheid=yes
6538 else case e in #(
6539 e) eval $cacheid=no ;;
6540 esac
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6543 conftest$ac_exeext conftest.$ac_ext ;;
6544 esac
6545 fi
6546
6547
6548 CFLAGS="$xorg_testset_save_CFLAGS"
6549
6550 eval supported=\$$cacheid
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6552 printf "%s\n" "$supported" >&6; }
6553 if test "$supported" = "yes" ; then
6554 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6555 found="yes"
6556 fi
6557 fi
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 xorg_testset_save_CFLAGS="$CFLAGS"
6574
6575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else case e in #(
6583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 int i;
6586 _ACEOF
6587 if ac_fn_c_try_compile "$LINENO"
6588 then :
6589 xorg_cv_cc_flag_unknown_warning_option=yes
6590 else case e in #(
6591 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6592 esac
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6595 esac
6596 fi
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601 fi
6602
6603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606 fi
6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6611 then :
6612 printf %s "(cached) " >&6
6613 else case e in #(
6614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 int i;
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"
6619 then :
6620 xorg_cv_cc_flag_unused_command_line_argument=yes
6621 else case e in #(
6622 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6623 esac
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6626 esac
6627 fi
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6629 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6631 CFLAGS="$xorg_testset_save_CFLAGS"
6632 fi
6633
6634 found="no"
6635
6636 if test $found = "no" ; then
6637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639 fi
6640
6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6643 fi
6644
6645 CFLAGS="$CFLAGS -Wshadow"
6646
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6648 printf %s "checking if $CC supports -Wshadow... " >&6; }
6649 cacheid=xorg_cv_cc_flag__Wshadow
6650 if eval test \${$cacheid+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else case e in #(
6654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 int
6658 main (void)
6659 {
6660
6661 ;
6662 return 0;
6663 }
6664 _ACEOF
6665 if ac_fn_c_try_link "$LINENO"
6666 then :
6667 eval $cacheid=yes
6668 else case e in #(
6669 e) eval $cacheid=no ;;
6670 esac
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6673 conftest$ac_exeext conftest.$ac_ext ;;
6674 esac
6675 fi
6676
6677
6678 CFLAGS="$xorg_testset_save_CFLAGS"
6679
6680 eval supported=\$$cacheid
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6682 printf "%s\n" "$supported" >&6; }
6683 if test "$supported" = "yes" ; then
6684 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6685 found="yes"
6686 fi
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 xorg_testset_save_CFLAGS="$CFLAGS"
6704
6705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6710 then :
6711 printf %s "(cached) " >&6
6712 else case e in #(
6713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int i;
6716 _ACEOF
6717 if ac_fn_c_try_compile "$LINENO"
6718 then :
6719 xorg_cv_cc_flag_unknown_warning_option=yes
6720 else case e in #(
6721 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6722 esac
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6725 esac
6726 fi
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6730 CFLAGS="$xorg_testset_save_CFLAGS"
6731 fi
6732
6733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736 fi
6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6741 then :
6742 printf %s "(cached) " >&6
6743 else case e in #(
6744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"
6749 then :
6750 xorg_cv_cc_flag_unused_command_line_argument=yes
6751 else case e in #(
6752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6753 esac
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6756 esac
6757 fi
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762 fi
6763
6764 found="no"
6765
6766 if test $found = "no" ; then
6767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769 fi
6770
6771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773 fi
6774
6775 CFLAGS="$CFLAGS -Wmissing-noreturn"
6776
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6778 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6779 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6780 if eval test \${$cacheid+y}
6781 then :
6782 printf %s "(cached) " >&6
6783 else case e in #(
6784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 int i;
6787 int
6788 main (void)
6789 {
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"
6796 then :
6797 eval $cacheid=yes
6798 else case e in #(
6799 e) eval $cacheid=no ;;
6800 esac
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6803 conftest$ac_exeext conftest.$ac_ext ;;
6804 esac
6805 fi
6806
6807
6808 CFLAGS="$xorg_testset_save_CFLAGS"
6809
6810 eval supported=\$$cacheid
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6812 printf "%s\n" "$supported" >&6; }
6813 if test "$supported" = "yes" ; then
6814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6815 found="yes"
6816 fi
6817 fi
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833 xorg_testset_save_CFLAGS="$CFLAGS"
6834
6835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else case e in #(
6843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 int i;
6846 _ACEOF
6847 if ac_fn_c_try_compile "$LINENO"
6848 then :
6849 xorg_cv_cc_flag_unknown_warning_option=yes
6850 else case e in #(
6851 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6852 esac
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6855 esac
6856 fi
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6860 CFLAGS="$xorg_testset_save_CFLAGS"
6861 fi
6862
6863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866 fi
6867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else case e in #(
6874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int i;
6877 _ACEOF
6878 if ac_fn_c_try_compile "$LINENO"
6879 then :
6880 xorg_cv_cc_flag_unused_command_line_argument=yes
6881 else case e in #(
6882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6883 esac
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6886 esac
6887 fi
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6891 CFLAGS="$xorg_testset_save_CFLAGS"
6892 fi
6893
6894 found="no"
6895
6896 if test $found = "no" ; then
6897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 fi
6900
6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903 fi
6904
6905 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6906
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6908 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6909 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6910 if eval test \${$cacheid+y}
6911 then :
6912 printf %s "(cached) " >&6
6913 else case e in #(
6914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 int i;
6917 int
6918 main (void)
6919 {
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_link "$LINENO"
6926 then :
6927 eval $cacheid=yes
6928 else case e in #(
6929 e) eval $cacheid=no ;;
6930 esac
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933 conftest$ac_exeext conftest.$ac_ext ;;
6934 esac
6935 fi
6936
6937
6938 CFLAGS="$xorg_testset_save_CFLAGS"
6939
6940 eval supported=\$$cacheid
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6942 printf "%s\n" "$supported" >&6; }
6943 if test "$supported" = "yes" ; then
6944 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6945 found="yes"
6946 fi
6947 fi
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963 xorg_testset_save_CFLAGS="$CFLAGS"
6964
6965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else case e in #(
6973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"
6978 then :
6979 xorg_cv_cc_flag_unknown_warning_option=yes
6980 else case e in #(
6981 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6982 esac
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6985 esac
6986 fi
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 fi
6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else case e in #(
7004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int i;
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"
7009 then :
7010 xorg_cv_cc_flag_unused_command_line_argument=yes
7011 else case e in #(
7012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7013 esac
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7016 esac
7017 fi
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7021 CFLAGS="$xorg_testset_save_CFLAGS"
7022 fi
7023
7024 found="no"
7025
7026 if test $found = "no" ; then
7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029 fi
7030
7031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7033 fi
7034
7035 CFLAGS="$CFLAGS -Wredundant-decls"
7036
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7038 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7039 cacheid=xorg_cv_cc_flag__Wredundant_decls
7040 if eval test \${$cacheid+y}
7041 then :
7042 printf %s "(cached) " >&6
7043 else case e in #(
7044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 int i;
7047 int
7048 main (void)
7049 {
7050
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"
7056 then :
7057 eval $cacheid=yes
7058 else case e in #(
7059 e) eval $cacheid=no ;;
7060 esac
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7063 conftest$ac_exeext conftest.$ac_ext ;;
7064 esac
7065 fi
7066
7067
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069
7070 eval supported=\$$cacheid
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7072 printf "%s\n" "$supported" >&6; }
7073 if test "$supported" = "yes" ; then
7074 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7075 found="yes"
7076 fi
7077 fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093 xorg_testset_save_CFLAGS="$CFLAGS"
7094
7095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else case e in #(
7103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105 int i;
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"
7108 then :
7109 xorg_cv_cc_flag_unknown_warning_option=yes
7110 else case e in #(
7111 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7112 esac
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7115 esac
7116 fi
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7120 CFLAGS="$xorg_testset_save_CFLAGS"
7121 fi
7122
7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126 fi
7127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else case e in #(
7134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"
7139 then :
7140 xorg_cv_cc_flag_unused_command_line_argument=yes
7141 else case e in #(
7142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7143 esac
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7146 esac
7147 fi
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7149 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7151 CFLAGS="$xorg_testset_save_CFLAGS"
7152 fi
7153
7154 found="no"
7155
7156 if test $found = "no" ; then
7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 fi
7160
7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163 fi
7164
7165 CFLAGS="$CFLAGS -Wlogical-op"
7166
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7168 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7169 cacheid=xorg_cv_cc_flag__Wlogical_op
7170 if eval test \${$cacheid+y}
7171 then :
7172 printf %s "(cached) " >&6
7173 else case e in #(
7174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 int i;
7177 int
7178 main (void)
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"
7186 then :
7187 eval $cacheid=yes
7188 else case e in #(
7189 e) eval $cacheid=no ;;
7190 esac
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7193 conftest$ac_exeext conftest.$ac_ext ;;
7194 esac
7195 fi
7196
7197
7198 CFLAGS="$xorg_testset_save_CFLAGS"
7199
7200 eval supported=\$$cacheid
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7202 printf "%s\n" "$supported" >&6; }
7203 if test "$supported" = "yes" ; then
7204 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7205 found="yes"
7206 fi
7207 fi
7208
7209
7210
7211 # These are currently disabled because they are noisy. They will be enabled
7212 # in the future once the codebase is sufficiently modernized to silence
7213 # them. For now, I don't want them to drown out the other warnings.
7214 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7215 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7216 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7217
7218 # Turn some warnings into errors, so we don't accidentally get successful builds
7219 # when there are problems that should be fixed.
7220
7221 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 xorg_testset_save_CFLAGS="$CFLAGS"
7236
7237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7242 then :
7243 printf %s "(cached) " >&6
7244 else case e in #(
7245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 int i;
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"
7250 then :
7251 xorg_cv_cc_flag_unknown_warning_option=yes
7252 else case e in #(
7253 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7254 esac
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7257 esac
7258 fi
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7260 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7262 CFLAGS="$xorg_testset_save_CFLAGS"
7263 fi
7264
7265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7268 fi
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7273 then :
7274 printf %s "(cached) " >&6
7275 else case e in #(
7276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 int i;
7279 _ACEOF
7280 if ac_fn_c_try_compile "$LINENO"
7281 then :
7282 xorg_cv_cc_flag_unused_command_line_argument=yes
7283 else case e in #(
7284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7285 esac
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7288 esac
7289 fi
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294 fi
7295
7296 found="no"
7297
7298 if test $found = "no" ; then
7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 fi
7302
7303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7305 fi
7306
7307 CFLAGS="$CFLAGS -Werror=implicit"
7308
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7310 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7311 cacheid=xorg_cv_cc_flag__Werror_implicit
7312 if eval test \${$cacheid+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else case e in #(
7316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 int i;
7319 int
7320 main (void)
7321 {
7322
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 if ac_fn_c_try_link "$LINENO"
7328 then :
7329 eval $cacheid=yes
7330 else case e in #(
7331 e) eval $cacheid=no ;;
7332 esac
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7335 conftest$ac_exeext conftest.$ac_ext ;;
7336 esac
7337 fi
7338
7339
7340 CFLAGS="$xorg_testset_save_CFLAGS"
7341
7342 eval supported=\$$cacheid
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7344 printf "%s\n" "$supported" >&6; }
7345 if test "$supported" = "yes" ; then
7346 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7347 found="yes"
7348 fi
7349 fi
7350
7351 if test $found = "no" ; then
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 fi
7355
7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358 fi
7359
7360 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7361
7362 { 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
7363 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7364 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7365 if eval test \${$cacheid+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else case e in #(
7369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 int i;
7372 int
7373 main (void)
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"
7381 then :
7382 eval $cacheid=yes
7383 else case e in #(
7384 e) eval $cacheid=no ;;
7385 esac
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7388 conftest$ac_exeext conftest.$ac_ext ;;
7389 esac
7390 fi
7391
7392
7393 CFLAGS="$xorg_testset_save_CFLAGS"
7394
7395 eval supported=\$$cacheid
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7397 printf "%s\n" "$supported" >&6; }
7398 if test "$supported" = "yes" ; then
7399 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7400 found="yes"
7401 fi
7402 fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418 xorg_testset_save_CFLAGS="$CFLAGS"
7419
7420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7425 then :
7426 printf %s "(cached) " >&6
7427 else case e in #(
7428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 int i;
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"
7433 then :
7434 xorg_cv_cc_flag_unknown_warning_option=yes
7435 else case e in #(
7436 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7437 esac
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7440 esac
7441 fi
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 fi
7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else case e in #(
7459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"
7464 then :
7465 xorg_cv_cc_flag_unused_command_line_argument=yes
7466 else case e in #(
7467 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7468 esac
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7471 esac
7472 fi
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477 fi
7478
7479 found="no"
7480
7481 if test $found = "no" ; then
7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484 fi
7485
7486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7488 fi
7489
7490 CFLAGS="$CFLAGS -Werror=nonnull"
7491
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7493 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7494 cacheid=xorg_cv_cc_flag__Werror_nonnull
7495 if eval test \${$cacheid+y}
7496 then :
7497 printf %s "(cached) " >&6
7498 else case e in #(
7499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 int i;
7502 int
7503 main (void)
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"
7511 then :
7512 eval $cacheid=yes
7513 else case e in #(
7514 e) eval $cacheid=no ;;
7515 esac
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7518 conftest$ac_exeext conftest.$ac_ext ;;
7519 esac
7520 fi
7521
7522
7523 CFLAGS="$xorg_testset_save_CFLAGS"
7524
7525 eval supported=\$$cacheid
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7527 printf "%s\n" "$supported" >&6; }
7528 if test "$supported" = "yes" ; then
7529 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7530 found="yes"
7531 fi
7532 fi
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 xorg_testset_save_CFLAGS="$CFLAGS"
7549
7550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7554 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7555 then :
7556 printf %s "(cached) " >&6
7557 else case e in #(
7558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 int i;
7561 _ACEOF
7562 if ac_fn_c_try_compile "$LINENO"
7563 then :
7564 xorg_cv_cc_flag_unknown_warning_option=yes
7565 else case e in #(
7566 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7567 esac
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7570 esac
7571 fi
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7573 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7575 CFLAGS="$xorg_testset_save_CFLAGS"
7576 fi
7577
7578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581 fi
7582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7584 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7585 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7586 then :
7587 printf %s "(cached) " >&6
7588 else case e in #(
7589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int i;
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"
7594 then :
7595 xorg_cv_cc_flag_unused_command_line_argument=yes
7596 else case e in #(
7597 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7598 esac
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7601 esac
7602 fi
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607 fi
7608
7609 found="no"
7610
7611 if test $found = "no" ; then
7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 fi
7615
7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 fi
7619
7620 CFLAGS="$CFLAGS -Werror=init-self"
7621
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7623 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7624 cacheid=xorg_cv_cc_flag__Werror_init_self
7625 if eval test \${$cacheid+y}
7626 then :
7627 printf %s "(cached) " >&6
7628 else case e in #(
7629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 int
7633 main (void)
7634 {
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"
7641 then :
7642 eval $cacheid=yes
7643 else case e in #(
7644 e) eval $cacheid=no ;;
7645 esac
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7648 conftest$ac_exeext conftest.$ac_ext ;;
7649 esac
7650 fi
7651
7652
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655 eval supported=\$$cacheid
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657 printf "%s\n" "$supported" >&6; }
7658 if test "$supported" = "yes" ; then
7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7660 found="yes"
7661 fi
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"
7693 then :
7694 xorg_cv_cc_flag_unknown_warning_option=yes
7695 else case e in #(
7696 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7697 esac
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7700 esac
7701 fi
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7703 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705 CFLAGS="$xorg_testset_save_CFLAGS"
7706 fi
7707
7708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7716 then :
7717 printf %s "(cached) " >&6
7718 else case e in #(
7719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"
7724 then :
7725 xorg_cv_cc_flag_unused_command_line_argument=yes
7726 else case e in #(
7727 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7728 esac
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7731 esac
7732 fi
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7734 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7736 CFLAGS="$xorg_testset_save_CFLAGS"
7737 fi
7738
7739 found="no"
7740
7741 if test $found = "no" ; then
7742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744 fi
7745
7746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748 fi
7749
7750 CFLAGS="$CFLAGS -Werror=main"
7751
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7753 printf %s "checking if $CC supports -Werror=main... " >&6; }
7754 cacheid=xorg_cv_cc_flag__Werror_main
7755 if eval test \${$cacheid+y}
7756 then :
7757 printf %s "(cached) " >&6
7758 else case e in #(
7759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761 int i;
7762 int
7763 main (void)
7764 {
7765
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_link "$LINENO"
7771 then :
7772 eval $cacheid=yes
7773 else case e in #(
7774 e) eval $cacheid=no ;;
7775 esac
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7778 conftest$ac_exeext conftest.$ac_ext ;;
7779 esac
7780 fi
7781
7782
7783 CFLAGS="$xorg_testset_save_CFLAGS"
7784
7785 eval supported=\$$cacheid
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7787 printf "%s\n" "$supported" >&6; }
7788 if test "$supported" = "yes" ; then
7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7790 found="yes"
7791 fi
7792 fi
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 xorg_testset_save_CFLAGS="$CFLAGS"
7809
7810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7813 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7814 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else case e in #(
7818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 int i;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"
7823 then :
7824 xorg_cv_cc_flag_unknown_warning_option=yes
7825 else case e in #(
7826 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7827 esac
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7830 esac
7831 fi
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7833 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7835 CFLAGS="$xorg_testset_save_CFLAGS"
7836 fi
7837
7838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841 fi
7842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7844 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7845 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7846 then :
7847 printf %s "(cached) " >&6
7848 else case e in #(
7849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 int i;
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"
7854 then :
7855 xorg_cv_cc_flag_unused_command_line_argument=yes
7856 else case e in #(
7857 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7858 esac
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7861 esac
7862 fi
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7866 CFLAGS="$xorg_testset_save_CFLAGS"
7867 fi
7868
7869 found="no"
7870
7871 if test $found = "no" ; then
7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7874 fi
7875
7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7878 fi
7879
7880 CFLAGS="$CFLAGS -Werror=missing-braces"
7881
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7883 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7884 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7885 if eval test \${$cacheid+y}
7886 then :
7887 printf %s "(cached) " >&6
7888 else case e in #(
7889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 int
7893 main (void)
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"
7901 then :
7902 eval $cacheid=yes
7903 else case e in #(
7904 e) eval $cacheid=no ;;
7905 esac
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7908 conftest$ac_exeext conftest.$ac_ext ;;
7909 esac
7910 fi
7911
7912
7913 CFLAGS="$xorg_testset_save_CFLAGS"
7914
7915 eval supported=\$$cacheid
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7917 printf "%s\n" "$supported" >&6; }
7918 if test "$supported" = "yes" ; then
7919 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7920 found="yes"
7921 fi
7922 fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 xorg_testset_save_CFLAGS="$CFLAGS"
7939
7940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7945 then :
7946 printf %s "(cached) " >&6
7947 else case e in #(
7948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 int i;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"
7953 then :
7954 xorg_cv_cc_flag_unknown_warning_option=yes
7955 else case e in #(
7956 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7957 esac
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7960 esac
7961 fi
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966 fi
7967
7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else case e in #(
7979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 int i;
7982 _ACEOF
7983 if ac_fn_c_try_compile "$LINENO"
7984 then :
7985 xorg_cv_cc_flag_unused_command_line_argument=yes
7986 else case e in #(
7987 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7988 esac
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7991 esac
7992 fi
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7994 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7996 CFLAGS="$xorg_testset_save_CFLAGS"
7997 fi
7998
7999 found="no"
8000
8001 if test $found = "no" ; then
8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004 fi
8005
8006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008 fi
8009
8010 CFLAGS="$CFLAGS -Werror=sequence-point"
8011
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8013 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8014 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8015 if eval test \${$cacheid+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else case e in #(
8019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 int i;
8022 int
8023 main (void)
8024 {
8025
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_link "$LINENO"
8031 then :
8032 eval $cacheid=yes
8033 else case e in #(
8034 e) eval $cacheid=no ;;
8035 esac
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8038 conftest$ac_exeext conftest.$ac_ext ;;
8039 esac
8040 fi
8041
8042
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8044
8045 eval supported=\$$cacheid
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8047 printf "%s\n" "$supported" >&6; }
8048 if test "$supported" = "yes" ; then
8049 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8050 found="yes"
8051 fi
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068 xorg_testset_save_CFLAGS="$CFLAGS"
8069
8070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8075 then :
8076 printf %s "(cached) " >&6
8077 else case e in #(
8078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 int i;
8081 _ACEOF
8082 if ac_fn_c_try_compile "$LINENO"
8083 then :
8084 xorg_cv_cc_flag_unknown_warning_option=yes
8085 else case e in #(
8086 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8087 esac
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8090 esac
8091 fi
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8093 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8095 CFLAGS="$xorg_testset_save_CFLAGS"
8096 fi
8097
8098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101 fi
8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8104 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8105 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8106 then :
8107 printf %s "(cached) " >&6
8108 else case e in #(
8109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 int i;
8112 _ACEOF
8113 if ac_fn_c_try_compile "$LINENO"
8114 then :
8115 xorg_cv_cc_flag_unused_command_line_argument=yes
8116 else case e in #(
8117 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8118 esac
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8121 esac
8122 fi
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 found="no"
8130
8131 if test $found = "no" ; then
8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134 fi
8135
8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138 fi
8139
8140 CFLAGS="$CFLAGS -Werror=return-type"
8141
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8143 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8144 cacheid=xorg_cv_cc_flag__Werror_return_type
8145 if eval test \${$cacheid+y}
8146 then :
8147 printf %s "(cached) " >&6
8148 else case e in #(
8149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 int i;
8152 int
8153 main (void)
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"
8161 then :
8162 eval $cacheid=yes
8163 else case e in #(
8164 e) eval $cacheid=no ;;
8165 esac
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8168 conftest$ac_exeext conftest.$ac_ext ;;
8169 esac
8170 fi
8171
8172
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175 eval supported=\$$cacheid
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177 printf "%s\n" "$supported" >&6; }
8178 if test "$supported" = "yes" ; then
8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8180 found="yes"
8181 fi
8182 fi
8183
8184 if test $found = "no" ; then
8185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187 fi
8188
8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191 fi
8192
8193 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8194
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8196 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8197 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8198 if eval test \${$cacheid+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else case e in #(
8202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int i;
8205 int
8206 main (void)
8207 {
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"
8214 then :
8215 eval $cacheid=yes
8216 else case e in #(
8217 e) eval $cacheid=no ;;
8218 esac
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8221 conftest$ac_exeext conftest.$ac_ext ;;
8222 esac
8223 fi
8224
8225
8226 CFLAGS="$xorg_testset_save_CFLAGS"
8227
8228 eval supported=\$$cacheid
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8230 printf "%s\n" "$supported" >&6; }
8231 if test "$supported" = "yes" ; then
8232 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8233 found="yes"
8234 fi
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251 xorg_testset_save_CFLAGS="$CFLAGS"
8252
8253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 _ACEOF
8265 if ac_fn_c_try_compile "$LINENO"
8266 then :
8267 xorg_cv_cc_flag_unknown_warning_option=yes
8268 else case e in #(
8269 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8270 esac
8271 fi
8272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8273 esac
8274 fi
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8279 fi
8280
8281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284 fi
8285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else case e in #(
8292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"
8297 then :
8298 xorg_cv_cc_flag_unused_command_line_argument=yes
8299 else case e in #(
8300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8301 esac
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8304 esac
8305 fi
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8309 CFLAGS="$xorg_testset_save_CFLAGS"
8310 fi
8311
8312 found="no"
8313
8314 if test $found = "no" ; then
8315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317 fi
8318
8319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321 fi
8322
8323 CFLAGS="$CFLAGS -Werror=trigraphs"
8324
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8326 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8327 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8328 if eval test \${$cacheid+y}
8329 then :
8330 printf %s "(cached) " >&6
8331 else case e in #(
8332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 int i;
8335 int
8336 main (void)
8337 {
8338
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 if ac_fn_c_try_link "$LINENO"
8344 then :
8345 eval $cacheid=yes
8346 else case e in #(
8347 e) eval $cacheid=no ;;
8348 esac
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8351 conftest$ac_exeext conftest.$ac_ext ;;
8352 esac
8353 fi
8354
8355
8356 CFLAGS="$xorg_testset_save_CFLAGS"
8357
8358 eval supported=\$$cacheid
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8360 printf "%s\n" "$supported" >&6; }
8361 if test "$supported" = "yes" ; then
8362 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8363 found="yes"
8364 fi
8365 fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 xorg_testset_save_CFLAGS="$CFLAGS"
8382
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8387 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else case e in #(
8391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"
8396 then :
8397 xorg_cv_cc_flag_unknown_warning_option=yes
8398 else case e in #(
8399 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8400 esac
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8403 esac
8404 fi
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409 fi
8410
8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8418 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else case e in #(
8422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 int i;
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"
8427 then :
8428 xorg_cv_cc_flag_unused_command_line_argument=yes
8429 else case e in #(
8430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8431 esac
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8434 esac
8435 fi
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8439 CFLAGS="$xorg_testset_save_CFLAGS"
8440 fi
8441
8442 found="no"
8443
8444 if test $found = "no" ; then
8445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447 fi
8448
8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451 fi
8452
8453 CFLAGS="$CFLAGS -Werror=array-bounds"
8454
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8456 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8457 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8458 if eval test \${$cacheid+y}
8459 then :
8460 printf %s "(cached) " >&6
8461 else case e in #(
8462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 int i;
8465 int
8466 main (void)
8467 {
8468
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_link "$LINENO"
8474 then :
8475 eval $cacheid=yes
8476 else case e in #(
8477 e) eval $cacheid=no ;;
8478 esac
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8481 conftest$ac_exeext conftest.$ac_ext ;;
8482 esac
8483 fi
8484
8485
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487
8488 eval supported=\$$cacheid
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8490 printf "%s\n" "$supported" >&6; }
8491 if test "$supported" = "yes" ; then
8492 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8493 found="yes"
8494 fi
8495 fi
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511 xorg_testset_save_CFLAGS="$CFLAGS"
8512
8513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8517 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8518 then :
8519 printf %s "(cached) " >&6
8520 else case e in #(
8521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 int i;
8524 _ACEOF
8525 if ac_fn_c_try_compile "$LINENO"
8526 then :
8527 xorg_cv_cc_flag_unknown_warning_option=yes
8528 else case e in #(
8529 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8530 esac
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8533 esac
8534 fi
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8538 CFLAGS="$xorg_testset_save_CFLAGS"
8539 fi
8540
8541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 fi
8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else case e in #(
8552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"
8557 then :
8558 xorg_cv_cc_flag_unused_command_line_argument=yes
8559 else case e in #(
8560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8561 esac
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8564 esac
8565 fi
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8567 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8569 CFLAGS="$xorg_testset_save_CFLAGS"
8570 fi
8571
8572 found="no"
8573
8574 if test $found = "no" ; then
8575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8577 fi
8578
8579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581 fi
8582
8583 CFLAGS="$CFLAGS -Werror=write-strings"
8584
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8586 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8587 cacheid=xorg_cv_cc_flag__Werror_write_strings
8588 if eval test \${$cacheid+y}
8589 then :
8590 printf %s "(cached) " >&6
8591 else case e in #(
8592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594 int i;
8595 int
8596 main (void)
8597 {
8598
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"
8604 then :
8605 eval $cacheid=yes
8606 else case e in #(
8607 e) eval $cacheid=no ;;
8608 esac
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8611 conftest$ac_exeext conftest.$ac_ext ;;
8612 esac
8613 fi
8614
8615
8616 CFLAGS="$xorg_testset_save_CFLAGS"
8617
8618 eval supported=\$$cacheid
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8620 printf "%s\n" "$supported" >&6; }
8621 if test "$supported" = "yes" ; then
8622 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8623 found="yes"
8624 fi
8625 fi
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641 xorg_testset_save_CFLAGS="$CFLAGS"
8642
8643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8646 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8647 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8648 then :
8649 printf %s "(cached) " >&6
8650 else case e in #(
8651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 int i;
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"
8656 then :
8657 xorg_cv_cc_flag_unknown_warning_option=yes
8658 else case e in #(
8659 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8660 esac
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8663 esac
8664 fi
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8666 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8668 CFLAGS="$xorg_testset_save_CFLAGS"
8669 fi
8670
8671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 fi
8675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8677 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8678 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8679 then :
8680 printf %s "(cached) " >&6
8681 else case e in #(
8682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 int i;
8685 _ACEOF
8686 if ac_fn_c_try_compile "$LINENO"
8687 then :
8688 xorg_cv_cc_flag_unused_command_line_argument=yes
8689 else case e in #(
8690 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8691 esac
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8694 esac
8695 fi
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700 fi
8701
8702 found="no"
8703
8704 if test $found = "no" ; then
8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707 fi
8708
8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 fi
8712
8713 CFLAGS="$CFLAGS -Werror=address"
8714
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8716 printf %s "checking if $CC supports -Werror=address... " >&6; }
8717 cacheid=xorg_cv_cc_flag__Werror_address
8718 if eval test \${$cacheid+y}
8719 then :
8720 printf %s "(cached) " >&6
8721 else case e in #(
8722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 int i;
8725 int
8726 main (void)
8727 {
8728
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 if ac_fn_c_try_link "$LINENO"
8734 then :
8735 eval $cacheid=yes
8736 else case e in #(
8737 e) eval $cacheid=no ;;
8738 esac
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8741 conftest$ac_exeext conftest.$ac_ext ;;
8742 esac
8743 fi
8744
8745
8746 CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748 eval supported=\$$cacheid
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750 printf "%s\n" "$supported" >&6; }
8751 if test "$supported" = "yes" ; then
8752 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8753 found="yes"
8754 fi
8755 fi
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771 xorg_testset_save_CFLAGS="$CFLAGS"
8772
8773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else case e in #(
8781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"
8786 then :
8787 xorg_cv_cc_flag_unknown_warning_option=yes
8788 else case e in #(
8789 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8790 esac
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8793 esac
8794 fi
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8798 CFLAGS="$xorg_testset_save_CFLAGS"
8799 fi
8800
8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804 fi
8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8809 then :
8810 printf %s "(cached) " >&6
8811 else case e in #(
8812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 int i;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"
8817 then :
8818 xorg_cv_cc_flag_unused_command_line_argument=yes
8819 else case e in #(
8820 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8821 esac
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8824 esac
8825 fi
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8827 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8829 CFLAGS="$xorg_testset_save_CFLAGS"
8830 fi
8831
8832 found="no"
8833
8834 if test $found = "no" ; then
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 fi
8838
8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841 fi
8842
8843 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8844
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8846 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8847 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8848 if eval test \${$cacheid+y}
8849 then :
8850 printf %s "(cached) " >&6
8851 else case e in #(
8852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 int
8856 main (void)
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"
8864 then :
8865 eval $cacheid=yes
8866 else case e in #(
8867 e) eval $cacheid=no ;;
8868 esac
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8871 conftest$ac_exeext conftest.$ac_ext ;;
8872 esac
8873 fi
8874
8875
8876 CFLAGS="$xorg_testset_save_CFLAGS"
8877
8878 eval supported=\$$cacheid
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8880 printf "%s\n" "$supported" >&6; }
8881 if test "$supported" = "yes" ; then
8882 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8883 found="yes"
8884 fi
8885 fi
8886
8887 if test $found = "no" ; then
8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8890 fi
8891
8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894 fi
8895
8896 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8897
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8899 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8900 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8901 if eval test \${$cacheid+y}
8902 then :
8903 printf %s "(cached) " >&6
8904 else case e in #(
8905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 int i;
8908 int
8909 main (void)
8910 {
8911
8912 ;
8913 return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"
8917 then :
8918 eval $cacheid=yes
8919 else case e in #(
8920 e) eval $cacheid=no ;;
8921 esac
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8924 conftest$ac_exeext conftest.$ac_ext ;;
8925 esac
8926 fi
8927
8928
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931 eval supported=\$$cacheid
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 printf "%s\n" "$supported" >&6; }
8934 if test "$supported" = "yes" ; then
8935 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8936 found="yes"
8937 fi
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else case e in #(
8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"
8969 then :
8970 xorg_cv_cc_flag_unknown_warning_option=yes
8971 else case e in #(
8972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8973 esac
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8976 esac
8977 fi
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 fi
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8992 then :
8993 printf %s "(cached) " >&6
8994 else case e in #(
8995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 int i;
8998 _ACEOF
8999 if ac_fn_c_try_compile "$LINENO"
9000 then :
9001 xorg_cv_cc_flag_unused_command_line_argument=yes
9002 else case e in #(
9003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9004 esac
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9007 esac
9008 fi
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9012 CFLAGS="$xorg_testset_save_CFLAGS"
9013 fi
9014
9015 found="no"
9016
9017 if test $found = "no" ; then
9018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020 fi
9021
9022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9024 fi
9025
9026 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9027
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9029 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9030 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9031 if eval test \${$cacheid+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else case e in #(
9035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 int i;
9038 int
9039 main (void)
9040 {
9041
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"
9047 then :
9048 eval $cacheid=yes
9049 else case e in #(
9050 e) eval $cacheid=no ;;
9051 esac
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9054 conftest$ac_exeext conftest.$ac_ext ;;
9055 esac
9056 fi
9057
9058
9059 CFLAGS="$xorg_testset_save_CFLAGS"
9060
9061 eval supported=\$$cacheid
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9063 printf "%s\n" "$supported" >&6; }
9064 if test "$supported" = "yes" ; then
9065 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9066 found="yes"
9067 fi
9068 fi
9069
9070 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9071 else
9072 { 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
9073 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;}
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 case e in #(
9097 e) 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 case e in #(
9105 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9106 esac
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9109 esac
9110 fi
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115 fi
9116
9117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120 fi
9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else case e in #(
9128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"
9133 then :
9134 xorg_cv_cc_flag_unused_command_line_argument=yes
9135 else case e in #(
9136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9137 esac
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9140 esac
9141 fi
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146 fi
9147
9148 found="no"
9149
9150 if test $found = "no" ; then
9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 fi
9154
9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 fi
9158
9159 CFLAGS="$CFLAGS -Wimplicit"
9160
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9162 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9163 cacheid=xorg_cv_cc_flag__Wimplicit
9164 if eval test \${$cacheid+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else case e in #(
9168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 int i;
9171 int
9172 main (void)
9173 {
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"
9180 then :
9181 eval $cacheid=yes
9182 else case e in #(
9183 e) eval $cacheid=no ;;
9184 esac
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9187 conftest$ac_exeext conftest.$ac_ext ;;
9188 esac
9189 fi
9190
9191
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193
9194 eval supported=\$$cacheid
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9196 printf "%s\n" "$supported" >&6; }
9197 if test "$supported" = "yes" ; then
9198 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9199 found="yes"
9200 fi
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 xorg_testset_save_CFLAGS="$CFLAGS"
9218
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else case e in #(
9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"
9232 then :
9233 xorg_cv_cc_flag_unknown_warning_option=yes
9234 else case e in #(
9235 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9236 esac
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9239 esac
9240 fi
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9242 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 fi
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else case e in #(
9258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 int i;
9261 _ACEOF
9262 if ac_fn_c_try_compile "$LINENO"
9263 then :
9264 xorg_cv_cc_flag_unused_command_line_argument=yes
9265 else case e in #(
9266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9267 esac
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9270 esac
9271 fi
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9273 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276 fi
9277
9278 found="no"
9279
9280 if test $found = "no" ; then
9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283 fi
9284
9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287 fi
9288
9289 CFLAGS="$CFLAGS -Wnonnull"
9290
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9292 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9293 cacheid=xorg_cv_cc_flag__Wnonnull
9294 if eval test \${$cacheid+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else case e in #(
9298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 int i;
9301 int
9302 main (void)
9303 {
9304
9305 ;
9306 return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"
9310 then :
9311 eval $cacheid=yes
9312 else case e in #(
9313 e) eval $cacheid=no ;;
9314 esac
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9317 conftest$ac_exeext conftest.$ac_ext ;;
9318 esac
9319 fi
9320
9321
9322 CFLAGS="$xorg_testset_save_CFLAGS"
9323
9324 eval supported=\$$cacheid
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9326 printf "%s\n" "$supported" >&6; }
9327 if test "$supported" = "yes" ; then
9328 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9329 found="yes"
9330 fi
9331 fi
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 xorg_testset_save_CFLAGS="$CFLAGS"
9348
9349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9353 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else case e in #(
9357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"
9362 then :
9363 xorg_cv_cc_flag_unknown_warning_option=yes
9364 else case e in #(
9365 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9366 esac
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9369 esac
9370 fi
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375 fi
9376
9377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380 fi
9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else case e in #(
9388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int i;
9391 _ACEOF
9392 if ac_fn_c_try_compile "$LINENO"
9393 then :
9394 xorg_cv_cc_flag_unused_command_line_argument=yes
9395 else case e in #(
9396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9397 esac
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9400 esac
9401 fi
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406 fi
9407
9408 found="no"
9409
9410 if test $found = "no" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414
9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 fi
9418
9419 CFLAGS="$CFLAGS -Winit-self"
9420
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9422 printf %s "checking if $CC supports -Winit-self... " >&6; }
9423 cacheid=xorg_cv_cc_flag__Winit_self
9424 if eval test \${$cacheid+y}
9425 then :
9426 printf %s "(cached) " >&6
9427 else case e in #(
9428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 int i;
9431 int
9432 main (void)
9433 {
9434
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"
9440 then :
9441 eval $cacheid=yes
9442 else case e in #(
9443 e) eval $cacheid=no ;;
9444 esac
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9447 conftest$ac_exeext conftest.$ac_ext ;;
9448 esac
9449 fi
9450
9451
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453
9454 eval supported=\$$cacheid
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9456 printf "%s\n" "$supported" >&6; }
9457 if test "$supported" = "yes" ; then
9458 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9459 found="yes"
9460 fi
9461 fi
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477 xorg_testset_save_CFLAGS="$CFLAGS"
9478
9479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9483 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9484 then :
9485 printf %s "(cached) " >&6
9486 else case e in #(
9487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int i;
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"
9492 then :
9493 xorg_cv_cc_flag_unknown_warning_option=yes
9494 else case e in #(
9495 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9496 esac
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9499 esac
9500 fi
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9504 CFLAGS="$xorg_testset_save_CFLAGS"
9505 fi
9506
9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 fi
9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9515 then :
9516 printf %s "(cached) " >&6
9517 else case e in #(
9518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 int i;
9521 _ACEOF
9522 if ac_fn_c_try_compile "$LINENO"
9523 then :
9524 xorg_cv_cc_flag_unused_command_line_argument=yes
9525 else case e in #(
9526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9527 esac
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9530 esac
9531 fi
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9535 CFLAGS="$xorg_testset_save_CFLAGS"
9536 fi
9537
9538 found="no"
9539
9540 if test $found = "no" ; then
9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543 fi
9544
9545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9547 fi
9548
9549 CFLAGS="$CFLAGS -Wmain"
9550
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9552 printf %s "checking if $CC supports -Wmain... " >&6; }
9553 cacheid=xorg_cv_cc_flag__Wmain
9554 if eval test \${$cacheid+y}
9555 then :
9556 printf %s "(cached) " >&6
9557 else case e in #(
9558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 int i;
9561 int
9562 main (void)
9563 {
9564
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"
9570 then :
9571 eval $cacheid=yes
9572 else case e in #(
9573 e) eval $cacheid=no ;;
9574 esac
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9577 conftest$ac_exeext conftest.$ac_ext ;;
9578 esac
9579 fi
9580
9581
9582 CFLAGS="$xorg_testset_save_CFLAGS"
9583
9584 eval supported=\$$cacheid
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9586 printf "%s\n" "$supported" >&6; }
9587 if test "$supported" = "yes" ; then
9588 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9589 found="yes"
9590 fi
9591 fi
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607 xorg_testset_save_CFLAGS="$CFLAGS"
9608
9609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9614 then :
9615 printf %s "(cached) " >&6
9616 else case e in #(
9617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 _ACEOF
9621 if ac_fn_c_try_compile "$LINENO"
9622 then :
9623 xorg_cv_cc_flag_unknown_warning_option=yes
9624 else case e in #(
9625 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9626 esac
9627 fi
9628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9629 esac
9630 fi
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9634 CFLAGS="$xorg_testset_save_CFLAGS"
9635 fi
9636
9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640 fi
9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9645 then :
9646 printf %s "(cached) " >&6
9647 else case e in #(
9648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 int i;
9651 _ACEOF
9652 if ac_fn_c_try_compile "$LINENO"
9653 then :
9654 xorg_cv_cc_flag_unused_command_line_argument=yes
9655 else case e in #(
9656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9657 esac
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9660 esac
9661 fi
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666 fi
9667
9668 found="no"
9669
9670 if test $found = "no" ; then
9671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673 fi
9674
9675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677 fi
9678
9679 CFLAGS="$CFLAGS -Wmissing-braces"
9680
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9682 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9683 cacheid=xorg_cv_cc_flag__Wmissing_braces
9684 if eval test \${$cacheid+y}
9685 then :
9686 printf %s "(cached) " >&6
9687 else case e in #(
9688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 int i;
9691 int
9692 main (void)
9693 {
9694
9695 ;
9696 return 0;
9697 }
9698 _ACEOF
9699 if ac_fn_c_try_link "$LINENO"
9700 then :
9701 eval $cacheid=yes
9702 else case e in #(
9703 e) eval $cacheid=no ;;
9704 esac
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9707 conftest$ac_exeext conftest.$ac_ext ;;
9708 esac
9709 fi
9710
9711
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713
9714 eval supported=\$$cacheid
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9716 printf "%s\n" "$supported" >&6; }
9717 if test "$supported" = "yes" ; then
9718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9719 found="yes"
9720 fi
9721 fi
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 xorg_testset_save_CFLAGS="$CFLAGS"
9738
9739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9744 then :
9745 printf %s "(cached) " >&6
9746 else case e in #(
9747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"
9752 then :
9753 xorg_cv_cc_flag_unknown_warning_option=yes
9754 else case e in #(
9755 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9756 esac
9757 fi
9758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9759 esac
9760 fi
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764 CFLAGS="$xorg_testset_save_CFLAGS"
9765 fi
9766
9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 fi
9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else case e in #(
9778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int i;
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"
9783 then :
9784 xorg_cv_cc_flag_unused_command_line_argument=yes
9785 else case e in #(
9786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9787 esac
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9790 esac
9791 fi
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9793 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796 fi
9797
9798 found="no"
9799
9800 if test $found = "no" ; then
9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803 fi
9804
9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9807 fi
9808
9809 CFLAGS="$CFLAGS -Wsequence-point"
9810
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9812 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9813 cacheid=xorg_cv_cc_flag__Wsequence_point
9814 if eval test \${$cacheid+y}
9815 then :
9816 printf %s "(cached) " >&6
9817 else case e in #(
9818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 int i;
9821 int
9822 main (void)
9823 {
9824
9825 ;
9826 return 0;
9827 }
9828 _ACEOF
9829 if ac_fn_c_try_link "$LINENO"
9830 then :
9831 eval $cacheid=yes
9832 else case e in #(
9833 e) eval $cacheid=no ;;
9834 esac
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9837 conftest$ac_exeext conftest.$ac_ext ;;
9838 esac
9839 fi
9840
9841
9842 CFLAGS="$xorg_testset_save_CFLAGS"
9843
9844 eval supported=\$$cacheid
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9846 printf "%s\n" "$supported" >&6; }
9847 if test "$supported" = "yes" ; then
9848 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9849 found="yes"
9850 fi
9851 fi
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867 xorg_testset_save_CFLAGS="$CFLAGS"
9868
9869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9872 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9873 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9874 then :
9875 printf %s "(cached) " >&6
9876 else case e in #(
9877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 int i;
9880 _ACEOF
9881 if ac_fn_c_try_compile "$LINENO"
9882 then :
9883 xorg_cv_cc_flag_unknown_warning_option=yes
9884 else case e in #(
9885 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9886 esac
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9889 esac
9890 fi
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9892 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9894 CFLAGS="$xorg_testset_save_CFLAGS"
9895 fi
9896
9897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9903 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9904 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9905 then :
9906 printf %s "(cached) " >&6
9907 else case e in #(
9908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"
9913 then :
9914 xorg_cv_cc_flag_unused_command_line_argument=yes
9915 else case e in #(
9916 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9917 esac
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9920 esac
9921 fi
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926 fi
9927
9928 found="no"
9929
9930 if test $found = "no" ; then
9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9933 fi
9934
9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9937 fi
9938
9939 CFLAGS="$CFLAGS -Wreturn-type"
9940
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9942 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9943 cacheid=xorg_cv_cc_flag__Wreturn_type
9944 if eval test \${$cacheid+y}
9945 then :
9946 printf %s "(cached) " >&6
9947 else case e in #(
9948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 int i;
9951 int
9952 main (void)
9953 {
9954
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"
9960 then :
9961 eval $cacheid=yes
9962 else case e in #(
9963 e) eval $cacheid=no ;;
9964 esac
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9967 conftest$ac_exeext conftest.$ac_ext ;;
9968 esac
9969 fi
9970
9971
9972 CFLAGS="$xorg_testset_save_CFLAGS"
9973
9974 eval supported=\$$cacheid
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9976 printf "%s\n" "$supported" >&6; }
9977 if test "$supported" = "yes" ; then
9978 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9979 found="yes"
9980 fi
9981 fi
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 xorg_testset_save_CFLAGS="$CFLAGS"
9998
9999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10004 then :
10005 printf %s "(cached) " >&6
10006 else case e in #(
10007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 int i;
10010 _ACEOF
10011 if ac_fn_c_try_compile "$LINENO"
10012 then :
10013 xorg_cv_cc_flag_unknown_warning_option=yes
10014 else case e in #(
10015 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10016 esac
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10019 esac
10020 fi
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10022 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025 fi
10026
10027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030 fi
10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10033 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10034 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10035 then :
10036 printf %s "(cached) " >&6
10037 else case e in #(
10038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int i;
10041 _ACEOF
10042 if ac_fn_c_try_compile "$LINENO"
10043 then :
10044 xorg_cv_cc_flag_unused_command_line_argument=yes
10045 else case e in #(
10046 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10047 esac
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10050 esac
10051 fi
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10053 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10055 CFLAGS="$xorg_testset_save_CFLAGS"
10056 fi
10057
10058 found="no"
10059
10060 if test $found = "no" ; then
10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063 fi
10064
10065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067 fi
10068
10069 CFLAGS="$CFLAGS -Wtrigraphs"
10070
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10072 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10073 cacheid=xorg_cv_cc_flag__Wtrigraphs
10074 if eval test \${$cacheid+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else case e in #(
10078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 int
10082 main (void)
10083 {
10084
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"
10090 then :
10091 eval $cacheid=yes
10092 else case e in #(
10093 e) eval $cacheid=no ;;
10094 esac
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10097 conftest$ac_exeext conftest.$ac_ext ;;
10098 esac
10099 fi
10100
10101
10102 CFLAGS="$xorg_testset_save_CFLAGS"
10103
10104 eval supported=\$$cacheid
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10106 printf "%s\n" "$supported" >&6; }
10107 if test "$supported" = "yes" ; then
10108 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10109 found="yes"
10110 fi
10111 fi
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127 xorg_testset_save_CFLAGS="$CFLAGS"
10128
10129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10132 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10133 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10134 then :
10135 printf %s "(cached) " >&6
10136 else case e in #(
10137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 int i;
10140 _ACEOF
10141 if ac_fn_c_try_compile "$LINENO"
10142 then :
10143 xorg_cv_cc_flag_unknown_warning_option=yes
10144 else case e in #(
10145 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10146 esac
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10149 esac
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10154 CFLAGS="$xorg_testset_save_CFLAGS"
10155 fi
10156
10157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160 fi
10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else case e in #(
10168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"
10173 then :
10174 xorg_cv_cc_flag_unused_command_line_argument=yes
10175 else case e in #(
10176 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10177 esac
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10180 esac
10181 fi
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10183 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10185 CFLAGS="$xorg_testset_save_CFLAGS"
10186 fi
10187
10188 found="no"
10189
10190 if test $found = "no" ; then
10191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10193 fi
10194
10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197 fi
10198
10199 CFLAGS="$CFLAGS -Warray-bounds"
10200
10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10202 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10203 cacheid=xorg_cv_cc_flag__Warray_bounds
10204 if eval test \${$cacheid+y}
10205 then :
10206 printf %s "(cached) " >&6
10207 else case e in #(
10208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10210 int i;
10211 int
10212 main (void)
10213 {
10214
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"
10220 then :
10221 eval $cacheid=yes
10222 else case e in #(
10223 e) eval $cacheid=no ;;
10224 esac
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10227 conftest$ac_exeext conftest.$ac_ext ;;
10228 esac
10229 fi
10230
10231
10232 CFLAGS="$xorg_testset_save_CFLAGS"
10233
10234 eval supported=\$$cacheid
10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10236 printf "%s\n" "$supported" >&6; }
10237 if test "$supported" = "yes" ; then
10238 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10239 found="yes"
10240 fi
10241 fi
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257 xorg_testset_save_CFLAGS="$CFLAGS"
10258
10259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10264 then :
10265 printf %s "(cached) " >&6
10266 else case e in #(
10267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 int i;
10270 _ACEOF
10271 if ac_fn_c_try_compile "$LINENO"
10272 then :
10273 xorg_cv_cc_flag_unknown_warning_option=yes
10274 else case e in #(
10275 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10276 esac
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10279 esac
10280 fi
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10284 CFLAGS="$xorg_testset_save_CFLAGS"
10285 fi
10286
10287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290 fi
10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10295 then :
10296 printf %s "(cached) " >&6
10297 else case e in #(
10298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 int i;
10301 _ACEOF
10302 if ac_fn_c_try_compile "$LINENO"
10303 then :
10304 xorg_cv_cc_flag_unused_command_line_argument=yes
10305 else case e in #(
10306 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10307 esac
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10310 esac
10311 fi
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10315 CFLAGS="$xorg_testset_save_CFLAGS"
10316 fi
10317
10318 found="no"
10319
10320 if test $found = "no" ; then
10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323 fi
10324
10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10327 fi
10328
10329 CFLAGS="$CFLAGS -Wwrite-strings"
10330
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10332 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10333 cacheid=xorg_cv_cc_flag__Wwrite_strings
10334 if eval test \${$cacheid+y}
10335 then :
10336 printf %s "(cached) " >&6
10337 else case e in #(
10338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int i;
10341 int
10342 main (void)
10343 {
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"
10350 then :
10351 eval $cacheid=yes
10352 else case e in #(
10353 e) eval $cacheid=no ;;
10354 esac
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10357 conftest$ac_exeext conftest.$ac_ext ;;
10358 esac
10359 fi
10360
10361
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364 eval supported=\$$cacheid
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366 printf "%s\n" "$supported" >&6; }
10367 if test "$supported" = "yes" ; then
10368 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10369 found="yes"
10370 fi
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10394 then :
10395 printf %s "(cached) " >&6
10396 else case e in #(
10397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 int i;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"
10402 then :
10403 xorg_cv_cc_flag_unknown_warning_option=yes
10404 else case e in #(
10405 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10406 esac
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10409 esac
10410 fi
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10414 CFLAGS="$xorg_testset_save_CFLAGS"
10415 fi
10416
10417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420 fi
10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10425 then :
10426 printf %s "(cached) " >&6
10427 else case e in #(
10428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 int i;
10431 _ACEOF
10432 if ac_fn_c_try_compile "$LINENO"
10433 then :
10434 xorg_cv_cc_flag_unused_command_line_argument=yes
10435 else case e in #(
10436 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10437 esac
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10440 esac
10441 fi
10442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10443 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10445 CFLAGS="$xorg_testset_save_CFLAGS"
10446 fi
10447
10448 found="no"
10449
10450 if test $found = "no" ; then
10451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10453 fi
10454
10455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10457 fi
10458
10459 CFLAGS="$CFLAGS -Waddress"
10460
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10462 printf %s "checking if $CC supports -Waddress... " >&6; }
10463 cacheid=xorg_cv_cc_flag__Waddress
10464 if eval test \${$cacheid+y}
10465 then :
10466 printf %s "(cached) " >&6
10467 else case e in #(
10468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 int i;
10471 int
10472 main (void)
10473 {
10474
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"
10480 then :
10481 eval $cacheid=yes
10482 else case e in #(
10483 e) eval $cacheid=no ;;
10484 esac
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10487 conftest$ac_exeext conftest.$ac_ext ;;
10488 esac
10489 fi
10490
10491
10492 CFLAGS="$xorg_testset_save_CFLAGS"
10493
10494 eval supported=\$$cacheid
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10496 printf "%s\n" "$supported" >&6; }
10497 if test "$supported" = "yes" ; then
10498 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10499 found="yes"
10500 fi
10501 fi
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517 xorg_testset_save_CFLAGS="$CFLAGS"
10518
10519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10522 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10523 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10524 then :
10525 printf %s "(cached) " >&6
10526 else case e in #(
10527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 int i;
10530 _ACEOF
10531 if ac_fn_c_try_compile "$LINENO"
10532 then :
10533 xorg_cv_cc_flag_unknown_warning_option=yes
10534 else case e in #(
10535 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10536 esac
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10539 esac
10540 fi
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10542 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10544 CFLAGS="$xorg_testset_save_CFLAGS"
10545 fi
10546
10547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550 fi
10551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10553 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10554 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10555 then :
10556 printf %s "(cached) " >&6
10557 else case e in #(
10558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 int i;
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"
10563 then :
10564 xorg_cv_cc_flag_unused_command_line_argument=yes
10565 else case e in #(
10566 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10567 esac
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10570 esac
10571 fi
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10575 CFLAGS="$xorg_testset_save_CFLAGS"
10576 fi
10577
10578 found="no"
10579
10580 if test $found = "no" ; then
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 fi
10584
10585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10587 fi
10588
10589 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10590
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10592 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10593 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10594 if eval test \${$cacheid+y}
10595 then :
10596 printf %s "(cached) " >&6
10597 else case e in #(
10598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600 int i;
10601 int
10602 main (void)
10603 {
10604
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"
10610 then :
10611 eval $cacheid=yes
10612 else case e in #(
10613 e) eval $cacheid=no ;;
10614 esac
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10617 conftest$ac_exeext conftest.$ac_ext ;;
10618 esac
10619 fi
10620
10621
10622 CFLAGS="$xorg_testset_save_CFLAGS"
10623
10624 eval supported=\$$cacheid
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10626 printf "%s\n" "$supported" >&6; }
10627 if test "$supported" = "yes" ; then
10628 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10629 found="yes"
10630 fi
10631 fi
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647 xorg_testset_save_CFLAGS="$CFLAGS"
10648
10649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10652 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10653 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10654 then :
10655 printf %s "(cached) " >&6
10656 else case e in #(
10657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 int i;
10660 _ACEOF
10661 if ac_fn_c_try_compile "$LINENO"
10662 then :
10663 xorg_cv_cc_flag_unknown_warning_option=yes
10664 else case e in #(
10665 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10666 esac
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10669 esac
10670 fi
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10674 CFLAGS="$xorg_testset_save_CFLAGS"
10675 fi
10676
10677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680 fi
10681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10685 then :
10686 printf %s "(cached) " >&6
10687 else case e in #(
10688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690 int i;
10691 _ACEOF
10692 if ac_fn_c_try_compile "$LINENO"
10693 then :
10694 xorg_cv_cc_flag_unused_command_line_argument=yes
10695 else case e in #(
10696 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10697 esac
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10700 esac
10701 fi
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10703 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10705 CFLAGS="$xorg_testset_save_CFLAGS"
10706 fi
10707
10708 found="no"
10709
10710 if test $found = "no" ; then
10711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10713 fi
10714
10715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10717 fi
10718
10719 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10720
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10722 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10723 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10724 if eval test \${$cacheid+y}
10725 then :
10726 printf %s "(cached) " >&6
10727 else case e in #(
10728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 int i;
10731 int
10732 main (void)
10733 {
10734
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"
10740 then :
10741 eval $cacheid=yes
10742 else case e in #(
10743 e) eval $cacheid=no ;;
10744 esac
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext ;;
10748 esac
10749 fi
10750
10751
10752 CFLAGS="$xorg_testset_save_CFLAGS"
10753
10754 eval supported=\$$cacheid
10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10756 printf "%s\n" "$supported" >&6; }
10757 if test "$supported" = "yes" ; then
10758 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10759 found="yes"
10760 fi
10761 fi
10762
10763
10764 fi
10765
10766
10767
10768
10769
10770
10771
10772 CWARNFLAGS="$BASE_CFLAGS"
10773 if test "x$GCC" = xyes ; then
10774 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10775 fi
10776
10777
10778
10779
10780
10781
10782
10783
10784 # Check whether --enable-strict-compilation was given.
10785 if test ${enable_strict_compilation+y}
10786 then :
10787 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10788 else case e in #(
10789 e) STRICT_COMPILE=no ;;
10790 esac
10791 fi
10792
10793
10794
10795
10796
10797
10798 STRICT_CFLAGS=""
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812 xorg_testset_save_CFLAGS="$CFLAGS"
10813
10814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10819 then :
10820 printf %s "(cached) " >&6
10821 else case e in #(
10822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 int i;
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"
10827 then :
10828 xorg_cv_cc_flag_unknown_warning_option=yes
10829 else case e in #(
10830 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10831 esac
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10834 esac
10835 fi
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10839 CFLAGS="$xorg_testset_save_CFLAGS"
10840 fi
10841
10842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845 fi
10846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else case e in #(
10853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 int i;
10856 _ACEOF
10857 if ac_fn_c_try_compile "$LINENO"
10858 then :
10859 xorg_cv_cc_flag_unused_command_line_argument=yes
10860 else case e in #(
10861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10862 esac
10863 fi
10864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10865 esac
10866 fi
10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10870 CFLAGS="$xorg_testset_save_CFLAGS"
10871 fi
10872
10873 found="no"
10874
10875 if test $found = "no" ; then
10876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878 fi
10879
10880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10882 fi
10883
10884 CFLAGS="$CFLAGS -pedantic"
10885
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10887 printf %s "checking if $CC supports -pedantic... " >&6; }
10888 cacheid=xorg_cv_cc_flag__pedantic
10889 if eval test \${$cacheid+y}
10890 then :
10891 printf %s "(cached) " >&6
10892 else case e in #(
10893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 int i;
10896 int
10897 main (void)
10898 {
10899
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"
10905 then :
10906 eval $cacheid=yes
10907 else case e in #(
10908 e) eval $cacheid=no ;;
10909 esac
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10912 conftest$ac_exeext conftest.$ac_ext ;;
10913 esac
10914 fi
10915
10916
10917 CFLAGS="$xorg_testset_save_CFLAGS"
10918
10919 eval supported=\$$cacheid
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10921 printf "%s\n" "$supported" >&6; }
10922 if test "$supported" = "yes" ; then
10923 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10924 found="yes"
10925 fi
10926 fi
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 xorg_testset_save_CFLAGS="$CFLAGS"
10943
10944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10949 then :
10950 printf %s "(cached) " >&6
10951 else case e in #(
10952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954 int i;
10955 _ACEOF
10956 if ac_fn_c_try_compile "$LINENO"
10957 then :
10958 xorg_cv_cc_flag_unknown_warning_option=yes
10959 else case e in #(
10960 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10961 esac
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10964 esac
10965 fi
10966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10969 CFLAGS="$xorg_testset_save_CFLAGS"
10970 fi
10971
10972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10975 fi
10976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10980 then :
10981 printf %s "(cached) " >&6
10982 else case e in #(
10983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985 int i;
10986 _ACEOF
10987 if ac_fn_c_try_compile "$LINENO"
10988 then :
10989 xorg_cv_cc_flag_unused_command_line_argument=yes
10990 else case e in #(
10991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10992 esac
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10995 esac
10996 fi
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11000 CFLAGS="$xorg_testset_save_CFLAGS"
11001 fi
11002
11003 found="no"
11004
11005 if test $found = "no" ; then
11006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11008 fi
11009
11010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11012 fi
11013
11014 CFLAGS="$CFLAGS -Werror"
11015
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11017 printf %s "checking if $CC supports -Werror... " >&6; }
11018 cacheid=xorg_cv_cc_flag__Werror
11019 if eval test \${$cacheid+y}
11020 then :
11021 printf %s "(cached) " >&6
11022 else case e in #(
11023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025 int i;
11026 int
11027 main (void)
11028 {
11029
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"
11035 then :
11036 eval $cacheid=yes
11037 else case e in #(
11038 e) eval $cacheid=no ;;
11039 esac
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11042 conftest$ac_exeext conftest.$ac_ext ;;
11043 esac
11044 fi
11045
11046
11047 CFLAGS="$xorg_testset_save_CFLAGS"
11048
11049 eval supported=\$$cacheid
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11051 printf "%s\n" "$supported" >&6; }
11052 if test "$supported" = "yes" ; then
11053 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11054 found="yes"
11055 fi
11056 fi
11057
11058 if test $found = "no" ; then
11059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11061 fi
11062
11063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11065 fi
11066
11067 CFLAGS="$CFLAGS -errwarn"
11068
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11070 printf %s "checking if $CC supports -errwarn... " >&6; }
11071 cacheid=xorg_cv_cc_flag__errwarn
11072 if eval test \${$cacheid+y}
11073 then :
11074 printf %s "(cached) " >&6
11075 else case e in #(
11076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078 int i;
11079 int
11080 main (void)
11081 {
11082
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"
11088 then :
11089 eval $cacheid=yes
11090 else case e in #(
11091 e) eval $cacheid=no ;;
11092 esac
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11095 conftest$ac_exeext conftest.$ac_ext ;;
11096 esac
11097 fi
11098
11099
11100 CFLAGS="$xorg_testset_save_CFLAGS"
11101
11102 eval supported=\$$cacheid
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11104 printf "%s\n" "$supported" >&6; }
11105 if test "$supported" = "yes" ; then
11106 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11107 found="yes"
11108 fi
11109 fi
11110
11111
11112
11113 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11114 # activate it with -Werror, so we add it here explicitly.
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 xorg_testset_save_CFLAGS="$CFLAGS"
11129
11130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11135 then :
11136 printf %s "(cached) " >&6
11137 else case e in #(
11138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11140 int i;
11141 _ACEOF
11142 if ac_fn_c_try_compile "$LINENO"
11143 then :
11144 xorg_cv_cc_flag_unknown_warning_option=yes
11145 else case e in #(
11146 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11147 esac
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11150 esac
11151 fi
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11155 CFLAGS="$xorg_testset_save_CFLAGS"
11156 fi
11157
11158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11161 fi
11162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11166 then :
11167 printf %s "(cached) " >&6
11168 else case e in #(
11169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 int i;
11172 _ACEOF
11173 if ac_fn_c_try_compile "$LINENO"
11174 then :
11175 xorg_cv_cc_flag_unused_command_line_argument=yes
11176 else case e in #(
11177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11178 esac
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11181 esac
11182 fi
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11186 CFLAGS="$xorg_testset_save_CFLAGS"
11187 fi
11188
11189 found="no"
11190
11191 if test $found = "no" ; then
11192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11194 fi
11195
11196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11198 fi
11199
11200 CFLAGS="$CFLAGS -Werror=attributes"
11201
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11203 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11204 cacheid=xorg_cv_cc_flag__Werror_attributes
11205 if eval test \${$cacheid+y}
11206 then :
11207 printf %s "(cached) " >&6
11208 else case e in #(
11209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211 int i;
11212 int
11213 main (void)
11214 {
11215
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"
11221 then :
11222 eval $cacheid=yes
11223 else case e in #(
11224 e) eval $cacheid=no ;;
11225 esac
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11228 conftest$ac_exeext conftest.$ac_ext ;;
11229 esac
11230 fi
11231
11232
11233 CFLAGS="$xorg_testset_save_CFLAGS"
11234
11235 eval supported=\$$cacheid
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11237 printf "%s\n" "$supported" >&6; }
11238 if test "$supported" = "yes" ; then
11239 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11240 found="yes"
11241 fi
11242 fi
11243
11244
11245
11246 if test "x$STRICT_COMPILE" = "xyes"; then
11247 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11248 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11249 fi
11250
11251
11252
11253
11254
11255
11256
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11260 _ACEOF
11261
11262 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11263 if test "x$PVM" = "x"; then
11264 PVM="0"
11265 fi
11266
11267 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11268
11269 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11270 if test "x$PVP" = "x"; then
11271 PVP="0"
11272 fi
11273
11274 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11275
11276
11277
11278 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11279 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11280 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11281 touch \$(top_srcdir)/ChangeLog; \
11282 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11283
11284
11285
11286
11287 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11288 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11289 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11290 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11291 touch \$(top_srcdir)/INSTALL; \
11292 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11293
11294
11295
11296
11297
11298
11299 case $host_os in
11300 solaris*)
11301 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11302 # check for a man page file found in later versions that use
11303 # traditional section numbers instead
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11305 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11306 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11307 then :
11308 printf %s "(cached) " >&6
11309 else case e in #(
11310 e) test "$cross_compiling" = yes &&
11311 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11312 if test -r "/usr/share/man/man7/attributes.7"; then
11313 ac_cv_file__usr_share_man_man7_attributes_7=yes
11314 else
11315 ac_cv_file__usr_share_man_man7_attributes_7=no
11316 fi ;;
11317 esac
11318 fi
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11320 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11321 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11322 then :
11323 SYSV_MAN_SECTIONS=false
11324 else case e in #(
11325 e) SYSV_MAN_SECTIONS=true ;;
11326 esac
11327 fi
11328
11329 ;;
11330 *) SYSV_MAN_SECTIONS=false ;;
11331 esac
11332
11333 if test x$APP_MAN_SUFFIX = x ; then
11334 APP_MAN_SUFFIX=1
11335 fi
11336 if test x$APP_MAN_DIR = x ; then
11337 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11338 fi
11339
11340 if test x$LIB_MAN_SUFFIX = x ; then
11341 LIB_MAN_SUFFIX=3
11342 fi
11343 if test x$LIB_MAN_DIR = x ; then
11344 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11345 fi
11346
11347 if test x$FILE_MAN_SUFFIX = x ; then
11348 case $SYSV_MAN_SECTIONS in
11349 true) FILE_MAN_SUFFIX=4 ;;
11350 *) FILE_MAN_SUFFIX=5 ;;
11351 esac
11352 fi
11353 if test x$FILE_MAN_DIR = x ; then
11354 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11355 fi
11356
11357 if test x$MISC_MAN_SUFFIX = x ; then
11358 case $SYSV_MAN_SECTIONS in
11359 true) MISC_MAN_SUFFIX=5 ;;
11360 *) MISC_MAN_SUFFIX=7 ;;
11361 esac
11362 fi
11363 if test x$MISC_MAN_DIR = x ; then
11364 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11365 fi
11366
11367 if test x$DRIVER_MAN_SUFFIX = x ; then
11368 case $SYSV_MAN_SECTIONS in
11369 true) DRIVER_MAN_SUFFIX=7 ;;
11370 *) DRIVER_MAN_SUFFIX=4 ;;
11371 esac
11372 fi
11373 if test x$DRIVER_MAN_DIR = x ; then
11374 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11375 fi
11376
11377 if test x$ADMIN_MAN_SUFFIX = x ; then
11378 case $SYSV_MAN_SECTIONS in
11379 true) ADMIN_MAN_SUFFIX=1m ;;
11380 *) ADMIN_MAN_SUFFIX=8 ;;
11381 esac
11382 fi
11383 if test x$ADMIN_MAN_DIR = x ; then
11384 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11385 fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 XORG_MAN_PAGE="X Version 11"
11402
11403 MAN_SUBSTS="\
11404 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11405 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11406 -e 's|__xservername__|Xorg|g' \
11407 -e 's|__xconfigfile__|xorg.conf|g' \
11408 -e 's|__projectroot__|\$(prefix)|g' \
11409 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11410 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11411 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11412 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11413 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11414 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11415 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11416
11417
11418
11419 # Check whether --enable-silent-rules was given.
11420 if test ${enable_silent_rules+y}
11421 then :
11422 enableval=$enable_silent_rules;
11423 fi
11424
11425 case $enable_silent_rules in # (((
11426 yes) AM_DEFAULT_VERBOSITY=0;;
11427 no) AM_DEFAULT_VERBOSITY=1;;
11428 *) AM_DEFAULT_VERBOSITY=0;;
11429 esac
11430 am_make=${MAKE-make}
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11432 printf %s "checking whether $am_make supports nested variables... " >&6; }
11433 if test ${am_cv_make_support_nested_variables+y}
11434 then :
11435 printf %s "(cached) " >&6
11436 else case e in #(
11437 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11438 BAR0=false
11439 BAR1=true
11440 V=1
11441 am__doit:
11442 @$(TRUE)
11443 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11444 am_cv_make_support_nested_variables=yes
11445 else
11446 am_cv_make_support_nested_variables=no
11447 fi ;;
11448 esac
11449 fi
11450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11451 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11452 if test $am_cv_make_support_nested_variables = yes; then
11453 AM_V='$(V)'
11454 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11455 else
11456 AM_V=$AM_DEFAULT_VERBOSITY
11457 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11458 fi
11459 AM_BACKSLASH='\'
11460
11461
11462
11463
11464 # Checks for pkg-config packages
11465
11466 pkg_failed=no
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XBIFF" >&5
11468 printf %s "checking for XBIFF... " >&6; }
11469
11470 if test -n "$XBIFF_CFLAGS"; then
11471 pkg_cv_XBIFF_CFLAGS="$XBIFF_CFLAGS"
11472 elif test -n "$PKG_CONFIG"; then
11473 if test -n "$PKG_CONFIG" && \
11474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25\""; } >&5
11475 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25") 2>&5
11476 ac_status=$?
11477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; }; then
11479 pkg_cv_XBIFF_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>/dev/null`
11480 test "x$?" != "x0" && pkg_failed=yes
11481 else
11482 pkg_failed=yes
11483 fi
11484 else
11485 pkg_failed=untried
11486 fi
11487 if test -n "$XBIFF_LIBS"; then
11488 pkg_cv_XBIFF_LIBS="$XBIFF_LIBS"
11489 elif test -n "$PKG_CONFIG"; then
11490 if test -n "$PKG_CONFIG" && \
11491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25\""; } >&5
11492 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25") 2>&5
11493 ac_status=$?
11494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495 test $ac_status = 0; }; then
11496 pkg_cv_XBIFF_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>/dev/null`
11497 test "x$?" != "x0" && pkg_failed=yes
11498 else
11499 pkg_failed=yes
11500 fi
11501 else
11502 pkg_failed=untried
11503 fi
11504
11505
11506
11507 if test $pkg_failed = yes; then
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 printf "%s\n" "no" >&6; }
11510
11511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11512 _pkg_short_errors_supported=yes
11513 else
11514 _pkg_short_errors_supported=no
11515 fi
11516 if test $_pkg_short_errors_supported = yes; then
11517 XBIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>&1`
11518 else
11519 XBIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>&1`
11520 fi
11521 # Put the nasty error message in config.log where it belongs
11522 echo "$XBIFF_PKG_ERRORS" >&5
11523
11524 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25) were not met:
11525
11526 $XBIFF_PKG_ERRORS
11527
11528 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11529 installed software in a non-standard prefix.
11530
11531 Alternatively, you may set the environment variables XBIFF_CFLAGS
11532 and XBIFF_LIBS to avoid the need to call pkg-config.
11533 See the pkg-config man page for more details." "$LINENO" 5
11534 elif test $pkg_failed = untried; then
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 printf "%s\n" "no" >&6; }
11537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11538 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11539 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11540 is in your PATH or set the PKG_CONFIG environment variable to the full
11541 path to pkg-config.
11542
11543 Alternatively, you may set the environment variables XBIFF_CFLAGS
11544 and XBIFF_LIBS to avoid the need to call pkg-config.
11545 See the pkg-config man page for more details.
11546
11547 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11548 See 'config.log' for more details" "$LINENO" 5; }
11549 else
11550 XBIFF_CFLAGS=$pkg_cv_XBIFF_CFLAGS
11551 XBIFF_LIBS=$pkg_cv_XBIFF_LIBS
11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11553 printf "%s\n" "yes" >&6; }
11554
11555 fi
11556
11557 # Checks for headers
11558 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11559 if test "x$ac_cv_header_paths_h" = xyes
11560 then :
11561 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11562
11563 fi
11564
11565
11566 # Checks for typedefs, structures, and compiler characteristics.
11567 # Check whether --enable-largefile was given.
11568 if test ${enable_largefile+y}
11569 then :
11570 enableval=$enable_largefile;
11571 fi
11572 if test "$enable_largefile,$enable_year2038" != no,no
11573 then :
11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11575 printf %s "checking for $CC option to enable large file support... " >&6; }
11576 if test ${ac_cv_sys_largefile_opts+y}
11577 then :
11578 printf %s "(cached) " >&6
11579 else case e in #(
11580 e) ac_save_CC="$CC"
11581 ac_opt_found=no
11582 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11583 if test x"$ac_opt" != x"none needed"
11584 then :
11585 CC="$ac_save_CC $ac_opt"
11586 fi
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <sys/types.h>
11590 #ifndef FTYPE
11591 # define FTYPE off_t
11592 #endif
11593 /* Check that FTYPE can represent 2**63 - 1 correctly.
11594 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11595 since some C++ compilers masquerading as C compilers
11596 incorrectly reject 9223372036854775807. */
11597 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11598 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11599 && LARGE_FTYPE % 2147483647 == 1)
11600 ? 1 : -1];
11601 int
11602 main (void)
11603 {
11604
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"
11610 then :
11611 if test x"$ac_opt" = x"none needed"
11612 then :
11613 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11614 CC="$CC -DFTYPE=ino_t"
11615 if ac_fn_c_try_compile "$LINENO"
11616 then :
11617
11618 else case e in #(
11619 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11620 if ac_fn_c_try_compile "$LINENO"
11621 then :
11622 ac_opt='-D_FILE_OFFSET_BITS=64'
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11625 esac
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext conftest.beam
11628 fi
11629 ac_cv_sys_largefile_opts=$ac_opt
11630 ac_opt_found=yes
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11633 test $ac_opt_found = no || break
11634 done
11635 CC="$ac_save_CC"
11636
11637 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11638 esac
11639 fi
11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11641 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11642
11643 ac_have_largefile=yes
11644 case $ac_cv_sys_largefile_opts in #(
11645 "none needed") :
11646 ;; #(
11647 "supported through gnulib") :
11648 ;; #(
11649 "support not detected") :
11650 ac_have_largefile=no ;; #(
11651 "-D_FILE_OFFSET_BITS=64") :
11652
11653 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11654 ;; #(
11655 "-D_LARGE_FILES=1") :
11656
11657 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11658 ;; #(
11659 "-n32") :
11660 CC="$CC -n32" ;; #(
11661 *) :
11662 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11663 esac
11664
11665 if test "$enable_year2038" != no
11666 then :
11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11668 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11669 if test ${ac_cv_sys_year2038_opts+y}
11670 then :
11671 printf %s "(cached) " >&6
11672 else case e in #(
11673 e) ac_save_CPPFLAGS="$CPPFLAGS"
11674 ac_opt_found=no
11675 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11676 if test x"$ac_opt" != x"none needed"
11677 then :
11678 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11679 fi
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 #include <time.h>
11684 /* Check that time_t can represent 2**32 - 1 correctly. */
11685 #define LARGE_TIME_T \\
11686 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11687 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11688 && LARGE_TIME_T % 65537 == 0)
11689 ? 1 : -1];
11690
11691 int
11692 main (void)
11693 {
11694
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_compile "$LINENO"
11700 then :
11701 ac_cv_sys_year2038_opts="$ac_opt"
11702 ac_opt_found=yes
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11705 test $ac_opt_found = no || break
11706 done
11707 CPPFLAGS="$ac_save_CPPFLAGS"
11708 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11709 esac
11710 fi
11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11712 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11713
11714 ac_have_year2038=yes
11715 case $ac_cv_sys_year2038_opts in #(
11716 "none needed") :
11717 ;; #(
11718 "support not detected") :
11719 ac_have_year2038=no ;; #(
11720 "-D_TIME_BITS=64") :
11721
11722 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11723 ;; #(
11724 "-D__MINGW_USE_VC2005_COMPAT") :
11725
11726 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11727 ;; #(
11728 "-U_USE_32_BIT_TIME_T"*) :
11729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11730 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11731 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11732 will stop working after mid-January 2038. Remove
11733 _USE_32BIT_TIME_T from the compiler flags.
11734 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11735 *) :
11736 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11737 esac
11738
11739 fi
11740
11741 fi
11742
11743 # Allow builder to set path to look for mailboxes
11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mailbox directory" >&5
11745 printf %s "checking for mailbox directory... " >&6; }
11746
11747 # Check whether --with-mailbox-directory was given.
11748 if test ${with_mailbox_directory+y}
11749 then :
11750 withval=$with_mailbox_directory; mailbox_directory=$with_mailbox_directory
11751 fi
11752
11753
11754 if test "x$mailbox_directory" != "x"; then
11755
11756 printf "%s\n" "#define MAILBOX_DIRECTORY \"$mailbox_directory\"" >>confdefs.h
11757
11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mailbox_directory" >&5
11759 printf "%s\n" "$mailbox_directory" >&6; }
11760 else
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
11762 printf "%s\n" "not set" >&6; }
11763 fi
11764
11765 ac_config_files="$ac_config_files Makefile man/Makefile"
11766
11767 cat >confcache <<\_ACEOF
11768 # This file is a shell script that caches the results of configure
11769 # tests run on this system so they can be shared between configure
11770 # scripts and configure runs, see configure's option --config-cache.
11771 # It is not useful on other systems. If it contains results you don't
11772 # want to keep, you may remove or edit it.
11773 #
11774 # config.status only pays attention to the cache file if you give it
11775 # the --recheck option to rerun configure.
11776 #
11777 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11778 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11779 # following values.
11780
11781 _ACEOF
11782
11783 # The following way of writing the cache mishandles newlines in values,
11784 # but we know of no workaround that is simple, portable, and efficient.
11785 # So, we kill variables containing newlines.
11786 # Ultrix sh set writes to stderr and can't be redirected directly,
11787 # and sets the high bit in the cache file unless we assign to the vars.
11788 (
11789 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11790 eval ac_val=\$$ac_var
11791 case $ac_val in #(
11792 *${as_nl}*)
11793 case $ac_var in #(
11794 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11795 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11796 esac
11797 case $ac_var in #(
11798 _ | IFS | as_nl) ;; #(
11799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11800 *) { eval $ac_var=; unset $ac_var;} ;;
11801 esac ;;
11802 esac
11803 done
11804
11805 (set) 2>&1 |
11806 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11807 *${as_nl}ac_space=\ *)
11808 # 'set' does not quote correctly, so add quotes: double-quote
11809 # substitution turns \\\\ into \\, and sed turns \\ into \.
11810 sed -n \
11811 "s/'/'\\\\''/g;
11812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11813 ;; #(
11814 *)
11815 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11817 ;;
11818 esac |
11819 sort
11820 ) |
11821 sed '
11822 /^ac_cv_env_/b end
11823 t clear
11824 :clear
11825 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11826 t end
11827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11828 :end' >>confcache
11829 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11830 if test -w "$cache_file"; then
11831 if test "x$cache_file" != "x/dev/null"; then
11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11833 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11834 if test ! -f "$cache_file" || test -h "$cache_file"; then
11835 cat confcache >"$cache_file"
11836 else
11837 case $cache_file in #(
11838 */* | ?:*)
11839 mv -f confcache "$cache_file"$$ &&
11840 mv -f "$cache_file"$$ "$cache_file" ;; #(
11841 *)
11842 mv -f confcache "$cache_file" ;;
11843 esac
11844 fi
11845 fi
11846 else
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11848 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11849 fi
11850 fi
11851 rm -f confcache
11852
11853 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11854 # Let make expand exec_prefix.
11855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11856
11857 DEFS=-DHAVE_CONFIG_H
11858
11859 ac_libobjs=
11860 ac_ltlibobjs=
11861 U=
11862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11863 # 1. Remove the extension, and $U if already installed.
11864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11865 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11867 # will be set to the directory where LIBOBJS objects are built.
11868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11870 done
11871 LIBOBJS=$ac_libobjs
11872
11873 LTLIBOBJS=$ac_ltlibobjs
11874
11875
11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11877 printf %s "checking that generated files are newer than configure... " >&6; }
11878 if test -n "$am_sleep_pid"; then
11879 # Hide warnings about reused PIDs.
11880 wait $am_sleep_pid 2>/dev/null
11881 fi
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11883 printf "%s\n" "done" >&6; }
11884 if test -n "$EXEEXT"; then
11885 am__EXEEXT_TRUE=
11886 am__EXEEXT_FALSE='#'
11887 else
11888 am__EXEEXT_TRUE='#'
11889 am__EXEEXT_FALSE=
11890 fi
11891
11892 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11893 as_fn_error $? "conditional \"AMDEP\" was never defined.
11894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11895 fi
11896 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11897 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11899 fi
11900 # Check whether --enable-year2038 was given.
11901 if test ${enable_year2038+y}
11902 then :
11903 enableval=$enable_year2038;
11904 fi
11905
11906
11907 : "${CONFIG_STATUS=./config.status}"
11908 ac_write_fail=0
11909 ac_clean_files_save=$ac_clean_files
11910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11912 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11913 as_write_fail=0
11914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11915 #! $SHELL
11916 # Generated by $as_me.
11917 # Run this file to recreate the current configuration.
11918 # Compiler output produced by configure, useful for debugging
11919 # configure, is in config.log if it exists.
11920
11921 debug=false
11922 ac_cs_recheck=false
11923 ac_cs_silent=false
11924
11925 SHELL=\${CONFIG_SHELL-$SHELL}
11926 export SHELL
11927 _ASEOF
11928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11929 ## -------------------- ##
11930 ## M4sh Initialization. ##
11931 ## -------------------- ##
11932
11933 # Be more Bourne compatible
11934 DUALCASE=1; export DUALCASE # for MKS sh
11935 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11936 then :
11937 emulate sh
11938 NULLCMD=:
11939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11940 # is contrary to our usage. Disable this feature.
11941 alias -g '${1+"$@"}'='"$@"'
11942 setopt NO_GLOB_SUBST
11943 else case e in #(
11944 e) case `(set -o) 2>/dev/null` in #(
11945 *posix*) :
11946 set -o posix ;; #(
11947 *) :
11948 ;;
11949 esac ;;
11950 esac
11951 fi
11952
11953
11954
11955 # Reset variables that may have inherited troublesome values from
11956 # the environment.
11957
11958 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11959 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11960 # side effect of setting IFS to empty, thus disabling word splitting.)
11961 # Quoting is to prevent editors from complaining about space-tab.
11962 as_nl='
11963 '
11964 export as_nl
11965 IFS=" "" $as_nl"
11966
11967 PS1='$ '
11968 PS2='> '
11969 PS4='+ '
11970
11971 # Ensure predictable behavior from utilities with locale-dependent output.
11972 LC_ALL=C
11973 export LC_ALL
11974 LANGUAGE=C
11975 export LANGUAGE
11976
11977 # We cannot yet rely on "unset" to work, but we need these variables
11978 # to be unset--not just set to an empty or harmless value--now, to
11979 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11980 # also avoids known problems related to "unset" and subshell syntax
11981 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11982 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11983 do eval test \${$as_var+y} \
11984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11985 done
11986
11987 # Ensure that fds 0, 1, and 2 are open.
11988 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11989 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11990 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11991
11992 # The user is always right.
11993 if ${PATH_SEPARATOR+false} :; then
11994 PATH_SEPARATOR=:
11995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11997 PATH_SEPARATOR=';'
11998 }
11999 fi
12000
12001
12002 # Find who we are. Look in the path if we contain no directory separator.
12003 as_myself=
12004 case $0 in #((
12005 *[\\/]* ) as_myself=$0 ;;
12006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009 IFS=$as_save_IFS
12010 case $as_dir in #(((
12011 '') as_dir=./ ;;
12012 */) ;;
12013 *) as_dir=$as_dir/ ;;
12014 esac
12015 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12016 done
12017 IFS=$as_save_IFS
12018
12019 ;;
12020 esac
12021 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12022 # in which case we are not to be found in the path.
12023 if test "x$as_myself" = x; then
12024 as_myself=$0
12025 fi
12026 if test ! -f "$as_myself"; then
12027 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12028 exit 1
12029 fi
12030
12031
12032
12033 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12034 # ----------------------------------------
12035 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12036 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12037 # script with STATUS, using 1 if that was 0.
12038 as_fn_error ()
12039 {
12040 as_status=$1; test $as_status -eq 0 && as_status=1
12041 if test "$4"; then
12042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12044 fi
12045 printf "%s\n" "$as_me: error: $2" >&2
12046 as_fn_exit $as_status
12047 } # as_fn_error
12048
12049
12050 # as_fn_set_status STATUS
12051 # -----------------------
12052 # Set $? to STATUS, without forking.
12053 as_fn_set_status ()
12054 {
12055 return $1
12056 } # as_fn_set_status
12057
12058 # as_fn_exit STATUS
12059 # -----------------
12060 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12061 as_fn_exit ()
12062 {
12063 set +e
12064 as_fn_set_status $1
12065 exit $1
12066 } # as_fn_exit
12067
12068 # as_fn_unset VAR
12069 # ---------------
12070 # Portably unset VAR.
12071 as_fn_unset ()
12072 {
12073 { eval $1=; unset $1;}
12074 }
12075 as_unset=as_fn_unset
12076
12077 # as_fn_append VAR VALUE
12078 # ----------------------
12079 # Append the text in VALUE to the end of the definition contained in VAR. Take
12080 # advantage of any shell optimizations that allow amortized linear growth over
12081 # repeated appends, instead of the typical quadratic growth present in naive
12082 # implementations.
12083 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12084 then :
12085 eval 'as_fn_append ()
12086 {
12087 eval $1+=\$2
12088 }'
12089 else case e in #(
12090 e) as_fn_append ()
12091 {
12092 eval $1=\$$1\$2
12093 } ;;
12094 esac
12095 fi # as_fn_append
12096
12097 # as_fn_arith ARG...
12098 # ------------------
12099 # Perform arithmetic evaluation on the ARGs, and store the result in the
12100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12101 # must be portable across $(()) and expr.
12102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12103 then :
12104 eval 'as_fn_arith ()
12105 {
12106 as_val=$(( $* ))
12107 }'
12108 else case e in #(
12109 e) as_fn_arith ()
12110 {
12111 as_val=`expr "$@" || test $? -eq 1`
12112 } ;;
12113 esac
12114 fi # as_fn_arith
12115
12116
12117 if expr a : '\(a\)' >/dev/null 2>&1 &&
12118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12119 as_expr=expr
12120 else
12121 as_expr=false
12122 fi
12123
12124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12125 as_basename=basename
12126 else
12127 as_basename=false
12128 fi
12129
12130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12131 as_dirname=dirname
12132 else
12133 as_dirname=false
12134 fi
12135
12136 as_me=`$as_basename -- "$0" ||
12137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12138 X"$0" : 'X\(//\)$' \| \
12139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12140 printf "%s\n" X/"$0" |
12141 sed '/^.*\/\([^/][^/]*\)\/*$/{
12142 s//\1/
12143 q
12144 }
12145 /^X\/\(\/\/\)$/{
12146 s//\1/
12147 q
12148 }
12149 /^X\/\(\/\).*/{
12150 s//\1/
12151 q
12152 }
12153 s/.*/./; q'`
12154
12155 # Avoid depending upon Character Ranges.
12156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12159 as_cr_digits='0123456789'
12160 as_cr_alnum=$as_cr_Letters$as_cr_digits
12161
12162
12163 # Determine whether it's possible to make 'echo' print without a newline.
12164 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12165 # for compatibility with existing Makefiles.
12166 ECHO_C= ECHO_N= ECHO_T=
12167 case `echo -n x` in #(((((
12168 -n*)
12169 case `echo 'xy\c'` in
12170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12171 xy) ECHO_C='\c';;
12172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12173 ECHO_T=' ';;
12174 esac;;
12175 *)
12176 ECHO_N='-n';;
12177 esac
12178
12179 # For backward compatibility with old third-party macros, we provide
12180 # the shell variables $as_echo and $as_echo_n. New code should use
12181 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12182 as_echo='printf %s\n'
12183 as_echo_n='printf %s'
12184
12185 rm -f conf$$ conf$$.exe conf$$.file
12186 if test -d conf$$.dir; then
12187 rm -f conf$$.dir/conf$$.file
12188 else
12189 rm -f conf$$.dir
12190 mkdir conf$$.dir 2>/dev/null
12191 fi
12192 if (echo >conf$$.file) 2>/dev/null; then
12193 if ln -s conf$$.file conf$$ 2>/dev/null; then
12194 as_ln_s='ln -s'
12195 # ... but there are two gotchas:
12196 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12197 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12198 # In both cases, we have to default to 'cp -pR'.
12199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12200 as_ln_s='cp -pR'
12201 elif ln conf$$.file conf$$ 2>/dev/null; then
12202 as_ln_s=ln
12203 else
12204 as_ln_s='cp -pR'
12205 fi
12206 else
12207 as_ln_s='cp -pR'
12208 fi
12209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12210 rmdir conf$$.dir 2>/dev/null
12211
12212
12213 # as_fn_mkdir_p
12214 # -------------
12215 # Create "$as_dir" as a directory, including parents if necessary.
12216 as_fn_mkdir_p ()
12217 {
12218
12219 case $as_dir in #(
12220 -*) as_dir=./$as_dir;;
12221 esac
12222 test -d "$as_dir" || eval $as_mkdir_p || {
12223 as_dirs=
12224 while :; do
12225 case $as_dir in #(
12226 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12227 *) as_qdir=$as_dir;;
12228 esac
12229 as_dirs="'$as_qdir' $as_dirs"
12230 as_dir=`$as_dirname -- "$as_dir" ||
12231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12232 X"$as_dir" : 'X\(//\)[^/]' \| \
12233 X"$as_dir" : 'X\(//\)$' \| \
12234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12235 printf "%s\n" X"$as_dir" |
12236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12237 s//\1/
12238 q
12239 }
12240 /^X\(\/\/\)[^/].*/{
12241 s//\1/
12242 q
12243 }
12244 /^X\(\/\/\)$/{
12245 s//\1/
12246 q
12247 }
12248 /^X\(\/\).*/{
12249 s//\1/
12250 q
12251 }
12252 s/.*/./; q'`
12253 test -d "$as_dir" && break
12254 done
12255 test -z "$as_dirs" || eval "mkdir $as_dirs"
12256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12257
12258
12259 } # as_fn_mkdir_p
12260 if mkdir -p . 2>/dev/null; then
12261 as_mkdir_p='mkdir -p "$as_dir"'
12262 else
12263 test -d ./-p && rmdir ./-p
12264 as_mkdir_p=false
12265 fi
12266
12267
12268 # as_fn_executable_p FILE
12269 # -----------------------
12270 # Test if FILE is an executable regular file.
12271 as_fn_executable_p ()
12272 {
12273 test -f "$1" && test -x "$1"
12274 } # as_fn_executable_p
12275 as_test_x='test -x'
12276 as_executable_p=as_fn_executable_p
12277
12278 # Sed expression to map a string onto a valid CPP name.
12279 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12280 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12281
12282 # Sed expression to map a string onto a valid variable name.
12283 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12284 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12285
12286
12287 exec 6>&1
12288 ## ----------------------------------- ##
12289 ## Main body of $CONFIG_STATUS script. ##
12290 ## ----------------------------------- ##
12291 _ASEOF
12292 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12293
12294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295 # Save the log message, to keep $0 and so on meaningful, and to
12296 # report actual input values of CONFIG_FILES etc. instead of their
12297 # values after options handling.
12298 ac_log="
12299 This file was extended by xbiff $as_me 1.0.5, which was
12300 generated by GNU Autoconf 2.72. Invocation command line was
12301
12302 CONFIG_FILES = $CONFIG_FILES
12303 CONFIG_HEADERS = $CONFIG_HEADERS
12304 CONFIG_LINKS = $CONFIG_LINKS
12305 CONFIG_COMMANDS = $CONFIG_COMMANDS
12306 $ $0 $@
12307
12308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12309 "
12310
12311 _ACEOF
12312
12313 case $ac_config_files in *"
12314 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12315 esac
12316
12317 case $ac_config_headers in *"
12318 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12319 esac
12320
12321
12322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12323 # Files that config.status was made for.
12324 config_files="$ac_config_files"
12325 config_headers="$ac_config_headers"
12326 config_commands="$ac_config_commands"
12327
12328 _ACEOF
12329
12330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 ac_cs_usage="\
12332 '$as_me' instantiates files and other configuration actions
12333 from templates according to the current configuration. Unless the files
12334 and actions are specified as TAGs, all are instantiated by default.
12335
12336 Usage: $0 [OPTION]... [TAG]...
12337
12338 -h, --help print this help, then exit
12339 -V, --version print version number and configuration settings, then exit
12340 --config print configuration, then exit
12341 -q, --quiet, --silent
12342 do not print progress messages
12343 -d, --debug don't remove temporary files
12344 --recheck update $as_me by reconfiguring in the same conditions
12345 --file=FILE[:TEMPLATE]
12346 instantiate the configuration file FILE
12347 --header=FILE[:TEMPLATE]
12348 instantiate the configuration header FILE
12349
12350 Configuration files:
12351 $config_files
12352
12353 Configuration headers:
12354 $config_headers
12355
12356 Configuration commands:
12357 $config_commands
12358
12359 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/issues>."
12360
12361 _ACEOF
12362 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12363 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12365 ac_cs_config='$ac_cs_config_escaped'
12366 ac_cs_version="\\
12367 xbiff config.status 1.0.5
12368 configured by $0, generated by GNU Autoconf 2.72,
12369 with options \\"\$ac_cs_config\\"
12370
12371 Copyright (C) 2023 Free Software Foundation, Inc.
12372 This config.status script is free software; the Free Software Foundation
12373 gives unlimited permission to copy, distribute and modify it."
12374
12375 ac_pwd='$ac_pwd'
12376 srcdir='$srcdir'
12377 INSTALL='$INSTALL'
12378 MKDIR_P='$MKDIR_P'
12379 AWK='$AWK'
12380 test -n "\$AWK" || AWK=awk
12381 _ACEOF
12382
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 # The default lists apply if the user does not specify any file.
12385 ac_need_defaults=:
12386 while test $# != 0
12387 do
12388 case $1 in
12389 --*=?*)
12390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12392 ac_shift=:
12393 ;;
12394 --*=)
12395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12396 ac_optarg=
12397 ac_shift=:
12398 ;;
12399 *)
12400 ac_option=$1
12401 ac_optarg=$2
12402 ac_shift=shift
12403 ;;
12404 esac
12405
12406 case $ac_option in
12407 # Handling of the options.
12408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12409 ac_cs_recheck=: ;;
12410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12411 printf "%s\n" "$ac_cs_version"; exit ;;
12412 --config | --confi | --conf | --con | --co | --c )
12413 printf "%s\n" "$ac_cs_config"; exit ;;
12414 --debug | --debu | --deb | --de | --d | -d )
12415 debug=: ;;
12416 --file | --fil | --fi | --f )
12417 $ac_shift
12418 case $ac_optarg in
12419 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12420 '') as_fn_error $? "missing file argument" ;;
12421 esac
12422 as_fn_append CONFIG_FILES " '$ac_optarg'"
12423 ac_need_defaults=false;;
12424 --header | --heade | --head | --hea )
12425 $ac_shift
12426 case $ac_optarg in
12427 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12428 esac
12429 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12430 ac_need_defaults=false;;
12431 --he | --h)
12432 # Conflict between --help and --header
12433 as_fn_error $? "ambiguous option: '$1'
12434 Try '$0 --help' for more information.";;
12435 --help | --hel | -h )
12436 printf "%s\n" "$ac_cs_usage"; exit ;;
12437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12439 ac_cs_silent=: ;;
12440
12441 # This is an error.
12442 -*) as_fn_error $? "unrecognized option: '$1'
12443 Try '$0 --help' for more information." ;;
12444
12445 *) as_fn_append ac_config_targets " $1"
12446 ac_need_defaults=false ;;
12447
12448 esac
12449 shift
12450 done
12451
12452 ac_configure_extra_args=
12453
12454 if $ac_cs_silent; then
12455 exec 6>/dev/null
12456 ac_configure_extra_args="$ac_configure_extra_args --silent"
12457 fi
12458
12459 _ACEOF
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 if \$ac_cs_recheck; then
12462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12463 shift
12464 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12465 CONFIG_SHELL='$SHELL'
12466 export CONFIG_SHELL
12467 exec "\$@"
12468 fi
12469
12470 _ACEOF
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 exec 5>>config.log
12473 {
12474 echo
12475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12476 ## Running $as_me. ##
12477 _ASBOX
12478 printf "%s\n" "$ac_log"
12479 } >&5
12480
12481 _ACEOF
12482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483 #
12484 # INIT-COMMANDS
12485 #
12486 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12487
12488 _ACEOF
12489
12490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12491
12492 # Handling of arguments.
12493 for ac_config_target in $ac_config_targets
12494 do
12495 case $ac_config_target in
12496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12497 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12499 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12500
12501 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12502 esac
12503 done
12504
12505
12506 # If the user did not use the arguments to specify the items to instantiate,
12507 # then the envvar interface is used. Set only those that are not.
12508 # We use the long form for the default assignment because of an extremely
12509 # bizarre bug on SunOS 4.1.3.
12510 if $ac_need_defaults; then
12511 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12512 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12513 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12514 fi
12515
12516 # Have a temporary directory for convenience. Make it in the build tree
12517 # simply because there is no reason against having it here, and in addition,
12518 # creating and moving files from /tmp can sometimes cause problems.
12519 # Hook for its removal unless debugging.
12520 # Note that there is a small window in which the directory will not be cleaned:
12521 # after its creation but before its name has been assigned to '$tmp'.
12522 $debug ||
12523 {
12524 tmp= ac_tmp=
12525 trap 'exit_status=$?
12526 : "${ac_tmp:=$tmp}"
12527 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12528 ' 0
12529 trap 'as_fn_exit 1' 1 2 13 15
12530 }
12531 # Create a (secure) tmp directory for tmp files.
12532
12533 {
12534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12535 test -d "$tmp"
12536 } ||
12537 {
12538 tmp=./conf$$-$RANDOM
12539 (umask 077 && mkdir "$tmp")
12540 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12541 ac_tmp=$tmp
12542
12543 # Set up the scripts for CONFIG_FILES section.
12544 # No need to generate them if there are no CONFIG_FILES.
12545 # This happens for instance with './config.status config.h'.
12546 if test -n "$CONFIG_FILES"; then
12547
12548
12549 ac_cr=`echo X | tr X '\015'`
12550 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12551 # But we know of no other shell where ac_cr would be empty at this
12552 # point, so we can use a bashism as a fallback.
12553 if test "x$ac_cr" = x; then
12554 eval ac_cr=\$\'\\r\'
12555 fi
12556 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12558 ac_cs_awk_cr='\\r'
12559 else
12560 ac_cs_awk_cr=$ac_cr
12561 fi
12562
12563 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12564 _ACEOF
12565
12566
12567 {
12568 echo "cat >conf$$subs.awk <<_ACEOF" &&
12569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12570 echo "_ACEOF"
12571 } >conf$$subs.sh ||
12572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12573 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12574 ac_delim='%!_!# '
12575 for ac_last_try in false false false false false :; do
12576 . ./conf$$subs.sh ||
12577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12578
12579 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12580 if test $ac_delim_n = $ac_delim_num; then
12581 break
12582 elif $ac_last_try; then
12583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12584 else
12585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12586 fi
12587 done
12588 rm -f conf$$subs.sh
12589
12590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12592 _ACEOF
12593 sed -n '
12594 h
12595 s/^/S["/; s/!.*/"]=/
12596 p
12597 g
12598 s/^[^!]*!//
12599 :repl
12600 t repl
12601 s/'"$ac_delim"'$//
12602 t delim
12603 :nl
12604 h
12605 s/\(.\{148\}\)..*/\1/
12606 t more1
12607 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12608 p
12609 n
12610 b repl
12611 :more1
12612 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12613 p
12614 g
12615 s/.\{148\}//
12616 t nl
12617 :delim
12618 h
12619 s/\(.\{148\}\)..*/\1/
12620 t more2
12621 s/["\\]/\\&/g; s/^/"/; s/$/"/
12622 p
12623 b
12624 :more2
12625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12626 p
12627 g
12628 s/.\{148\}//
12629 t delim
12630 ' <conf$$subs.awk | sed '
12631 /^[^""]/{
12632 N
12633 s/\n//
12634 }
12635 ' >>$CONFIG_STATUS || ac_write_fail=1
12636 rm -f conf$$subs.awk
12637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638 _ACAWK
12639 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12640 for (key in S) S_is_set[key] = 1
12641 FS = ""
12642
12643 }
12644 {
12645 line = $ 0
12646 nfields = split(line, field, "@")
12647 substed = 0
12648 len = length(field[1])
12649 for (i = 2; i < nfields; i++) {
12650 key = field[i]
12651 keylen = length(key)
12652 if (S_is_set[key]) {
12653 value = S[key]
12654 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12655 len += length(value) + length(field[++i])
12656 substed = 1
12657 } else
12658 len += 1 + keylen
12659 }
12660
12661 print line
12662 }
12663
12664 _ACAWK
12665 _ACEOF
12666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12667 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12669 else
12670 cat
12671 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12672 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12673 _ACEOF
12674
12675 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12676 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12677 # trailing colons and then remove the whole line if VPATH becomes empty
12678 # (actually we leave an empty line to preserve line numbers).
12679 if test "x$srcdir" = x.; then
12680 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12681 h
12682 s///
12683 s/^/:/
12684 s/[ ]*$/:/
12685 s/:\$(srcdir):/:/g
12686 s/:\${srcdir}:/:/g
12687 s/:@srcdir@:/:/g
12688 s/^:*//
12689 s/:*$//
12690 x
12691 s/\(=[ ]*\).*/\1/
12692 G
12693 s/\n//
12694 s/^[^=]*=[ ]*$//
12695 }'
12696 fi
12697
12698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12699 fi # test -n "$CONFIG_FILES"
12700
12701 # Set up the scripts for CONFIG_HEADERS section.
12702 # No need to generate them if there are no CONFIG_HEADERS.
12703 # This happens for instance with './config.status Makefile'.
12704 if test -n "$CONFIG_HEADERS"; then
12705 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12706 BEGIN {
12707 _ACEOF
12708
12709 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12710 # here-document in config.status, that substitutes the proper values into
12711 # config.h.in to produce config.h.
12712
12713 # Create a delimiter string that does not exist in confdefs.h, to ease
12714 # handling of long lines.
12715 ac_delim='%!_!# '
12716 for ac_last_try in false false :; do
12717 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12718 if test -z "$ac_tt"; then
12719 break
12720 elif $ac_last_try; then
12721 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12722 else
12723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12724 fi
12725 done
12726
12727 # For the awk script, D is an array of macro values keyed by name,
12728 # likewise P contains macro parameters if any. Preserve backslash
12729 # newline sequences.
12730
12731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12732 sed -n '
12733 s/.\{148\}/&'"$ac_delim"'/g
12734 t rset
12735 :rset
12736 s/^[ ]*#[ ]*define[ ][ ]*/ /
12737 t def
12738 d
12739 :def
12740 s/\\$//
12741 t bsnl
12742 s/["\\]/\\&/g
12743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12744 D["\1"]=" \3"/p
12745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12746 d
12747 :bsnl
12748 s/["\\]/\\&/g
12749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12750 D["\1"]=" \3\\\\\\n"\\/p
12751 t cont
12752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12753 t cont
12754 d
12755 :cont
12756 n
12757 s/.\{148\}/&'"$ac_delim"'/g
12758 t clear
12759 :clear
12760 s/\\$//
12761 t bsnlc
12762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12763 d
12764 :bsnlc
12765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12766 b cont
12767 ' <confdefs.h | sed '
12768 s/'"$ac_delim"'/"\\\
12769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12770
12771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12772 for (key in D) D_is_set[key] = 1
12773 FS = ""
12774 }
12775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12776 line = \$ 0
12777 split(line, arg, " ")
12778 if (arg[1] == "#") {
12779 defundef = arg[2]
12780 mac1 = arg[3]
12781 } else {
12782 defundef = substr(arg[1], 2)
12783 mac1 = arg[2]
12784 }
12785 split(mac1, mac2, "(") #)
12786 macro = mac2[1]
12787 prefix = substr(line, 1, index(line, defundef) - 1)
12788 if (D_is_set[macro]) {
12789 # Preserve the white space surrounding the "#".
12790 print prefix "define", macro P[macro] D[macro]
12791 next
12792 } else {
12793 # Replace #undef with comments. This is necessary, for example,
12794 # in the case of _POSIX_SOURCE, which is predefined and required
12795 # on some systems where configure will not decide to define it.
12796 if (defundef == "undef") {
12797 print "/*", prefix defundef, macro, "*/"
12798 next
12799 }
12800 }
12801 }
12802 { print }
12803 _ACAWK
12804 _ACEOF
12805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12806 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12807 fi # test -n "$CONFIG_HEADERS"
12808
12809
12810 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12811 shift
12812 for ac_tag
12813 do
12814 case $ac_tag in
12815 :[FHLC]) ac_mode=$ac_tag; continue;;
12816 esac
12817 case $ac_mode$ac_tag in
12818 :[FHL]*:*);;
12819 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12820 :[FH]-) ac_tag=-:-;;
12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12822 esac
12823 ac_save_IFS=$IFS
12824 IFS=:
12825 set x $ac_tag
12826 IFS=$ac_save_IFS
12827 shift
12828 ac_file=$1
12829 shift
12830
12831 case $ac_mode in
12832 :L) ac_source=$1;;
12833 :[FH])
12834 ac_file_inputs=
12835 for ac_f
12836 do
12837 case $ac_f in
12838 -) ac_f="$ac_tmp/stdin";;
12839 *) # Look for the file first in the build tree, then in the source tree
12840 # (if the path is not absolute). The absolute path cannot be DOS-style,
12841 # because $ac_f cannot contain ':'.
12842 test -f "$ac_f" ||
12843 case $ac_f in
12844 [\\/$]*) false;;
12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12846 esac ||
12847 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12848 esac
12849 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12850 as_fn_append ac_file_inputs " '$ac_f'"
12851 done
12852
12853 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12854 # use $as_me), people would be surprised to read:
12855 # /* config.h. Generated by config.status. */
12856 configure_input='Generated from '`
12857 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12858 `' by configure.'
12859 if test x"$ac_file" != x-; then
12860 configure_input="$ac_file. $configure_input"
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12862 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12863 fi
12864 # Neutralize special characters interpreted by sed in replacement strings.
12865 case $configure_input in #(
12866 *\&* | *\|* | *\\* )
12867 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12869 *) ac_sed_conf_input=$configure_input;;
12870 esac
12871
12872 case $ac_tag in
12873 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12875 esac
12876 ;;
12877 esac
12878
12879 ac_dir=`$as_dirname -- "$ac_file" ||
12880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12884 printf "%s\n" X"$ac_file" |
12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886 s//\1/
12887 q
12888 }
12889 /^X\(\/\/\)[^/].*/{
12890 s//\1/
12891 q
12892 }
12893 /^X\(\/\/\)$/{
12894 s//\1/
12895 q
12896 }
12897 /^X\(\/\).*/{
12898 s//\1/
12899 q
12900 }
12901 s/.*/./; q'`
12902 as_dir="$ac_dir"; as_fn_mkdir_p
12903 ac_builddir=.
12904
12905 case "$ac_dir" in
12906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12907 *)
12908 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12909 # A ".." for each directory in $ac_dir_suffix.
12910 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12911 case $ac_top_builddir_sub in
12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12914 esac ;;
12915 esac
12916 ac_abs_top_builddir=$ac_pwd
12917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12918 # for backward compatibility:
12919 ac_top_builddir=$ac_top_build_prefix
12920
12921 case $srcdir in
12922 .) # We are building in place.
12923 ac_srcdir=.
12924 ac_top_srcdir=$ac_top_builddir_sub
12925 ac_abs_top_srcdir=$ac_pwd ;;
12926 [\\/]* | ?:[\\/]* ) # Absolute name.
12927 ac_srcdir=$srcdir$ac_dir_suffix;
12928 ac_top_srcdir=$srcdir
12929 ac_abs_top_srcdir=$srcdir ;;
12930 *) # Relative name.
12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12932 ac_top_srcdir=$ac_top_build_prefix$srcdir
12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12934 esac
12935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12936
12937
12938 case $ac_mode in
12939 :F)
12940 #
12941 # CONFIG_FILE
12942 #
12943
12944 case $INSTALL in
12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12947 esac
12948 ac_MKDIR_P=$MKDIR_P
12949 case $MKDIR_P in
12950 [\\/$]* | ?:[\\/]* ) ;;
12951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12952 esac
12953 _ACEOF
12954
12955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956 # If the template does not know about datarootdir, expand it.
12957 # FIXME: This hack should be removed a few years after 2.60.
12958 ac_datarootdir_hack=; ac_datarootdir_seen=
12959 ac_sed_dataroot='
12960 /datarootdir/ {
12961 p
12962 q
12963 }
12964 /@datadir@/p
12965 /@docdir@/p
12966 /@infodir@/p
12967 /@localedir@/p
12968 /@mandir@/p'
12969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12970 *datarootdir*) ac_datarootdir_seen=yes;;
12971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12973 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12974 _ACEOF
12975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976 ac_datarootdir_hack='
12977 s&@datadir@&$datadir&g
12978 s&@docdir@&$docdir&g
12979 s&@infodir@&$infodir&g
12980 s&@localedir@&$localedir&g
12981 s&@mandir@&$mandir&g
12982 s&\\\${datarootdir}&$datarootdir&g' ;;
12983 esac
12984 _ACEOF
12985
12986 # Neutralize VPATH when '$srcdir' = '.'.
12987 # Shell code in configure.ac might set extrasub.
12988 # FIXME: do we really want to maintain this feature?
12989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990 ac_sed_extra="$ac_vpsub
12991 $extrasub
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12994 :t
12995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12996 s|@configure_input@|$ac_sed_conf_input|;t t
12997 s&@top_builddir@&$ac_top_builddir_sub&;t t
12998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12999 s&@srcdir@&$ac_srcdir&;t t
13000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13001 s&@top_srcdir@&$ac_top_srcdir&;t t
13002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13003 s&@builddir@&$ac_builddir&;t t
13004 s&@abs_builddir@&$ac_abs_builddir&;t t
13005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13006 s&@INSTALL@&$ac_INSTALL&;t t
13007 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13008 $ac_datarootdir_hack
13009 "
13010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13012
13013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13016 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13018 which seems to be undefined. Please make sure it is defined" >&5
13019 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13020 which seems to be undefined. Please make sure it is defined" >&2;}
13021
13022 rm -f "$ac_tmp/stdin"
13023 case $ac_file in
13024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13026 esac \
13027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13028 ;;
13029 :H)
13030 #
13031 # CONFIG_HEADER
13032 #
13033 if test x"$ac_file" != x-; then
13034 {
13035 printf "%s\n" "/* $configure_input */" >&1 \
13036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13037 } >"$ac_tmp/config.h" \
13038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13039 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13041 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13042 else
13043 rm -f "$ac_file"
13044 mv "$ac_tmp/config.h" "$ac_file" \
13045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13046 fi
13047 else
13048 printf "%s\n" "/* $configure_input */" >&1 \
13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13050 || as_fn_error $? "could not create -" "$LINENO" 5
13051 fi
13052 # Compute "$ac_file"'s index in $config_headers.
13053 _am_arg="$ac_file"
13054 _am_stamp_count=1
13055 for _am_header in $config_headers :; do
13056 case $_am_header in
13057 $_am_arg | $_am_arg:* )
13058 break ;;
13059 * )
13060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13061 esac
13062 done
13063 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13064 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13065 X"$_am_arg" : 'X\(//\)[^/]' \| \
13066 X"$_am_arg" : 'X\(//\)$' \| \
13067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13068 printf "%s\n" X"$_am_arg" |
13069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13070 s//\1/
13071 q
13072 }
13073 /^X\(\/\/\)[^/].*/{
13074 s//\1/
13075 q
13076 }
13077 /^X\(\/\/\)$/{
13078 s//\1/
13079 q
13080 }
13081 /^X\(\/\).*/{
13082 s//\1/
13083 q
13084 }
13085 s/.*/./; q'`/stamp-h$_am_stamp_count
13086 ;;
13087
13088 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13089 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13090 ;;
13091 esac
13092
13093
13094 case $ac_file$ac_mode in
13095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13096 # Older Autoconf quotes --file arguments for eval, but not when files
13097 # are listed without --file. Let's play safe and only enable the eval
13098 # if we detect the quoting.
13099 # TODO: see whether this extra hack can be removed once we start
13100 # requiring Autoconf 2.70 or later.
13101 case $CONFIG_FILES in #(
13102 *\'*) :
13103 eval set x "$CONFIG_FILES" ;; #(
13104 *) :
13105 set x $CONFIG_FILES ;; #(
13106 *) :
13107 ;;
13108 esac
13109 shift
13110 # Used to flag and report bootstrapping failures.
13111 am_rc=0
13112 for am_mf
13113 do
13114 # Strip MF so we end up with the name of the file.
13115 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13116 # Check whether this is an Automake generated Makefile which includes
13117 # dependency-tracking related rules and includes.
13118 # Grep'ing the whole file directly is not great: AIX grep has a line
13119 # limit of 2048, but all sed's we know have understand at least 4000.
13120 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13121 || continue
13122 am_dirpart=`$as_dirname -- "$am_mf" ||
13123 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13124 X"$am_mf" : 'X\(//\)[^/]' \| \
13125 X"$am_mf" : 'X\(//\)$' \| \
13126 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13127 printf "%s\n" X"$am_mf" |
13128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13129 s//\1/
13130 q
13131 }
13132 /^X\(\/\/\)[^/].*/{
13133 s//\1/
13134 q
13135 }
13136 /^X\(\/\/\)$/{
13137 s//\1/
13138 q
13139 }
13140 /^X\(\/\).*/{
13141 s//\1/
13142 q
13143 }
13144 s/.*/./; q'`
13145 am_filepart=`$as_basename -- "$am_mf" ||
13146 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13147 X"$am_mf" : 'X\(//\)$' \| \
13148 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13149 printf "%s\n" X/"$am_mf" |
13150 sed '/^.*\/\([^/][^/]*\)\/*$/{
13151 s//\1/
13152 q
13153 }
13154 /^X\/\(\/\/\)$/{
13155 s//\1/
13156 q
13157 }
13158 /^X\/\(\/\).*/{
13159 s//\1/
13160 q
13161 }
13162 s/.*/./; q'`
13163 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13164 && sed -e '/# am--include-marker/d' "$am_filepart" \
13165 | $MAKE -f - am--depfiles" >&5
13166 (cd "$am_dirpart" \
13167 && sed -e '/# am--include-marker/d' "$am_filepart" \
13168 | $MAKE -f - am--depfiles) >&5 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } || am_rc=$?
13172 done
13173 if test $am_rc -ne 0; then
13174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13175 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13176 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13177 for automatic dependency tracking. If GNU make was not used, consider
13178 re-running the configure script with MAKE=\"gmake\" (or whatever is
13179 necessary). You can also try re-running configure with the
13180 '--disable-dependency-tracking' option to at least be able to build
13181 the package (albeit without support for automatic dependency tracking).
13182 See 'config.log' for more details" "$LINENO" 5; }
13183 fi
13184 { am_dirpart=; unset am_dirpart;}
13185 { am_filepart=; unset am_filepart;}
13186 { am_mf=; unset am_mf;}
13187 { am_rc=; unset am_rc;}
13188 rm -f conftest-deps.mk
13189 }
13190 ;;
13191
13192 esac
13193 done # for ac_tag
13194
13195
13196 as_fn_exit 0
13197 _ACEOF
13198 ac_clean_files=$ac_clean_files_save
13199
13200 test $ac_write_fail = 0 ||
13201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13202
13203
13204 # configure is writing to config.log, and then calls config.status.
13205 # config.status does its own redirection, appending to config.log.
13206 # Unfortunately, on DOS this fails, as config.log is still kept open
13207 # by configure, so config.status won't be able to write to it; its
13208 # output is simply discarded. So we exec the FD to /dev/null,
13209 # effectively closing config.log, so it can be properly (re)opened and
13210 # appended to by config.status. When coming back to configure, we
13211 # need to make the FD available again.
13212 if test "$no_create" != yes; then
13213 ac_cs_success=:
13214 ac_config_status_args=
13215 test "$silent" = yes &&
13216 ac_config_status_args="$ac_config_status_args --quiet"
13217 exec 5>/dev/null
13218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13219 exec 5>>config.log
13220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13221 # would make configure fail if this is the last instruction.
13222 $ac_cs_success || as_fn_exit 1
13223 fi
13224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13226 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13227 fi
13228
13229
13230