configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for transset 1.0.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/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/transset/-/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='transset'
607 PACKAGE_TARNAME='transset'
608 PACKAGE_VERSION='1.0.4'
609 PACKAGE_STRING='transset 1.0.4'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/transset/-/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 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 TRANSSET_LIBS
651 TRANSSET_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__xargs_n
700 am__rm_f_notfound
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 CSCOPE
706 ETAGS
707 CTAGS
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL
770 am__quote'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_dependency_tracking
776 enable_selective_werror
777 enable_strict_compilation
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 PKG_CONFIG
788 PKG_CONFIG_PATH
789 PKG_CONFIG_LIBDIR
790 TRANSSET_CFLAGS
791 TRANSSET_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: '$ac_useropt'"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: '$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: '$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: '$ac_option'
1186 Try '$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: '$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 printf "%s\n" X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 'configure' configures transset 1.0.4 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print 'checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for '--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or '..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, 'make install' will install all the files in
1367 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than '$ac_default_prefix' using '--prefix',
1369 for instance '--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/transset]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of transset 1.0.4:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-selective-werror
1426 Turn off selective compiler errors. (default:
1427 enabled)
1428 --enable-strict-compilation
1429 Enable all warnings from compiler and make them
1430 errors (default: disabled)
1431
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 PKG_CONFIG path to pkg-config utility
1441 PKG_CONFIG_PATH
1442 directories to add to pkg-config's search path
1443 PKG_CONFIG_LIBDIR
1444 path overriding pkg-config's built-in search path
1445 TRANSSET_CFLAGS
1446 C compiler flags for TRANSSET, overriding pkg-config
1447 TRANSSET_LIBS
1448 linker flags for TRANSSET, overriding pkg-config
1449
1450 Use these variables to override the choices made by 'configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/issues>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for configure.gnu first; this name is used for a wrapper for
1500 # Metaconfig's "Configure" on case-insensitive file systems.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 transset configure 1.0.4
1518 generated by GNU Autoconf 2.72
1519
1520 Copyright (C) 2023 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest.beam
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 printf "%s\n" "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext
1557 then :
1558 ac_retval=0
1559 else case e in #(
1560 e) printf "%s\n" "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1 ;;
1564 esac
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1572 # ------------------------------------------------------------------
1573 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1575 ac_fn_check_decl ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 as_decl_name=`echo $2|sed 's/ *(.*//'`
1579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580 printf %s "checking whether $as_decl_name is declared... " >&6; }
1581 if eval test \${$3+y}
1582 then :
1583 printf %s "(cached) " >&6
1584 else case e in #(
1585 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1586 eval ac_save_FLAGS=\$$6
1587 as_fn_append $6 " $5"
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 int
1592 main (void)
1593 {
1594 #ifndef $as_decl_name
1595 #ifdef __cplusplus
1596 (void) $as_decl_use;
1597 #else
1598 (void) $as_decl_name;
1599 #endif
1600 #endif
1601
1602 ;
1603 return 0;
1604 }
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"
1607 then :
1608 eval "$3=yes"
1609 else case e in #(
1610 e) eval "$3=no" ;;
1611 esac
1612 fi
1613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1614 eval $6=\$ac_save_FLAGS
1615 ;;
1616 esac
1617 fi
1618 eval ac_res=\$$3
1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 printf "%s\n" "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_check_decl
1624
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 printf %s "checking for $2... " >&6; }
1634 if eval test \${$3+y}
1635 then :
1636 printf %s "(cached) " >&6
1637 else case e in #(
1638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"
1644 then :
1645 eval "$3=yes"
1646 else case e in #(
1647 e) eval "$3=no" ;;
1648 esac
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651 esac
1652 fi
1653 eval ac_res=\$$3
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_c_check_header_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else case e in #(
1692 e) printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1 ;;
1696 esac
1697 fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707 ac_configure_args_raw=
1708 for ac_arg
1709 do
1710 case $ac_arg in
1711 *\'*)
1712 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 esac
1714 as_fn_append ac_configure_args_raw " '$ac_arg'"
1715 done
1716
1717 case $ac_configure_args_raw in
1718 *$as_nl*)
1719 ac_safe_unquote= ;;
1720 *)
1721 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1722 ac_unsafe_a="$ac_unsafe_z#~"
1723 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1724 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1725 esac
1726
1727 cat >config.log <<_ACEOF
1728 This file contains any messages produced by compilers while
1729 running configure, to aid debugging if configure makes a mistake.
1730
1731 It was created by transset $as_me 1.0.4, which was
1732 generated by GNU Autoconf 2.72. Invocation command line was
1733
1734 $ $0$ac_configure_args_raw
1735
1736 _ACEOF
1737 exec 5>>config.log
1738 {
1739 cat <<_ASUNAME
1740 ## --------- ##
1741 ## Platform. ##
1742 ## --------- ##
1743
1744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1745 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1746 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1747 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1748 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
1750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1752
1753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1756 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760
1761 _ASUNAME
1762
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 case $as_dir in #(((
1768 '') as_dir=./ ;;
1769 */) ;;
1770 *) as_dir=$as_dir/ ;;
1771 esac
1772 printf "%s\n" "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Sanitize IFS.
1843 IFS=" "" $as_nl"
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 printf "%s\n" "## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##"
1851 echo
1852 # The following way of writing the cache mishandles newlines in values,
1853 (
1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855 eval ac_val=\$$ac_var
1856 case $ac_val in #(
1857 *${as_nl}*)
1858 case $ac_var in #(
1859 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861 esac
1862 case $ac_var in #(
1863 _ | IFS | as_nl) ;; #(
1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865 *) { eval $ac_var=; unset $ac_var;} ;;
1866 esac ;;
1867 esac
1868 done
1869 (set) 2>&1 |
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1872 sed -n \
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 ;; #(
1876 *)
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878 ;;
1879 esac |
1880 sort
1881 )
1882 echo
1883
1884 printf "%s\n" "## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##"
1887 echo
1888 for ac_var in $ac_subst_vars
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 printf "%s\n" "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897
1898 if test -n "$ac_subst_files"; then
1899 printf "%s\n" "## ------------------- ##
1900 ## File substitutions. ##
1901 ## ------------------- ##"
1902 echo
1903 for ac_var in $ac_subst_files
1904 do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 printf "%s\n" "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1912 fi
1913
1914 if test -s confdefs.h; then
1915 printf "%s\n" "## ----------- ##
1916 ## confdefs.h. ##
1917 ## ----------- ##"
1918 echo
1919 cat confdefs.h
1920 echo
1921 fi
1922 test "$ac_signal" != 0 &&
1923 printf "%s\n" "$as_me: caught signal $ac_signal"
1924 printf "%s\n" "$as_me: exit $exit_status"
1925 } >&5
1926 rm -f core *.core core.conftest.* &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 exit $exit_status
1929 ' 0
1930 for ac_signal in 1 2 13 15; do
1931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1932 done
1933 ac_signal=0
1934
1935 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1936 rm -f -r conftest* confdefs.h
1937
1938 printf "%s\n" "/* confdefs.h */" > confdefs.h
1939
1940 # Predefined preprocessor variables.
1941
1942 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1943
1944 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1945
1946 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1951
1952 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1953
1954
1955 # Let the site file select an alternate cache file if it wants to.
1956 # Prefer an explicitly selected file to automatically selected ones.
1957 if test -n "$CONFIG_SITE"; then
1958 ac_site_files="$CONFIG_SITE"
1959 elif test "x$prefix" != xNONE; then
1960 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1961 else
1962 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1963 fi
1964
1965 for ac_site_file in $ac_site_files
1966 do
1967 case $ac_site_file in #(
1968 */*) :
1969 ;; #(
1970 *) :
1971 ac_site_file=./$ac_site_file ;;
1972 esac
1973 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1975 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1976 sed 's/^/| /' "$ac_site_file" >&5
1977 . "$ac_site_file" \
1978 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1980 as_fn_error $? "failed to load site script $ac_site_file
1981 See 'config.log' for more details" "$LINENO" 5; }
1982 fi
1983 done
1984
1985 if test -r "$cache_file"; then
1986 # Some versions of bash will fail to source /dev/null (special files
1987 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1988 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1990 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1991 case $cache_file in
1992 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993 *) . "./$cache_file";;
1994 esac
1995 fi
1996 else
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1998 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1999 >$cache_file
2000 fi
2001
2002 # Test code for whether the C compiler supports C89 (global declarations)
2003 ac_c_conftest_c89_globals='
2004 /* Does the compiler advertise C89 conformance?
2005 Do not test the value of __STDC__, because some compilers set it to 0
2006 while being otherwise adequately conformant. */
2007 #if !defined __STDC__
2008 # error "Compiler does not advertise C89 conformance"
2009 #endif
2010
2011 #include <stddef.h>
2012 #include <stdarg.h>
2013 struct stat;
2014 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2015 struct buf { int x; };
2016 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2017 static char *e (char **p, int i)
2018 {
2019 return p[i];
2020 }
2021 static char *f (char * (*g) (char **, int), char **p, ...)
2022 {
2023 char *s;
2024 va_list v;
2025 va_start (v,p);
2026 s = g (p, va_arg (v,int));
2027 va_end (v);
2028 return s;
2029 }
2030
2031 /* C89 style stringification. */
2032 #define noexpand_stringify(a) #a
2033 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2034
2035 /* C89 style token pasting. Exercises some of the corner cases that
2036 e.g. old MSVC gets wrong, but not very hard. */
2037 #define noexpand_concat(a,b) a##b
2038 #define expand_concat(a,b) noexpand_concat(a,b)
2039 extern int vA;
2040 extern int vbee;
2041 #define aye A
2042 #define bee B
2043 int *pvA = &expand_concat(v,aye);
2044 int *pvbee = &noexpand_concat(v,bee);
2045
2046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2047 function prototypes and stuff, but not \xHH hex character constants.
2048 These do not provoke an error unfortunately, instead are silently treated
2049 as an "x". The following induces an error, until -std is added to get
2050 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2051 array size at least. It is necessary to write \x00 == 0 to get something
2052 that is true only with -std. */
2053 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2054
2055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2056 inside strings and character constants. */
2057 #define FOO(x) '\''x'\''
2058 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2059
2060 int test (int i, double x);
2061 struct s1 {int (*f) (int a);};
2062 struct s2 {int (*f) (double a);};
2063 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2064 int, int);'
2065
2066 # Test code for whether the C compiler supports C89 (body of main).
2067 ac_c_conftest_c89_main='
2068 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2069 '
2070
2071 # Test code for whether the C compiler supports C99 (global declarations)
2072 ac_c_conftest_c99_globals='
2073 /* Does the compiler advertise C99 conformance? */
2074 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2075 # error "Compiler does not advertise C99 conformance"
2076 #endif
2077
2078 // See if C++-style comments work.
2079
2080 #include <stdbool.h>
2081 extern int puts (const char *);
2082 extern int printf (const char *, ...);
2083 extern int dprintf (int, const char *, ...);
2084 extern void *malloc (size_t);
2085 extern void free (void *);
2086
2087 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2088 // dprintf is used instead of fprintf to avoid needing to declare
2089 // FILE and stderr.
2090 #define debug(...) dprintf (2, __VA_ARGS__)
2091 #define showlist(...) puts (#__VA_ARGS__)
2092 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2093 static void
2094 test_varargs_macros (void)
2095 {
2096 int x = 1234;
2097 int y = 5678;
2098 debug ("Flag");
2099 debug ("X = %d\n", x);
2100 showlist (The first, second, and third items.);
2101 report (x>y, "x is %d but y is %d", x, y);
2102 }
2103
2104 // Check long long types.
2105 #define BIG64 18446744073709551615ull
2106 #define BIG32 4294967295ul
2107 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2108 #if !BIG_OK
2109 #error "your preprocessor is broken"
2110 #endif
2111 #if BIG_OK
2112 #else
2113 #error "your preprocessor is broken"
2114 #endif
2115 static long long int bignum = -9223372036854775807LL;
2116 static unsigned long long int ubignum = BIG64;
2117
2118 struct incomplete_array
2119 {
2120 int datasize;
2121 double data[];
2122 };
2123
2124 struct named_init {
2125 int number;
2126 const wchar_t *name;
2127 double average;
2128 };
2129
2130 typedef const char *ccp;
2131
2132 static inline int
2133 test_restrict (ccp restrict text)
2134 {
2135 // Iterate through items via the restricted pointer.
2136 // Also check for declarations in for loops.
2137 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2138 continue;
2139 return 0;
2140 }
2141
2142 // Check varargs and va_copy.
2143 static bool
2144 test_varargs (const char *format, ...)
2145 {
2146 va_list args;
2147 va_start (args, format);
2148 va_list args_copy;
2149 va_copy (args_copy, args);
2150
2151 const char *str = "";
2152 int number = 0;
2153 float fnumber = 0;
2154
2155 while (*format)
2156 {
2157 switch (*format++)
2158 {
2159 case '\''s'\'': // string
2160 str = va_arg (args_copy, const char *);
2161 break;
2162 case '\''d'\'': // int
2163 number = va_arg (args_copy, int);
2164 break;
2165 case '\''f'\'': // float
2166 fnumber = va_arg (args_copy, double);
2167 break;
2168 default:
2169 break;
2170 }
2171 }
2172 va_end (args_copy);
2173 va_end (args);
2174
2175 return *str && number && fnumber;
2176 }
2177 '
2178
2179 # Test code for whether the C compiler supports C99 (body of main).
2180 ac_c_conftest_c99_main='
2181 // Check bool.
2182 _Bool success = false;
2183 success |= (argc != 0);
2184
2185 // Check restrict.
2186 if (test_restrict ("String literal") == 0)
2187 success = true;
2188 char *restrict newvar = "Another string";
2189
2190 // Check varargs.
2191 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2192 test_varargs_macros ();
2193
2194 // Check flexible array members.
2195 struct incomplete_array *ia =
2196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2197 ia->datasize = 10;
2198 for (int i = 0; i < ia->datasize; ++i)
2199 ia->data[i] = i * 1.234;
2200 // Work around memory leak warnings.
2201 free (ia);
2202
2203 // Check named initializers.
2204 struct named_init ni = {
2205 .number = 34,
2206 .name = L"Test wide string",
2207 .average = 543.34343,
2208 };
2209
2210 ni.number = 58;
2211
2212 int dynamic_array[ni.number];
2213 dynamic_array[0] = argv[0][0];
2214 dynamic_array[ni.number - 1] = 543;
2215
2216 // work around unused variable warnings
2217 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2218 || dynamic_array[ni.number - 1] != 543);
2219 '
2220
2221 # Test code for whether the C compiler supports C11 (global declarations)
2222 ac_c_conftest_c11_globals='
2223 /* Does the compiler advertise C11 conformance? */
2224 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2225 # error "Compiler does not advertise C11 conformance"
2226 #endif
2227
2228 // Check _Alignas.
2229 char _Alignas (double) aligned_as_double;
2230 char _Alignas (0) no_special_alignment;
2231 extern char aligned_as_int;
2232 char _Alignas (0) _Alignas (int) aligned_as_int;
2233
2234 // Check _Alignof.
2235 enum
2236 {
2237 int_alignment = _Alignof (int),
2238 int_array_alignment = _Alignof (int[100]),
2239 char_alignment = _Alignof (char)
2240 };
2241 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2242
2243 // Check _Noreturn.
2244 int _Noreturn does_not_return (void) { for (;;) continue; }
2245
2246 // Check _Static_assert.
2247 struct test_static_assert
2248 {
2249 int x;
2250 _Static_assert (sizeof (int) <= sizeof (long int),
2251 "_Static_assert does not work in struct");
2252 long int y;
2253 };
2254
2255 // Check UTF-8 literals.
2256 #define u8 syntax error!
2257 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2258
2259 // Check duplicate typedefs.
2260 typedef long *long_ptr;
2261 typedef long int *long_ptr;
2262 typedef long_ptr long_ptr;
2263
2264 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2265 struct anonymous
2266 {
2267 union {
2268 struct { int i; int j; };
2269 struct { int k; long int l; } w;
2270 };
2271 int m;
2272 } v1;
2273 '
2274
2275 # Test code for whether the C compiler supports C11 (body of main).
2276 ac_c_conftest_c11_main='
2277 _Static_assert ((offsetof (struct anonymous, i)
2278 == offsetof (struct anonymous, w.k)),
2279 "Anonymous union alignment botch");
2280 v1.i = 2;
2281 v1.w.k = 5;
2282 ok |= v1.i != 5;
2283 '
2284
2285 # Test code for whether the C compiler supports C11 (complete).
2286 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2287 ${ac_c_conftest_c99_globals}
2288 ${ac_c_conftest_c11_globals}
2289
2290 int
2291 main (int argc, char **argv)
2292 {
2293 int ok = 0;
2294 ${ac_c_conftest_c89_main}
2295 ${ac_c_conftest_c99_main}
2296 ${ac_c_conftest_c11_main}
2297 return ok;
2298 }
2299 "
2300
2301 # Test code for whether the C compiler supports C99 (complete).
2302 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2303 ${ac_c_conftest_c99_globals}
2304
2305 int
2306 main (int argc, char **argv)
2307 {
2308 int ok = 0;
2309 ${ac_c_conftest_c89_main}
2310 ${ac_c_conftest_c99_main}
2311 return ok;
2312 }
2313 "
2314
2315 # Test code for whether the C compiler supports C89 (complete).
2316 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2317
2318 int
2319 main (int argc, char **argv)
2320 {
2321 int ok = 0;
2322 ${ac_c_conftest_c89_main}
2323 return ok;
2324 }
2325 "
2326
2327 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2328 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2329 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2330 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2331 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2332 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2333 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2334 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2335 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2336
2337 # Auxiliary files required by this configure script.
2338 ac_aux_files="config.guess config.sub compile missing install-sh"
2339
2340 # Locations in which to look for auxiliary files.
2341 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2342
2343 # Search for a directory containing all of the required auxiliary files,
2344 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2345 # If we don't find one directory that contains all the files we need,
2346 # we report the set of missing files from the *first* directory in
2347 # $ac_aux_dir_candidates and give up.
2348 ac_missing_aux_files=""
2349 ac_first_candidate=:
2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 as_found=false
2353 for as_dir in $ac_aux_dir_candidates
2354 do
2355 IFS=$as_save_IFS
2356 case $as_dir in #(((
2357 '') as_dir=./ ;;
2358 */) ;;
2359 *) as_dir=$as_dir/ ;;
2360 esac
2361 as_found=:
2362
2363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2364 ac_aux_dir_found=yes
2365 ac_install_sh=
2366 for ac_aux in $ac_aux_files
2367 do
2368 # As a special case, if "install-sh" is required, that requirement
2369 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2370 # and $ac_install_sh is set appropriately for whichever one is found.
2371 if test x"$ac_aux" = x"install-sh"
2372 then
2373 if test -f "${as_dir}install-sh"; then
2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2375 ac_install_sh="${as_dir}install-sh -c"
2376 elif test -f "${as_dir}install.sh"; then
2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2378 ac_install_sh="${as_dir}install.sh -c"
2379 elif test -f "${as_dir}shtool"; then
2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2381 ac_install_sh="${as_dir}shtool install -c"
2382 else
2383 ac_aux_dir_found=no
2384 if $ac_first_candidate; then
2385 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2386 else
2387 break
2388 fi
2389 fi
2390 else
2391 if test -f "${as_dir}${ac_aux}"; then
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2393 else
2394 ac_aux_dir_found=no
2395 if $ac_first_candidate; then
2396 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2397 else
2398 break
2399 fi
2400 fi
2401 fi
2402 done
2403 if test "$ac_aux_dir_found" = yes; then
2404 ac_aux_dir="$as_dir"
2405 break
2406 fi
2407 ac_first_candidate=false
2408
2409 as_found=false
2410 done
2411 IFS=$as_save_IFS
2412 if $as_found
2413 then :
2414
2415 else case e in #(
2416 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2417 esac
2418 fi
2419
2420
2421 # These three variables are undocumented and unsupported,
2422 # and are intended to be withdrawn in a future Autoconf release.
2423 # They can cause serious problems if a builder's source tree is in a directory
2424 # whose full name contains unusual characters.
2425 if test -f "${ac_aux_dir}config.guess"; then
2426 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2427 fi
2428 if test -f "${ac_aux_dir}config.sub"; then
2429 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2430 fi
2431 if test -f "$ac_aux_dir/configure"; then
2432 ac_configure="$SHELL ${ac_aux_dir}configure"
2433 fi
2434
2435 # Check that the precious variables saved in the cache have kept the same
2436 # value.
2437 ac_cache_corrupted=false
2438 for ac_var in $ac_precious_vars; do
2439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440 eval ac_new_set=\$ac_env_${ac_var}_set
2441 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442 eval ac_new_val=\$ac_env_${ac_var}_value
2443 case $ac_old_set,$ac_new_set in
2444 set,)
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2446 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,set)
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2450 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,);;
2453 *)
2454 if test "x$ac_old_val" != "x$ac_new_val"; then
2455 # differences in whitespace do not lead to failure.
2456 ac_old_val_w=`echo x $ac_old_val`
2457 ac_new_val_w=`echo x $ac_new_val`
2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2460 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2461 ac_cache_corrupted=:
2462 else
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2464 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2465 eval $ac_var=\$ac_old_val
2466 fi
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2468 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2470 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2471 fi;;
2472 esac
2473 # Pass precious variables to config.status.
2474 if test "$ac_new_set" = set; then
2475 case $ac_new_val in
2476 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 *) ac_arg=$ac_var=$ac_new_val ;;
2478 esac
2479 case " $ac_configure_args " in
2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2481 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482 esac
2483 fi
2484 done
2485 if $ac_cache_corrupted; then
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2487 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2490 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2491 and start over" "$LINENO" 5
2492 fi
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504 RELEASE_DATE="2024-12-04"
2505
2506 ac_config_headers="$ac_config_headers config.h"
2507
2508
2509 # Initialize Automake
2510 am__api_version='1.17'
2511
2512
2513
2514 # Find a good install program. We prefer a C program (faster),
2515 # so one script is as good as another. But avoid the broken or
2516 # incompatible versions:
2517 # SysV /etc/install, /usr/sbin/install
2518 # SunOS /usr/etc/install
2519 # IRIX /sbin/install
2520 # AIX /bin/install
2521 # AmigaOS /C/install, which installs bootblocks on floppy discs
2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525 # OS/2's system install, which has a completely different semantic
2526 # ./install, which can be erroneously created by make from ./install.sh.
2527 # Reject install programs that cannot install multiple files.
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2529 printf %s "checking for a BSD-compatible install... " >&6; }
2530 if test -z "$INSTALL"; then
2531 if test ${ac_cv_path_install+y}
2532 then :
2533 printf %s "(cached) " >&6
2534 else case e in #(
2535 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 case $as_dir in #(((
2540 '') as_dir=./ ;;
2541 */) ;;
2542 *) as_dir=$as_dir/ ;;
2543 esac
2544 # Account for fact that we put trailing slashes in our PATH walk.
2545 case $as_dir in #((
2546 ./ | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2560 :
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
2565 else
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
2578 fi
2579 fi
2580 done
2581 done
2582 ;;
2583 esac
2584
2585 done
2586 IFS=$as_save_IFS
2587
2588 rm -rf conftest.one conftest.two conftest.dir
2589 ;;
2590 esac
2591 fi
2592 if test ${ac_cv_path_install+y}; then
2593 INSTALL=$ac_cv_path_install
2594 else
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for INSTALL within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 INSTALL=$ac_install_sh
2600 fi
2601 fi
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603 printf "%s\n" "$INSTALL" >&6; }
2604
2605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606 # It thinks the first close brace ends the variable substitution.
2607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608
2609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610
2611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2614 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2615 if test ${am_cv_sleep_fractional_seconds+y}
2616 then :
2617 printf %s "(cached) " >&6
2618 else case e in #(
2619 e) if sleep 0.001 2>/dev/null
2620 then :
2621 am_cv_sleep_fractional_seconds=yes
2622 else case e in #(
2623 e) am_cv_sleep_fractional_seconds=no ;;
2624 esac
2625 fi
2626 ;;
2627 esac
2628 fi
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2630 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2631
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2633 printf %s "checking filesystem timestamp resolution... " >&6; }
2634 if test ${am_cv_filesystem_timestamp_resolution+y}
2635 then :
2636 printf %s "(cached) " >&6
2637 else case e in #(
2638 e) # Default to the worst case.
2639 am_cv_filesystem_timestamp_resolution=2
2640
2641 # Only try to go finer than 1 sec if sleep can do it.
2642 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2643 # - 1 sec is not much of a win compared to 2 sec, and
2644 # - it takes 2 seconds to perform the test whether 1 sec works.
2645 #
2646 # Instead, just use the default 2s on platforms that have 1s resolution,
2647 # accept the extra 1s delay when using $sleep in the Automake tests, in
2648 # exchange for not incurring the 2s delay for running the test for all
2649 # packages.
2650 #
2651 am_try_resolutions=
2652 if test "$am_cv_sleep_fractional_seconds" = yes; then
2653 # Even a millisecond often causes a bunch of false positives,
2654 # so just try a hundredth of a second. The time saved between .001 and
2655 # .01 is not terribly consequential.
2656 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2657 fi
2658
2659 # In order to catch current-generation FAT out, we must *modify* files
2660 # that already exist; the *creation* timestamp is finer. Use names
2661 # that make ls -t sort them differently when they have equal
2662 # timestamps than when they have distinct timestamps, keeping
2663 # in mind that ls -t prints the *newest* file first.
2664 rm -f conftest.ts?
2665 : > conftest.ts1
2666 : > conftest.ts2
2667 : > conftest.ts3
2668
2669 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2670 # clobber the current shell's arguments. (Outer-level square brackets
2671 # are removed by m4; they're present so that m4 does not expand
2672 # <dollar><star>; be careful, easy to get confused.)
2673 if (
2674 set X `ls -t conftest.ts[12]` &&
2675 {
2676 test "$*" != "X conftest.ts1 conftest.ts2" ||
2677 test "$*" != "X conftest.ts2 conftest.ts1";
2678 }
2679 ); then :; else
2680 # If neither matched, then we have a broken ls. This can happen
2681 # if, for instance, CONFIG_SHELL is bash and it inherits a
2682 # broken ls alias from the environment. This has actually
2683 # happened. Such a system could not be considered "sane".
2684 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2686 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2687 as_fn_error $? "ls -t produces unexpected output.
2688 Make sure there is not a broken ls alias in your environment.
2689 See 'config.log' for more details" "$LINENO" 5; }
2690 fi
2691
2692 for am_try_res in $am_try_resolutions; do
2693 # Any one fine-grained sleep might happen to cross the boundary
2694 # between two values of a coarser actual resolution, but if we do
2695 # two fine-grained sleeps in a row, at least one of them will fall
2696 # entirely within a coarse interval.
2697 echo alpha > conftest.ts1
2698 sleep $am_try_res
2699 echo beta > conftest.ts2
2700 sleep $am_try_res
2701 echo gamma > conftest.ts3
2702
2703 # We assume that 'ls -t' will make use of high-resolution
2704 # timestamps if the operating system supports them at all.
2705 if (set X `ls -t conftest.ts?` &&
2706 test "$2" = conftest.ts3 &&
2707 test "$3" = conftest.ts2 &&
2708 test "$4" = conftest.ts1); then
2709 #
2710 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2711 # because we don't need to test make.
2712 make_ok=true
2713 if test $am_try_res != 1; then
2714 # But if we've succeeded so far with a subsecond resolution, we
2715 # have one more thing to check: make. It can happen that
2716 # everything else supports the subsecond mtimes, but make doesn't;
2717 # notably on macOS, which ships make 3.81 from 2006 (the last one
2718 # released under GPLv2). https://bugs.gnu.org/68808
2719 #
2720 # We test $MAKE if it is defined in the environment, else "make".
2721 # It might get overridden later, but our hope is that in practice
2722 # it does not matter: it is the system "make" which is (by far)
2723 # the most likely to be broken, whereas if the user overrides it,
2724 # probably they did so with a better, or at least not worse, make.
2725 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2726 #
2727 # Create a Makefile (real tab character here):
2728 rm -f conftest.mk
2729 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2730 echo ' touch conftest.ts2' >>conftest.mk
2731 #
2732 # Now, running
2733 # touch conftest.ts1; touch conftest.ts2; make
2734 # should touch ts1 because ts2 is newer. This could happen by luck,
2735 # but most often, it will fail if make's support is insufficient. So
2736 # test for several consecutive successes.
2737 #
2738 # (We reuse conftest.ts[12] because we still want to modify existing
2739 # files, not create new ones, per above.)
2740 n=0
2741 make=${MAKE-make}
2742 until test $n -eq 3; do
2743 echo one > conftest.ts1
2744 sleep $am_try_res
2745 echo two > conftest.ts2 # ts2 should now be newer than ts1
2746 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2747 make_ok=false
2748 break # out of $n loop
2749 fi
2750 n=`expr $n + 1`
2751 done
2752 fi
2753 #
2754 if $make_ok; then
2755 # Everything we know to check worked out, so call this resolution good.
2756 am_cv_filesystem_timestamp_resolution=$am_try_res
2757 break # out of $am_try_res loop
2758 fi
2759 # Otherwise, we'll go on to check the next resolution.
2760 fi
2761 done
2762 rm -f conftest.ts?
2763 # (end _am_filesystem_timestamp_resolution)
2764 ;;
2765 esac
2766 fi
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2768 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2769
2770 # This check should not be cached, as it may vary across builds of
2771 # different projects.
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2773 printf %s "checking whether build environment is sane... " >&6; }
2774 # Reject unsafe characters in $srcdir or the absolute working directory
2775 # name. Accept space and tab only in the latter.
2776 am_lf='
2777 '
2778 case `pwd` in
2779 *[\\\"\#\$\&\'\`$am_lf]*)
2780 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2781 esac
2782 case $srcdir in
2783 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2784 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2785 esac
2786
2787 # Do 'set' in a subshell so we don't clobber the current shell's
2788 # arguments. Must try -L first in case configure is actually a
2789 # symlink; some systems play weird games with the mod time of symlinks
2790 # (eg FreeBSD returns the mod time of the symlink's containing
2791 # directory).
2792 am_build_env_is_sane=no
2793 am_has_slept=no
2794 rm -f conftest.file
2795 for am_try in 1 2; do
2796 echo "timestamp, slept: $am_has_slept" > conftest.file
2797 if (
2798 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2799 if test "$*" = "X"; then
2800 # -L didn't work.
2801 set X `ls -t "$srcdir/configure" conftest.file`
2802 fi
2803 test "$2" = conftest.file
2804 ); then
2805 am_build_env_is_sane=yes
2806 break
2807 fi
2808 # Just in case.
2809 sleep "$am_cv_filesystem_timestamp_resolution"
2810 am_has_slept=yes
2811 done
2812
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2814 printf "%s\n" "$am_build_env_is_sane" >&6; }
2815 if test "$am_build_env_is_sane" = no; then
2816 as_fn_error $? "newly created file is older than distributed files!
2817 Check your system clock" "$LINENO" 5
2818 fi
2819
2820 # If we didn't sleep, we still need to ensure time stamps of config.status and
2821 # generated files are strictly newer.
2822 am_sleep_pid=
2823 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2824 then :
2825
2826 else case e in #(
2827 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2828 am_sleep_pid=$!
2829 ;;
2830 esac
2831 fi
2832
2833 rm -f conftest.file
2834
2835 test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was 's,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2844
2845
2846 # Expand $ac_aux_dir to an absolute path.
2847 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2848
2849
2850 if test x"${MISSING+set}" != xset; then
2851 MISSING="\${SHELL} '$am_aux_dir/missing'"
2852 fi
2853 # Use eval to expand $SHELL
2854 if eval "$MISSING --is-lightweight"; then
2855 am_missing_run="$MISSING "
2856 else
2857 am_missing_run=
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2859 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2860 fi
2861
2862 if test x"${install_sh+set}" != xset; then
2863 case $am_aux_dir in
2864 *\ * | *\ *)
2865 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2866 *)
2867 install_sh="\${SHELL} $am_aux_dir/install-sh"
2868 esac
2869 fi
2870
2871 # Installed binaries are usually stripped using 'strip' when the user
2872 # run "make install-strip". However 'strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the 'STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 printf %s "checking for $ac_word... " >&6; }
2881 if test ${ac_cv_prog_STRIP+y}
2882 then :
2883 printf %s "(cached) " >&6
2884 else case e in #(
2885 e) if test -n "$STRIP"; then
2886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 case $as_dir in #(((
2893 '') as_dir=./ ;;
2894 */) ;;
2895 *) as_dir=$as_dir/ ;;
2896 esac
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi ;;
2908 esac
2909 fi
2910 STRIP=$ac_cv_prog_STRIP
2911 if test -n "$STRIP"; then
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2913 printf "%s\n" "$STRIP" >&6; }
2914 else
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 printf "%s\n" "no" >&6; }
2917 fi
2918
2919
2920 fi
2921 if test -z "$ac_cv_prog_STRIP"; then
2922 ac_ct_STRIP=$STRIP
2923 # Extract the first word of "strip", so it can be a program name with args.
2924 set dummy strip; ac_word=$2
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 printf %s "checking for $ac_word... " >&6; }
2927 if test ${ac_cv_prog_ac_ct_STRIP+y}
2928 then :
2929 printf %s "(cached) " >&6
2930 else case e in #(
2931 e) if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 case $as_dir in #(((
2939 '') as_dir=./ ;;
2940 */) ;;
2941 *) as_dir=$as_dir/ ;;
2942 esac
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_STRIP="strip"
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi ;;
2954 esac
2955 fi
2956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2957 if test -n "$ac_ct_STRIP"; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2959 printf "%s\n" "$ac_ct_STRIP" >&6; }
2960 else
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 printf "%s\n" "no" >&6; }
2963 fi
2964
2965 if test "x$ac_ct_STRIP" = x; then
2966 STRIP=":"
2967 else
2968 case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974 STRIP=$ac_ct_STRIP
2975 fi
2976 else
2977 STRIP="$ac_cv_prog_STRIP"
2978 fi
2979
2980 fi
2981 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2982
2983
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2985 printf %s "checking for a race-free mkdir -p... " >&6; }
2986 if test -z "$MKDIR_P"; then
2987 if test ${ac_cv_path_mkdir+y}
2988 then :
2989 printf %s "(cached) " >&6
2990 else case e in #(
2991 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2993 do
2994 IFS=$as_save_IFS
2995 case $as_dir in #(((
2996 '') as_dir=./ ;;
2997 */) ;;
2998 *) as_dir=$as_dir/ ;;
2999 esac
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3003 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir ('*'coreutils) '* | \
3005 *'BusyBox '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3008 break 3;;
3009 esac
3010 done
3011 done
3012 done
3013 IFS=$as_save_IFS
3014 ;;
3015 esac
3016 fi
3017
3018 test -d ./--version && rmdir ./--version
3019 if test ${ac_cv_path_mkdir+y}; then
3020 MKDIR_P="$ac_cv_path_mkdir -p"
3021 else
3022 # As a last resort, use plain mkdir -p,
3023 # in the hope it doesn't have the bugs of ancient mkdir.
3024 MKDIR_P='mkdir -p'
3025 fi
3026 fi
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3028 printf "%s\n" "$MKDIR_P" >&6; }
3029
3030 for ac_prog in gawk mawk nawk awk
3031 do
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 printf %s "checking for $ac_word... " >&6; }
3036 if test ${ac_cv_prog_AWK+y}
3037 then :
3038 printf %s "(cached) " >&6
3039 else case e in #(
3040 e) if test -n "$AWK"; then
3041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 case $as_dir in #(((
3048 '') as_dir=./ ;;
3049 */) ;;
3050 *) as_dir=$as_dir/ ;;
3051 esac
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_AWK="$ac_prog"
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi ;;
3063 esac
3064 fi
3065 AWK=$ac_cv_prog_AWK
3066 if test -n "$AWK"; then
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3068 printf "%s\n" "$AWK" >&6; }
3069 else
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 fi
3073
3074
3075 test -n "$AWK" && break
3076 done
3077
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3079 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3080 set x ${MAKE-make}
3081 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3082 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3083 then :
3084 printf %s "(cached) " >&6
3085 else case e in #(
3086 e) cat >conftest.make <<\_ACEOF
3087 SHELL = /bin/sh
3088 all:
3089 @echo '@@@%%%=$(MAKE)=@@@%%%'
3090 _ACEOF
3091 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3092 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3093 *@@@%%%=?*=@@@%%%*)
3094 eval ac_cv_prog_make_${ac_make}_set=yes;;
3095 *)
3096 eval ac_cv_prog_make_${ac_make}_set=no;;
3097 esac
3098 rm -f conftest.make ;;
3099 esac
3100 fi
3101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103 printf "%s\n" "yes" >&6; }
3104 SET_MAKE=
3105 else
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 printf "%s\n" "no" >&6; }
3108 SET_MAKE="MAKE=${MAKE-make}"
3109 fi
3110
3111 rm -rf .tst 2>/dev/null
3112 mkdir .tst 2>/dev/null
3113 if test -d .tst; then
3114 am__leading_dot=.
3115 else
3116 am__leading_dot=_
3117 fi
3118 rmdir .tst 2>/dev/null
3119
3120 AM_DEFAULT_VERBOSITY=1
3121 # Check whether --enable-silent-rules was given.
3122 if test ${enable_silent_rules+y}
3123 then :
3124 enableval=$enable_silent_rules;
3125 fi
3126
3127 am_make=${MAKE-make}
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3129 printf %s "checking whether $am_make supports nested variables... " >&6; }
3130 if test ${am_cv_make_support_nested_variables+y}
3131 then :
3132 printf %s "(cached) " >&6
3133 else case e in #(
3134 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3135 BAR0=false
3136 BAR1=true
3137 V=1
3138 am__doit:
3139 @$(TRUE)
3140 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3141 am_cv_make_support_nested_variables=yes
3142 else
3143 am_cv_make_support_nested_variables=no
3144 fi ;;
3145 esac
3146 fi
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3149 AM_BACKSLASH='\'
3150
3151 am__rm_f_notfound=
3152 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3153 then :
3154
3155 else case e in #(
3156 e) am__rm_f_notfound='""' ;;
3157 esac
3158 fi
3159
3160
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3162 printf %s "checking xargs -n works... " >&6; }
3163 if test ${am_cv_xargs_n_works+y}
3164 then :
3165 printf %s "(cached) " >&6
3166 else case e in #(
3167 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3168 3"
3169 then :
3170 am_cv_xargs_n_works=yes
3171 else case e in #(
3172 e) am_cv_xargs_n_works=no ;;
3173 esac
3174 fi ;;
3175 esac
3176 fi
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3178 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3179 if test "$am_cv_xargs_n_works" = yes
3180 then :
3181 am__xargs_n='xargs -n'
3182 else case e in #(
3183 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3184 ;;
3185 esac
3186 fi
3187
3188 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3189 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3190 # is not polluted with repeated "-I."
3191 am__isrc=' -I$(srcdir)'
3192 # test to see if srcdir already configured
3193 if test -f $srcdir/config.status; then
3194 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3195 fi
3196 fi
3197
3198 # test whether we have cygpath
3199 if test -z "$CYGPATH_W"; then
3200 if (cygpath --version) >/dev/null 2>/dev/null; then
3201 CYGPATH_W='cygpath -w'
3202 else
3203 CYGPATH_W=echo
3204 fi
3205 fi
3206
3207
3208 # Define the identity of the package.
3209 PACKAGE='transset'
3210 VERSION='1.0.4'
3211
3212
3213 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3214
3215
3216 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3217
3218 # Some tools Automake needs.
3219
3220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
3234 # For better backward compatibility. To be removed once Automake 1.9.x
3235 # dies out for good. For more background, see:
3236 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238 mkdir_p='$(MKDIR_P)'
3239
3240 # We need awk for the "check" target (and possibly the TAP driver). The
3241 # system "awk" is bad on some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3244 AMTAR='$${TAR-tar}'
3245
3246
3247 # We'll loop over all known methods to create a tar archive until one works.
3248 _am_tools='gnutar pax cpio none'
3249
3250 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3251
3252
3253
3254
3255
3256 # Variables for tags utilities; see am/tags.am
3257 if test -z "$CTAGS"; then
3258 CTAGS=ctags
3259 fi
3260
3261 if test -z "$ETAGS"; then
3262 ETAGS=etags
3263 fi
3264
3265 if test -z "$CSCOPE"; then
3266 CSCOPE=cscope
3267 fi
3268
3269
3270
3271
3272
3273
3274
3275
3276 # Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297 DEPDIR="${am__leading_dot}deps"
3298
3299 ac_config_commands="$ac_config_commands depfiles"
3300
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3302 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3303 cat > confinc.mk << 'END'
3304 am__doit:
3305 @echo this is the am__doit target >confinc.out
3306 .PHONY: am__doit
3307 END
3308 am__include="#"
3309 am__quote=
3310 # BSD make does it like this.
3311 echo '.include "confinc.mk" # ignored' > confmf.BSD
3312 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3313 echo 'include confinc.mk # ignored' > confmf.GNU
3314 _am_result=no
3315 for s in GNU BSD; do
3316 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3317 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }
3321 case $?:`cat confinc.out 2>/dev/null` in #(
3322 '0:this is the am__doit target') :
3323 case $s in #(
3324 BSD) :
3325 am__include='.include' am__quote='"' ;; #(
3326 *) :
3327 am__include='include' am__quote='' ;;
3328 esac ;; #(
3329 *) :
3330 ;;
3331 esac
3332 if test "$am__include" != "#"; then
3333 _am_result="yes ($s style)"
3334 break
3335 fi
3336 done
3337 rm -f confinc.* confmf.*
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3339 printf "%s\n" "${_am_result}" >&6; }
3340
3341 # Check whether --enable-dependency-tracking was given.
3342 if test ${enable_dependency_tracking+y}
3343 then :
3344 enableval=$enable_dependency_tracking;
3345 fi
3346
3347 if test "x$enable_dependency_tracking" != xno; then
3348 am_depcomp="$ac_aux_dir/depcomp"
3349 AMDEPBACKSLASH='\'
3350 am__nodep='_no'
3351 fi
3352 if test "x$enable_dependency_tracking" != xno; then
3353 AMDEP_TRUE=
3354 AMDEP_FALSE='#'
3355 else
3356 AMDEP_TRUE='#'
3357 AMDEP_FALSE=
3358 fi
3359
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 printf %s "checking for $ac_word... " >&6; }
3371 if test ${ac_cv_prog_CC+y}
3372 then :
3373 printf %s "(cached) " >&6
3374 else case e in #(
3375 e) if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 case $as_dir in #(((
3383 '') as_dir=./ ;;
3384 */) ;;
3385 *) as_dir=$as_dir/ ;;
3386 esac
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi ;;
3398 esac
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 printf "%s\n" "$CC" >&6; }
3404 else
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 printf "%s\n" "no" >&6; }
3407 fi
3408
3409
3410 fi
3411 if test -z "$ac_cv_prog_CC"; then
3412 ac_ct_CC=$CC
3413 # Extract the first word of "gcc", so it can be a program name with args.
3414 set dummy gcc; ac_word=$2
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 printf %s "checking for $ac_word... " >&6; }
3417 if test ${ac_cv_prog_ac_ct_CC+y}
3418 then :
3419 printf %s "(cached) " >&6
3420 else case e in #(
3421 e) if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 case $as_dir in #(((
3429 '') as_dir=./ ;;
3430 */) ;;
3431 *) as_dir=$as_dir/ ;;
3432 esac
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_ac_ct_CC="gcc"
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi ;;
3444 esac
3445 fi
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 printf "%s\n" "$ac_ct_CC" >&6; }
3450 else
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 printf "%s\n" "no" >&6; }
3453 fi
3454
3455 if test "x$ac_ct_CC" = x; then
3456 CC=""
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459 yes:)
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned=yes ;;
3463 esac
3464 CC=$ac_ct_CC
3465 fi
3466 else
3467 CC="$ac_cv_prog_CC"
3468 fi
3469
3470 if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3473 set dummy ${ac_tool_prefix}cc; ac_word=$2
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 printf %s "checking for $ac_word... " >&6; }
3476 if test ${ac_cv_prog_CC+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else case e in #(
3480 e) if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 case $as_dir in #(((
3488 '') as_dir=./ ;;
3489 */) ;;
3490 *) as_dir=$as_dir/ ;;
3491 esac
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC="${ac_tool_prefix}cc"
3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi ;;
3503 esac
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 printf "%s\n" "$CC" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 fi
3517 if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519 set dummy cc; ac_word=$2
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 printf %s "checking for $ac_word... " >&6; }
3522 if test ${ac_cv_prog_CC+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else case e in #(
3526 e) if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 ac_prog_rejected=no
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 case $as_dir in #(((
3535 '') as_dir=./ ;;
3536 */) ;;
3537 *) as_dir=$as_dir/ ;;
3538 esac
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected=yes
3543 continue
3544 fi
3545 ac_cv_prog_CC="cc"
3546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy $ac_cv_prog_CC
3556 shift
3557 if test $# != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3561 shift
3562 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3563 fi
3564 fi
3565 fi ;;
3566 esac
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 printf "%s\n" "$CC" >&6; }
3572 else
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 for ac_prog in cl.exe
3582 do
3583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 printf %s "checking for $ac_word... " >&6; }
3587 if test ${ac_cv_prog_CC+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 case $as_dir in #(((
3599 '') as_dir=./ ;;
3600 */) ;;
3601 *) as_dir=$as_dir/ ;;
3602 esac
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi ;;
3614 esac
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 printf "%s\n" "$CC" >&6; }
3620 else
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 printf "%s\n" "no" >&6; }
3623 fi
3624
3625
3626 test -n "$CC" && break
3627 done
3628 fi
3629 if test -z "$CC"; then
3630 ac_ct_CC=$CC
3631 for ac_prog in cl.exe
3632 do
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 printf %s "checking for $ac_word... " >&6; }
3637 if test ${ac_cv_prog_ac_ct_CC+y}
3638 then :
3639 printf %s "(cached) " >&6
3640 else case e in #(
3641 e) if test -n "$ac_ct_CC"; then
3642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647 IFS=$as_save_IFS
3648 case $as_dir in #(((
3649 '') as_dir=./ ;;
3650 */) ;;
3651 *) as_dir=$as_dir/ ;;
3652 esac
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_ac_ct_CC="$ac_prog"
3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi ;;
3664 esac
3665 fi
3666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3667 if test -n "$ac_ct_CC"; then
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3669 printf "%s\n" "$ac_ct_CC" >&6; }
3670 else
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 printf "%s\n" "no" >&6; }
3673 fi
3674
3675
3676 test -n "$ac_ct_CC" && break
3677 done
3678
3679 if test "x$ac_ct_CC" = x; then
3680 CC=""
3681 else
3682 case $cross_compiling:$ac_tool_warned in
3683 yes:)
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3687 esac
3688 CC=$ac_ct_CC
3689 fi
3690 fi
3691
3692 fi
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}clang; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_CC+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else case e in #(
3703 e) if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 case $as_dir in #(((
3711 '') as_dir=./ ;;
3712 */) ;;
3713 *) as_dir=$as_dir/ ;;
3714 esac
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="${ac_tool_prefix}clang"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi ;;
3726 esac
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 printf "%s\n" "$CC" >&6; }
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3735 fi
3736
3737
3738 fi
3739 if test -z "$ac_cv_prog_CC"; then
3740 ac_ct_CC=$CC
3741 # Extract the first word of "clang", so it can be a program name with args.
3742 set dummy clang; ac_word=$2
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 printf %s "checking for $ac_word... " >&6; }
3745 if test ${ac_cv_prog_ac_ct_CC+y}
3746 then :
3747 printf %s "(cached) " >&6
3748 else case e in #(
3749 e) if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 case $as_dir in #(((
3757 '') as_dir=./ ;;
3758 */) ;;
3759 *) as_dir=$as_dir/ ;;
3760 esac
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_ac_ct_CC="clang"
3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767 done
3768 done
3769 IFS=$as_save_IFS
3770
3771 fi ;;
3772 esac
3773 fi
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 printf "%s\n" "$ac_ct_CC" >&6; }
3778 else
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 printf "%s\n" "no" >&6; }
3781 fi
3782
3783 if test "x$ac_ct_CC" = x; then
3784 CC=""
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CC=$ac_ct_CC
3793 fi
3794 else
3795 CC="$ac_cv_prog_CC"
3796 fi
3797
3798 fi
3799
3800
3801 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3802 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3803 as_fn_error $? "no acceptable C compiler found in \$PATH
3804 See 'config.log' for more details" "$LINENO" 5; }
3805
3806 # Provide some information about the compiler.
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3808 set X $ac_compile
3809 ac_compiler=$2
3810 for ac_option in --version -v -V -qversion -version; do
3811 { { ac_try="$ac_compiler $ac_option >&5"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 printf "%s\n" "$ac_try_echo"; } >&5
3818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 ac_status=$?
3820 if test -s conftest.err; then
3821 sed '10a\
3822 ... rest of stderr output deleted ...
3823 10q' conftest.err >conftest.er1
3824 cat conftest.er1 >&5
3825 fi
3826 rm -f conftest.er1 conftest.err
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3829 done
3830
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main (void)
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 ac_clean_files_save=$ac_clean_files
3843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3844 # Try to create an executable without -o first, disregard a.out.
3845 # It will help us diagnose broken compilers, and finding out an intuition
3846 # of exeext.
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3848 printf %s "checking whether the C compiler works... " >&6; }
3849 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3850
3851 # The possible output files:
3852 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3853
3854 ac_rmfiles=
3855 for ac_file in $ac_files
3856 do
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3860 esac
3861 done
3862 rm -f $ac_rmfiles
3863
3864 if { { ac_try="$ac_link_default"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 printf "%s\n" "$ac_try_echo"; } >&5
3871 (eval "$ac_link_default") 2>&5
3872 ac_status=$?
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }
3875 then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3877 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3879 # so that the user can short-circuit this test for compilers unknown to
3880 # Autoconf.
3881 for ac_file in $ac_files ''
3882 do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886 ;;
3887 [ab].out )
3888 # We found the default executable, but exeext='' is most
3889 # certainly right.
3890 break;;
3891 *.* )
3892 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3893 then :; else
3894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895 fi
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an '-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3900 # actually working.
3901 break;;
3902 * )
3903 break;;
3904 esac
3905 done
3906 test "$ac_cv_exeext" = no && ac_cv_exeext=
3907
3908 else case e in #(
3909 e) ac_file='' ;;
3910 esac
3911 fi
3912 if test -z "$ac_file"
3913 then :
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 printf "%s\n" "no" >&6; }
3916 printf "%s\n" "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3920 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3921 as_fn_error 77 "C compiler cannot create executables
3922 See 'config.log' for more details" "$LINENO" 5; }
3923 else case e in #(
3924 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 printf "%s\n" "yes" >&6; } ;;
3926 esac
3927 fi
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929 printf %s "checking for C compiler default output file name... " >&6; }
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931 printf "%s\n" "$ac_file" >&6; }
3932 ac_exeext=$ac_cv_exeext
3933
3934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935 ac_clean_files=$ac_clean_files_save
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937 printf %s "checking for suffix of executables... " >&6; }
3938 if { { ac_try="$ac_link"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3946 ac_status=$?
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }
3949 then :
3950 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3951 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3952 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3953 # 'rm'.
3954 for ac_file in conftest.exe conftest conftest.*; do
3955 test -f "$ac_file" || continue
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 break;;
3960 * ) break;;
3961 esac
3962 done
3963 else case e in #(
3964 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3966 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3967 See 'config.log' for more details" "$LINENO" 5; } ;;
3968 esac
3969 fi
3970 rm -f conftest conftest$ac_cv_exeext
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3972 printf "%s\n" "$ac_cv_exeext" >&6; }
3973
3974 rm -f conftest.$ac_ext
3975 EXEEXT=$ac_cv_exeext
3976 ac_exeext=$EXEEXT
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <stdio.h>
3980 int
3981 main (void)
3982 {
3983 FILE *f = fopen ("conftest.out", "w");
3984 if (!f)
3985 return 1;
3986 return ferror (f) || fclose (f) != 0;
3987
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 ac_clean_files="$ac_clean_files conftest.out"
3993 # Check that the compiler produces executables we can run. If not, either
3994 # the compiler is broken, or we cross compile.
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3996 printf %s "checking whether we are cross compiling... " >&6; }
3997 if test "$cross_compiling" != yes; then
3998 { { ac_try="$ac_link"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }
4009 if { ac_try='./conftest$ac_cv_exeext'
4010 { { case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 printf "%s\n" "$ac_try_echo"; } >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }; }; then
4020 cross_compiling=no
4021 else
4022 if test "$cross_compiling" = maybe; then
4023 cross_compiling=yes
4024 else
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4027 as_fn_error 77 "cannot run C compiled programs.
4028 If you meant to cross compile, use '--host'.
4029 See 'config.log' for more details" "$LINENO" 5; }
4030 fi
4031 fi
4032 fi
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4034 printf "%s\n" "$cross_compiling" >&6; }
4035
4036 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4037 conftest.o conftest.obj conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040 printf %s "checking for suffix of object files... " >&6; }
4041 if test ${ac_cv_objext+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else case e in #(
4045 e) 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 rm -f conftest.o conftest.obj
4057 if { { ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 printf "%s\n" "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
4065 ac_status=$?
4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4068 then :
4069 for ac_file in conftest.o conftest.obj conftest.*; do
4070 test -f "$ac_file" || continue;
4071 case $ac_file in
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4074 break;;
4075 esac
4076 done
4077 else case e in #(
4078 e) printf "%s\n" "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4082 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4083 as_fn_error $? "cannot compute suffix of object files: cannot compile
4084 See 'config.log' for more details" "$LINENO" 5; } ;;
4085 esac
4086 fi
4087 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4088 esac
4089 fi
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4091 printf "%s\n" "$ac_cv_objext" >&6; }
4092 OBJEXT=$ac_cv_objext
4093 ac_objext=$OBJEXT
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4095 printf %s "checking whether the compiler supports GNU C... " >&6; }
4096 if test ${ac_cv_c_compiler_gnu+y}
4097 then :
4098 printf %s "(cached) " >&6
4099 else case e in #(
4100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main (void)
4105 {
4106 #ifndef __GNUC__
4107 choke me
4108 #endif
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116 ac_compiler_gnu=yes
4117 else case e in #(
4118 e) ac_compiler_gnu=no ;;
4119 esac
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4123 ;;
4124 esac
4125 fi
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130 if test $ac_compiler_gnu = yes; then
4131 GCC=yes
4132 else
4133 GCC=
4134 fi
4135 ac_test_CFLAGS=${CFLAGS+y}
4136 ac_save_CFLAGS=$CFLAGS
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 printf %s "checking whether $CC accepts -g... " >&6; }
4139 if test ${ac_cv_prog_cc_g+y}
4140 then :
4141 printf %s "(cached) " >&6
4142 else case e in #(
4143 e) ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 ac_cv_prog_cc_g=no
4146 CFLAGS="-g"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main (void)
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"
4159 then :
4160 ac_cv_prog_cc_g=yes
4161 else case e in #(
4162 e) CFLAGS=""
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main (void)
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"
4175 then :
4176
4177 else case e in #(
4178 e) ac_c_werror_flag=$ac_save_c_werror_flag
4179 CFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main (void)
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"
4192 then :
4193 ac_cv_prog_cc_g=yes
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4196 esac
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4199 esac
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4203 esac
4204 fi
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4207 if test $ac_test_CFLAGS; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
4221 fi
4222 ac_prog_cc_stdc=no
4223 if test x$ac_prog_cc_stdc = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4226 printf %s "checking for $CC option to enable C11 features... " >&6; }
4227 if test ${ac_cv_prog_cc_c11+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else case e in #(
4231 e) ac_cv_prog_cc_c11=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 $ac_c_conftest_c11_program
4236 _ACEOF
4237 for ac_arg in '' -std=gnu11
4238 do
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cc_c11=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam
4245 test "x$ac_cv_prog_cc_c11" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC ;;
4249 esac
4250 fi
4251
4252 if test "x$ac_cv_prog_cc_c11" = xno
4253 then :
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255 printf "%s\n" "unsupported" >&6; }
4256 else case e in #(
4257 e) if test "x$ac_cv_prog_cc_c11" = x
4258 then :
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4260 printf "%s\n" "none needed" >&6; }
4261 else case e in #(
4262 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4263 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4264 CC="$CC $ac_cv_prog_cc_c11" ;;
4265 esac
4266 fi
4267 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4268 ac_prog_cc_stdc=c11 ;;
4269 esac
4270 fi
4271 fi
4272 if test x$ac_prog_cc_stdc = xno
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4275 printf %s "checking for $CC option to enable C99 features... " >&6; }
4276 if test ${ac_cv_prog_cc_c99+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else case e in #(
4280 e) ac_cv_prog_cc_c99=no
4281 ac_save_CC=$CC
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 $ac_c_conftest_c99_program
4285 _ACEOF
4286 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4287 do
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cc_c99=$ac_arg
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam
4294 test "x$ac_cv_prog_cc_c99" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC ;;
4298 esac
4299 fi
4300
4301 if test "x$ac_cv_prog_cc_c99" = xno
4302 then :
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 printf "%s\n" "unsupported" >&6; }
4305 else case e in #(
4306 e) if test "x$ac_cv_prog_cc_c99" = x
4307 then :
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309 printf "%s\n" "none needed" >&6; }
4310 else case e in #(
4311 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4312 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4313 CC="$CC $ac_cv_prog_cc_c99" ;;
4314 esac
4315 fi
4316 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4317 ac_prog_cc_stdc=c99 ;;
4318 esac
4319 fi
4320 fi
4321 if test x$ac_prog_cc_stdc = xno
4322 then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4324 printf %s "checking for $CC option to enable C89 features... " >&6; }
4325 if test ${ac_cv_prog_cc_c89+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else case e in #(
4329 e) ac_cv_prog_cc_c89=no
4330 ac_save_CC=$CC
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 $ac_c_conftest_c89_program
4334 _ACEOF
4335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336 do
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"
4339 then :
4340 ac_cv_prog_cc_c89=$ac_arg
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam
4343 test "x$ac_cv_prog_cc_c89" != "xno" && break
4344 done
4345 rm -f conftest.$ac_ext
4346 CC=$ac_save_CC ;;
4347 esac
4348 fi
4349
4350 if test "x$ac_cv_prog_cc_c89" = xno
4351 then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4353 printf "%s\n" "unsupported" >&6; }
4354 else case e in #(
4355 e) if test "x$ac_cv_prog_cc_c89" = x
4356 then :
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358 printf "%s\n" "none needed" >&6; }
4359 else case e in #(
4360 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4361 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4362 CC="$CC $ac_cv_prog_cc_c89" ;;
4363 esac
4364 fi
4365 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4366 ac_prog_cc_stdc=c89 ;;
4367 esac
4368 fi
4369 fi
4370
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4384 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4385 if test ${am_cv_prog_cc_c_o+y}
4386 then :
4387 printf %s "(cached) " >&6
4388 else case e in #(
4389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 int
4393 main (void)
4394 {
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 # Make sure it works both with $CC and with simple cc.
4401 # Following AC_PROG_CC_C_O, we do the test twice because some
4402 # compilers refuse to overwrite an existing .o file with -o,
4403 # though they will create one.
4404 am_cv_prog_cc_c_o=yes
4405 for am_i in 1 2; do
4406 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4407 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } \
4411 && test -f conftest2.$ac_objext; then
4412 : OK
4413 else
4414 am_cv_prog_cc_c_o=no
4415 break
4416 fi
4417 done
4418 rm -f core conftest*
4419 unset am_i ;;
4420 esac
4421 fi
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4423 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4424 if test "$am_cv_prog_cc_c_o" != yes; then
4425 # Losing compiler, so override with the script.
4426 # FIXME: It is wrong to rewrite CC.
4427 # But if we don't then we get into trouble of one sort or another.
4428 # A longer-term fix would be to have automake use am__CC in this case,
4429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4430 CC="$am_aux_dir/compile $CC"
4431 fi
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438
4439 depcc="$CC" am_compiler_list=
4440
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442 printf %s "checking dependency style of $depcc... " >&6; }
4443 if test ${am_cv_CC_dependencies_compiler_type+y}
4444 then :
4445 printf %s "(cached) " >&6
4446 else case e in #(
4447 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448 # We make a subdir and do the tests there. Otherwise we can end up
4449 # making bogus files that we don't know about and never remove. For
4450 # instance it was reported that on HP-UX the gcc test will end up
4451 # making a dummy file named 'D' -- because '-MD' means "put the output
4452 # in D".
4453 rm -rf conftest.dir
4454 mkdir conftest.dir
4455 # Copy depcomp to subdir because otherwise we won't find it if we're
4456 # using a relative directory.
4457 cp "$am_depcomp" conftest.dir
4458 cd conftest.dir
4459 # We will build objects and dependencies in a subdirectory because
4460 # it helps to detect inapplicable dependency modes. For instance
4461 # both Tru64's cc and ICC support -MD to output dependencies as a
4462 # side effect of compilation, but ICC will put the dependencies in
4463 # the current directory while Tru64 will put them in the object
4464 # directory.
4465 mkdir sub
4466
4467 am_cv_CC_dependencies_compiler_type=none
4468 if test "$am_compiler_list" = ""; then
4469 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4470 fi
4471 am__universal=false
4472 case " $depcc " in #(
4473 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4474 esac
4475
4476 for depmode in $am_compiler_list; do
4477 # Setup a source with many dependencies, because some compilers
4478 # like to wrap large dependency lists on column 80 (with \), and
4479 # we should not choose a depcomp mode which is confused by this.
4480 #
4481 # We need to recreate these files for each test, as the compiler may
4482 # overwrite some of them when testing with obscure command lines.
4483 # This happens at least with the AIX C compiler.
4484 : > sub/conftest.c
4485 for i in 1 2 3 4 5 6; do
4486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4487 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4488 # Solaris 10 /bin/sh.
4489 echo '/* dummy */' > sub/conftst$i.h
4490 done
4491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492
4493 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4494 # mode. It turns out that the SunPro C++ compiler does not properly
4495 # handle '-M -o', and we need to detect this. Also, some Intel
4496 # versions had trouble with output in subdirs.
4497 am__obj=sub/conftest.${OBJEXT-o}
4498 am__minus_obj="-o $am__obj"
4499 case $depmode in
4500 gcc)
4501 # This depmode causes a compiler race in universal mode.
4502 test "$am__universal" = false || continue
4503 ;;
4504 nosideeffect)
4505 # After this tag, mechanisms are not by side-effect, so they'll
4506 # only be used when explicitly requested.
4507 if test "x$enable_dependency_tracking" = xyes; then
4508 continue
4509 else
4510 break
4511 fi
4512 ;;
4513 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4514 # This compiler won't grok '-c -o', but also, the minuso test has
4515 # not run yet. These depmodes are late enough in the game, and
4516 # so weak that their functioning should not be impacted.
4517 am__obj=conftest.${OBJEXT-o}
4518 am__minus_obj=
4519 ;;
4520 none) break ;;
4521 esac
4522 if depmode=$depmode \
4523 source=sub/conftest.c object=$am__obj \
4524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4525 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4526 >/dev/null 2>conftest.err &&
4527 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4529 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4531 # icc doesn't choke on unknown options, it will just issue warnings
4532 # or remarks (even with -Werror). So we grep stderr for any message
4533 # that says an option was ignored or not supported.
4534 # When given -MP, icc 7.0 and 7.1 complain thus:
4535 # icc: Command line warning: ignoring option '-M'; no argument required
4536 # The diagnosis changed in icc 8.0:
4537 # icc: Command line remark: option '-MP' not supported
4538 if (grep 'ignoring option' conftest.err ||
4539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4540 am_cv_CC_dependencies_compiler_type=$depmode
4541 break
4542 fi
4543 fi
4544 done
4545
4546 cd ..
4547 rm -rf conftest.dir
4548 else
4549 am_cv_CC_dependencies_compiler_type=none
4550 fi
4551 ;;
4552 esac
4553 fi
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4555 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4557
4558 if
4559 test "x$enable_dependency_tracking" != xno \
4560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4561 am__fastdepCC_TRUE=
4562 am__fastdepCC_FALSE='#'
4563 else
4564 am__fastdepCC_TRUE='#'
4565 am__fastdepCC_FALSE=
4566 fi
4567
4568
4569
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4571 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4572 if test ${ac_cv_c_undeclared_builtin_options+y}
4573 then :
4574 printf %s "(cached) " >&6
4575 else case e in #(
4576 e) ac_save_CFLAGS=$CFLAGS
4577 ac_cv_c_undeclared_builtin_options='cannot detect'
4578 for ac_arg in '' -fno-builtin; do
4579 CFLAGS="$ac_save_CFLAGS $ac_arg"
4580 # This test program should *not* compile successfully.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583
4584 int
4585 main (void)
4586 {
4587 (void) strchr;
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"
4593 then :
4594
4595 else case e in #(
4596 e) # This test program should compile successfully.
4597 # No library function is consistently available on
4598 # freestanding implementations, so test against a dummy
4599 # declaration. Include always-available headers on the
4600 # off chance that they somehow elicit warnings.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <float.h>
4604 #include <limits.h>
4605 #include <stdarg.h>
4606 #include <stddef.h>
4607 extern void ac_decl (int, char *);
4608
4609 int
4610 main (void)
4611 {
4612 (void) ac_decl (0, (char *) 0);
4613 (void) ac_decl;
4614
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"
4620 then :
4621 if test x"$ac_arg" = x
4622 then :
4623 ac_cv_c_undeclared_builtin_options='none needed'
4624 else case e in #(
4625 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4626 esac
4627 fi
4628 break
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4631 esac
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 done
4635 CFLAGS=$ac_save_CFLAGS
4636 ;;
4637 esac
4638 fi
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4640 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4641 case $ac_cv_c_undeclared_builtin_options in #(
4642 'cannot detect') :
4643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4644 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4645 as_fn_error $? "cannot make $CC report undeclared builtins
4646 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4647 'none needed') :
4648 ac_c_undeclared_builtin_options='' ;; #(
4649 *) :
4650 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4651 esac
4652
4653 ac_header= ac_cache=
4654 for ac_item in $ac_header_c_list
4655 do
4656 if test $ac_cache; then
4657 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4658 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4659 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4660 fi
4661 ac_header= ac_cache=
4662 elif test $ac_header; then
4663 ac_cache=$ac_item
4664 else
4665 ac_header=$ac_item
4666 fi
4667 done
4668
4669
4670
4671
4672
4673
4674
4675
4676 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4677 then :
4678
4679 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4680
4681 fi
4682
4683
4684
4685
4686 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4687 if test "x$ac_cv_have_decl___clang__" = xyes
4688 then :
4689 CLANGCC="yes"
4690 else case e in #(
4691 e) CLANGCC="no" ;;
4692 esac
4693 fi
4694 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4695 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4696 then :
4697 INTELCC="yes"
4698 else case e in #(
4699 e) INTELCC="no" ;;
4700 esac
4701 fi
4702 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4703 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4704 then :
4705 SUNCC="yes"
4706 else case e in #(
4707 e) SUNCC="no" ;;
4708 esac
4709 fi
4710
4711
4712
4713
4714
4715
4716
4717
4718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 printf %s "checking for $ac_word... " >&6; }
4724 if test ${ac_cv_path_PKG_CONFIG+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else case e in #(
4728 e) case $PKG_CONFIG in
4729 [\\/]* | ?:[\\/]*)
4730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4731 ;;
4732 *)
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 case $as_dir in #(((
4738 '') as_dir=./ ;;
4739 */) ;;
4740 *) as_dir=$as_dir/ ;;
4741 esac
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4744 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 ;;
4753 esac ;;
4754 esac
4755 fi
4756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4757 if test -n "$PKG_CONFIG"; then
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4759 printf "%s\n" "$PKG_CONFIG" >&6; }
4760 else
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 printf "%s\n" "no" >&6; }
4763 fi
4764
4765
4766 fi
4767 if test -z "$ac_cv_path_PKG_CONFIG"; then
4768 ac_pt_PKG_CONFIG=$PKG_CONFIG
4769 # Extract the first word of "pkg-config", so it can be a program name with args.
4770 set dummy pkg-config; ac_word=$2
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 printf %s "checking for $ac_word... " >&6; }
4773 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4774 then :
4775 printf %s "(cached) " >&6
4776 else case e in #(
4777 e) case $ac_pt_PKG_CONFIG in
4778 [\\/]* | ?:[\\/]*)
4779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4780 ;;
4781 *)
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 case $as_dir in #(((
4787 '') as_dir=./ ;;
4788 */) ;;
4789 *) as_dir=$as_dir/ ;;
4790 esac
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4793 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 ;;
4802 esac ;;
4803 esac
4804 fi
4805 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4806 if test -n "$ac_pt_PKG_CONFIG"; then
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4808 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4809 else
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 printf "%s\n" "no" >&6; }
4812 fi
4813
4814 if test "x$ac_pt_PKG_CONFIG" = x; then
4815 PKG_CONFIG=""
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 PKG_CONFIG=$ac_pt_PKG_CONFIG
4824 fi
4825 else
4826 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4827 fi
4828
4829 fi
4830 if test -n "$PKG_CONFIG"; then
4831 _pkg_min_version=0.9.0
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4833 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4834 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 printf "%s\n" "yes" >&6; }
4837 else
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 printf "%s\n" "no" >&6; }
4840 PKG_CONFIG=""
4841 fi
4842 fi
4843
4844
4845 # Make sure we can run config.sub.
4846 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4847 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4848
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4850 printf %s "checking build system type... " >&6; }
4851 if test ${ac_cv_build+y}
4852 then :
4853 printf %s "(cached) " >&6
4854 else case e in #(
4855 e) ac_build_alias=$build_alias
4856 test "x$ac_build_alias" = x &&
4857 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4858 test "x$ac_build_alias" = x &&
4859 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4860 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4861 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4862 ;;
4863 esac
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4866 printf "%s\n" "$ac_cv_build" >&6; }
4867 case $ac_cv_build in
4868 *-*-*) ;;
4869 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4870 esac
4871 build=$ac_cv_build
4872 ac_save_IFS=$IFS; IFS='-'
4873 set x $ac_cv_build
4874 shift
4875 build_cpu=$1
4876 build_vendor=$2
4877 shift; shift
4878 # Remember, the first character of IFS is used to create $*,
4879 # except with old shells:
4880 build_os=$*
4881 IFS=$ac_save_IFS
4882 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4883
4884
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4886 printf %s "checking host system type... " >&6; }
4887 if test ${ac_cv_host+y}
4888 then :
4889 printf %s "(cached) " >&6
4890 else case e in #(
4891 e) if test "x$host_alias" = x; then
4892 ac_cv_host=$ac_cv_build
4893 else
4894 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4895 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4896 fi
4897 ;;
4898 esac
4899 fi
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4901 printf "%s\n" "$ac_cv_host" >&6; }
4902 case $ac_cv_host in
4903 *-*-*) ;;
4904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4905 esac
4906 host=$ac_cv_host
4907 ac_save_IFS=$IFS; IFS='-'
4908 set x $ac_cv_host
4909 shift
4910 host_cpu=$1
4911 host_vendor=$2
4912 shift; shift
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4915 host_os=$*
4916 IFS=$ac_save_IFS
4917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4918
4919
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4921 printf %s "checking for a sed that does not truncate output... " >&6; }
4922 if test ${ac_cv_path_SED+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else case e in #(
4926 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4927 for ac_i in 1 2 3 4 5 6 7; do
4928 ac_script="$ac_script$as_nl$ac_script"
4929 done
4930 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4931 { ac_script=; unset ac_script;}
4932 if test -z "$SED"; then
4933 ac_path_SED_found=false
4934 # Loop through the user's path and test for each of PROGNAME-LIST
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938 IFS=$as_save_IFS
4939 case $as_dir in #(((
4940 '') as_dir=./ ;;
4941 */) ;;
4942 *) as_dir=$as_dir/ ;;
4943 esac
4944 for ac_prog in sed gsed
4945 do
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4948 as_fn_executable_p "$ac_path_SED" || continue
4949 # Check for GNU ac_path_SED and select it if it is found.
4950 # Check for GNU $ac_path_SED
4951 case `"$ac_path_SED" --version 2>&1` in #(
4952 *GNU*)
4953 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4954 #(
4955 *)
4956 ac_count=0
4957 printf %s 0123456789 >"conftest.in"
4958 while :
4959 do
4960 cat "conftest.in" "conftest.in" >"conftest.tmp"
4961 mv "conftest.tmp" "conftest.in"
4962 cp "conftest.in" "conftest.nl"
4963 printf "%s\n" '' >> "conftest.nl"
4964 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966 as_fn_arith $ac_count + 1 && ac_count=$as_val
4967 if test $ac_count -gt ${ac_path_SED_max-0}; then
4968 # Best one so far, save it but keep looking for a better one
4969 ac_cv_path_SED="$ac_path_SED"
4970 ac_path_SED_max=$ac_count
4971 fi
4972 # 10*(2^10) chars as input seems more than enough
4973 test $ac_count -gt 10 && break
4974 done
4975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976 esac
4977
4978 $ac_path_SED_found && break 3
4979 done
4980 done
4981 done
4982 IFS=$as_save_IFS
4983 if test -z "$ac_cv_path_SED"; then
4984 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4985 fi
4986 else
4987 ac_cv_path_SED=$SED
4988 fi
4989 ;;
4990 esac
4991 fi
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4993 printf "%s\n" "$ac_cv_path_SED" >&6; }
4994 SED="$ac_cv_path_SED"
4995 rm -f conftest.sed
4996
4997
4998
4999
5000
5001
5002 # Check whether --enable-selective-werror was given.
5003 if test ${enable_selective_werror+y}
5004 then :
5005 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5006 else case e in #(
5007 e) SELECTIVE_WERROR=yes ;;
5008 esac
5009 fi
5010
5011
5012
5013
5014
5015 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5016 if test "x$SUNCC" = "xyes"; then
5017 BASE_CFLAGS="-v"
5018 else
5019 BASE_CFLAGS=""
5020 fi
5021
5022 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 xorg_testset_save_CFLAGS="$CFLAGS"
5037
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5042 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else case e in #(
5046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 int i;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"
5051 then :
5052 xorg_cv_cc_flag_unknown_warning_option=yes
5053 else case e in #(
5054 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5055 esac
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5058 esac
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5061 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5063 CFLAGS="$xorg_testset_save_CFLAGS"
5064 fi
5065
5066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 fi
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5072 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5073 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else case e in #(
5077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 int i;
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"
5082 then :
5083 xorg_cv_cc_flag_unused_command_line_argument=yes
5084 else case e in #(
5085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5086 esac
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5089 esac
5090 fi
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5092 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5094 CFLAGS="$xorg_testset_save_CFLAGS"
5095 fi
5096
5097 found="no"
5098
5099 if test $found = "no" ; then
5100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102 fi
5103
5104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5106 fi
5107
5108 CFLAGS="$CFLAGS -Wall"
5109
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5111 printf %s "checking if $CC supports -Wall... " >&6; }
5112 cacheid=xorg_cv_cc_flag__Wall
5113 if eval test \${$cacheid+y}
5114 then :
5115 printf %s "(cached) " >&6
5116 else case e in #(
5117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 int i;
5120 int
5121 main (void)
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"
5129 then :
5130 eval $cacheid=yes
5131 else case e in #(
5132 e) eval $cacheid=no ;;
5133 esac
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5136 conftest$ac_exeext conftest.$ac_ext ;;
5137 esac
5138 fi
5139
5140
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142
5143 eval supported=\$$cacheid
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5145 printf "%s\n" "$supported" >&6; }
5146 if test "$supported" = "yes" ; then
5147 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5148 found="yes"
5149 fi
5150 fi
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 xorg_testset_save_CFLAGS="$CFLAGS"
5167
5168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5172 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5173 then :
5174 printf %s "(cached) " >&6
5175 else case e in #(
5176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"
5181 then :
5182 xorg_cv_cc_flag_unknown_warning_option=yes
5183 else case e in #(
5184 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5185 esac
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5188 esac
5189 fi
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5191 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5193 CFLAGS="$xorg_testset_save_CFLAGS"
5194 fi
5195
5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 fi
5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else case e in #(
5207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 int i;
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"
5212 then :
5213 xorg_cv_cc_flag_unused_command_line_argument=yes
5214 else case e in #(
5215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5216 esac
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5219 esac
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 found="no"
5228
5229 if test $found = "no" ; then
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 fi
5237
5238 CFLAGS="$CFLAGS -Wpointer-arith"
5239
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5241 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5242 cacheid=xorg_cv_cc_flag__Wpointer_arith
5243 if eval test \${$cacheid+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else case e in #(
5247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 int i;
5250 int
5251 main (void)
5252 {
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_link "$LINENO"
5259 then :
5260 eval $cacheid=yes
5261 else case e in #(
5262 e) eval $cacheid=no ;;
5263 esac
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5266 conftest$ac_exeext conftest.$ac_ext ;;
5267 esac
5268 fi
5269
5270
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273 eval supported=\$$cacheid
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275 printf "%s\n" "$supported" >&6; }
5276 if test "$supported" = "yes" ; then
5277 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5278 found="yes"
5279 fi
5280 fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5303 then :
5304 printf %s "(cached) " >&6
5305 else case e in #(
5306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 int i;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"
5311 then :
5312 xorg_cv_cc_flag_unknown_warning_option=yes
5313 else case e in #(
5314 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5315 esac
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5318 esac
5319 fi
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5323 CFLAGS="$xorg_testset_save_CFLAGS"
5324 fi
5325
5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329 fi
5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else case e in #(
5337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 int i;
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"
5342 then :
5343 xorg_cv_cc_flag_unused_command_line_argument=yes
5344 else case e in #(
5345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5346 esac
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5349 esac
5350 fi
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5354 CFLAGS="$xorg_testset_save_CFLAGS"
5355 fi
5356
5357 found="no"
5358
5359 if test $found = "no" ; then
5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362 fi
5363
5364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5366 fi
5367
5368 CFLAGS="$CFLAGS -Wmissing-declarations"
5369
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5371 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5372 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5373 if eval test \${$cacheid+y}
5374 then :
5375 printf %s "(cached) " >&6
5376 else case e in #(
5377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 int i;
5380 int
5381 main (void)
5382 {
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 if ac_fn_c_try_link "$LINENO"
5389 then :
5390 eval $cacheid=yes
5391 else case e in #(
5392 e) eval $cacheid=no ;;
5393 esac
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5396 conftest$ac_exeext conftest.$ac_ext ;;
5397 esac
5398 fi
5399
5400
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402
5403 eval supported=\$$cacheid
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5405 printf "%s\n" "$supported" >&6; }
5406 if test "$supported" = "yes" ; then
5407 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5408 found="yes"
5409 fi
5410 fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5433 then :
5434 printf %s "(cached) " >&6
5435 else case e in #(
5436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"
5441 then :
5442 xorg_cv_cc_flag_unknown_warning_option=yes
5443 else case e in #(
5444 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5445 esac
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5448 esac
5449 fi
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5451 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5453 CFLAGS="$xorg_testset_save_CFLAGS"
5454 fi
5455
5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459 fi
5460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5462 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5463 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else case e in #(
5467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"
5472 then :
5473 xorg_cv_cc_flag_unused_command_line_argument=yes
5474 else case e in #(
5475 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5476 esac
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5479 esac
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5482 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485 fi
5486
5487 found="no"
5488
5489 if test $found = "no" ; then
5490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492 fi
5493
5494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5496 fi
5497
5498 CFLAGS="$CFLAGS -Wformat=2"
5499
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5501 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5502 cacheid=xorg_cv_cc_flag__Wformat_2
5503 if eval test \${$cacheid+y}
5504 then :
5505 printf %s "(cached) " >&6
5506 else case e in #(
5507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 int i;
5510 int
5511 main (void)
5512 {
5513
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 if ac_fn_c_try_link "$LINENO"
5519 then :
5520 eval $cacheid=yes
5521 else case e in #(
5522 e) eval $cacheid=no ;;
5523 esac
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5526 conftest$ac_exeext conftest.$ac_ext ;;
5527 esac
5528 fi
5529
5530
5531 CFLAGS="$xorg_testset_save_CFLAGS"
5532
5533 eval supported=\$$cacheid
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5535 printf "%s\n" "$supported" >&6; }
5536 if test "$supported" = "yes" ; then
5537 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5538 found="yes"
5539 fi
5540 fi
5541
5542 if test $found = "no" ; then
5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545 fi
5546
5547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 fi
5550
5551 CFLAGS="$CFLAGS -Wformat"
5552
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5554 printf %s "checking if $CC supports -Wformat... " >&6; }
5555 cacheid=xorg_cv_cc_flag__Wformat
5556 if eval test \${$cacheid+y}
5557 then :
5558 printf %s "(cached) " >&6
5559 else case e in #(
5560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"
5572 then :
5573 eval $cacheid=yes
5574 else case e in #(
5575 e) eval $cacheid=no ;;
5576 esac
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579 conftest$ac_exeext conftest.$ac_ext ;;
5580 esac
5581 fi
5582
5583
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585
5586 eval supported=\$$cacheid
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5588 printf "%s\n" "$supported" >&6; }
5589 if test "$supported" = "yes" ; then
5590 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5591 found="yes"
5592 fi
5593 fi
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5618 then :
5619 printf %s "(cached) " >&6
5620 else case e in #(
5621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 int i;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"
5626 then :
5627 xorg_cv_cc_flag_unknown_warning_option=yes
5628 else case e in #(
5629 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5630 esac
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5633 esac
5634 fi
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 fi
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 int i;
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"
5657 then :
5658 xorg_cv_cc_flag_unused_command_line_argument=yes
5659 else case e in #(
5660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5661 esac
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5664 esac
5665 fi
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669 CFLAGS="$xorg_testset_save_CFLAGS"
5670 fi
5671
5672 found="no"
5673
5674 if test $found = "no" ; then
5675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 fi
5678
5679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681 fi
5682
5683 CFLAGS="$CFLAGS -Wstrict-prototypes"
5684
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5686 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5687 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5688 if eval test \${$cacheid+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else case e in #(
5692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 int i;
5695 int
5696 main (void)
5697 {
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_link "$LINENO"
5704 then :
5705 eval $cacheid=yes
5706 else case e in #(
5707 e) eval $cacheid=no ;;
5708 esac
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5711 conftest$ac_exeext conftest.$ac_ext ;;
5712 esac
5713 fi
5714
5715
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718 eval supported=\$$cacheid
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720 printf "%s\n" "$supported" >&6; }
5721 if test "$supported" = "yes" ; then
5722 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5723 found="yes"
5724 fi
5725 fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5748 then :
5749 printf %s "(cached) " >&6
5750 else case e in #(
5751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 int i;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"
5756 then :
5757 xorg_cv_cc_flag_unknown_warning_option=yes
5758 else case e in #(
5759 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5760 esac
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5763 esac
5764 fi
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774 fi
5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"
5787 then :
5788 xorg_cv_cc_flag_unused_command_line_argument=yes
5789 else case e in #(
5790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5791 esac
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5794 esac
5795 fi
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800 fi
5801
5802 found="no"
5803
5804 if test $found = "no" ; then
5805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807 fi
5808
5809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5811 fi
5812
5813 CFLAGS="$CFLAGS -Wmissing-prototypes"
5814
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5816 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5817 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5818 if eval test \${$cacheid+y}
5819 then :
5820 printf %s "(cached) " >&6
5821 else case e in #(
5822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 int i;
5825 int
5826 main (void)
5827 {
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 if ac_fn_c_try_link "$LINENO"
5834 then :
5835 eval $cacheid=yes
5836 else case e in #(
5837 e) eval $cacheid=no ;;
5838 esac
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5841 conftest$ac_exeext conftest.$ac_ext ;;
5842 esac
5843 fi
5844
5845
5846 CFLAGS="$xorg_testset_save_CFLAGS"
5847
5848 eval supported=\$$cacheid
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5850 printf "%s\n" "$supported" >&6; }
5851 if test "$supported" = "yes" ; then
5852 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5853 found="yes"
5854 fi
5855 fi
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 xorg_testset_save_CFLAGS="$CFLAGS"
5872
5873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 int i;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"
5886 then :
5887 xorg_cv_cc_flag_unknown_warning_option=yes
5888 else case e in #(
5889 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5890 esac
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5893 esac
5894 fi
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5898 CFLAGS="$xorg_testset_save_CFLAGS"
5899 fi
5900
5901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904 fi
5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else case e in #(
5912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"
5917 then :
5918 xorg_cv_cc_flag_unused_command_line_argument=yes
5919 else case e in #(
5920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5921 esac
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5924 esac
5925 fi
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930 fi
5931
5932 found="no"
5933
5934 if test $found = "no" ; then
5935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937 fi
5938
5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5941 fi
5942
5943 CFLAGS="$CFLAGS -Wnested-externs"
5944
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5946 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5947 cacheid=xorg_cv_cc_flag__Wnested_externs
5948 if eval test \${$cacheid+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else case e in #(
5952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 int i;
5955 int
5956 main (void)
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_link "$LINENO"
5964 then :
5965 eval $cacheid=yes
5966 else case e in #(
5967 e) eval $cacheid=no ;;
5968 esac
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5971 conftest$ac_exeext conftest.$ac_ext ;;
5972 esac
5973 fi
5974
5975
5976 CFLAGS="$xorg_testset_save_CFLAGS"
5977
5978 eval supported=\$$cacheid
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5980 printf "%s\n" "$supported" >&6; }
5981 if test "$supported" = "yes" ; then
5982 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5983 found="yes"
5984 fi
5985 fi
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 xorg_testset_save_CFLAGS="$CFLAGS"
6002
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6007 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6008 then :
6009 printf %s "(cached) " >&6
6010 else case e in #(
6011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 int i;
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"
6016 then :
6017 xorg_cv_cc_flag_unknown_warning_option=yes
6018 else case e in #(
6019 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6020 esac
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6023 esac
6024 fi
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034 fi
6035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else case e in #(
6042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 int i;
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"
6047 then :
6048 xorg_cv_cc_flag_unused_command_line_argument=yes
6049 else case e in #(
6050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6051 esac
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6054 esac
6055 fi
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 found="no"
6063
6064 if test $found = "no" ; then
6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067 fi
6068
6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071 fi
6072
6073 CFLAGS="$CFLAGS -Wbad-function-cast"
6074
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6076 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6077 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6078 if eval test \${$cacheid+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else case e in #(
6082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 int
6086 main (void)
6087 {
6088
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 if ac_fn_c_try_link "$LINENO"
6094 then :
6095 eval $cacheid=yes
6096 else case e in #(
6097 e) eval $cacheid=no ;;
6098 esac
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6101 conftest$ac_exeext conftest.$ac_ext ;;
6102 esac
6103 fi
6104
6105
6106 CFLAGS="$xorg_testset_save_CFLAGS"
6107
6108 eval supported=\$$cacheid
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6110 printf "%s\n" "$supported" >&6; }
6111 if test "$supported" = "yes" ; then
6112 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6113 found="yes"
6114 fi
6115 fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 xorg_testset_save_CFLAGS="$CFLAGS"
6132
6133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else case e in #(
6141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 int i;
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"
6146 then :
6147 xorg_cv_cc_flag_unknown_warning_option=yes
6148 else case e in #(
6149 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6150 esac
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6153 esac
6154 fi
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6158 CFLAGS="$xorg_testset_save_CFLAGS"
6159 fi
6160
6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6164 fi
6165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else case e in #(
6172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 int i;
6175 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"
6177 then :
6178 xorg_cv_cc_flag_unused_command_line_argument=yes
6179 else case e in #(
6180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6181 esac
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6184 esac
6185 fi
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190 fi
6191
6192 found="no"
6193
6194 if test $found = "no" ; then
6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197 fi
6198
6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201 fi
6202
6203 CFLAGS="$CFLAGS -Wold-style-definition"
6204
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6206 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6207 cacheid=xorg_cv_cc_flag__Wold_style_definition
6208 if eval test \${$cacheid+y}
6209 then :
6210 printf %s "(cached) " >&6
6211 else case e in #(
6212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 int
6216 main (void)
6217 {
6218
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"
6224 then :
6225 eval $cacheid=yes
6226 else case e in #(
6227 e) eval $cacheid=no ;;
6228 esac
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6231 conftest$ac_exeext conftest.$ac_ext ;;
6232 esac
6233 fi
6234
6235
6236 CFLAGS="$xorg_testset_save_CFLAGS"
6237
6238 eval supported=\$$cacheid
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6240 printf "%s\n" "$supported" >&6; }
6241 if test "$supported" = "yes" ; then
6242 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6243 found="yes"
6244 fi
6245 fi
6246
6247 if test $found = "no" ; then
6248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6250 fi
6251
6252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6254 fi
6255
6256 CFLAGS="$CFLAGS -fd"
6257
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6259 printf %s "checking if $CC supports -fd... " >&6; }
6260 cacheid=xorg_cv_cc_flag__fd
6261 if eval test \${$cacheid+y}
6262 then :
6263 printf %s "(cached) " >&6
6264 else case e in #(
6265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 int i;
6268 int
6269 main (void)
6270 {
6271
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 if ac_fn_c_try_link "$LINENO"
6277 then :
6278 eval $cacheid=yes
6279 else case e in #(
6280 e) eval $cacheid=no ;;
6281 esac
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6284 conftest$ac_exeext conftest.$ac_ext ;;
6285 esac
6286 fi
6287
6288
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291 eval supported=\$$cacheid
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 printf "%s\n" "$supported" >&6; }
6294 if test "$supported" = "yes" ; then
6295 BASE_CFLAGS="$BASE_CFLAGS -fd"
6296 found="yes"
6297 fi
6298 fi
6299
6300
6301
6302
6303
6304 # This chunk adds additional warnings that could catch undesired effects.
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else case e in #(
6328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 int i;
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"
6333 then :
6334 xorg_cv_cc_flag_unknown_warning_option=yes
6335 else case e in #(
6336 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6337 esac
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6340 esac
6341 fi
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6345 CFLAGS="$xorg_testset_save_CFLAGS"
6346 fi
6347
6348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 fi
6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6356 then :
6357 printf %s "(cached) " >&6
6358 else case e in #(
6359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 int i;
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"
6364 then :
6365 xorg_cv_cc_flag_unused_command_line_argument=yes
6366 else case e in #(
6367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6368 esac
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6371 esac
6372 fi
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376 CFLAGS="$xorg_testset_save_CFLAGS"
6377 fi
6378
6379 found="no"
6380
6381 if test $found = "no" ; then
6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384 fi
6385
6386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388 fi
6389
6390 CFLAGS="$CFLAGS -Wunused"
6391
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6393 printf %s "checking if $CC supports -Wunused... " >&6; }
6394 cacheid=xorg_cv_cc_flag__Wunused
6395 if eval test \${$cacheid+y}
6396 then :
6397 printf %s "(cached) " >&6
6398 else case e in #(
6399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int i;
6402 int
6403 main (void)
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_link "$LINENO"
6411 then :
6412 eval $cacheid=yes
6413 else case e in #(
6414 e) eval $cacheid=no ;;
6415 esac
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6418 conftest$ac_exeext conftest.$ac_ext ;;
6419 esac
6420 fi
6421
6422
6423 CFLAGS="$xorg_testset_save_CFLAGS"
6424
6425 eval supported=\$$cacheid
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6427 printf "%s\n" "$supported" >&6; }
6428 if test "$supported" = "yes" ; then
6429 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6430 found="yes"
6431 fi
6432 fi
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 xorg_testset_save_CFLAGS="$CFLAGS"
6449
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6454 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6455 then :
6456 printf %s "(cached) " >&6
6457 else case e in #(
6458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"
6463 then :
6464 xorg_cv_cc_flag_unknown_warning_option=yes
6465 else case e in #(
6466 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6467 esac
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6470 esac
6471 fi
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476 fi
6477
6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 fi
6482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6486 then :
6487 printf %s "(cached) " >&6
6488 else case e in #(
6489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 int i;
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"
6494 then :
6495 xorg_cv_cc_flag_unused_command_line_argument=yes
6496 else case e in #(
6497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6498 esac
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6501 esac
6502 fi
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6506 CFLAGS="$xorg_testset_save_CFLAGS"
6507 fi
6508
6509 found="no"
6510
6511 if test $found = "no" ; then
6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514 fi
6515
6516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6518 fi
6519
6520 CFLAGS="$CFLAGS -Wuninitialized"
6521
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6523 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6524 cacheid=xorg_cv_cc_flag__Wuninitialized
6525 if eval test \${$cacheid+y}
6526 then :
6527 printf %s "(cached) " >&6
6528 else case e in #(
6529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 int i;
6532 int
6533 main (void)
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_link "$LINENO"
6541 then :
6542 eval $cacheid=yes
6543 else case e in #(
6544 e) eval $cacheid=no ;;
6545 esac
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6548 conftest$ac_exeext conftest.$ac_ext ;;
6549 esac
6550 fi
6551
6552
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554
6555 eval supported=\$$cacheid
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6557 printf "%s\n" "$supported" >&6; }
6558 if test "$supported" = "yes" ; then
6559 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6560 found="yes"
6561 fi
6562 fi
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578 xorg_testset_save_CFLAGS="$CFLAGS"
6579
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6584 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else case e in #(
6588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int i;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"
6593 then :
6594 xorg_cv_cc_flag_unknown_warning_option=yes
6595 else case e in #(
6596 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6597 esac
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6600 esac
6601 fi
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611 fi
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else case e in #(
6619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"
6624 then :
6625 xorg_cv_cc_flag_unused_command_line_argument=yes
6626 else case e in #(
6627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6628 esac
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6631 esac
6632 fi
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6636 CFLAGS="$xorg_testset_save_CFLAGS"
6637 fi
6638
6639 found="no"
6640
6641 if test $found = "no" ; then
6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 fi
6645
6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6648 fi
6649
6650 CFLAGS="$CFLAGS -Wshadow"
6651
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6653 printf %s "checking if $CC supports -Wshadow... " >&6; }
6654 cacheid=xorg_cv_cc_flag__Wshadow
6655 if eval test \${$cacheid+y}
6656 then :
6657 printf %s "(cached) " >&6
6658 else case e in #(
6659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 int i;
6662 int
6663 main (void)
6664 {
6665
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"
6671 then :
6672 eval $cacheid=yes
6673 else case e in #(
6674 e) eval $cacheid=no ;;
6675 esac
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6678 conftest$ac_exeext conftest.$ac_ext ;;
6679 esac
6680 fi
6681
6682
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685 eval supported=\$$cacheid
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687 printf "%s\n" "$supported" >&6; }
6688 if test "$supported" = "yes" ; then
6689 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6690 found="yes"
6691 fi
6692 fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 xorg_testset_save_CFLAGS="$CFLAGS"
6709
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6714 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else case e in #(
6718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 int i;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"
6723 then :
6724 xorg_cv_cc_flag_unknown_warning_option=yes
6725 else case e in #(
6726 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6727 esac
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6730 esac
6731 fi
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736 fi
6737
6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 fi
6742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else case e in #(
6749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 int i;
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"
6754 then :
6755 xorg_cv_cc_flag_unused_command_line_argument=yes
6756 else case e in #(
6757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6758 esac
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6761 esac
6762 fi
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767 fi
6768
6769 found="no"
6770
6771 if test $found = "no" ; then
6772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6774 fi
6775
6776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6778 fi
6779
6780 CFLAGS="$CFLAGS -Wmissing-noreturn"
6781
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6783 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6784 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6785 if eval test \${$cacheid+y}
6786 then :
6787 printf %s "(cached) " >&6
6788 else case e in #(
6789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 int i;
6792 int
6793 main (void)
6794 {
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"
6801 then :
6802 eval $cacheid=yes
6803 else case e in #(
6804 e) eval $cacheid=no ;;
6805 esac
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6808 conftest$ac_exeext conftest.$ac_ext ;;
6809 esac
6810 fi
6811
6812
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815 eval supported=\$$cacheid
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817 printf "%s\n" "$supported" >&6; }
6818 if test "$supported" = "yes" ; then
6819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820 found="yes"
6821 fi
6822 fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else case e in #(
6848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"
6853 then :
6854 xorg_cv_cc_flag_unknown_warning_option=yes
6855 else case e in #(
6856 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6857 esac
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6860 esac
6861 fi
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866 fi
6867
6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 fi
6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6876 then :
6877 printf %s "(cached) " >&6
6878 else case e in #(
6879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 int i;
6882 _ACEOF
6883 if ac_fn_c_try_compile "$LINENO"
6884 then :
6885 xorg_cv_cc_flag_unused_command_line_argument=yes
6886 else case e in #(
6887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6888 esac
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6891 esac
6892 fi
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 found="no"
6900
6901 if test $found = "no" ; then
6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905
6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 fi
6909
6910 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6911
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6913 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6914 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6915 if eval test \${$cacheid+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int i;
6922 int
6923 main (void)
6924 {
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"
6931 then :
6932 eval $cacheid=yes
6933 else case e in #(
6934 e) eval $cacheid=no ;;
6935 esac
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6938 conftest$ac_exeext conftest.$ac_ext ;;
6939 esac
6940 fi
6941
6942
6943 CFLAGS="$xorg_testset_save_CFLAGS"
6944
6945 eval supported=\$$cacheid
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6947 printf "%s\n" "$supported" >&6; }
6948 if test "$supported" = "yes" ; then
6949 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6950 found="yes"
6951 fi
6952 fi
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 xorg_testset_save_CFLAGS="$CFLAGS"
6969
6970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6975 then :
6976 printf %s "(cached) " >&6
6977 else case e in #(
6978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 int i;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"
6983 then :
6984 xorg_cv_cc_flag_unknown_warning_option=yes
6985 else case e in #(
6986 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6987 esac
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6990 esac
6991 fi
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996 fi
6997
6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 fi
7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7006 then :
7007 printf %s "(cached) " >&6
7008 else case e in #(
7009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011 int i;
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"
7014 then :
7015 xorg_cv_cc_flag_unused_command_line_argument=yes
7016 else case e in #(
7017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7018 esac
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7021 esac
7022 fi
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027 fi
7028
7029 found="no"
7030
7031 if test $found = "no" ; then
7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7034 fi
7035
7036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7038 fi
7039
7040 CFLAGS="$CFLAGS -Wredundant-decls"
7041
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7043 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7044 cacheid=xorg_cv_cc_flag__Wredundant_decls
7045 if eval test \${$cacheid+y}
7046 then :
7047 printf %s "(cached) " >&6
7048 else case e in #(
7049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 int
7053 main (void)
7054 {
7055
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"
7061 then :
7062 eval $cacheid=yes
7063 else case e in #(
7064 e) eval $cacheid=no ;;
7065 esac
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7068 conftest$ac_exeext conftest.$ac_ext ;;
7069 esac
7070 fi
7071
7072
7073 CFLAGS="$xorg_testset_save_CFLAGS"
7074
7075 eval supported=\$$cacheid
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7077 printf "%s\n" "$supported" >&6; }
7078 if test "$supported" = "yes" ; then
7079 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7080 found="yes"
7081 fi
7082 fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 xorg_testset_save_CFLAGS="$CFLAGS"
7099
7100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7104 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7105 then :
7106 printf %s "(cached) " >&6
7107 else case e in #(
7108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 int i;
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"
7113 then :
7114 xorg_cv_cc_flag_unknown_warning_option=yes
7115 else case e in #(
7116 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7117 esac
7118 fi
7119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7120 esac
7121 fi
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7125 CFLAGS="$xorg_testset_save_CFLAGS"
7126 fi
7127
7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131 fi
7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7136 then :
7137 printf %s "(cached) " >&6
7138 else case e in #(
7139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"
7144 then :
7145 xorg_cv_cc_flag_unused_command_line_argument=yes
7146 else case e in #(
7147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7148 esac
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7151 esac
7152 fi
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 found="no"
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -Wlogical-op"
7171
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7173 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7174 cacheid=xorg_cv_cc_flag__Wlogical_op
7175 if eval test \${$cacheid+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else case e in #(
7179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 int i;
7182 int
7183 main (void)
7184 {
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"
7191 then :
7192 eval $cacheid=yes
7193 else case e in #(
7194 e) eval $cacheid=no ;;
7195 esac
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7198 conftest$ac_exeext conftest.$ac_ext ;;
7199 esac
7200 fi
7201
7202
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204
7205 eval supported=\$$cacheid
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7207 printf "%s\n" "$supported" >&6; }
7208 if test "$supported" = "yes" ; then
7209 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7210 found="yes"
7211 fi
7212 fi
7213
7214
7215
7216 # These are currently disabled because they are noisy. They will be enabled
7217 # in the future once the codebase is sufficiently modernized to silence
7218 # them. For now, I don't want them to drown out the other warnings.
7219 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7220 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7221 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7222
7223 # Turn some warnings into errors, so we don't accidentally get successful builds
7224 # when there are problems that should be fixed.
7225
7226 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240 xorg_testset_save_CFLAGS="$CFLAGS"
7241
7242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7245 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7246 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7247 then :
7248 printf %s "(cached) " >&6
7249 else case e in #(
7250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"
7255 then :
7256 xorg_cv_cc_flag_unknown_warning_option=yes
7257 else case e in #(
7258 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7259 esac
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7262 esac
7263 fi
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7267 CFLAGS="$xorg_testset_save_CFLAGS"
7268 fi
7269
7270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273 fi
7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else case e in #(
7281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"
7286 then :
7287 xorg_cv_cc_flag_unused_command_line_argument=yes
7288 else case e in #(
7289 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7290 esac
7291 fi
7292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7293 esac
7294 fi
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299 fi
7300
7301 found="no"
7302
7303 if test $found = "no" ; then
7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 fi
7307
7308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310 fi
7311
7312 CFLAGS="$CFLAGS -Werror=implicit"
7313
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7315 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7316 cacheid=xorg_cv_cc_flag__Werror_implicit
7317 if eval test \${$cacheid+y}
7318 then :
7319 printf %s "(cached) " >&6
7320 else case e in #(
7321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int i;
7324 int
7325 main (void)
7326 {
7327
7328 ;
7329 return 0;
7330 }
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"
7333 then :
7334 eval $cacheid=yes
7335 else case e in #(
7336 e) eval $cacheid=no ;;
7337 esac
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7340 conftest$ac_exeext conftest.$ac_ext ;;
7341 esac
7342 fi
7343
7344
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346
7347 eval supported=\$$cacheid
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7349 printf "%s\n" "$supported" >&6; }
7350 if test "$supported" = "yes" ; then
7351 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7352 found="yes"
7353 fi
7354 fi
7355
7356 if test $found = "no" ; then
7357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7359 fi
7360
7361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7363 fi
7364
7365 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7366
7367 { 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
7368 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7369 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7370 if eval test \${$cacheid+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else case e in #(
7374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 int i;
7377 int
7378 main (void)
7379 {
7380
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 if ac_fn_c_try_link "$LINENO"
7386 then :
7387 eval $cacheid=yes
7388 else case e in #(
7389 e) eval $cacheid=no ;;
7390 esac
7391 fi
7392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7393 conftest$ac_exeext conftest.$ac_ext ;;
7394 esac
7395 fi
7396
7397
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400 eval supported=\$$cacheid
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402 printf "%s\n" "$supported" >&6; }
7403 if test "$supported" = "yes" ; then
7404 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7405 found="yes"
7406 fi
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 int i;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"
7438 then :
7439 xorg_cv_cc_flag_unknown_warning_option=yes
7440 else case e in #(
7441 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7442 esac
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7445 esac
7446 fi
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7448 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7450 CFLAGS="$xorg_testset_save_CFLAGS"
7451 fi
7452
7453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456 fi
7457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7459 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7460 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7461 then :
7462 printf %s "(cached) " >&6
7463 else case e in #(
7464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 int i;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"
7469 then :
7470 xorg_cv_cc_flag_unused_command_line_argument=yes
7471 else case e in #(
7472 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7473 esac
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7476 esac
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7479 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7481 CFLAGS="$xorg_testset_save_CFLAGS"
7482 fi
7483
7484 found="no"
7485
7486 if test $found = "no" ; then
7487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 fi
7490
7491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7493 fi
7494
7495 CFLAGS="$CFLAGS -Werror=nonnull"
7496
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7498 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7499 cacheid=xorg_cv_cc_flag__Werror_nonnull
7500 if eval test \${$cacheid+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else case e in #(
7504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 int
7508 main (void)
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"
7516 then :
7517 eval $cacheid=yes
7518 else case e in #(
7519 e) eval $cacheid=no ;;
7520 esac
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7523 conftest$ac_exeext conftest.$ac_ext ;;
7524 esac
7525 fi
7526
7527
7528 CFLAGS="$xorg_testset_save_CFLAGS"
7529
7530 eval supported=\$$cacheid
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7532 printf "%s\n" "$supported" >&6; }
7533 if test "$supported" = "yes" ; then
7534 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7535 found="yes"
7536 fi
7537 fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 xorg_testset_save_CFLAGS="$CFLAGS"
7554
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7559 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7560 then :
7561 printf %s "(cached) " >&6
7562 else case e in #(
7563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 int i;
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"
7568 then :
7569 xorg_cv_cc_flag_unknown_warning_option=yes
7570 else case e in #(
7571 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7572 esac
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7575 esac
7576 fi
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581 fi
7582
7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 fi
7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7591 then :
7592 printf %s "(cached) " >&6
7593 else case e in #(
7594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 int i;
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"
7599 then :
7600 xorg_cv_cc_flag_unused_command_line_argument=yes
7601 else case e in #(
7602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7603 esac
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7606 esac
7607 fi
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612 fi
7613
7614 found="no"
7615
7616 if test $found = "no" ; then
7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619 fi
7620
7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623 fi
7624
7625 CFLAGS="$CFLAGS -Werror=init-self"
7626
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7628 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7629 cacheid=xorg_cv_cc_flag__Werror_init_self
7630 if eval test \${$cacheid+y}
7631 then :
7632 printf %s "(cached) " >&6
7633 else case e in #(
7634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 int
7638 main (void)
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"
7646 then :
7647 eval $cacheid=yes
7648 else case e in #(
7649 e) eval $cacheid=no ;;
7650 esac
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7653 conftest$ac_exeext conftest.$ac_ext ;;
7654 esac
7655 fi
7656
7657
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660 eval supported=\$$cacheid
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662 printf "%s\n" "$supported" >&6; }
7663 if test "$supported" = "yes" ; then
7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7665 found="yes"
7666 fi
7667 fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else case e in #(
7693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 int i;
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"
7698 then :
7699 xorg_cv_cc_flag_unknown_warning_option=yes
7700 else case e in #(
7701 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7702 esac
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7705 esac
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 fi
7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else case e in #(
7724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"
7729 then :
7730 xorg_cv_cc_flag_unused_command_line_argument=yes
7731 else case e in #(
7732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7733 esac
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7736 esac
7737 fi
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7741 CFLAGS="$xorg_testset_save_CFLAGS"
7742 fi
7743
7744 found="no"
7745
7746 if test $found = "no" ; then
7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749 fi
7750
7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 fi
7754
7755 CFLAGS="$CFLAGS -Werror=main"
7756
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7758 printf %s "checking if $CC supports -Werror=main... " >&6; }
7759 cacheid=xorg_cv_cc_flag__Werror_main
7760 if eval test \${$cacheid+y}
7761 then :
7762 printf %s "(cached) " >&6
7763 else case e in #(
7764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 int i;
7767 int
7768 main (void)
7769 {
7770
7771 ;
7772 return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"
7776 then :
7777 eval $cacheid=yes
7778 else case e in #(
7779 e) eval $cacheid=no ;;
7780 esac
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7783 conftest$ac_exeext conftest.$ac_ext ;;
7784 esac
7785 fi
7786
7787
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789
7790 eval supported=\$$cacheid
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7792 printf "%s\n" "$supported" >&6; }
7793 if test "$supported" = "yes" ; then
7794 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7795 found="yes"
7796 fi
7797 fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 xorg_testset_save_CFLAGS="$CFLAGS"
7814
7815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7819 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else case e in #(
7823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 int i;
7826 _ACEOF
7827 if ac_fn_c_try_compile "$LINENO"
7828 then :
7829 xorg_cv_cc_flag_unknown_warning_option=yes
7830 else case e in #(
7831 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7832 esac
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7835 esac
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7851 then :
7852 printf %s "(cached) " >&6
7853 else case e in #(
7854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 int i;
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"
7859 then :
7860 xorg_cv_cc_flag_unused_command_line_argument=yes
7861 else case e in #(
7862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7863 esac
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7866 esac
7867 fi
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7869 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872 fi
7873
7874 found="no"
7875
7876 if test $found = "no" ; then
7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879 fi
7880
7881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883 fi
7884
7885 CFLAGS="$CFLAGS -Werror=missing-braces"
7886
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7888 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7889 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7890 if eval test \${$cacheid+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 int i;
7897 int
7898 main (void)
7899 {
7900
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"
7906 then :
7907 eval $cacheid=yes
7908 else case e in #(
7909 e) eval $cacheid=no ;;
7910 esac
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7913 conftest$ac_exeext conftest.$ac_ext ;;
7914 esac
7915 fi
7916
7917
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919
7920 eval supported=\$$cacheid
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7922 printf "%s\n" "$supported" >&6; }
7923 if test "$supported" = "yes" ; then
7924 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7925 found="yes"
7926 fi
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 xorg_testset_save_CFLAGS="$CFLAGS"
7944
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7949 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7950 then :
7951 printf %s "(cached) " >&6
7952 else case e in #(
7953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 int i;
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"
7958 then :
7959 xorg_cv_cc_flag_unknown_warning_option=yes
7960 else case e in #(
7961 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7962 esac
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7965 esac
7966 fi
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976 fi
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else case e in #(
7984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"
7989 then :
7990 xorg_cv_cc_flag_unused_command_line_argument=yes
7991 else case e in #(
7992 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7993 esac
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7996 esac
7997 fi
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002 fi
8003
8004 found="no"
8005
8006 if test $found = "no" ; then
8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009 fi
8010
8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8013 fi
8014
8015 CFLAGS="$CFLAGS -Werror=sequence-point"
8016
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8018 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8019 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8020 if eval test \${$cacheid+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else case e in #(
8024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 int i;
8027 int
8028 main (void)
8029 {
8030
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"
8036 then :
8037 eval $cacheid=yes
8038 else case e in #(
8039 e) eval $cacheid=no ;;
8040 esac
8041 fi
8042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8043 conftest$ac_exeext conftest.$ac_ext ;;
8044 esac
8045 fi
8046
8047
8048 CFLAGS="$xorg_testset_save_CFLAGS"
8049
8050 eval supported=\$$cacheid
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8052 printf "%s\n" "$supported" >&6; }
8053 if test "$supported" = "yes" ; then
8054 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8055 found="yes"
8056 fi
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073 xorg_testset_save_CFLAGS="$CFLAGS"
8074
8075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8078 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8079 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8080 then :
8081 printf %s "(cached) " >&6
8082 else case e in #(
8083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 int i;
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"
8088 then :
8089 xorg_cv_cc_flag_unknown_warning_option=yes
8090 else case e in #(
8091 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8092 esac
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8095 esac
8096 fi
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101 fi
8102
8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106 fi
8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else case e in #(
8114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 int i;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"
8119 then :
8120 xorg_cv_cc_flag_unused_command_line_argument=yes
8121 else case e in #(
8122 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8123 esac
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8126 esac
8127 fi
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8129 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132 fi
8133
8134 found="no"
8135
8136 if test $found = "no" ; then
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 fi
8140
8141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143 fi
8144
8145 CFLAGS="$CFLAGS -Werror=return-type"
8146
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8148 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8149 cacheid=xorg_cv_cc_flag__Werror_return_type
8150 if eval test \${$cacheid+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 int i;
8157 int
8158 main (void)
8159 {
8160
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"
8166 then :
8167 eval $cacheid=yes
8168 else case e in #(
8169 e) eval $cacheid=no ;;
8170 esac
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8173 conftest$ac_exeext conftest.$ac_ext ;;
8174 esac
8175 fi
8176
8177
8178 CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180 eval supported=\$$cacheid
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182 printf "%s\n" "$supported" >&6; }
8183 if test "$supported" = "yes" ; then
8184 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8185 found="yes"
8186 fi
8187 fi
8188
8189 if test $found = "no" ; then
8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192 fi
8193
8194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196 fi
8197
8198 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8199
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8201 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8202 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8203 if eval test \${$cacheid+y}
8204 then :
8205 printf %s "(cached) " >&6
8206 else case e in #(
8207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 int
8211 main (void)
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"
8219 then :
8220 eval $cacheid=yes
8221 else case e in #(
8222 e) eval $cacheid=no ;;
8223 esac
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8226 conftest$ac_exeext conftest.$ac_ext ;;
8227 esac
8228 fi
8229
8230
8231 CFLAGS="$xorg_testset_save_CFLAGS"
8232
8233 eval supported=\$$cacheid
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8235 printf "%s\n" "$supported" >&6; }
8236 if test "$supported" = "yes" ; then
8237 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8238 found="yes"
8239 fi
8240 fi
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 xorg_testset_save_CFLAGS="$CFLAGS"
8257
8258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8262 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else case e in #(
8266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 int i;
8269 _ACEOF
8270 if ac_fn_c_try_compile "$LINENO"
8271 then :
8272 xorg_cv_cc_flag_unknown_warning_option=yes
8273 else case e in #(
8274 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8275 esac
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8278 esac
8279 fi
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8283 CFLAGS="$xorg_testset_save_CFLAGS"
8284 fi
8285
8286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289 fi
8290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8294 then :
8295 printf %s "(cached) " >&6
8296 else case e in #(
8297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 int i;
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"
8302 then :
8303 xorg_cv_cc_flag_unused_command_line_argument=yes
8304 else case e in #(
8305 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8306 esac
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8309 esac
8310 fi
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 found="no"
8318
8319 if test $found = "no" ; then
8320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 fi
8323
8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 fi
8327
8328 CFLAGS="$CFLAGS -Werror=trigraphs"
8329
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8331 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8332 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8333 if eval test \${$cacheid+y}
8334 then :
8335 printf %s "(cached) " >&6
8336 else case e in #(
8337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 int i;
8340 int
8341 main (void)
8342 {
8343
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"
8349 then :
8350 eval $cacheid=yes
8351 else case e in #(
8352 e) eval $cacheid=no ;;
8353 esac
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8356 conftest$ac_exeext conftest.$ac_ext ;;
8357 esac
8358 fi
8359
8360
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362
8363 eval supported=\$$cacheid
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8365 printf "%s\n" "$supported" >&6; }
8366 if test "$supported" = "yes" ; then
8367 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8368 found="yes"
8369 fi
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386 xorg_testset_save_CFLAGS="$CFLAGS"
8387
8388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8393 then :
8394 printf %s "(cached) " >&6
8395 else case e in #(
8396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 int i;
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"
8401 then :
8402 xorg_cv_cc_flag_unknown_warning_option=yes
8403 else case e in #(
8404 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8405 esac
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8408 esac
8409 fi
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8413 CFLAGS="$xorg_testset_save_CFLAGS"
8414 fi
8415
8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419 fi
8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else case e in #(
8427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 int i;
8430 _ACEOF
8431 if ac_fn_c_try_compile "$LINENO"
8432 then :
8433 xorg_cv_cc_flag_unused_command_line_argument=yes
8434 else case e in #(
8435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8436 esac
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8439 esac
8440 fi
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8444 CFLAGS="$xorg_testset_save_CFLAGS"
8445 fi
8446
8447 found="no"
8448
8449 if test $found = "no" ; then
8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452 fi
8453
8454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8456 fi
8457
8458 CFLAGS="$CFLAGS -Werror=array-bounds"
8459
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8461 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8462 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8463 if eval test \${$cacheid+y}
8464 then :
8465 printf %s "(cached) " >&6
8466 else case e in #(
8467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 int i;
8470 int
8471 main (void)
8472 {
8473
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_link "$LINENO"
8479 then :
8480 eval $cacheid=yes
8481 else case e in #(
8482 e) eval $cacheid=no ;;
8483 esac
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8486 conftest$ac_exeext conftest.$ac_ext ;;
8487 esac
8488 fi
8489
8490
8491 CFLAGS="$xorg_testset_save_CFLAGS"
8492
8493 eval supported=\$$cacheid
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8495 printf "%s\n" "$supported" >&6; }
8496 if test "$supported" = "yes" ; then
8497 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8498 found="yes"
8499 fi
8500 fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516 xorg_testset_save_CFLAGS="$CFLAGS"
8517
8518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8522 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else case e in #(
8526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 int i;
8529 _ACEOF
8530 if ac_fn_c_try_compile "$LINENO"
8531 then :
8532 xorg_cv_cc_flag_unknown_warning_option=yes
8533 else case e in #(
8534 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8535 esac
8536 fi
8537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8538 esac
8539 fi
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8543 CFLAGS="$xorg_testset_save_CFLAGS"
8544 fi
8545
8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8549 fi
8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8554 then :
8555 printf %s "(cached) " >&6
8556 else case e in #(
8557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 _ACEOF
8561 if ac_fn_c_try_compile "$LINENO"
8562 then :
8563 xorg_cv_cc_flag_unused_command_line_argument=yes
8564 else case e in #(
8565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8566 esac
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8569 esac
8570 fi
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575 fi
8576
8577 found="no"
8578
8579 if test $found = "no" ; then
8580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582 fi
8583
8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586 fi
8587
8588 CFLAGS="$CFLAGS -Werror=write-strings"
8589
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8591 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8592 cacheid=xorg_cv_cc_flag__Werror_write_strings
8593 if eval test \${$cacheid+y}
8594 then :
8595 printf %s "(cached) " >&6
8596 else case e in #(
8597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 int i;
8600 int
8601 main (void)
8602 {
8603
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"
8609 then :
8610 eval $cacheid=yes
8611 else case e in #(
8612 e) eval $cacheid=no ;;
8613 esac
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8616 conftest$ac_exeext conftest.$ac_ext ;;
8617 esac
8618 fi
8619
8620
8621 CFLAGS="$xorg_testset_save_CFLAGS"
8622
8623 eval supported=\$$cacheid
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8625 printf "%s\n" "$supported" >&6; }
8626 if test "$supported" = "yes" ; then
8627 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8628 found="yes"
8629 fi
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646 xorg_testset_save_CFLAGS="$CFLAGS"
8647
8648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8652 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else case e in #(
8656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 int i;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"
8661 then :
8662 xorg_cv_cc_flag_unknown_warning_option=yes
8663 else case e in #(
8664 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8665 esac
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8668 esac
8669 fi
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8673 CFLAGS="$xorg_testset_save_CFLAGS"
8674 fi
8675
8676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 fi
8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8683 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8684 then :
8685 printf %s "(cached) " >&6
8686 else case e in #(
8687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 _ACEOF
8691 if ac_fn_c_try_compile "$LINENO"
8692 then :
8693 xorg_cv_cc_flag_unused_command_line_argument=yes
8694 else case e in #(
8695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8696 esac
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8699 esac
8700 fi
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8704 CFLAGS="$xorg_testset_save_CFLAGS"
8705 fi
8706
8707 found="no"
8708
8709 if test $found = "no" ; then
8710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712 fi
8713
8714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8716 fi
8717
8718 CFLAGS="$CFLAGS -Werror=address"
8719
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8721 printf %s "checking if $CC supports -Werror=address... " >&6; }
8722 cacheid=xorg_cv_cc_flag__Werror_address
8723 if eval test \${$cacheid+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else case e in #(
8727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 int
8731 main (void)
8732 {
8733
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"
8739 then :
8740 eval $cacheid=yes
8741 else case e in #(
8742 e) eval $cacheid=no ;;
8743 esac
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8746 conftest$ac_exeext conftest.$ac_ext ;;
8747 esac
8748 fi
8749
8750
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752
8753 eval supported=\$$cacheid
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8755 printf "%s\n" "$supported" >&6; }
8756 if test "$supported" = "yes" ; then
8757 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8758 found="yes"
8759 fi
8760 fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 xorg_testset_save_CFLAGS="$CFLAGS"
8777
8778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8782 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8783 then :
8784 printf %s "(cached) " >&6
8785 else case e in #(
8786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788 int i;
8789 _ACEOF
8790 if ac_fn_c_try_compile "$LINENO"
8791 then :
8792 xorg_cv_cc_flag_unknown_warning_option=yes
8793 else case e in #(
8794 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8795 esac
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8798 esac
8799 fi
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804 fi
8805
8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809 fi
8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else case e in #(
8817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int i;
8820 _ACEOF
8821 if ac_fn_c_try_compile "$LINENO"
8822 then :
8823 xorg_cv_cc_flag_unused_command_line_argument=yes
8824 else case e in #(
8825 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8826 esac
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8829 esac
8830 fi
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835 fi
8836
8837 found="no"
8838
8839 if test $found = "no" ; then
8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842 fi
8843
8844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846 fi
8847
8848 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8849
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8851 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8852 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8853 if eval test \${$cacheid+y}
8854 then :
8855 printf %s "(cached) " >&6
8856 else case e in #(
8857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 int i;
8860 int
8861 main (void)
8862 {
8863
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 if ac_fn_c_try_link "$LINENO"
8869 then :
8870 eval $cacheid=yes
8871 else case e in #(
8872 e) eval $cacheid=no ;;
8873 esac
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8876 conftest$ac_exeext conftest.$ac_ext ;;
8877 esac
8878 fi
8879
8880
8881 CFLAGS="$xorg_testset_save_CFLAGS"
8882
8883 eval supported=\$$cacheid
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8885 printf "%s\n" "$supported" >&6; }
8886 if test "$supported" = "yes" ; then
8887 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8888 found="yes"
8889 fi
8890 fi
8891
8892 if test $found = "no" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896
8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899 fi
8900
8901 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8902
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8904 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8905 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8906 if eval test \${$cacheid+y}
8907 then :
8908 printf %s "(cached) " >&6
8909 else case e in #(
8910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 int i;
8913 int
8914 main (void)
8915 {
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"
8922 then :
8923 eval $cacheid=yes
8924 else case e in #(
8925 e) eval $cacheid=no ;;
8926 esac
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8929 conftest$ac_exeext conftest.$ac_ext ;;
8930 esac
8931 fi
8932
8933
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936 eval supported=\$$cacheid
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938 printf "%s\n" "$supported" >&6; }
8939 if test "$supported" = "yes" ; then
8940 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8941 found="yes"
8942 fi
8943 fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8966 then :
8967 printf %s "(cached) " >&6
8968 else case e in #(
8969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"
8974 then :
8975 xorg_cv_cc_flag_unknown_warning_option=yes
8976 else case e in #(
8977 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8978 esac
8979 fi
8980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8981 esac
8982 fi
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986 CFLAGS="$xorg_testset_save_CFLAGS"
8987 fi
8988
8989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 fi
8993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else case e in #(
9000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"
9005 then :
9006 xorg_cv_cc_flag_unused_command_line_argument=yes
9007 else case e in #(
9008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9009 esac
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9012 esac
9013 fi
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 found="no"
9021
9022 if test $found = "no" ; then
9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026
9027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029 fi
9030
9031 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9032
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9034 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9035 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9036 if eval test \${$cacheid+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else case e in #(
9040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int i;
9043 int
9044 main (void)
9045 {
9046
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"
9052 then :
9053 eval $cacheid=yes
9054 else case e in #(
9055 e) eval $cacheid=no ;;
9056 esac
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9059 conftest$ac_exeext conftest.$ac_ext ;;
9060 esac
9061 fi
9062
9063
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066 eval supported=\$$cacheid
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068 printf "%s\n" "$supported" >&6; }
9069 if test "$supported" = "yes" ; then
9070 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9071 found="yes"
9072 fi
9073 fi
9074
9075 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9076 else
9077 { 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
9078 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;}
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9099 then :
9100 printf %s "(cached) " >&6
9101 else case e in #(
9102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"
9107 then :
9108 xorg_cv_cc_flag_unknown_warning_option=yes
9109 else case e in #(
9110 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9111 esac
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9114 esac
9115 fi
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9119 CFLAGS="$xorg_testset_save_CFLAGS"
9120 fi
9121
9122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125 fi
9126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9130 then :
9131 printf %s "(cached) " >&6
9132 else case e in #(
9133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 int i;
9136 _ACEOF
9137 if ac_fn_c_try_compile "$LINENO"
9138 then :
9139 xorg_cv_cc_flag_unused_command_line_argument=yes
9140 else case e in #(
9141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9142 esac
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9145 esac
9146 fi
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9150 CFLAGS="$xorg_testset_save_CFLAGS"
9151 fi
9152
9153 found="no"
9154
9155 if test $found = "no" ; then
9156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158 fi
9159
9160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162 fi
9163
9164 CFLAGS="$CFLAGS -Wimplicit"
9165
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9167 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9168 cacheid=xorg_cv_cc_flag__Wimplicit
9169 if eval test \${$cacheid+y}
9170 then :
9171 printf %s "(cached) " >&6
9172 else case e in #(
9173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 int i;
9176 int
9177 main (void)
9178 {
9179
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"
9185 then :
9186 eval $cacheid=yes
9187 else case e in #(
9188 e) eval $cacheid=no ;;
9189 esac
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9192 conftest$ac_exeext conftest.$ac_ext ;;
9193 esac
9194 fi
9195
9196
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9198
9199 eval supported=\$$cacheid
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9201 printf "%s\n" "$supported" >&6; }
9202 if test "$supported" = "yes" ; then
9203 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9204 found="yes"
9205 fi
9206 fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222 xorg_testset_save_CFLAGS="$CFLAGS"
9223
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9229 then :
9230 printf %s "(cached) " >&6
9231 else case e in #(
9232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int i;
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"
9237 then :
9238 xorg_cv_cc_flag_unknown_warning_option=yes
9239 else case e in #(
9240 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9241 esac
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9244 esac
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9249 CFLAGS="$xorg_testset_save_CFLAGS"
9250 fi
9251
9252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 fi
9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9260 then :
9261 printf %s "(cached) " >&6
9262 else case e in #(
9263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int i;
9266 _ACEOF
9267 if ac_fn_c_try_compile "$LINENO"
9268 then :
9269 xorg_cv_cc_flag_unused_command_line_argument=yes
9270 else case e in #(
9271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9272 esac
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9275 esac
9276 fi
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281 fi
9282
9283 found="no"
9284
9285 if test $found = "no" ; then
9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 fi
9289
9290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292 fi
9293
9294 CFLAGS="$CFLAGS -Wnonnull"
9295
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9297 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9298 cacheid=xorg_cv_cc_flag__Wnonnull
9299 if eval test \${$cacheid+y}
9300 then :
9301 printf %s "(cached) " >&6
9302 else case e in #(
9303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 int i;
9306 int
9307 main (void)
9308 {
9309
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"
9315 then :
9316 eval $cacheid=yes
9317 else case e in #(
9318 e) eval $cacheid=no ;;
9319 esac
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9322 conftest$ac_exeext conftest.$ac_ext ;;
9323 esac
9324 fi
9325
9326
9327 CFLAGS="$xorg_testset_save_CFLAGS"
9328
9329 eval supported=\$$cacheid
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9331 printf "%s\n" "$supported" >&6; }
9332 if test "$supported" = "yes" ; then
9333 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9334 found="yes"
9335 fi
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352 xorg_testset_save_CFLAGS="$CFLAGS"
9353
9354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9358 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 int i;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"
9367 then :
9368 xorg_cv_cc_flag_unknown_warning_option=yes
9369 else case e in #(
9370 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9371 esac
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9374 esac
9375 fi
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380 fi
9381
9382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385 fi
9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9390 then :
9391 printf %s "(cached) " >&6
9392 else case e in #(
9393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"
9398 then :
9399 xorg_cv_cc_flag_unused_command_line_argument=yes
9400 else case e in #(
9401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9402 esac
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9405 esac
9406 fi
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9410 CFLAGS="$xorg_testset_save_CFLAGS"
9411 fi
9412
9413 found="no"
9414
9415 if test $found = "no" ; then
9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 fi
9419
9420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9422 fi
9423
9424 CFLAGS="$CFLAGS -Winit-self"
9425
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9427 printf %s "checking if $CC supports -Winit-self... " >&6; }
9428 cacheid=xorg_cv_cc_flag__Winit_self
9429 if eval test \${$cacheid+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else case e in #(
9433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 int i;
9436 int
9437 main (void)
9438 {
9439
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"
9445 then :
9446 eval $cacheid=yes
9447 else case e in #(
9448 e) eval $cacheid=no ;;
9449 esac
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9452 conftest$ac_exeext conftest.$ac_ext ;;
9453 esac
9454 fi
9455
9456
9457 CFLAGS="$xorg_testset_save_CFLAGS"
9458
9459 eval supported=\$$cacheid
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9461 printf "%s\n" "$supported" >&6; }
9462 if test "$supported" = "yes" ; then
9463 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9464 found="yes"
9465 fi
9466 fi
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482 xorg_testset_save_CFLAGS="$CFLAGS"
9483
9484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9488 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9489 then :
9490 printf %s "(cached) " >&6
9491 else case e in #(
9492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 int i;
9495 _ACEOF
9496 if ac_fn_c_try_compile "$LINENO"
9497 then :
9498 xorg_cv_cc_flag_unknown_warning_option=yes
9499 else case e in #(
9500 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9501 esac
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9504 esac
9505 fi
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9509 CFLAGS="$xorg_testset_save_CFLAGS"
9510 fi
9511
9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515 fi
9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else case e in #(
9523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 _ACEOF
9527 if ac_fn_c_try_compile "$LINENO"
9528 then :
9529 xorg_cv_cc_flag_unused_command_line_argument=yes
9530 else case e in #(
9531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9532 esac
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9535 esac
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 found="no"
9544
9545 if test $found = "no" ; then
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 fi
9553
9554 CFLAGS="$CFLAGS -Wmain"
9555
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9557 printf %s "checking if $CC supports -Wmain... " >&6; }
9558 cacheid=xorg_cv_cc_flag__Wmain
9559 if eval test \${$cacheid+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else case e in #(
9563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 int
9567 main (void)
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"
9575 then :
9576 eval $cacheid=yes
9577 else case e in #(
9578 e) eval $cacheid=no ;;
9579 esac
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9582 conftest$ac_exeext conftest.$ac_ext ;;
9583 esac
9584 fi
9585
9586
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588
9589 eval supported=\$$cacheid
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591 printf "%s\n" "$supported" >&6; }
9592 if test "$supported" = "yes" ; then
9593 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9594 found="yes"
9595 fi
9596 fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 xorg_testset_save_CFLAGS="$CFLAGS"
9613
9614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9619 then :
9620 printf %s "(cached) " >&6
9621 else case e in #(
9622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 int i;
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"
9627 then :
9628 xorg_cv_cc_flag_unknown_warning_option=yes
9629 else case e in #(
9630 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9631 esac
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9634 esac
9635 fi
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9639 CFLAGS="$xorg_testset_save_CFLAGS"
9640 fi
9641
9642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 fi
9646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9650 then :
9651 printf %s "(cached) " >&6
9652 else case e in #(
9653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 int i;
9656 _ACEOF
9657 if ac_fn_c_try_compile "$LINENO"
9658 then :
9659 xorg_cv_cc_flag_unused_command_line_argument=yes
9660 else case e in #(
9661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9662 esac
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9665 esac
9666 fi
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671 fi
9672
9673 found="no"
9674
9675 if test $found = "no" ; then
9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678 fi
9679
9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682 fi
9683
9684 CFLAGS="$CFLAGS -Wmissing-braces"
9685
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9687 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9688 cacheid=xorg_cv_cc_flag__Wmissing_braces
9689 if eval test \${$cacheid+y}
9690 then :
9691 printf %s "(cached) " >&6
9692 else case e in #(
9693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 int i;
9696 int
9697 main (void)
9698 {
9699
9700 ;
9701 return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"
9705 then :
9706 eval $cacheid=yes
9707 else case e in #(
9708 e) eval $cacheid=no ;;
9709 esac
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9712 conftest$ac_exeext conftest.$ac_ext ;;
9713 esac
9714 fi
9715
9716
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719 eval supported=\$$cacheid
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721 printf "%s\n" "$supported" >&6; }
9722 if test "$supported" = "yes" ; then
9723 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9724 found="yes"
9725 fi
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9749 then :
9750 printf %s "(cached) " >&6
9751 else case e in #(
9752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 int i;
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"
9757 then :
9758 xorg_cv_cc_flag_unknown_warning_option=yes
9759 else case e in #(
9760 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9761 esac
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9764 esac
9765 fi
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9769 CFLAGS="$xorg_testset_save_CFLAGS"
9770 fi
9771
9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775 fi
9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9780 then :
9781 printf %s "(cached) " >&6
9782 else case e in #(
9783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int i;
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"
9788 then :
9789 xorg_cv_cc_flag_unused_command_line_argument=yes
9790 else case e in #(
9791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9792 esac
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9795 esac
9796 fi
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9800 CFLAGS="$xorg_testset_save_CFLAGS"
9801 fi
9802
9803 found="no"
9804
9805 if test $found = "no" ; then
9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808 fi
9809
9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812 fi
9813
9814 CFLAGS="$CFLAGS -Wsequence-point"
9815
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9817 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9818 cacheid=xorg_cv_cc_flag__Wsequence_point
9819 if eval test \${$cacheid+y}
9820 then :
9821 printf %s "(cached) " >&6
9822 else case e in #(
9823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 int i;
9826 int
9827 main (void)
9828 {
9829
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"
9835 then :
9836 eval $cacheid=yes
9837 else case e in #(
9838 e) eval $cacheid=no ;;
9839 esac
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9842 conftest$ac_exeext conftest.$ac_ext ;;
9843 esac
9844 fi
9845
9846
9847 CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849 eval supported=\$$cacheid
9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851 printf "%s\n" "$supported" >&6; }
9852 if test "$supported" = "yes" ; then
9853 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9854 found="yes"
9855 fi
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872 xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9879 then :
9880 printf %s "(cached) " >&6
9881 else case e in #(
9882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 int i;
9885 _ACEOF
9886 if ac_fn_c_try_compile "$LINENO"
9887 then :
9888 xorg_cv_cc_flag_unknown_warning_option=yes
9889 else case e in #(
9890 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9891 esac
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9894 esac
9895 fi
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899 CFLAGS="$xorg_testset_save_CFLAGS"
9900 fi
9901
9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905 fi
9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9910 then :
9911 printf %s "(cached) " >&6
9912 else case e in #(
9913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"
9918 then :
9919 xorg_cv_cc_flag_unused_command_line_argument=yes
9920 else case e in #(
9921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9922 esac
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9925 esac
9926 fi
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931 fi
9932
9933 found="no"
9934
9935 if test $found = "no" ; then
9936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9938 fi
9939
9940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942 fi
9943
9944 CFLAGS="$CFLAGS -Wreturn-type"
9945
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9947 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9948 cacheid=xorg_cv_cc_flag__Wreturn_type
9949 if eval test \${$cacheid+y}
9950 then :
9951 printf %s "(cached) " >&6
9952 else case e in #(
9953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 int i;
9956 int
9957 main (void)
9958 {
9959
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"
9965 then :
9966 eval $cacheid=yes
9967 else case e in #(
9968 e) eval $cacheid=no ;;
9969 esac
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972 conftest$ac_exeext conftest.$ac_ext ;;
9973 esac
9974 fi
9975
9976
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979 eval supported=\$$cacheid
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981 printf "%s\n" "$supported" >&6; }
9982 if test "$supported" = "yes" ; then
9983 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9984 found="yes"
9985 fi
9986 fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10009 then :
10010 printf %s "(cached) " >&6
10011 else case e in #(
10012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 int i;
10015 _ACEOF
10016 if ac_fn_c_try_compile "$LINENO"
10017 then :
10018 xorg_cv_cc_flag_unknown_warning_option=yes
10019 else case e in #(
10020 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10021 esac
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10024 esac
10025 fi
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10029 CFLAGS="$xorg_testset_save_CFLAGS"
10030 fi
10031
10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035 fi
10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10040 then :
10041 printf %s "(cached) " >&6
10042 else case e in #(
10043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 _ACEOF
10047 if ac_fn_c_try_compile "$LINENO"
10048 then :
10049 xorg_cv_cc_flag_unused_command_line_argument=yes
10050 else case e in #(
10051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10052 esac
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10055 esac
10056 fi
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060 CFLAGS="$xorg_testset_save_CFLAGS"
10061 fi
10062
10063 found="no"
10064
10065 if test $found = "no" ; then
10066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068 fi
10069
10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072 fi
10073
10074 CFLAGS="$CFLAGS -Wtrigraphs"
10075
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10077 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10078 cacheid=xorg_cv_cc_flag__Wtrigraphs
10079 if eval test \${$cacheid+y}
10080 then :
10081 printf %s "(cached) " >&6
10082 else case e in #(
10083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int i;
10086 int
10087 main (void)
10088 {
10089
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 if ac_fn_c_try_link "$LINENO"
10095 then :
10096 eval $cacheid=yes
10097 else case e in #(
10098 e) eval $cacheid=no ;;
10099 esac
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10102 conftest$ac_exeext conftest.$ac_ext ;;
10103 esac
10104 fi
10105
10106
10107 CFLAGS="$xorg_testset_save_CFLAGS"
10108
10109 eval supported=\$$cacheid
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10111 printf "%s\n" "$supported" >&6; }
10112 if test "$supported" = "yes" ; then
10113 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10114 found="yes"
10115 fi
10116 fi
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132 xorg_testset_save_CFLAGS="$CFLAGS"
10133
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10139 then :
10140 printf %s "(cached) " >&6
10141 else case e in #(
10142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 int i;
10145 _ACEOF
10146 if ac_fn_c_try_compile "$LINENO"
10147 then :
10148 xorg_cv_cc_flag_unknown_warning_option=yes
10149 else case e in #(
10150 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10151 esac
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10154 esac
10155 fi
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10159 CFLAGS="$xorg_testset_save_CFLAGS"
10160 fi
10161
10162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 fi
10166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else case e in #(
10173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int i;
10176 _ACEOF
10177 if ac_fn_c_try_compile "$LINENO"
10178 then :
10179 xorg_cv_cc_flag_unused_command_line_argument=yes
10180 else case e in #(
10181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10182 esac
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10185 esac
10186 fi
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 found="no"
10194
10195 if test $found = "no" ; then
10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198 fi
10199
10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202 fi
10203
10204 CFLAGS="$CFLAGS -Warray-bounds"
10205
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10207 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10208 cacheid=xorg_cv_cc_flag__Warray_bounds
10209 if eval test \${$cacheid+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else case e in #(
10213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int i;
10216 int
10217 main (void)
10218 {
10219
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"
10225 then :
10226 eval $cacheid=yes
10227 else case e in #(
10228 e) eval $cacheid=no ;;
10229 esac
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10232 conftest$ac_exeext conftest.$ac_ext ;;
10233 esac
10234 fi
10235
10236
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239 eval supported=\$$cacheid
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241 printf "%s\n" "$supported" >&6; }
10242 if test "$supported" = "yes" ; then
10243 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10244 found="yes"
10245 fi
10246 fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262 xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10269 then :
10270 printf %s "(cached) " >&6
10271 else case e in #(
10272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 int i;
10275 _ACEOF
10276 if ac_fn_c_try_compile "$LINENO"
10277 then :
10278 xorg_cv_cc_flag_unknown_warning_option=yes
10279 else case e in #(
10280 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10281 esac
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10284 esac
10285 fi
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10289 CFLAGS="$xorg_testset_save_CFLAGS"
10290 fi
10291
10292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295 fi
10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10300 then :
10301 printf %s "(cached) " >&6
10302 else case e in #(
10303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305 int i;
10306 _ACEOF
10307 if ac_fn_c_try_compile "$LINENO"
10308 then :
10309 xorg_cv_cc_flag_unused_command_line_argument=yes
10310 else case e in #(
10311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10312 esac
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10315 esac
10316 fi
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10320 CFLAGS="$xorg_testset_save_CFLAGS"
10321 fi
10322
10323 found="no"
10324
10325 if test $found = "no" ; then
10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328 fi
10329
10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10332 fi
10333
10334 CFLAGS="$CFLAGS -Wwrite-strings"
10335
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10337 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10338 cacheid=xorg_cv_cc_flag__Wwrite_strings
10339 if eval test \${$cacheid+y}
10340 then :
10341 printf %s "(cached) " >&6
10342 else case e in #(
10343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 int
10347 main (void)
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"
10355 then :
10356 eval $cacheid=yes
10357 else case e in #(
10358 e) eval $cacheid=no ;;
10359 esac
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10362 conftest$ac_exeext conftest.$ac_ext ;;
10363 esac
10364 fi
10365
10366
10367 CFLAGS="$xorg_testset_save_CFLAGS"
10368
10369 eval supported=\$$cacheid
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371 printf "%s\n" "$supported" >&6; }
10372 if test "$supported" = "yes" ; then
10373 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10374 found="yes"
10375 fi
10376 fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 xorg_testset_save_CFLAGS="$CFLAGS"
10393
10394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10398 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10399 then :
10400 printf %s "(cached) " >&6
10401 else case e in #(
10402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 int i;
10405 _ACEOF
10406 if ac_fn_c_try_compile "$LINENO"
10407 then :
10408 xorg_cv_cc_flag_unknown_warning_option=yes
10409 else case e in #(
10410 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10411 esac
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10414 esac
10415 fi
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420 fi
10421
10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425 fi
10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else case e in #(
10433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int i;
10436 _ACEOF
10437 if ac_fn_c_try_compile "$LINENO"
10438 then :
10439 xorg_cv_cc_flag_unused_command_line_argument=yes
10440 else case e in #(
10441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10442 esac
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10445 esac
10446 fi
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10450 CFLAGS="$xorg_testset_save_CFLAGS"
10451 fi
10452
10453 found="no"
10454
10455 if test $found = "no" ; then
10456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10458 fi
10459
10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10462 fi
10463
10464 CFLAGS="$CFLAGS -Waddress"
10465
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10467 printf %s "checking if $CC supports -Waddress... " >&6; }
10468 cacheid=xorg_cv_cc_flag__Waddress
10469 if eval test \${$cacheid+y}
10470 then :
10471 printf %s "(cached) " >&6
10472 else case e in #(
10473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int i;
10476 int
10477 main (void)
10478 {
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_link "$LINENO"
10485 then :
10486 eval $cacheid=yes
10487 else case e in #(
10488 e) eval $cacheid=no ;;
10489 esac
10490 fi
10491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10492 conftest$ac_exeext conftest.$ac_ext ;;
10493 esac
10494 fi
10495
10496
10497 CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499 eval supported=\$$cacheid
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501 printf "%s\n" "$supported" >&6; }
10502 if test "$supported" = "yes" ; then
10503 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10504 found="yes"
10505 fi
10506 fi
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522 xorg_testset_save_CFLAGS="$CFLAGS"
10523
10524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10528 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10529 then :
10530 printf %s "(cached) " >&6
10531 else case e in #(
10532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 int i;
10535 _ACEOF
10536 if ac_fn_c_try_compile "$LINENO"
10537 then :
10538 xorg_cv_cc_flag_unknown_warning_option=yes
10539 else case e in #(
10540 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10541 esac
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10544 esac
10545 fi
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550 fi
10551
10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10555 fi
10556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10560 then :
10561 printf %s "(cached) " >&6
10562 else case e in #(
10563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 int i;
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"
10568 then :
10569 xorg_cv_cc_flag_unused_command_line_argument=yes
10570 else case e in #(
10571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10572 esac
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10575 esac
10576 fi
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10580 CFLAGS="$xorg_testset_save_CFLAGS"
10581 fi
10582
10583 found="no"
10584
10585 if test $found = "no" ; then
10586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588 fi
10589
10590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10592 fi
10593
10594 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10595
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10597 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10598 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10599 if eval test \${$cacheid+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else case e in #(
10603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10605 int i;
10606 int
10607 main (void)
10608 {
10609
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"
10615 then :
10616 eval $cacheid=yes
10617 else case e in #(
10618 e) eval $cacheid=no ;;
10619 esac
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10622 conftest$ac_exeext conftest.$ac_ext ;;
10623 esac
10624 fi
10625
10626
10627 CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629 eval supported=\$$cacheid
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631 printf "%s\n" "$supported" >&6; }
10632 if test "$supported" = "yes" ; then
10633 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10634 found="yes"
10635 fi
10636 fi
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652 xorg_testset_save_CFLAGS="$CFLAGS"
10653
10654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10658 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10659 then :
10660 printf %s "(cached) " >&6
10661 else case e in #(
10662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 int i;
10665 _ACEOF
10666 if ac_fn_c_try_compile "$LINENO"
10667 then :
10668 xorg_cv_cc_flag_unknown_warning_option=yes
10669 else case e in #(
10670 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10671 esac
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10674 esac
10675 fi
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10679 CFLAGS="$xorg_testset_save_CFLAGS"
10680 fi
10681
10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10685 fi
10686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10690 then :
10691 printf %s "(cached) " >&6
10692 else case e in #(
10693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 int i;
10696 _ACEOF
10697 if ac_fn_c_try_compile "$LINENO"
10698 then :
10699 xorg_cv_cc_flag_unused_command_line_argument=yes
10700 else case e in #(
10701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10702 esac
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10705 esac
10706 fi
10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10710 CFLAGS="$xorg_testset_save_CFLAGS"
10711 fi
10712
10713 found="no"
10714
10715 if test $found = "no" ; then
10716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10718 fi
10719
10720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10722 fi
10723
10724 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10725
10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10727 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10728 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10729 if eval test \${$cacheid+y}
10730 then :
10731 printf %s "(cached) " >&6
10732 else case e in #(
10733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 int i;
10736 int
10737 main (void)
10738 {
10739
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"
10745 then :
10746 eval $cacheid=yes
10747 else case e in #(
10748 e) eval $cacheid=no ;;
10749 esac
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10752 conftest$ac_exeext conftest.$ac_ext ;;
10753 esac
10754 fi
10755
10756
10757 CFLAGS="$xorg_testset_save_CFLAGS"
10758
10759 eval supported=\$$cacheid
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10761 printf "%s\n" "$supported" >&6; }
10762 if test "$supported" = "yes" ; then
10763 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10764 found="yes"
10765 fi
10766 fi
10767
10768
10769 fi
10770
10771
10772
10773
10774
10775
10776
10777 CWARNFLAGS="$BASE_CFLAGS"
10778 if test "x$GCC" = xyes ; then
10779 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10780 fi
10781
10782
10783
10784
10785
10786
10787
10788
10789 # Check whether --enable-strict-compilation was given.
10790 if test ${enable_strict_compilation+y}
10791 then :
10792 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10793 else case e in #(
10794 e) STRICT_COMPILE=no ;;
10795 esac
10796 fi
10797
10798
10799
10800
10801
10802
10803 STRICT_CFLAGS=""
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817 xorg_testset_save_CFLAGS="$CFLAGS"
10818
10819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10823 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10824 then :
10825 printf %s "(cached) " >&6
10826 else case e in #(
10827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 int i;
10830 _ACEOF
10831 if ac_fn_c_try_compile "$LINENO"
10832 then :
10833 xorg_cv_cc_flag_unknown_warning_option=yes
10834 else case e in #(
10835 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10836 esac
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10839 esac
10840 fi
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10844 CFLAGS="$xorg_testset_save_CFLAGS"
10845 fi
10846
10847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850 fi
10851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10855 then :
10856 printf %s "(cached) " >&6
10857 else case e in #(
10858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 int i;
10861 _ACEOF
10862 if ac_fn_c_try_compile "$LINENO"
10863 then :
10864 xorg_cv_cc_flag_unused_command_line_argument=yes
10865 else case e in #(
10866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10867 esac
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10870 esac
10871 fi
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10875 CFLAGS="$xorg_testset_save_CFLAGS"
10876 fi
10877
10878 found="no"
10879
10880 if test $found = "no" ; then
10881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10883 fi
10884
10885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10887 fi
10888
10889 CFLAGS="$CFLAGS -pedantic"
10890
10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10892 printf %s "checking if $CC supports -pedantic... " >&6; }
10893 cacheid=xorg_cv_cc_flag__pedantic
10894 if eval test \${$cacheid+y}
10895 then :
10896 printf %s "(cached) " >&6
10897 else case e in #(
10898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 int i;
10901 int
10902 main (void)
10903 {
10904
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"
10910 then :
10911 eval $cacheid=yes
10912 else case e in #(
10913 e) eval $cacheid=no ;;
10914 esac
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10917 conftest$ac_exeext conftest.$ac_ext ;;
10918 esac
10919 fi
10920
10921
10922 CFLAGS="$xorg_testset_save_CFLAGS"
10923
10924 eval supported=\$$cacheid
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10926 printf "%s\n" "$supported" >&6; }
10927 if test "$supported" = "yes" ; then
10928 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10929 found="yes"
10930 fi
10931 fi
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947 xorg_testset_save_CFLAGS="$CFLAGS"
10948
10949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10954 then :
10955 printf %s "(cached) " >&6
10956 else case e in #(
10957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959 int i;
10960 _ACEOF
10961 if ac_fn_c_try_compile "$LINENO"
10962 then :
10963 xorg_cv_cc_flag_unknown_warning_option=yes
10964 else case e in #(
10965 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10966 esac
10967 fi
10968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10969 esac
10970 fi
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10974 CFLAGS="$xorg_testset_save_CFLAGS"
10975 fi
10976
10977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10980 fi
10981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10985 then :
10986 printf %s "(cached) " >&6
10987 else case e in #(
10988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 int i;
10991 _ACEOF
10992 if ac_fn_c_try_compile "$LINENO"
10993 then :
10994 xorg_cv_cc_flag_unused_command_line_argument=yes
10995 else case e in #(
10996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10997 esac
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11000 esac
11001 fi
11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11005 CFLAGS="$xorg_testset_save_CFLAGS"
11006 fi
11007
11008 found="no"
11009
11010 if test $found = "no" ; then
11011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11013 fi
11014
11015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11017 fi
11018
11019 CFLAGS="$CFLAGS -Werror"
11020
11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11022 printf %s "checking if $CC supports -Werror... " >&6; }
11023 cacheid=xorg_cv_cc_flag__Werror
11024 if eval test \${$cacheid+y}
11025 then :
11026 printf %s "(cached) " >&6
11027 else case e in #(
11028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 int i;
11031 int
11032 main (void)
11033 {
11034
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"
11040 then :
11041 eval $cacheid=yes
11042 else case e in #(
11043 e) eval $cacheid=no ;;
11044 esac
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11047 conftest$ac_exeext conftest.$ac_ext ;;
11048 esac
11049 fi
11050
11051
11052 CFLAGS="$xorg_testset_save_CFLAGS"
11053
11054 eval supported=\$$cacheid
11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11056 printf "%s\n" "$supported" >&6; }
11057 if test "$supported" = "yes" ; then
11058 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11059 found="yes"
11060 fi
11061 fi
11062
11063 if test $found = "no" ; then
11064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11066 fi
11067
11068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11070 fi
11071
11072 CFLAGS="$CFLAGS -errwarn"
11073
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11075 printf %s "checking if $CC supports -errwarn... " >&6; }
11076 cacheid=xorg_cv_cc_flag__errwarn
11077 if eval test \${$cacheid+y}
11078 then :
11079 printf %s "(cached) " >&6
11080 else case e in #(
11081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083 int i;
11084 int
11085 main (void)
11086 {
11087
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"
11093 then :
11094 eval $cacheid=yes
11095 else case e in #(
11096 e) eval $cacheid=no ;;
11097 esac
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11100 conftest$ac_exeext conftest.$ac_ext ;;
11101 esac
11102 fi
11103
11104
11105 CFLAGS="$xorg_testset_save_CFLAGS"
11106
11107 eval supported=\$$cacheid
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11109 printf "%s\n" "$supported" >&6; }
11110 if test "$supported" = "yes" ; then
11111 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11112 found="yes"
11113 fi
11114 fi
11115
11116
11117
11118 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11119 # activate it with -Werror, so we add it here explicitly.
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133 xorg_testset_save_CFLAGS="$CFLAGS"
11134
11135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11138 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11139 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11140 then :
11141 printf %s "(cached) " >&6
11142 else case e in #(
11143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 int i;
11146 _ACEOF
11147 if ac_fn_c_try_compile "$LINENO"
11148 then :
11149 xorg_cv_cc_flag_unknown_warning_option=yes
11150 else case e in #(
11151 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11152 esac
11153 fi
11154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11155 esac
11156 fi
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11160 CFLAGS="$xorg_testset_save_CFLAGS"
11161 fi
11162
11163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11166 fi
11167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11171 then :
11172 printf %s "(cached) " >&6
11173 else case e in #(
11174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 int i;
11177 _ACEOF
11178 if ac_fn_c_try_compile "$LINENO"
11179 then :
11180 xorg_cv_cc_flag_unused_command_line_argument=yes
11181 else case e in #(
11182 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11183 esac
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11186 esac
11187 fi
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11189 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11191 CFLAGS="$xorg_testset_save_CFLAGS"
11192 fi
11193
11194 found="no"
11195
11196 if test $found = "no" ; then
11197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11199 fi
11200
11201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11203 fi
11204
11205 CFLAGS="$CFLAGS -Werror=attributes"
11206
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11208 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11209 cacheid=xorg_cv_cc_flag__Werror_attributes
11210 if eval test \${$cacheid+y}
11211 then :
11212 printf %s "(cached) " >&6
11213 else case e in #(
11214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216 int i;
11217 int
11218 main (void)
11219 {
11220
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"
11226 then :
11227 eval $cacheid=yes
11228 else case e in #(
11229 e) eval $cacheid=no ;;
11230 esac
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11233 conftest$ac_exeext conftest.$ac_ext ;;
11234 esac
11235 fi
11236
11237
11238 CFLAGS="$xorg_testset_save_CFLAGS"
11239
11240 eval supported=\$$cacheid
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11242 printf "%s\n" "$supported" >&6; }
11243 if test "$supported" = "yes" ; then
11244 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11245 found="yes"
11246 fi
11247 fi
11248
11249
11250
11251 if test "x$STRICT_COMPILE" = "xyes"; then
11252 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11253 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11254 fi
11255
11256
11257
11258
11259
11260
11261
11262
11263 cat >>confdefs.h <<_ACEOF
11264 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11265 _ACEOF
11266
11267 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11268 if test "x$PVM" = "x"; then
11269 PVM="0"
11270 fi
11271
11272 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11273
11274 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11275 if test "x$PVP" = "x"; then
11276 PVP="0"
11277 fi
11278
11279 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11280
11281
11282
11283 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11284 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11285 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11286 touch \$(top_srcdir)/ChangeLog; \
11287 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11288
11289
11290
11291
11292 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11293 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11294 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11295 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11296 touch \$(top_srcdir)/INSTALL; \
11297 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11298
11299
11300
11301
11302
11303
11304 case $host_os in
11305 solaris*)
11306 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11307 # check for a man page file found in later versions that use
11308 # traditional section numbers instead
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11310 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11311 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11312 then :
11313 printf %s "(cached) " >&6
11314 else case e in #(
11315 e) test "$cross_compiling" = yes &&
11316 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11317 if test -r "/usr/share/man/man7/attributes.7"; then
11318 ac_cv_file__usr_share_man_man7_attributes_7=yes
11319 else
11320 ac_cv_file__usr_share_man_man7_attributes_7=no
11321 fi ;;
11322 esac
11323 fi
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11325 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11326 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11327 then :
11328 SYSV_MAN_SECTIONS=false
11329 else case e in #(
11330 e) SYSV_MAN_SECTIONS=true ;;
11331 esac
11332 fi
11333
11334 ;;
11335 *) SYSV_MAN_SECTIONS=false ;;
11336 esac
11337
11338 if test x$APP_MAN_SUFFIX = x ; then
11339 APP_MAN_SUFFIX=1
11340 fi
11341 if test x$APP_MAN_DIR = x ; then
11342 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11343 fi
11344
11345 if test x$LIB_MAN_SUFFIX = x ; then
11346 LIB_MAN_SUFFIX=3
11347 fi
11348 if test x$LIB_MAN_DIR = x ; then
11349 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11350 fi
11351
11352 if test x$FILE_MAN_SUFFIX = x ; then
11353 case $SYSV_MAN_SECTIONS in
11354 true) FILE_MAN_SUFFIX=4 ;;
11355 *) FILE_MAN_SUFFIX=5 ;;
11356 esac
11357 fi
11358 if test x$FILE_MAN_DIR = x ; then
11359 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11360 fi
11361
11362 if test x$MISC_MAN_SUFFIX = x ; then
11363 case $SYSV_MAN_SECTIONS in
11364 true) MISC_MAN_SUFFIX=5 ;;
11365 *) MISC_MAN_SUFFIX=7 ;;
11366 esac
11367 fi
11368 if test x$MISC_MAN_DIR = x ; then
11369 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11370 fi
11371
11372 if test x$DRIVER_MAN_SUFFIX = x ; then
11373 case $SYSV_MAN_SECTIONS in
11374 true) DRIVER_MAN_SUFFIX=7 ;;
11375 *) DRIVER_MAN_SUFFIX=4 ;;
11376 esac
11377 fi
11378 if test x$DRIVER_MAN_DIR = x ; then
11379 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11380 fi
11381
11382 if test x$ADMIN_MAN_SUFFIX = x ; then
11383 case $SYSV_MAN_SECTIONS in
11384 true) ADMIN_MAN_SUFFIX=1m ;;
11385 *) ADMIN_MAN_SUFFIX=8 ;;
11386 esac
11387 fi
11388 if test x$ADMIN_MAN_DIR = x ; then
11389 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11390 fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406 XORG_MAN_PAGE="X Version 11"
11407
11408 MAN_SUBSTS="\
11409 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11410 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11411 -e 's|__xservername__|Xorg|g' \
11412 -e 's|__xconfigfile__|xorg.conf|g' \
11413 -e 's|__projectroot__|\$(prefix)|g' \
11414 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11415 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11416 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11417 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11418 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11419 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11420 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11421
11422
11423
11424
11425 AM_DEFAULT_VERBOSITY=0
11426
11427
11428
11429 # Obtain compiler/linker options for the transset dependencies
11430
11431 pkg_failed=no
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TRANSSET" >&5
11433 printf %s "checking for TRANSSET... " >&6; }
11434
11435 if test -n "$TRANSSET_CFLAGS"; then
11436 pkg_cv_TRANSSET_CFLAGS="$TRANSSET_CFLAGS"
11437 elif test -n "$PKG_CONFIG"; then
11438 if test -n "$PKG_CONFIG" && \
11439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11440 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11441 ac_status=$?
11442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443 test $ac_status = 0; }; then
11444 pkg_cv_TRANSSET_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11445 test "x$?" != "x0" && pkg_failed=yes
11446 else
11447 pkg_failed=yes
11448 fi
11449 else
11450 pkg_failed=untried
11451 fi
11452 if test -n "$TRANSSET_LIBS"; then
11453 pkg_cv_TRANSSET_LIBS="$TRANSSET_LIBS"
11454 elif test -n "$PKG_CONFIG"; then
11455 if test -n "$PKG_CONFIG" && \
11456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11457 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11458 ac_status=$?
11459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460 test $ac_status = 0; }; then
11461 pkg_cv_TRANSSET_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11462 test "x$?" != "x0" && pkg_failed=yes
11463 else
11464 pkg_failed=yes
11465 fi
11466 else
11467 pkg_failed=untried
11468 fi
11469
11470
11471
11472 if test $pkg_failed = yes; then
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 printf "%s\n" "no" >&6; }
11475
11476 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11477 _pkg_short_errors_supported=yes
11478 else
11479 _pkg_short_errors_supported=no
11480 fi
11481 if test $_pkg_short_errors_supported = yes; then
11482 TRANSSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11483 else
11484 TRANSSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11485 fi
11486 # Put the nasty error message in config.log where it belongs
11487 echo "$TRANSSET_PKG_ERRORS" >&5
11488
11489 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11490
11491 $TRANSSET_PKG_ERRORS
11492
11493 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11494 installed software in a non-standard prefix.
11495
11496 Alternatively, you may set the environment variables TRANSSET_CFLAGS
11497 and TRANSSET_LIBS to avoid the need to call pkg-config.
11498 See the pkg-config man page for more details." "$LINENO" 5
11499 elif test $pkg_failed = untried; then
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 printf "%s\n" "no" >&6; }
11502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11503 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11504 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11505 is in your PATH or set the PKG_CONFIG environment variable to the full
11506 path to pkg-config.
11507
11508 Alternatively, you may set the environment variables TRANSSET_CFLAGS
11509 and TRANSSET_LIBS to avoid the need to call pkg-config.
11510 See the pkg-config man page for more details.
11511
11512 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11513 See 'config.log' for more details" "$LINENO" 5; }
11514 else
11515 TRANSSET_CFLAGS=$pkg_cv_TRANSSET_CFLAGS
11516 TRANSSET_LIBS=$pkg_cv_TRANSSET_LIBS
11517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 printf "%s\n" "yes" >&6; }
11519
11520 fi
11521
11522
11523 printf "%s\n" "#define RELEASE_DATE \"$RELEASE_DATE\"" >>confdefs.h
11524
11525
11526 ac_config_files="$ac_config_files Makefile man/Makefile"
11527
11528 cat >confcache <<\_ACEOF
11529 # This file is a shell script that caches the results of configure
11530 # tests run on this system so they can be shared between configure
11531 # scripts and configure runs, see configure's option --config-cache.
11532 # It is not useful on other systems. If it contains results you don't
11533 # want to keep, you may remove or edit it.
11534 #
11535 # config.status only pays attention to the cache file if you give it
11536 # the --recheck option to rerun configure.
11537 #
11538 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11539 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11540 # following values.
11541
11542 _ACEOF
11543
11544 # The following way of writing the cache mishandles newlines in values,
11545 # but we know of no workaround that is simple, portable, and efficient.
11546 # So, we kill variables containing newlines.
11547 # Ultrix sh set writes to stderr and can't be redirected directly,
11548 # and sets the high bit in the cache file unless we assign to the vars.
11549 (
11550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11551 eval ac_val=\$$ac_var
11552 case $ac_val in #(
11553 *${as_nl}*)
11554 case $ac_var in #(
11555 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11556 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11557 esac
11558 case $ac_var in #(
11559 _ | IFS | as_nl) ;; #(
11560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11561 *) { eval $ac_var=; unset $ac_var;} ;;
11562 esac ;;
11563 esac
11564 done
11565
11566 (set) 2>&1 |
11567 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11568 *${as_nl}ac_space=\ *)
11569 # 'set' does not quote correctly, so add quotes: double-quote
11570 # substitution turns \\\\ into \\, and sed turns \\ into \.
11571 sed -n \
11572 "s/'/'\\\\''/g;
11573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11574 ;; #(
11575 *)
11576 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11578 ;;
11579 esac |
11580 sort
11581 ) |
11582 sed '
11583 /^ac_cv_env_/b end
11584 t clear
11585 :clear
11586 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11587 t end
11588 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11589 :end' >>confcache
11590 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11591 if test -w "$cache_file"; then
11592 if test "x$cache_file" != "x/dev/null"; then
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11594 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11595 if test ! -f "$cache_file" || test -h "$cache_file"; then
11596 cat confcache >"$cache_file"
11597 else
11598 case $cache_file in #(
11599 */* | ?:*)
11600 mv -f confcache "$cache_file"$$ &&
11601 mv -f "$cache_file"$$ "$cache_file" ;; #(
11602 *)
11603 mv -f confcache "$cache_file" ;;
11604 esac
11605 fi
11606 fi
11607 else
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11609 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11610 fi
11611 fi
11612 rm -f confcache
11613
11614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11615 # Let make expand exec_prefix.
11616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11617
11618 DEFS=-DHAVE_CONFIG_H
11619
11620 ac_libobjs=
11621 ac_ltlibobjs=
11622 U=
11623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11624 # 1. Remove the extension, and $U if already installed.
11625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11626 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11628 # will be set to the directory where LIBOBJS objects are built.
11629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11631 done
11632 LIBOBJS=$ac_libobjs
11633
11634 LTLIBOBJS=$ac_ltlibobjs
11635
11636
11637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11638 printf %s "checking that generated files are newer than configure... " >&6; }
11639 if test -n "$am_sleep_pid"; then
11640 # Hide warnings about reused PIDs.
11641 wait $am_sleep_pid 2>/dev/null
11642 fi
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11644 printf "%s\n" "done" >&6; }
11645 case $enable_silent_rules in # (((
11646 yes) AM_DEFAULT_VERBOSITY=0;;
11647 no) AM_DEFAULT_VERBOSITY=1;;
11648 esac
11649 if test $am_cv_make_support_nested_variables = yes; then
11650 AM_V='$(V)'
11651 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11652 else
11653 AM_V=$AM_DEFAULT_VERBOSITY
11654 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11655 fi
11656
11657 if test -n "$EXEEXT"; then
11658 am__EXEEXT_TRUE=
11659 am__EXEEXT_FALSE='#'
11660 else
11661 am__EXEEXT_TRUE='#'
11662 am__EXEEXT_FALSE=
11663 fi
11664
11665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11666 as_fn_error $? "conditional \"AMDEP\" was never defined.
11667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11668 fi
11669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11672 fi
11673
11674 : "${CONFIG_STATUS=./config.status}"
11675 ac_write_fail=0
11676 ac_clean_files_save=$ac_clean_files
11677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11679 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11680 as_write_fail=0
11681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11682 #! $SHELL
11683 # Generated by $as_me.
11684 # Run this file to recreate the current configuration.
11685 # Compiler output produced by configure, useful for debugging
11686 # configure, is in config.log if it exists.
11687
11688 debug=false
11689 ac_cs_recheck=false
11690 ac_cs_silent=false
11691
11692 SHELL=\${CONFIG_SHELL-$SHELL}
11693 export SHELL
11694 _ASEOF
11695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11696 ## -------------------- ##
11697 ## M4sh Initialization. ##
11698 ## -------------------- ##
11699
11700 # Be more Bourne compatible
11701 DUALCASE=1; export DUALCASE # for MKS sh
11702 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11703 then :
11704 emulate sh
11705 NULLCMD=:
11706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707 # is contrary to our usage. Disable this feature.
11708 alias -g '${1+"$@"}'='"$@"'
11709 setopt NO_GLOB_SUBST
11710 else case e in #(
11711 e) case `(set -o) 2>/dev/null` in #(
11712 *posix*) :
11713 set -o posix ;; #(
11714 *) :
11715 ;;
11716 esac ;;
11717 esac
11718 fi
11719
11720
11721
11722 # Reset variables that may have inherited troublesome values from
11723 # the environment.
11724
11725 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11726 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11727 # side effect of setting IFS to empty, thus disabling word splitting.)
11728 # Quoting is to prevent editors from complaining about space-tab.
11729 as_nl='
11730 '
11731 export as_nl
11732 IFS=" "" $as_nl"
11733
11734 PS1='$ '
11735 PS2='> '
11736 PS4='+ '
11737
11738 # Ensure predictable behavior from utilities with locale-dependent output.
11739 LC_ALL=C
11740 export LC_ALL
11741 LANGUAGE=C
11742 export LANGUAGE
11743
11744 # We cannot yet rely on "unset" to work, but we need these variables
11745 # to be unset--not just set to an empty or harmless value--now, to
11746 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11747 # also avoids known problems related to "unset" and subshell syntax
11748 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11749 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11750 do eval test \${$as_var+y} \
11751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11752 done
11753
11754 # Ensure that fds 0, 1, and 2 are open.
11755 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11756 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11757 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11758
11759 # The user is always right.
11760 if ${PATH_SEPARATOR+false} :; then
11761 PATH_SEPARATOR=:
11762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11764 PATH_SEPARATOR=';'
11765 }
11766 fi
11767
11768
11769 # Find who we are. Look in the path if we contain no directory separator.
11770 as_myself=
11771 case $0 in #((
11772 *[\\/]* ) as_myself=$0 ;;
11773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11775 do
11776 IFS=$as_save_IFS
11777 case $as_dir in #(((
11778 '') as_dir=./ ;;
11779 */) ;;
11780 *) as_dir=$as_dir/ ;;
11781 esac
11782 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11783 done
11784 IFS=$as_save_IFS
11785
11786 ;;
11787 esac
11788 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11789 # in which case we are not to be found in the path.
11790 if test "x$as_myself" = x; then
11791 as_myself=$0
11792 fi
11793 if test ! -f "$as_myself"; then
11794 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11795 exit 1
11796 fi
11797
11798
11799
11800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11801 # ----------------------------------------
11802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11804 # script with STATUS, using 1 if that was 0.
11805 as_fn_error ()
11806 {
11807 as_status=$1; test $as_status -eq 0 && as_status=1
11808 if test "$4"; then
11809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11811 fi
11812 printf "%s\n" "$as_me: error: $2" >&2
11813 as_fn_exit $as_status
11814 } # as_fn_error
11815
11816
11817 # as_fn_set_status STATUS
11818 # -----------------------
11819 # Set $? to STATUS, without forking.
11820 as_fn_set_status ()
11821 {
11822 return $1
11823 } # as_fn_set_status
11824
11825 # as_fn_exit STATUS
11826 # -----------------
11827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11828 as_fn_exit ()
11829 {
11830 set +e
11831 as_fn_set_status $1
11832 exit $1
11833 } # as_fn_exit
11834
11835 # as_fn_unset VAR
11836 # ---------------
11837 # Portably unset VAR.
11838 as_fn_unset ()
11839 {
11840 { eval $1=; unset $1;}
11841 }
11842 as_unset=as_fn_unset
11843
11844 # as_fn_append VAR VALUE
11845 # ----------------------
11846 # Append the text in VALUE to the end of the definition contained in VAR. Take
11847 # advantage of any shell optimizations that allow amortized linear growth over
11848 # repeated appends, instead of the typical quadratic growth present in naive
11849 # implementations.
11850 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11851 then :
11852 eval 'as_fn_append ()
11853 {
11854 eval $1+=\$2
11855 }'
11856 else case e in #(
11857 e) as_fn_append ()
11858 {
11859 eval $1=\$$1\$2
11860 } ;;
11861 esac
11862 fi # as_fn_append
11863
11864 # as_fn_arith ARG...
11865 # ------------------
11866 # Perform arithmetic evaluation on the ARGs, and store the result in the
11867 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11868 # must be portable across $(()) and expr.
11869 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11870 then :
11871 eval 'as_fn_arith ()
11872 {
11873 as_val=$(( $* ))
11874 }'
11875 else case e in #(
11876 e) as_fn_arith ()
11877 {
11878 as_val=`expr "$@" || test $? -eq 1`
11879 } ;;
11880 esac
11881 fi # as_fn_arith
11882
11883
11884 if expr a : '\(a\)' >/dev/null 2>&1 &&
11885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11886 as_expr=expr
11887 else
11888 as_expr=false
11889 fi
11890
11891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11892 as_basename=basename
11893 else
11894 as_basename=false
11895 fi
11896
11897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11898 as_dirname=dirname
11899 else
11900 as_dirname=false
11901 fi
11902
11903 as_me=`$as_basename -- "$0" ||
11904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11905 X"$0" : 'X\(//\)$' \| \
11906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11907 printf "%s\n" X/"$0" |
11908 sed '/^.*\/\([^/][^/]*\)\/*$/{
11909 s//\1/
11910 q
11911 }
11912 /^X\/\(\/\/\)$/{
11913 s//\1/
11914 q
11915 }
11916 /^X\/\(\/\).*/{
11917 s//\1/
11918 q
11919 }
11920 s/.*/./; q'`
11921
11922 # Avoid depending upon Character Ranges.
11923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11926 as_cr_digits='0123456789'
11927 as_cr_alnum=$as_cr_Letters$as_cr_digits
11928
11929
11930 # Determine whether it's possible to make 'echo' print without a newline.
11931 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11932 # for compatibility with existing Makefiles.
11933 ECHO_C= ECHO_N= ECHO_T=
11934 case `echo -n x` in #(((((
11935 -n*)
11936 case `echo 'xy\c'` in
11937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11938 xy) ECHO_C='\c';;
11939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11940 ECHO_T=' ';;
11941 esac;;
11942 *)
11943 ECHO_N='-n';;
11944 esac
11945
11946 # For backward compatibility with old third-party macros, we provide
11947 # the shell variables $as_echo and $as_echo_n. New code should use
11948 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11949 as_echo='printf %s\n'
11950 as_echo_n='printf %s'
11951
11952 rm -f conf$$ conf$$.exe conf$$.file
11953 if test -d conf$$.dir; then
11954 rm -f conf$$.dir/conf$$.file
11955 else
11956 rm -f conf$$.dir
11957 mkdir conf$$.dir 2>/dev/null
11958 fi
11959 if (echo >conf$$.file) 2>/dev/null; then
11960 if ln -s conf$$.file conf$$ 2>/dev/null; then
11961 as_ln_s='ln -s'
11962 # ... but there are two gotchas:
11963 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11964 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11965 # In both cases, we have to default to 'cp -pR'.
11966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11967 as_ln_s='cp -pR'
11968 elif ln conf$$.file conf$$ 2>/dev/null; then
11969 as_ln_s=ln
11970 else
11971 as_ln_s='cp -pR'
11972 fi
11973 else
11974 as_ln_s='cp -pR'
11975 fi
11976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11977 rmdir conf$$.dir 2>/dev/null
11978
11979
11980 # as_fn_mkdir_p
11981 # -------------
11982 # Create "$as_dir" as a directory, including parents if necessary.
11983 as_fn_mkdir_p ()
11984 {
11985
11986 case $as_dir in #(
11987 -*) as_dir=./$as_dir;;
11988 esac
11989 test -d "$as_dir" || eval $as_mkdir_p || {
11990 as_dirs=
11991 while :; do
11992 case $as_dir in #(
11993 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11994 *) as_qdir=$as_dir;;
11995 esac
11996 as_dirs="'$as_qdir' $as_dirs"
11997 as_dir=`$as_dirname -- "$as_dir" ||
11998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999 X"$as_dir" : 'X\(//\)[^/]' \| \
12000 X"$as_dir" : 'X\(//\)$' \| \
12001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12002 printf "%s\n" X"$as_dir" |
12003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12004 s//\1/
12005 q
12006 }
12007 /^X\(\/\/\)[^/].*/{
12008 s//\1/
12009 q
12010 }
12011 /^X\(\/\/\)$/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\).*/{
12016 s//\1/
12017 q
12018 }
12019 s/.*/./; q'`
12020 test -d "$as_dir" && break
12021 done
12022 test -z "$as_dirs" || eval "mkdir $as_dirs"
12023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12024
12025
12026 } # as_fn_mkdir_p
12027 if mkdir -p . 2>/dev/null; then
12028 as_mkdir_p='mkdir -p "$as_dir"'
12029 else
12030 test -d ./-p && rmdir ./-p
12031 as_mkdir_p=false
12032 fi
12033
12034
12035 # as_fn_executable_p FILE
12036 # -----------------------
12037 # Test if FILE is an executable regular file.
12038 as_fn_executable_p ()
12039 {
12040 test -f "$1" && test -x "$1"
12041 } # as_fn_executable_p
12042 as_test_x='test -x'
12043 as_executable_p=as_fn_executable_p
12044
12045 # Sed expression to map a string onto a valid CPP name.
12046 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12047 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12048
12049 # Sed expression to map a string onto a valid variable name.
12050 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12051 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12052
12053
12054 exec 6>&1
12055 ## ----------------------------------- ##
12056 ## Main body of $CONFIG_STATUS script. ##
12057 ## ----------------------------------- ##
12058 _ASEOF
12059 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12060
12061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062 # Save the log message, to keep $0 and so on meaningful, and to
12063 # report actual input values of CONFIG_FILES etc. instead of their
12064 # values after options handling.
12065 ac_log="
12066 This file was extended by transset $as_me 1.0.4, which was
12067 generated by GNU Autoconf 2.72. Invocation command line was
12068
12069 CONFIG_FILES = $CONFIG_FILES
12070 CONFIG_HEADERS = $CONFIG_HEADERS
12071 CONFIG_LINKS = $CONFIG_LINKS
12072 CONFIG_COMMANDS = $CONFIG_COMMANDS
12073 $ $0 $@
12074
12075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12076 "
12077
12078 _ACEOF
12079
12080 case $ac_config_files in *"
12081 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12082 esac
12083
12084 case $ac_config_headers in *"
12085 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12086 esac
12087
12088
12089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090 # Files that config.status was made for.
12091 config_files="$ac_config_files"
12092 config_headers="$ac_config_headers"
12093 config_commands="$ac_config_commands"
12094
12095 _ACEOF
12096
12097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098 ac_cs_usage="\
12099 '$as_me' instantiates files and other configuration actions
12100 from templates according to the current configuration. Unless the files
12101 and actions are specified as TAGs, all are instantiated by default.
12102
12103 Usage: $0 [OPTION]... [TAG]...
12104
12105 -h, --help print this help, then exit
12106 -V, --version print version number and configuration settings, then exit
12107 --config print configuration, then exit
12108 -q, --quiet, --silent
12109 do not print progress messages
12110 -d, --debug don't remove temporary files
12111 --recheck update $as_me by reconfiguring in the same conditions
12112 --file=FILE[:TEMPLATE]
12113 instantiate the configuration file FILE
12114 --header=FILE[:TEMPLATE]
12115 instantiate the configuration header FILE
12116
12117 Configuration files:
12118 $config_files
12119
12120 Configuration headers:
12121 $config_headers
12122
12123 Configuration commands:
12124 $config_commands
12125
12126 Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/issues>."
12127
12128 _ACEOF
12129 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12130 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12132 ac_cs_config='$ac_cs_config_escaped'
12133 ac_cs_version="\\
12134 transset config.status 1.0.4
12135 configured by $0, generated by GNU Autoconf 2.72,
12136 with options \\"\$ac_cs_config\\"
12137
12138 Copyright (C) 2023 Free Software Foundation, Inc.
12139 This config.status script is free software; the Free Software Foundation
12140 gives unlimited permission to copy, distribute and modify it."
12141
12142 ac_pwd='$ac_pwd'
12143 srcdir='$srcdir'
12144 INSTALL='$INSTALL'
12145 MKDIR_P='$MKDIR_P'
12146 AWK='$AWK'
12147 test -n "\$AWK" || AWK=awk
12148 _ACEOF
12149
12150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151 # The default lists apply if the user does not specify any file.
12152 ac_need_defaults=:
12153 while test $# != 0
12154 do
12155 case $1 in
12156 --*=?*)
12157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12159 ac_shift=:
12160 ;;
12161 --*=)
12162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12163 ac_optarg=
12164 ac_shift=:
12165 ;;
12166 *)
12167 ac_option=$1
12168 ac_optarg=$2
12169 ac_shift=shift
12170 ;;
12171 esac
12172
12173 case $ac_option in
12174 # Handling of the options.
12175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12176 ac_cs_recheck=: ;;
12177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12178 printf "%s\n" "$ac_cs_version"; exit ;;
12179 --config | --confi | --conf | --con | --co | --c )
12180 printf "%s\n" "$ac_cs_config"; exit ;;
12181 --debug | --debu | --deb | --de | --d | -d )
12182 debug=: ;;
12183 --file | --fil | --fi | --f )
12184 $ac_shift
12185 case $ac_optarg in
12186 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12187 '') as_fn_error $? "missing file argument" ;;
12188 esac
12189 as_fn_append CONFIG_FILES " '$ac_optarg'"
12190 ac_need_defaults=false;;
12191 --header | --heade | --head | --hea )
12192 $ac_shift
12193 case $ac_optarg in
12194 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12195 esac
12196 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12197 ac_need_defaults=false;;
12198 --he | --h)
12199 # Conflict between --help and --header
12200 as_fn_error $? "ambiguous option: '$1'
12201 Try '$0 --help' for more information.";;
12202 --help | --hel | -h )
12203 printf "%s\n" "$ac_cs_usage"; exit ;;
12204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12206 ac_cs_silent=: ;;
12207
12208 # This is an error.
12209 -*) as_fn_error $? "unrecognized option: '$1'
12210 Try '$0 --help' for more information." ;;
12211
12212 *) as_fn_append ac_config_targets " $1"
12213 ac_need_defaults=false ;;
12214
12215 esac
12216 shift
12217 done
12218
12219 ac_configure_extra_args=
12220
12221 if $ac_cs_silent; then
12222 exec 6>/dev/null
12223 ac_configure_extra_args="$ac_configure_extra_args --silent"
12224 fi
12225
12226 _ACEOF
12227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12228 if \$ac_cs_recheck; then
12229 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12230 shift
12231 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12232 CONFIG_SHELL='$SHELL'
12233 export CONFIG_SHELL
12234 exec "\$@"
12235 fi
12236
12237 _ACEOF
12238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239 exec 5>>config.log
12240 {
12241 echo
12242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12243 ## Running $as_me. ##
12244 _ASBOX
12245 printf "%s\n" "$ac_log"
12246 } >&5
12247
12248 _ACEOF
12249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12250 #
12251 # INIT-COMMANDS
12252 #
12253 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12254
12255 _ACEOF
12256
12257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258
12259 # Handling of arguments.
12260 for ac_config_target in $ac_config_targets
12261 do
12262 case $ac_config_target in
12263 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12264 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12266 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12267
12268 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12269 esac
12270 done
12271
12272
12273 # If the user did not use the arguments to specify the items to instantiate,
12274 # then the envvar interface is used. Set only those that are not.
12275 # We use the long form for the default assignment because of an extremely
12276 # bizarre bug on SunOS 4.1.3.
12277 if $ac_need_defaults; then
12278 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12279 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12280 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12281 fi
12282
12283 # Have a temporary directory for convenience. Make it in the build tree
12284 # simply because there is no reason against having it here, and in addition,
12285 # creating and moving files from /tmp can sometimes cause problems.
12286 # Hook for its removal unless debugging.
12287 # Note that there is a small window in which the directory will not be cleaned:
12288 # after its creation but before its name has been assigned to '$tmp'.
12289 $debug ||
12290 {
12291 tmp= ac_tmp=
12292 trap 'exit_status=$?
12293 : "${ac_tmp:=$tmp}"
12294 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12295 ' 0
12296 trap 'as_fn_exit 1' 1 2 13 15
12297 }
12298 # Create a (secure) tmp directory for tmp files.
12299
12300 {
12301 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12302 test -d "$tmp"
12303 } ||
12304 {
12305 tmp=./conf$$-$RANDOM
12306 (umask 077 && mkdir "$tmp")
12307 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12308 ac_tmp=$tmp
12309
12310 # Set up the scripts for CONFIG_FILES section.
12311 # No need to generate them if there are no CONFIG_FILES.
12312 # This happens for instance with './config.status config.h'.
12313 if test -n "$CONFIG_FILES"; then
12314
12315
12316 ac_cr=`echo X | tr X '\015'`
12317 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12318 # But we know of no other shell where ac_cr would be empty at this
12319 # point, so we can use a bashism as a fallback.
12320 if test "x$ac_cr" = x; then
12321 eval ac_cr=\$\'\\r\'
12322 fi
12323 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12324 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12325 ac_cs_awk_cr='\\r'
12326 else
12327 ac_cs_awk_cr=$ac_cr
12328 fi
12329
12330 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12331 _ACEOF
12332
12333
12334 {
12335 echo "cat >conf$$subs.awk <<_ACEOF" &&
12336 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12337 echo "_ACEOF"
12338 } >conf$$subs.sh ||
12339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12340 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12341 ac_delim='%!_!# '
12342 for ac_last_try in false false false false false :; do
12343 . ./conf$$subs.sh ||
12344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12345
12346 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12347 if test $ac_delim_n = $ac_delim_num; then
12348 break
12349 elif $ac_last_try; then
12350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12351 else
12352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12353 fi
12354 done
12355 rm -f conf$$subs.sh
12356
12357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12358 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12359 _ACEOF
12360 sed -n '
12361 h
12362 s/^/S["/; s/!.*/"]=/
12363 p
12364 g
12365 s/^[^!]*!//
12366 :repl
12367 t repl
12368 s/'"$ac_delim"'$//
12369 t delim
12370 :nl
12371 h
12372 s/\(.\{148\}\)..*/\1/
12373 t more1
12374 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12375 p
12376 n
12377 b repl
12378 :more1
12379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12380 p
12381 g
12382 s/.\{148\}//
12383 t nl
12384 :delim
12385 h
12386 s/\(.\{148\}\)..*/\1/
12387 t more2
12388 s/["\\]/\\&/g; s/^/"/; s/$/"/
12389 p
12390 b
12391 :more2
12392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12393 p
12394 g
12395 s/.\{148\}//
12396 t delim
12397 ' <conf$$subs.awk | sed '
12398 /^[^""]/{
12399 N
12400 s/\n//
12401 }
12402 ' >>$CONFIG_STATUS || ac_write_fail=1
12403 rm -f conf$$subs.awk
12404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12405 _ACAWK
12406 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12407 for (key in S) S_is_set[key] = 1
12408 FS = ""
12409
12410 }
12411 {
12412 line = $ 0
12413 nfields = split(line, field, "@")
12414 substed = 0
12415 len = length(field[1])
12416 for (i = 2; i < nfields; i++) {
12417 key = field[i]
12418 keylen = length(key)
12419 if (S_is_set[key]) {
12420 value = S[key]
12421 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12422 len += length(value) + length(field[++i])
12423 substed = 1
12424 } else
12425 len += 1 + keylen
12426 }
12427
12428 print line
12429 }
12430
12431 _ACAWK
12432 _ACEOF
12433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12435 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12436 else
12437 cat
12438 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12439 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12440 _ACEOF
12441
12442 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12443 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12444 # trailing colons and then remove the whole line if VPATH becomes empty
12445 # (actually we leave an empty line to preserve line numbers).
12446 if test "x$srcdir" = x.; then
12447 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12448 h
12449 s///
12450 s/^/:/
12451 s/[ ]*$/:/
12452 s/:\$(srcdir):/:/g
12453 s/:\${srcdir}:/:/g
12454 s/:@srcdir@:/:/g
12455 s/^:*//
12456 s/:*$//
12457 x
12458 s/\(=[ ]*\).*/\1/
12459 G
12460 s/\n//
12461 s/^[^=]*=[ ]*$//
12462 }'
12463 fi
12464
12465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12466 fi # test -n "$CONFIG_FILES"
12467
12468 # Set up the scripts for CONFIG_HEADERS section.
12469 # No need to generate them if there are no CONFIG_HEADERS.
12470 # This happens for instance with './config.status Makefile'.
12471 if test -n "$CONFIG_HEADERS"; then
12472 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12473 BEGIN {
12474 _ACEOF
12475
12476 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12477 # here-document in config.status, that substitutes the proper values into
12478 # config.h.in to produce config.h.
12479
12480 # Create a delimiter string that does not exist in confdefs.h, to ease
12481 # handling of long lines.
12482 ac_delim='%!_!# '
12483 for ac_last_try in false false :; do
12484 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12485 if test -z "$ac_tt"; then
12486 break
12487 elif $ac_last_try; then
12488 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12489 else
12490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12491 fi
12492 done
12493
12494 # For the awk script, D is an array of macro values keyed by name,
12495 # likewise P contains macro parameters if any. Preserve backslash
12496 # newline sequences.
12497
12498 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12499 sed -n '
12500 s/.\{148\}/&'"$ac_delim"'/g
12501 t rset
12502 :rset
12503 s/^[ ]*#[ ]*define[ ][ ]*/ /
12504 t def
12505 d
12506 :def
12507 s/\\$//
12508 t bsnl
12509 s/["\\]/\\&/g
12510 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12511 D["\1"]=" \3"/p
12512 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12513 d
12514 :bsnl
12515 s/["\\]/\\&/g
12516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12517 D["\1"]=" \3\\\\\\n"\\/p
12518 t cont
12519 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12520 t cont
12521 d
12522 :cont
12523 n
12524 s/.\{148\}/&'"$ac_delim"'/g
12525 t clear
12526 :clear
12527 s/\\$//
12528 t bsnlc
12529 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12530 d
12531 :bsnlc
12532 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12533 b cont
12534 ' <confdefs.h | sed '
12535 s/'"$ac_delim"'/"\\\
12536 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12537
12538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12539 for (key in D) D_is_set[key] = 1
12540 FS = ""
12541 }
12542 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12543 line = \$ 0
12544 split(line, arg, " ")
12545 if (arg[1] == "#") {
12546 defundef = arg[2]
12547 mac1 = arg[3]
12548 } else {
12549 defundef = substr(arg[1], 2)
12550 mac1 = arg[2]
12551 }
12552 split(mac1, mac2, "(") #)
12553 macro = mac2[1]
12554 prefix = substr(line, 1, index(line, defundef) - 1)
12555 if (D_is_set[macro]) {
12556 # Preserve the white space surrounding the "#".
12557 print prefix "define", macro P[macro] D[macro]
12558 next
12559 } else {
12560 # Replace #undef with comments. This is necessary, for example,
12561 # in the case of _POSIX_SOURCE, which is predefined and required
12562 # on some systems where configure will not decide to define it.
12563 if (defundef == "undef") {
12564 print "/*", prefix defundef, macro, "*/"
12565 next
12566 }
12567 }
12568 }
12569 { print }
12570 _ACAWK
12571 _ACEOF
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12574 fi # test -n "$CONFIG_HEADERS"
12575
12576
12577 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12578 shift
12579 for ac_tag
12580 do
12581 case $ac_tag in
12582 :[FHLC]) ac_mode=$ac_tag; continue;;
12583 esac
12584 case $ac_mode$ac_tag in
12585 :[FHL]*:*);;
12586 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12587 :[FH]-) ac_tag=-:-;;
12588 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12589 esac
12590 ac_save_IFS=$IFS
12591 IFS=:
12592 set x $ac_tag
12593 IFS=$ac_save_IFS
12594 shift
12595 ac_file=$1
12596 shift
12597
12598 case $ac_mode in
12599 :L) ac_source=$1;;
12600 :[FH])
12601 ac_file_inputs=
12602 for ac_f
12603 do
12604 case $ac_f in
12605 -) ac_f="$ac_tmp/stdin";;
12606 *) # Look for the file first in the build tree, then in the source tree
12607 # (if the path is not absolute). The absolute path cannot be DOS-style,
12608 # because $ac_f cannot contain ':'.
12609 test -f "$ac_f" ||
12610 case $ac_f in
12611 [\\/$]*) false;;
12612 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12613 esac ||
12614 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12615 esac
12616 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12617 as_fn_append ac_file_inputs " '$ac_f'"
12618 done
12619
12620 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12621 # use $as_me), people would be surprised to read:
12622 # /* config.h. Generated by config.status. */
12623 configure_input='Generated from '`
12624 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12625 `' by configure.'
12626 if test x"$ac_file" != x-; then
12627 configure_input="$ac_file. $configure_input"
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12629 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12630 fi
12631 # Neutralize special characters interpreted by sed in replacement strings.
12632 case $configure_input in #(
12633 *\&* | *\|* | *\\* )
12634 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12635 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12636 *) ac_sed_conf_input=$configure_input;;
12637 esac
12638
12639 case $ac_tag in
12640 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12642 esac
12643 ;;
12644 esac
12645
12646 ac_dir=`$as_dirname -- "$ac_file" ||
12647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12648 X"$ac_file" : 'X\(//\)[^/]' \| \
12649 X"$ac_file" : 'X\(//\)$' \| \
12650 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12651 printf "%s\n" X"$ac_file" |
12652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12653 s//\1/
12654 q
12655 }
12656 /^X\(\/\/\)[^/].*/{
12657 s//\1/
12658 q
12659 }
12660 /^X\(\/\/\)$/{
12661 s//\1/
12662 q
12663 }
12664 /^X\(\/\).*/{
12665 s//\1/
12666 q
12667 }
12668 s/.*/./; q'`
12669 as_dir="$ac_dir"; as_fn_mkdir_p
12670 ac_builddir=.
12671
12672 case "$ac_dir" in
12673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12674 *)
12675 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12676 # A ".." for each directory in $ac_dir_suffix.
12677 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12678 case $ac_top_builddir_sub in
12679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12681 esac ;;
12682 esac
12683 ac_abs_top_builddir=$ac_pwd
12684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12685 # for backward compatibility:
12686 ac_top_builddir=$ac_top_build_prefix
12687
12688 case $srcdir in
12689 .) # We are building in place.
12690 ac_srcdir=.
12691 ac_top_srcdir=$ac_top_builddir_sub
12692 ac_abs_top_srcdir=$ac_pwd ;;
12693 [\\/]* | ?:[\\/]* ) # Absolute name.
12694 ac_srcdir=$srcdir$ac_dir_suffix;
12695 ac_top_srcdir=$srcdir
12696 ac_abs_top_srcdir=$srcdir ;;
12697 *) # Relative name.
12698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12699 ac_top_srcdir=$ac_top_build_prefix$srcdir
12700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12701 esac
12702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12703
12704
12705 case $ac_mode in
12706 :F)
12707 #
12708 # CONFIG_FILE
12709 #
12710
12711 case $INSTALL in
12712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12714 esac
12715 ac_MKDIR_P=$MKDIR_P
12716 case $MKDIR_P in
12717 [\\/$]* | ?:[\\/]* ) ;;
12718 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12719 esac
12720 _ACEOF
12721
12722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 # If the template does not know about datarootdir, expand it.
12724 # FIXME: This hack should be removed a few years after 2.60.
12725 ac_datarootdir_hack=; ac_datarootdir_seen=
12726 ac_sed_dataroot='
12727 /datarootdir/ {
12728 p
12729 q
12730 }
12731 /@datadir@/p
12732 /@docdir@/p
12733 /@infodir@/p
12734 /@localedir@/p
12735 /@mandir@/p'
12736 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12737 *datarootdir*) ac_datarootdir_seen=yes;;
12738 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12740 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12741 _ACEOF
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743 ac_datarootdir_hack='
12744 s&@datadir@&$datadir&g
12745 s&@docdir@&$docdir&g
12746 s&@infodir@&$infodir&g
12747 s&@localedir@&$localedir&g
12748 s&@mandir@&$mandir&g
12749 s&\\\${datarootdir}&$datarootdir&g' ;;
12750 esac
12751 _ACEOF
12752
12753 # Neutralize VPATH when '$srcdir' = '.'.
12754 # Shell code in configure.ac might set extrasub.
12755 # FIXME: do we really want to maintain this feature?
12756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757 ac_sed_extra="$ac_vpsub
12758 $extrasub
12759 _ACEOF
12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761 :t
12762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763 s|@configure_input@|$ac_sed_conf_input|;t t
12764 s&@top_builddir@&$ac_top_builddir_sub&;t t
12765 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12766 s&@srcdir@&$ac_srcdir&;t t
12767 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12768 s&@top_srcdir@&$ac_top_srcdir&;t t
12769 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12770 s&@builddir@&$ac_builddir&;t t
12771 s&@abs_builddir@&$ac_abs_builddir&;t t
12772 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12773 s&@INSTALL@&$ac_INSTALL&;t t
12774 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12775 $ac_datarootdir_hack
12776 "
12777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12778 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12779
12780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12781 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12783 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12785 which seems to be undefined. Please make sure it is defined" >&5
12786 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12787 which seems to be undefined. Please make sure it is defined" >&2;}
12788
12789 rm -f "$ac_tmp/stdin"
12790 case $ac_file in
12791 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12792 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12793 esac \
12794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12795 ;;
12796 :H)
12797 #
12798 # CONFIG_HEADER
12799 #
12800 if test x"$ac_file" != x-; then
12801 {
12802 printf "%s\n" "/* $configure_input */" >&1 \
12803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12804 } >"$ac_tmp/config.h" \
12805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12806 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12808 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12809 else
12810 rm -f "$ac_file"
12811 mv "$ac_tmp/config.h" "$ac_file" \
12812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12813 fi
12814 else
12815 printf "%s\n" "/* $configure_input */" >&1 \
12816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12817 || as_fn_error $? "could not create -" "$LINENO" 5
12818 fi
12819 # Compute "$ac_file"'s index in $config_headers.
12820 _am_arg="$ac_file"
12821 _am_stamp_count=1
12822 for _am_header in $config_headers :; do
12823 case $_am_header in
12824 $_am_arg | $_am_arg:* )
12825 break ;;
12826 * )
12827 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12828 esac
12829 done
12830 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12831 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12832 X"$_am_arg" : 'X\(//\)[^/]' \| \
12833 X"$_am_arg" : 'X\(//\)$' \| \
12834 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12835 printf "%s\n" X"$_am_arg" |
12836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12837 s//\1/
12838 q
12839 }
12840 /^X\(\/\/\)[^/].*/{
12841 s//\1/
12842 q
12843 }
12844 /^X\(\/\/\)$/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\).*/{
12849 s//\1/
12850 q
12851 }
12852 s/.*/./; q'`/stamp-h$_am_stamp_count
12853 ;;
12854
12855 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12856 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12857 ;;
12858 esac
12859
12860
12861 case $ac_file$ac_mode in
12862 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12863 # Older Autoconf quotes --file arguments for eval, but not when files
12864 # are listed without --file. Let's play safe and only enable the eval
12865 # if we detect the quoting.
12866 # TODO: see whether this extra hack can be removed once we start
12867 # requiring Autoconf 2.70 or later.
12868 case $CONFIG_FILES in #(
12869 *\'*) :
12870 eval set x "$CONFIG_FILES" ;; #(
12871 *) :
12872 set x $CONFIG_FILES ;; #(
12873 *) :
12874 ;;
12875 esac
12876 shift
12877 # Used to flag and report bootstrapping failures.
12878 am_rc=0
12879 for am_mf
12880 do
12881 # Strip MF so we end up with the name of the file.
12882 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12883 # Check whether this is an Automake generated Makefile which includes
12884 # dependency-tracking related rules and includes.
12885 # Grep'ing the whole file directly is not great: AIX grep has a line
12886 # limit of 2048, but all sed's we know have understand at least 4000.
12887 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12888 || continue
12889 am_dirpart=`$as_dirname -- "$am_mf" ||
12890 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12891 X"$am_mf" : 'X\(//\)[^/]' \| \
12892 X"$am_mf" : 'X\(//\)$' \| \
12893 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12894 printf "%s\n" X"$am_mf" |
12895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12896 s//\1/
12897 q
12898 }
12899 /^X\(\/\/\)[^/].*/{
12900 s//\1/
12901 q
12902 }
12903 /^X\(\/\/\)$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\(\/\).*/{
12908 s//\1/
12909 q
12910 }
12911 s/.*/./; q'`
12912 am_filepart=`$as_basename -- "$am_mf" ||
12913 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12914 X"$am_mf" : 'X\(//\)$' \| \
12915 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12916 printf "%s\n" X/"$am_mf" |
12917 sed '/^.*\/\([^/][^/]*\)\/*$/{
12918 s//\1/
12919 q
12920 }
12921 /^X\/\(\/\/\)$/{
12922 s//\1/
12923 q
12924 }
12925 /^X\/\(\/\).*/{
12926 s//\1/
12927 q
12928 }
12929 s/.*/./; q'`
12930 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12931 && sed -e '/# am--include-marker/d' "$am_filepart" \
12932 | $MAKE -f - am--depfiles" >&5
12933 (cd "$am_dirpart" \
12934 && sed -e '/# am--include-marker/d' "$am_filepart" \
12935 | $MAKE -f - am--depfiles) >&5 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } || am_rc=$?
12939 done
12940 if test $am_rc -ne 0; then
12941 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12942 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12943 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12944 for automatic dependency tracking. If GNU make was not used, consider
12945 re-running the configure script with MAKE=\"gmake\" (or whatever is
12946 necessary). You can also try re-running configure with the
12947 '--disable-dependency-tracking' option to at least be able to build
12948 the package (albeit without support for automatic dependency tracking).
12949 See 'config.log' for more details" "$LINENO" 5; }
12950 fi
12951 { am_dirpart=; unset am_dirpart;}
12952 { am_filepart=; unset am_filepart;}
12953 { am_mf=; unset am_mf;}
12954 { am_rc=; unset am_rc;}
12955 rm -f conftest-deps.mk
12956 }
12957 ;;
12958
12959 esac
12960 done # for ac_tag
12961
12962
12963 as_fn_exit 0
12964 _ACEOF
12965 ac_clean_files=$ac_clean_files_save
12966
12967 test $ac_write_fail = 0 ||
12968 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12969
12970
12971 # configure is writing to config.log, and then calls config.status.
12972 # config.status does its own redirection, appending to config.log.
12973 # Unfortunately, on DOS this fails, as config.log is still kept open
12974 # by configure, so config.status won't be able to write to it; its
12975 # output is simply discarded. So we exec the FD to /dev/null,
12976 # effectively closing config.log, so it can be properly (re)opened and
12977 # appended to by config.status. When coming back to configure, we
12978 # need to make the FD available again.
12979 if test "$no_create" != yes; then
12980 ac_cs_success=:
12981 ac_config_status_args=
12982 test "$silent" = yes &&
12983 ac_config_status_args="$ac_config_status_args --quiet"
12984 exec 5>/dev/null
12985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12986 exec 5>>config.log
12987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12988 # would make configure fail if this is the last instruction.
12989 $ac_cs_success || as_fn_exit 1
12990 fi
12991 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12993 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12994 fi
12995
12996
12997