configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xfontsel 1.1.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
280 $0: https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues
281 $0: about your system, including any error possibly output
282 $0: before this message. Then install a modern shell, or
283 $0: manually run the script under such a shell if you do
284 $0: have one."
285 fi
286 exit 1
287 fi ;;
288 esac
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 printf '%s\n' X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 then :
391 eval 'as_fn_append ()
392 {
393 eval $1+=\$2
394 }'
395 else case e in #(
396 e) as_fn_append ()
397 {
398 eval $1=\$$1\$2
399 } ;;
400 esac
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else case e in #(
415 e) as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 } ;;
419 esac
420 fi # as_fn_arith
421
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf '%s\n' "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf '%s\n' X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 t clear
496 :clear
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
535 # In both cases, we have to default to 'cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
562
563 # Sed expression to map a string onto a valid variable name.
564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_CONFIG_STATUS=
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='xfontsel'
591 PACKAGE_TARNAME='xfontsel'
592 PACKAGE_VERSION='1.1.2'
593 PACKAGE_STRING='xfontsel 1.1.2'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues'
595 PACKAGE_URL=''
596
597 ac_unique_file="Makefile.am"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stddef.h>
601 #ifdef HAVE_STDIO_H
602 # include <stdio.h>
603 #endif
604 #ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 #endif
607 #ifdef HAVE_STRING_H
608 # include <string.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_SYS_TYPES_H
620 # include <sys/types.h>
621 #endif
622 #ifdef HAVE_SYS_STAT_H
623 # include <sys/stat.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_header_c_list=
630 ac_subst_vars='am__EXEEXT_FALSE
631 am__EXEEXT_TRUE
632 LTLIBOBJS
633 LIBOBJS
634 USE_GETTEXT_FALSE
635 USE_GETTEXT_TRUE
636 LOCALEDIR
637 appdefaultdir
638 APPDEFS_LIBS
639 APPDEFS_CFLAGS
640 XFONTSEL_LIBS
641 XFONTSEL_CFLAGS
642 MAN_SUBSTS
643 XORG_MAN_PAGE
644 ADMIN_MAN_DIR
645 DRIVER_MAN_DIR
646 MISC_MAN_DIR
647 FILE_MAN_DIR
648 LIB_MAN_DIR
649 APP_MAN_DIR
650 ADMIN_MAN_SUFFIX
651 DRIVER_MAN_SUFFIX
652 MISC_MAN_SUFFIX
653 FILE_MAN_SUFFIX
654 LIB_MAN_SUFFIX
655 APP_MAN_SUFFIX
656 SED
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 INSTALL_CMD
666 PKG_CONFIG_LIBDIR
667 PKG_CONFIG_PATH
668 PKG_CONFIG
669 CHANGELOG_CMD
670 STRICT_CFLAGS
671 CWARNFLAGS
672 BASE_CFLAGS
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 am__xargs_n
690 am__rm_f_notfound
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 CSCOPE
696 ETAGS
697 CTAGS
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 runstatedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL
760 am__quote'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_dependency_tracking
766 enable_selective_werror
767 enable_strict_compilation
768 with_appdefaultdir
769 with_localedir
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 PKG_CONFIG
780 PKG_CONFIG_PATH
781 PKG_CONFIG_LIBDIR
782 XFONTSEL_CFLAGS
783 XFONTSEL_LIBS
784 APPDEFS_CFLAGS
785 APPDEFS_LIBS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 runstatedir='${localstatedir}/run'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: '$ac_useropt'"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: '$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -runstatedir | --runstatedir | --runstatedi | --runstated \
1076 | --runstate | --runstat | --runsta | --runst | --runs \
1077 | --run | --ru | --r)
1078 ac_prev=runstatedir ;;
1079 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1080 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1081 | --run=* | --ru=* | --r=*)
1082 runstatedir=$ac_optarg ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: '$ac_useropt'"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: '$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: '$ac_option'
1180 Try '$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir runstatedir
1222 do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: '$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 printf '%s\n' X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299 else
1300 ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 'configure' configures xfontsel 1.1.2 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print 'checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for '--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or '..']
1353
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360 By default, 'make install' will install all the files in
1361 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than '$ac_default_prefix' using '--prefix',
1363 for instance '--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/xfontsel]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1388 _ACEOF
1389
1390 cat <<\_ACEOF
1391
1392 Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of xfontsel 1.1.2:";;
1406 esac
1407 cat <<\_ACEOF
1408
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --disable-selective-werror
1420 Turn off selective compiler errors. (default:
1421 enabled)
1422 --enable-strict-compilation
1423 Enable all warnings from compiler and make them
1424 errors (default: disabled)
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-appdefaultdir=<pathname>
1430 specify directory for app-defaults files (default is
1431 autodetected)
1432 --with-localedir=<path> Path to install message files in (default:
1433 datadir/locale)
1434
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 PKG_CONFIG path to pkg-config utility
1444 PKG_CONFIG_PATH
1445 directories to add to pkg-config's search path
1446 PKG_CONFIG_LIBDIR
1447 path overriding pkg-config's built-in search path
1448 XFONTSEL_CFLAGS
1449 C compiler flags for XFONTSEL, overriding pkg-config
1450 XFONTSEL_LIBS
1451 linker flags for XFONTSEL, overriding pkg-config
1452 APPDEFS_CFLAGS
1453 C compiler flags for APPDEFS, overriding pkg-config
1454 APPDEFS_LIBS
1455 linker flags for APPDEFS, overriding pkg-config
1456
1457 Use these variables to override the choices made by 'configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for configure.gnu first; this name is used for a wrapper for
1507 # Metaconfig's "Configure" on case-insensitive file systems.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 xfontsel configure 1.1.2
1525 generated by GNU Autoconf 2.73
1526
1527 Copyright (C) 2026 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext conftest.beam
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 printf '%s\n' "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext
1564 then :
1565 ac_retval=0
1566 else case e in #(
1567 e) printf '%s\n' "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1 ;;
1571 esac
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1579 # ------------------------------------------------------------------
1580 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1582 ac_fn_check_decl ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 as_decl_name=`echo $2|sed 's/ *(.*//'`
1586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1587 printf %s "checking whether $as_decl_name is declared... " >&6; }
1588 if eval test \${$3+y}
1589 then :
1590 printf %s "(cached) " >&6
1591 else case e in #(
1592 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1593 eval ac_save_FLAGS=\$$6
1594 as_fn_append $6 " $5"
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 int
1599 main (void)
1600 {
1601 #ifndef $as_decl_name
1602 #ifdef __cplusplus
1603 (void) $as_decl_use;
1604 #else
1605 (void) $as_decl_name;
1606 #endif
1607 #endif
1608
1609 ;
1610 return 0;
1611 }
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"
1614 then :
1615 eval "$3=yes"
1616 else case e in #(
1617 e) eval "$3=no" ;;
1618 esac
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1621 eval $6=\$ac_save_FLAGS
1622 ;;
1623 esac
1624 fi
1625 eval ac_res=\$$3
1626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 printf '%s\n' "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630 } # ac_fn_check_decl
1631
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 printf %s "checking for $2... " >&6; }
1641 if eval test \${$3+y}
1642 then :
1643 printf %s "(cached) " >&6
1644 else case e in #(
1645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"
1651 then :
1652 eval "$3=yes"
1653 else case e in #(
1654 e) eval "$3=no" ;;
1655 esac
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1658 esac
1659 fi
1660 eval ac_res=\$$3
1661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 printf '%s\n' "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 printf '%s\n' "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1695 }
1696 then :
1697 ac_retval=0
1698 else case e in #(
1699 e) printf '%s\n' "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1 ;;
1703 esac
1704 fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_link
1714 ac_configure_args_raw=
1715 for ac_arg
1716 do
1717 case $ac_arg in
1718 *\'*)
1719 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 esac
1721 as_fn_append ac_configure_args_raw " '$ac_arg'"
1722 done
1723
1724 case $ac_configure_args_raw in
1725 *$as_nl*)
1726 ac_safe_unquote= ;;
1727 *)
1728 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1729 ac_unsafe_a="$ac_unsafe_z#~"
1730 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1731 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1732 esac
1733
1734 cat >config.log <<_ACEOF
1735 This file contains any messages produced by compilers while
1736 running configure, to aid debugging if configure makes a mistake.
1737
1738 It was created by xfontsel $as_me 1.1.2, which was
1739 generated by GNU Autoconf 2.73. Invocation command line was
1740
1741 $ $0$ac_configure_args_raw
1742
1743 _ACEOF
1744 exec 5>>config.log
1745 {
1746 cat <<_ASUNAME
1747 ## --------- ##
1748 ## Platform. ##
1749 ## --------- ##
1750
1751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756
1757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759
1760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767
1768 _ASUNAME
1769
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773 IFS=$as_save_IFS
1774 case $as_dir in #(((
1775 '') as_dir=./ ;;
1776 */) ;;
1777 *) as_dir=$as_dir/ ;;
1778 esac
1779 printf '%s\n' "PATH: $as_dir"
1780 done
1781 IFS=$as_save_IFS
1782
1783 } >&5
1784
1785 cat >&5 <<_ACEOF
1786
1787
1788 ## ----------- ##
1789 ## Core tests. ##
1790 ## ----------- ##
1791
1792 _ACEOF
1793
1794
1795 # Keep a trace of the command line.
1796 # Strip out --no-create and --no-recursion so they do not pile up.
1797 # Strip out --silent because we don't want to record it for future runs.
1798 # Also quote any args containing shell meta-characters.
1799 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_configure_args=
1801 ac_configure_args0=
1802 ac_configure_args1=
1803 ac_must_keep_next=false
1804 for ac_pass in 1 2
1805 do
1806 for ac_arg
1807 do
1808 case $ac_arg in
1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1811 | -silent | --silent | --silen | --sile | --sil)
1812 continue ;;
1813 *\'*)
1814 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 esac
1816 case $ac_pass in
1817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1818 2)
1819 as_fn_append ac_configure_args1 " '$ac_arg'"
1820 if test $ac_must_keep_next = true; then
1821 ac_must_keep_next=false # Got value, back to normal.
1822 else
1823 case $ac_arg in
1824 *=* | --config-cache | -C | -disable-* | --disable-* \
1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1827 | -with-* | --with-* | -without-* | --without-* | --x)
1828 case "$ac_configure_args0 " in
1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 esac
1831 ;;
1832 -* ) ac_must_keep_next=true ;;
1833 esac
1834 fi
1835 as_fn_append ac_configure_args " '$ac_arg'"
1836 ;;
1837 esac
1838 done
1839 done
1840 { ac_configure_args0=; unset ac_configure_args0;}
1841 { ac_configure_args1=; unset ac_configure_args1;}
1842
1843 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1844 ac_cache_dump ()
1845 {
1846 # The following way of writing the cache mishandles newlines in values,
1847 # but we know of no workaround that is simple, portable, and efficient.
1848 # So, we kill variables containing newlines.
1849 # Ultrix sh set writes to stderr and can't be redirected directly,
1850 # and sets the high bit in the cache file unless we assign to the vars.
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867
1868 (set) 2>&1 |
1869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1870 *${as_nl}ac_space=\ *)
1871 # 'set' does not quote correctly, so add quotes: double-quote
1872 # substitution turns \\\\ into \\, and sed turns \\ into \.
1873 sed -n \
1874 "s/'/'\\\\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1876 ;; #(
1877 *)
1878 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883 )
1884 }
1885
1886 # Print debugging info to stdout.
1887 ac_dump_debugging_info ()
1888 {
1889 echo
1890
1891 printf '%s\n' "## ---------------- ##
1892 ## Cache variables. ##
1893 ## ---------------- ##"
1894 echo
1895 ac_cache_dump
1896 echo
1897
1898 printf '%s\n' "## ----------------- ##
1899 ## Output variables. ##
1900 ## ----------------- ##"
1901 echo
1902 for ac_var in $ac_subst_vars
1903 do
1904 eval ac_val=\$$ac_var
1905 case $ac_val in
1906 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1907 esac
1908 printf '%s\n' "$ac_var='$ac_val'"
1909 done | sort
1910 echo
1911
1912 if test -n "$ac_subst_files"; then
1913 printf '%s\n' "## ------------------- ##
1914 ## File substitutions. ##
1915 ## ------------------- ##"
1916 echo
1917 for ac_var in $ac_subst_files
1918 do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in
1921 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1922 esac
1923 printf '%s\n' "$ac_var='$ac_val'"
1924 done | sort
1925 echo
1926 fi
1927
1928 if test -s confdefs.h; then
1929 printf '%s\n' "## ----------- ##
1930 ## confdefs.h. ##
1931 ## ----------- ##"
1932 echo
1933 cat confdefs.h
1934 echo
1935 fi
1936 test "$ac_signal" != 0 &&
1937 printf '%s\n' "$as_me: caught signal $ac_signal"
1938 printf '%s\n' "$as_me: exit $exit_status"
1939 }
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log.
1943 ac_exit_trap ()
1944 {
1945 exit_status=
1946 # Sanitize IFS.
1947 IFS=" "" $as_nl"
1948 # Save into config.log some information that might help in debugging.
1949 ac_dump_debugging_info >&5
1950 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
1951 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1952 exit $exit_status
1953 }
1954
1955 trap 'ac_exit_trap $?' 0
1956 for ac_signal in 1 2 13 15; do
1957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1958 done
1959 ac_signal=0
1960
1961 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1962 rm -f -r conftest* confdefs.h
1963
1964 printf '%s\n' "/* confdefs.h */" > confdefs.h
1965
1966 # Predefined preprocessor variables.
1967
1968 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1969
1970 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1971
1972 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1973
1974 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1975
1976 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1977
1978 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1979
1980
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1983 if test -n "$CONFIG_SITE"; then
1984 ac_site_files="$CONFIG_SITE"
1985 elif test "x$prefix" != xNONE; then
1986 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1987 else
1988 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1989 fi
1990
1991 for ac_site_file in $ac_site_files
1992 do
1993 case $ac_site_file in #(
1994 */*) :
1995 ;; #(
1996 *) :
1997 ac_site_file=./$ac_site_file ;;
1998 esac
1999 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2001 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2003 . "$ac_site_file" \
2004 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2005 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2006 as_fn_error $? "failed to load site script $ac_site_file
2007 See 'config.log' for more details" "$LINENO" 5; }
2008 fi
2009 done
2010
2011 if test -r "$cache_file"; then
2012 # Some versions of bash will fail to source /dev/null (special files
2013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2016 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2017 case $cache_file in
2018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2019 *) . "./$cache_file";;
2020 esac
2021 fi
2022 else
2023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2024 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2025 >$cache_file
2026 fi
2027
2028 # Test code for whether the C compiler supports C23 (global declarations)
2029 ac_c_conftest_c23_globals='
2030 /* Does the compiler advertise conformance to C17 or earlier?
2031 Although GCC 14 does not do that, even with -std=gnu23,
2032 it is close enough, and defines __STDC_VERSION == 202000L. */
2033 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2034 # error "Compiler advertises conformance to C17 or earlier"
2035 #endif
2036
2037 // Check alignas.
2038 char alignas (double) c23_aligned_as_double;
2039 char alignas (0) c23_no_special_alignment;
2040 extern char c23_aligned_as_int;
2041 char alignas (0) alignas (int) c23_aligned_as_int;
2042
2043 // Check alignof.
2044 enum
2045 {
2046 c23_int_alignment = alignof (int),
2047 c23_int_array_alignment = alignof (int[100]),
2048 c23_char_alignment = alignof (char)
2049 };
2050 static_assert (0 < -alignof (int), "alignof is signed");
2051
2052 int function_with_unnamed_parameter (int) { return 0; }
2053
2054 void c23_noreturn ();
2055
2056 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2057 The parens pacify GCC 15. */
2058 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2059
2060 bool check_that_bool_works = true | false | !nullptr;
2061 #if !true
2062 # error "true does not work in #if"
2063 #endif
2064 #if false
2065 #elifdef __STDC_VERSION__
2066 #else
2067 # error "#elifdef does not work"
2068 #endif
2069
2070 #ifndef __has_c_attribute
2071 # error "__has_c_attribute not defined"
2072 #endif
2073
2074 #ifndef __has_include
2075 # error "__has_include not defined"
2076 #endif
2077
2078 #define LPAREN() (
2079 #define FORTY_TWO(x) 42
2080 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2081 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2082
2083 static_assert (0b101010 == 42);
2084 static_assert (0B101010 == 42);
2085 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2086 static_assert (0.500'\''000'\''000 == 0.5);
2087
2088 enum unsignedish : unsigned int { uione = 1 };
2089 static_assert (0 < -uione);
2090
2091 #include <stddef.h>
2092 constexpr nullptr_t null_pointer = nullptr;
2093
2094 static typeof (1 + 1L) two () { return 2; }
2095 static long int three () { return 3; }
2096 '
2097
2098 # Test code for whether the C compiler supports C23 (body of main).
2099 ac_c_conftest_c23_main='
2100 {
2101 label_before_declaration:
2102 int arr[10] = {};
2103 if (arr[0])
2104 goto label_before_declaration;
2105 if (!arr[0])
2106 goto label_at_end_of_block;
2107 label_at_end_of_block:
2108 }
2109 ok |= !null_pointer;
2110 ok |= two != three;
2111 '
2112
2113 # Test code for whether the C compiler supports C23 (complete).
2114 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2115
2116 int
2117 main (int, char **)
2118 {
2119 int ok = 0;
2120 ${ac_c_conftest_c23_main}
2121 return ok;
2122 }
2123 "
2124
2125 # Test code for whether the C compiler supports C89 (global declarations)
2126 ac_c_conftest_c89_globals='
2127 /* Do not test the value of __STDC__, because some compilers define it to 0
2128 or do not define it, while otherwise adequately conforming. */
2129
2130 #include <stddef.h>
2131 #include <stdarg.h>
2132 struct stat;
2133 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2134 struct buf { int x; };
2135 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (char **p, int i)
2137 {
2138 return p[i];
2139 }
2140 static char *f (char * (*g) (char **, int), char **p, ...)
2141 {
2142 char *s;
2143 va_list v;
2144 va_start (v,p);
2145 s = g (p, va_arg (v,int));
2146 va_end (v);
2147 return s;
2148 }
2149
2150 /* C89 style stringification. */
2151 #define noexpand_stringify(a) #a
2152 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2153
2154 /* C89 style token pasting. Exercises some of the corner cases that
2155 e.g. old MSVC gets wrong, but not very hard. */
2156 #define noexpand_concat(a,b) a##b
2157 #define expand_concat(a,b) noexpand_concat(a,b)
2158 extern int vA;
2159 extern int vbee;
2160 #define aye A
2161 #define bee B
2162 int *pvA = &expand_concat(v,aye);
2163 int *pvbee = &noexpand_concat(v,bee);
2164
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not \xHH hex character constants.
2167 These do not provoke an error unfortunately, instead are silently treated
2168 as an "x". The following induces an error, until -std is added to get
2169 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2170 array size at least. It is necessary to write \x00 == 0 to get something
2171 that is true only with -std. */
2172 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2173
2174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2175 inside strings and character constants. */
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2178
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2183 int, int);'
2184
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main='
2187 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2188 '
2189
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals='
2192 /* Does the compiler advertise C99 conformance? */
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2195 #endif
2196
2197 // See if C++-style comments work.
2198
2199 #include <stdbool.h>
2200 extern int puts (const char *);
2201 extern int printf (const char *, ...);
2202 extern int dprintf (int, const char *, ...);
2203 extern void *malloc (size_t);
2204 extern void free (void *);
2205
2206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to declare
2208 // FILE and stderr, and "aND" is used instead of "and" to work around
2209 // GCC bug 40564 which is irrelevant here.
2210 #define debug(...) dprintf (2, __VA_ARGS__)
2211 #define showlist(...) puts (#__VA_ARGS__)
2212 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2213 static void
2214 test_varargs_macros (void)
2215 {
2216 int x = 1234;
2217 int y = 5678;
2218 debug ("Flag");
2219 debug ("X = %d\n", x);
2220 showlist (The first, second, aND third items.);
2221 report (x>y, "x is %d but y is %d", x, y);
2222 }
2223
2224 // Check long long types.
2225 #define BIG64 18446744073709551615ull
2226 #define BIG32 4294967295ul
2227 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2228 #if !BIG_OK
2229 #error "your preprocessor is broken"
2230 #endif
2231 #if BIG_OK
2232 #else
2233 #error "your preprocessor is broken"
2234 #endif
2235 static long long int bignum = -9223372036854775807LL;
2236 static unsigned long long int ubignum = BIG64;
2237
2238 struct incomplete_array
2239 {
2240 int datasize;
2241 double data[];
2242 };
2243
2244 struct named_init {
2245 int number;
2246 const wchar_t *name;
2247 double average;
2248 };
2249
2250 typedef const char *ccp;
2251
2252 static inline int
2253 test_restrict (ccp restrict text)
2254 {
2255 // Iterate through items via the restricted pointer.
2256 // Also check for declarations in for loops.
2257 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2258 continue;
2259 return 0;
2260 }
2261
2262 // Check varargs and va_copy.
2263 static bool
2264 test_varargs (const char *format, ...)
2265 {
2266 va_list args;
2267 va_start (args, format);
2268 va_list args_copy;
2269 va_copy (args_copy, args);
2270
2271 const char *str = "";
2272 int number = 0;
2273 float fnumber = 0;
2274
2275 while (*format)
2276 {
2277 switch (*format++)
2278 {
2279 case '\''s'\'': // string
2280 str = va_arg (args_copy, const char *);
2281 break;
2282 case '\''d'\'': // int
2283 number = va_arg (args_copy, int);
2284 break;
2285 case '\''f'\'': // float
2286 fnumber = va_arg (args_copy, double);
2287 break;
2288 default:
2289 break;
2290 }
2291 }
2292 va_end (args_copy);
2293 va_end (args);
2294
2295 return *str && number && fnumber;
2296 }
2297 '
2298
2299 # Test code for whether the C compiler supports C99 (body of main).
2300 ac_c_conftest_c99_main='
2301 // Check bool.
2302 _Bool success = false;
2303 success |= (argc != 0);
2304
2305 // Check restrict.
2306 if (test_restrict ("String literal") == 0)
2307 success = true;
2308 const char *restrict newvar = "Another string";
2309
2310 // Check varargs.
2311 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2312 test_varargs_macros ();
2313
2314 // Check flexible array members.
2315 static struct incomplete_array *volatile incomplete_array_pointer;
2316 struct incomplete_array *ia = incomplete_array_pointer;
2317 ia->datasize = 10;
2318 for (int i = 0; i < ia->datasize; ++i)
2319 ia->data[i] = i * 1.234;
2320 // Work around memory leak warnings.
2321 free (ia);
2322
2323 // Check named initializers.
2324 struct named_init ni = {
2325 .number = 34,
2326 .name = L"Test wide string",
2327 .average = 543.34343,
2328 };
2329
2330 ni.number = 58;
2331
2332 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2333 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2334
2335 // work around unused variable warnings
2336 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2337 || ni.number != 58);
2338 '
2339
2340 # Test code for whether the C compiler supports C11 (global declarations)
2341 ac_c_conftest_c11_globals='
2342 /* Does the compiler advertise C11 conformance? */
2343 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2344 # error "Compiler does not advertise C11 conformance"
2345 #endif
2346
2347 // Check _Alignas.
2348 char _Alignas (double) aligned_as_double;
2349 char _Alignas (0) no_special_alignment;
2350 extern char aligned_as_int;
2351 char _Alignas (0) _Alignas (int) aligned_as_int;
2352
2353 // Check _Alignof.
2354 enum
2355 {
2356 int_alignment = _Alignof (int),
2357 int_array_alignment = _Alignof (int[100]),
2358 char_alignment = _Alignof (char)
2359 };
2360 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2361
2362 // Check _Noreturn.
2363 int _Noreturn does_not_return (void) { for (;;) continue; }
2364
2365 // Check _Static_assert.
2366 struct test_static_assert
2367 {
2368 int x;
2369 _Static_assert (sizeof (int) <= sizeof (long int),
2370 "_Static_assert does not work in struct");
2371 long int y;
2372 };
2373
2374 // Check UTF-8 literals.
2375 #define u8 syntax error!
2376 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2377
2378 // Check duplicate typedefs.
2379 typedef long *long_ptr;
2380 typedef long int *long_ptr;
2381 typedef long_ptr long_ptr;
2382
2383 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2384 struct anonymous
2385 {
2386 union {
2387 struct { int i; int j; };
2388 struct { int k; long int l; } w;
2389 };
2390 int m;
2391 } v1;
2392 '
2393
2394 # Test code for whether the C compiler supports C11 (body of main).
2395 ac_c_conftest_c11_main='
2396 _Static_assert ((offsetof (struct anonymous, i)
2397 == offsetof (struct anonymous, w.k)),
2398 "Anonymous union alignment botch");
2399 v1.i = 2;
2400 v1.w.k = 5;
2401 ok |= v1.i != 5;
2402 '
2403
2404 # Test code for whether the C compiler supports C11 (complete).
2405 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407 ${ac_c_conftest_c11_globals}
2408
2409 int
2410 main (int argc, char **argv)
2411 {
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 ${ac_c_conftest_c11_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C99 (complete).
2421 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2422 ${ac_c_conftest_c99_globals}
2423
2424 int
2425 main (int argc, char **argv)
2426 {
2427 int ok = 0;
2428 ${ac_c_conftest_c89_main}
2429 ${ac_c_conftest_c99_main}
2430 return ok;
2431 }
2432 "
2433
2434 # Test code for whether the C compiler supports C89 (complete).
2435 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 return ok;
2443 }
2444 "
2445
2446 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2447 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2448 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2449 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2450 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2451 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2452 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2453 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2454 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2455
2456 # Auxiliary files required by this configure script.
2457 ac_aux_files="config.guess config.sub compile missing install-sh"
2458
2459 # Locations in which to look for auxiliary files.
2460 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2461
2462 # Search for a directory containing all of the required auxiliary files,
2463 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2464 # If we don't find one directory that contains all the files we need,
2465 # we report the set of missing files from the *first* directory in
2466 # $ac_aux_dir_candidates and give up.
2467 ac_missing_aux_files=""
2468 ac_first_candidate=:
2469 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 as_found=false
2472 for as_dir in $ac_aux_dir_candidates
2473 do
2474 IFS=$as_save_IFS
2475 case $as_dir in #(((
2476 '') as_dir=./ ;;
2477 */) ;;
2478 *) as_dir=$as_dir/ ;;
2479 esac
2480 as_found=:
2481
2482 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2483 ac_aux_dir_found=yes
2484 ac_install_sh=
2485 for ac_aux in $ac_aux_files
2486 do
2487 # As a special case, if "install-sh" is required, that requirement
2488 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2489 # and $ac_install_sh is set appropriately for whichever one is found.
2490 if test x"$ac_aux" = x"install-sh"
2491 then
2492 if test -f "${as_dir}install-sh"; then
2493 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2494 ac_install_sh="${as_dir}install-sh -c"
2495 elif test -f "${as_dir}install.sh"; then
2496 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2497 ac_install_sh="${as_dir}install.sh -c"
2498 elif test -f "${as_dir}shtool"; then
2499 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2500 ac_install_sh="${as_dir}shtool install -c"
2501 else
2502 ac_aux_dir_found=no
2503 if $ac_first_candidate; then
2504 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2505 else
2506 break
2507 fi
2508 fi
2509 else
2510 if test -f "${as_dir}${ac_aux}"; then
2511 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2512 else
2513 ac_aux_dir_found=no
2514 if $ac_first_candidate; then
2515 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2516 else
2517 break
2518 fi
2519 fi
2520 fi
2521 done
2522 if test "$ac_aux_dir_found" = yes; then
2523 ac_aux_dir="$as_dir"
2524 break
2525 fi
2526 ac_first_candidate=false
2527
2528 as_found=false
2529 done
2530 IFS=$as_save_IFS
2531 if $as_found
2532 then :
2533
2534 else case e in #(
2535 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2536 esac
2537 fi
2538
2539
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 if test -f "${ac_aux_dir}config.guess"; then
2545 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2546 fi
2547 if test -f "${ac_aux_dir}config.sub"; then
2548 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2549 fi
2550 if test -f "$ac_aux_dir/configure"; then
2551 ac_configure="$SHELL ${ac_aux_dir}configure"
2552 fi
2553
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559 eval ac_new_set=\$ac_env_${ac_var}_set
2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561 eval ac_new_val=\$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2563 set,)
2564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2565 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,set)
2568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2569 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,);;
2572 *)
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w=
2576 for ac_val in x $ac_old_val; do
2577 ac_old_val_w="$ac_old_val_w $ac_val"
2578 done
2579 ac_new_val_w=
2580 for ac_val in x $ac_new_val; do
2581 ac_new_val_w="$ac_new_val_w $ac_val"
2582 done
2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2585 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2586 ac_cache_corrupted=:
2587 else
2588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2589 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2590 eval $ac_var=\$ac_old_val
2591 fi
2592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2593 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2595 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2596 fi;;
2597 esac
2598 # Pass precious variables to config.status.
2599 if test "$ac_new_set" = set; then
2600 case $ac_new_val in
2601 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602 *) ac_arg=$ac_var=$ac_new_val ;;
2603 esac
2604 case " $ac_configure_args " in
2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 esac
2608 fi
2609 done
2610 if $ac_cache_corrupted; then
2611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2612 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2615 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2616 and start over" "$LINENO" 5
2617 fi
2618 ## -------------------- ##
2619 ## Main body of script. ##
2620 ## -------------------- ##
2621
2622
2623 # Determine whether it's possible to make 'echo' print without a newline.
2624 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2625 # for compatibility with existing Makefiles.
2626 ECHO_C= ECHO_N= ECHO_T=
2627 case `echo -n x` in #(((((
2628 -n*)
2629 case `echo 'xy\c'` in
2630 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2631 xy) ECHO_C='\c';;
2632 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2633 ECHO_T=' ';;
2634 esac;;
2635 *)
2636 ECHO_N='-n';;
2637 esac
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650 # Initialize Automake
2651 am__api_version='1.18'
2652
2653
2654
2655 # Find a good install program. We prefer a C program (faster),
2656 # so one script is as good as another. But avoid the broken or
2657 # incompatible versions:
2658 # SysV /etc/install, /usr/sbin/install
2659 # SunOS /usr/etc/install
2660 # IRIX /sbin/install
2661 # AIX /bin/install
2662 # AmigaOS /C/install, which installs bootblocks on floppy discs
2663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2666 # OS/2's system install, which has a completely different semantic
2667 # ./install, which can be erroneously created by make from ./install.sh.
2668 # Reject install programs that cannot install multiple files.
2669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2670 printf %s "checking for a BSD-compatible install... " >&6; }
2671 if test -z "$INSTALL"; then
2672 if test ${ac_cv_path_install+y}
2673 then :
2674 printf %s "(cached) " >&6
2675 else case e in #(
2676 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 case $as_dir in #(((
2681 '') as_dir=./ ;;
2682 */) ;;
2683 *) as_dir=$as_dir/ ;;
2684 esac
2685 # Account for fact that we put trailing slashes in our PATH walk.
2686 case $as_dir in #((
2687 ./ | /[cC]/* | \
2688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690 /usr/ucb/* ) ;;
2691 *)
2692 # OSF/1 and SCO ODT 3.0 have their own names for install.
2693 # Don't use installbsd from OSF/1 since it installs stuff as root
2694 # by default.
2695 for ac_prog in ginstall scoinst install; do
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2698 if test $ac_prog = install &&
2699 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700 # AIX install. It has an incompatible calling convention.
2701 :
2702 elif test $ac_prog = install &&
2703 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # program-specific install script used by HP pwplus--don't use.
2705 :
2706 else
2707 rm -rf conftest.one conftest.two conftest.dir
2708 echo one > conftest.one
2709 echo two > conftest.two
2710 mkdir conftest.dir
2711 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2712 test -s conftest.one && test -s conftest.two &&
2713 test -s conftest.dir/conftest.one &&
2714 test -s conftest.dir/conftest.two
2715 then
2716 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2717 break 3
2718 fi
2719 fi
2720 fi
2721 done
2722 done
2723 ;;
2724 esac
2725
2726 done
2727 IFS=$as_save_IFS
2728
2729 rm -rf conftest.one conftest.two conftest.dir
2730 ;;
2731 esac
2732 fi
2733 if test ${ac_cv_path_install+y}; then
2734 INSTALL=$ac_cv_path_install
2735 else
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for INSTALL within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 INSTALL=$ac_install_sh
2741 fi
2742 fi
2743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2744 printf '%s\n' "$INSTALL" >&6; }
2745
2746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747 # It thinks the first close brace ends the variable substitution.
2748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749
2750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751
2752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753
2754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2755 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2756 if test ${am_cv_sleep_fractional_seconds+y}
2757 then :
2758 printf %s "(cached) " >&6
2759 else case e in #(
2760 e) if sleep 0.001 2>/dev/null
2761 then :
2762 am_cv_sleep_fractional_seconds=yes
2763 else case e in #(
2764 e) am_cv_sleep_fractional_seconds=no ;;
2765 esac
2766 fi
2767 ;;
2768 esac
2769 fi
2770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2771 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
2772
2773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2774 printf %s "checking filesystem timestamp resolution... " >&6; }
2775 if test ${am_cv_filesystem_timestamp_resolution+y}
2776 then :
2777 printf %s "(cached) " >&6
2778 else case e in #(
2779 e) # Default to the worst case.
2780 am_cv_filesystem_timestamp_resolution=2
2781
2782 # Only try to go finer than 1 sec if sleep can do it.
2783 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2784 # - 1 sec is not much of a win compared to 2 sec, and
2785 # - it takes 2 seconds to perform the test whether 1 sec works.
2786 #
2787 # Instead, just use the default 2s on platforms that have 1s resolution,
2788 # accept the extra 1s delay when using $sleep in the Automake tests, in
2789 # exchange for not incurring the 2s delay for running the test for all
2790 # packages.
2791 #
2792 am_try_resolutions=
2793 if test "$am_cv_sleep_fractional_seconds" = yes; then
2794 # Even a millisecond often causes a bunch of false positives,
2795 # so just try a hundredth of a second. The time saved between .001 and
2796 # .01 is not terribly consequential.
2797 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2798 fi
2799
2800 # In order to catch current-generation FAT out, we must *modify* files
2801 # that already exist; the *creation* timestamp is finer. Use names
2802 # that make ls -t sort them differently when they have equal
2803 # timestamps than when they have distinct timestamps, keeping
2804 # in mind that ls -t prints the *newest* file first.
2805 rm -f conftest.ts?
2806 : > conftest.ts1
2807 : > conftest.ts2
2808 : > conftest.ts3
2809
2810 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2811 # clobber the current shell's arguments. (Outer-level square brackets
2812 # are removed by m4; they're present so that m4 does not expand
2813 # <dollar><star>; be careful, easy to get confused.)
2814 if (
2815 set X `ls -t conftest.ts[12]` &&
2816 {
2817 test "$*" != "X conftest.ts1 conftest.ts2" ||
2818 test "$*" != "X conftest.ts2 conftest.ts1";
2819 }
2820 ); then :; else
2821 # If neither matched, then we have a broken ls. This can happen
2822 # if, for instance, CONFIG_SHELL is bash and it inherits a
2823 # broken ls alias from the environment. This has actually
2824 # happened. Such a system could not be considered "sane".
2825 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2826 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2827 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2828 as_fn_error $? "ls -t produces unexpected output.
2829 Make sure there is not a broken ls alias in your environment.
2830 See 'config.log' for more details" "$LINENO" 5; }
2831 fi
2832
2833 for am_try_res in $am_try_resolutions; do
2834 # Any one fine-grained sleep might happen to cross the boundary
2835 # between two values of a coarser actual resolution, but if we do
2836 # two fine-grained sleeps in a row, at least one of them will fall
2837 # entirely within a coarse interval.
2838 echo alpha > conftest.ts1
2839 sleep $am_try_res
2840 echo beta > conftest.ts2
2841 sleep $am_try_res
2842 echo gamma > conftest.ts3
2843
2844 # We assume that 'ls -t' will make use of high-resolution
2845 # timestamps if the operating system supports them at all.
2846 if (set X `ls -t conftest.ts?` &&
2847 test "$2" = conftest.ts3 &&
2848 test "$3" = conftest.ts2 &&
2849 test "$4" = conftest.ts1); then
2850 #
2851 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2852 # because we don't need to test make.
2853 make_ok=true
2854 if test $am_try_res != 1; then
2855 # But if we've succeeded so far with a subsecond resolution, we
2856 # have one more thing to check: make. It can happen that
2857 # everything else supports the subsecond mtimes, but make doesn't;
2858 # notably on macOS, which ships make 3.81 from 2006 (the last one
2859 # released under GPLv2). https://bugs.gnu.org/68808
2860 #
2861 # We test $MAKE if it is defined in the environment, else "make".
2862 # It might get overridden later, but our hope is that in practice
2863 # it does not matter: it is the system "make" which is (by far)
2864 # the most likely to be broken, whereas if the user overrides it,
2865 # probably they did so with a better, or at least not worse, make.
2866 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2867 #
2868 # Create a Makefile (real tab character here):
2869 rm -f conftest.mk
2870 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2871 echo ' touch conftest.ts2' >>conftest.mk
2872 #
2873 # Now, running
2874 # touch conftest.ts1; touch conftest.ts2; make
2875 # should touch ts1 because ts2 is newer. This could happen by luck,
2876 # but most often, it will fail if make's support is insufficient. So
2877 # test for several consecutive successes.
2878 #
2879 # (We reuse conftest.ts[12] because we still want to modify existing
2880 # files, not create new ones, per above.)
2881 n=0
2882 make=${MAKE-make}
2883 until test $n -eq 3; do
2884 echo one > conftest.ts1
2885 sleep $am_try_res
2886 echo two > conftest.ts2 # ts2 should now be newer than ts1
2887 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2888 make_ok=false
2889 break # out of $n loop
2890 fi
2891 n=`expr $n + 1`
2892 done
2893 fi
2894 #
2895 if $make_ok; then
2896 # Everything we know to check worked out, so call this resolution good.
2897 am_cv_filesystem_timestamp_resolution=$am_try_res
2898 break # out of $am_try_res loop
2899 fi
2900 # Otherwise, we'll go on to check the next resolution.
2901 fi
2902 done
2903 rm -f conftest.ts?
2904 # (end _am_filesystem_timestamp_resolution)
2905 ;;
2906 esac
2907 fi
2908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2909 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
2910
2911 # This check should not be cached, as it may vary across builds of
2912 # different projects.
2913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2914 printf %s "checking whether build environment is sane... " >&6; }
2915 # Reject unsafe characters in $srcdir or the absolute working directory
2916 # name. Accept space and tab only in the latter.
2917 am_lf='
2918 '
2919 case `pwd` in
2920 *[\\\"\#\$\&\'\`$am_lf]*)
2921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 printf '%s\n' "no" >&6; }
2923 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2924 esac
2925 case $srcdir in
2926 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 printf '%s\n' "no" >&6; }
2929 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2930 esac
2931
2932 # Do 'set' in a subshell so we don't clobber the current shell's
2933 # arguments. Must try -L first in case configure is actually a
2934 # symlink; some systems play weird games with the mod time of symlinks
2935 # (eg FreeBSD returns the mod time of the symlink's containing
2936 # directory).
2937 am_build_env_is_sane=no
2938 am_has_slept=no
2939 rm -f conftest.file
2940 for am_try in 1 2; do
2941 echo "timestamp, slept: $am_has_slept" > conftest.file
2942 if (
2943 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2944 if test "$*" = "X"; then
2945 # -L didn't work.
2946 set X `ls -t "$srcdir/configure" conftest.file`
2947 fi
2948 test "$2" = conftest.file
2949 ); then
2950 am_build_env_is_sane=yes
2951 break
2952 fi
2953 # Just in case.
2954 sleep "$am_cv_filesystem_timestamp_resolution"
2955 am_has_slept=yes
2956 done
2957
2958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2959 printf '%s\n' "$am_build_env_is_sane" >&6; }
2960 if test "$am_build_env_is_sane" = no; then
2961 as_fn_error $? "newly created file is older than distributed files!
2962 Check your system clock" "$LINENO" 5
2963 fi
2964
2965 # If we didn't sleep, we still need to ensure time stamps of config.status and
2966 # generated files are strictly newer.
2967 am_sleep_pid=
2968 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2969 then :
2970
2971 else case e in #(
2972 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2973 am_sleep_pid=$!
2974 ;;
2975 esac
2976 fi
2977
2978 rm -f conftest.file
2979
2980 test "$program_prefix" != NONE &&
2981 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2982 # Use a double $ so make ignores it.
2983 test "$program_suffix" != NONE &&
2984 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2985 # Double any \ or $.
2986 # By default was 's,x,x', remove it if useless.
2987 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2988 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
2989
2990
2991 # Expand $ac_aux_dir to an absolute path.
2992 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2993
2994
2995 if test x"${MISSING+set}" != xset; then
2996 MISSING="\${SHELL} '$am_aux_dir/missing'"
2997 fi
2998 # Use eval to expand $SHELL
2999 if eval "$MISSING --is-lightweight"; then
3000 am_missing_run="$MISSING "
3001 else
3002 am_missing_run=
3003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3004 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3005 fi
3006
3007 if test x"${install_sh+set}" != xset; then
3008 case $am_aux_dir in
3009 *\ * | *\ *)
3010 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3011 *)
3012 install_sh="\${SHELL} $am_aux_dir/install-sh"
3013 esac
3014 fi
3015
3016 # Installed binaries are usually stripped using 'strip' when the user
3017 # run "make install-strip". However 'strip' might not be the right
3018 # tool to use in cross-compilation environments, therefore Automake
3019 # will honor the 'STRIP' environment variable to overrule this program.
3020 if test "$cross_compiling" != no; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}strip; ac_word=$2
3024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 printf %s "checking for $ac_word... " >&6; }
3026 if test ${ac_cv_prog_STRIP+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else case e in #(
3030 e) if test -n "$STRIP"; then
3031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 case $as_dir in #(((
3038 '') as_dir=./ ;;
3039 */) ;;
3040 *) as_dir=$as_dir/ ;;
3041 esac
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi ;;
3053 esac
3054 fi
3055 STRIP=$ac_cv_prog_STRIP
3056 if test -n "$STRIP"; then
3057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3058 printf '%s\n' "$STRIP" >&6; }
3059 else
3060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 printf '%s\n' "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 if test -z "$ac_cv_prog_STRIP"; then
3067 ac_ct_STRIP=$STRIP
3068 # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 printf %s "checking for $ac_word... " >&6; }
3072 if test ${ac_cv_prog_ac_ct_STRIP+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else case e in #(
3076 e) if test -n "$ac_ct_STRIP"; then
3077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 case $as_dir in #(((
3084 '') as_dir=./ ;;
3085 */) ;;
3086 *) as_dir=$as_dir/ ;;
3087 esac
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_ac_ct_STRIP="strip"
3091 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi ;;
3099 esac
3100 fi
3101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3102 if test -n "$ac_ct_STRIP"; then
3103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3104 printf '%s\n' "$ac_ct_STRIP" >&6; }
3105 else
3106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 printf '%s\n' "no" >&6; }
3108 fi
3109
3110 if test "x$ac_ct_STRIP" = x; then
3111 STRIP=":"
3112 else
3113 case $cross_compiling:$ac_tool_warned in
3114 yes:)
3115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119 STRIP=$ac_ct_STRIP
3120 fi
3121 else
3122 STRIP="$ac_cv_prog_STRIP"
3123 fi
3124
3125 fi
3126 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3127
3128
3129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3130 printf %s "checking for a race-free mkdir -p... " >&6; }
3131 if test -z "$MKDIR_P"; then
3132 if test ${ac_cv_path_mkdir+y}
3133 then :
3134 printf %s "(cached) " >&6
3135 else case e in #(
3136 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138 do
3139 IFS=$as_save_IFS
3140 case $as_dir in #(((
3141 '') as_dir=./ ;;
3142 */) ;;
3143 *) as_dir=$as_dir/ ;;
3144 esac
3145 for ac_prog in mkdir gmkdir; do
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3148 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149 'mkdir ('*'coreutils) '* | \
3150 *'BusyBox '* | \
3151 'mkdir (fileutils) '4.1*)
3152 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3153 break 3;;
3154 esac
3155 done
3156 done
3157 done
3158 IFS=$as_save_IFS
3159 ;;
3160 esac
3161 fi
3162
3163 test -d ./--version && rmdir ./--version
3164 if test ${ac_cv_path_mkdir+y}; then
3165 MKDIR_P="$ac_cv_path_mkdir -p"
3166 else
3167 # As a last resort, use plain mkdir -p,
3168 # in the hope it doesn't have the bugs of ancient mkdir.
3169 MKDIR_P='mkdir -p'
3170 fi
3171 fi
3172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3173 printf '%s\n' "$MKDIR_P" >&6; }
3174
3175 for ac_prog in gawk mawk nawk awk 'busybox awk'
3176 do
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 printf %s "checking for $ac_word... " >&6; }
3181 if test ${ac_cv_prog_AWK+y}
3182 then :
3183 printf %s "(cached) " >&6
3184 else case e in #(
3185 e) if test -n "$AWK"; then
3186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 case $as_dir in #(((
3193 '') as_dir=./ ;;
3194 */) ;;
3195 *) as_dir=$as_dir/ ;;
3196 esac
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_AWK="$ac_prog"
3200 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi ;;
3208 esac
3209 fi
3210 AWK=$ac_cv_prog_AWK
3211 if test -n "$AWK"; then
3212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3213 printf '%s\n' "$AWK" >&6; }
3214 else
3215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf '%s\n' "no" >&6; }
3217 fi
3218
3219
3220 test -n "$AWK" && break
3221 done
3222
3223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3224 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3225 set x ${MAKE-make}
3226 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3227 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else case e in #(
3231 e) cat >conftest.make <<\_ACEOF
3232 SHELL = /bin/sh
3233 all:
3234 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3235 _ACEOF
3236 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3238 *@@@%%%=?*=@@@%%%*)
3239 eval ac_cv_prog_make_${ac_make}_set=yes;;
3240 *)
3241 eval ac_cv_prog_make_${ac_make}_set=no;;
3242 esac
3243 rm -f conftest.make ;;
3244 esac
3245 fi
3246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 printf '%s\n' "yes" >&6; }
3249 SET_MAKE=
3250 else
3251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 printf '%s\n' "no" >&6; }
3253 SET_MAKE="MAKE=${MAKE-make}"
3254 fi
3255
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3259 am__leading_dot=.
3260 else
3261 am__leading_dot=_
3262 fi
3263 rmdir .tst 2>/dev/null
3264
3265 AM_DEFAULT_VERBOSITY=1
3266 # Check whether --enable-silent-rules was given.
3267 if test ${enable_silent_rules+y}
3268 then :
3269 enableval=$enable_silent_rules;
3270 fi
3271
3272 am_make=${MAKE-make}
3273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3274 printf %s "checking whether $am_make supports nested variables... " >&6; }
3275 if test ${am_cv_make_support_nested_variables+y}
3276 then :
3277 printf %s "(cached) " >&6
3278 else case e in #(
3279 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3280 BAR0=false
3281 BAR1=true
3282 V=1
3283 am__doit:
3284 @$(TRUE)
3285 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3286 am_cv_make_support_nested_variables=yes
3287 else
3288 am_cv_make_support_nested_variables=no
3289 fi ;;
3290 esac
3291 fi
3292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3293 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3294 AM_BACKSLASH='\'
3295
3296 am__rm_f_notfound=
3297 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3298 then :
3299
3300 else case e in #(
3301 e) am__rm_f_notfound='""' ;;
3302 esac
3303 fi
3304
3305
3306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3307 printf %s "checking xargs -n works... " >&6; }
3308 if test ${am_cv_xargs_n_works+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else case e in #(
3312 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3313 3"
3314 then :
3315 am_cv_xargs_n_works=yes
3316 else case e in #(
3317 e) am_cv_xargs_n_works=no ;;
3318 esac
3319 fi ;;
3320 esac
3321 fi
3322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3323 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3324 if test "$am_cv_xargs_n_works" = yes
3325 then :
3326 am__xargs_n='xargs -n'
3327 else case e in #(
3328 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3329 ;;
3330 esac
3331 fi
3332
3333 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3334 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3335 # is not polluted with repeated "-I."
3336 am__isrc=' -I$(srcdir)'
3337 # test to see if srcdir already configured
3338 if test -f $srcdir/config.status; then
3339 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3340 fi
3341 fi
3342
3343 # test whether we have cygpath
3344 if test -z "$CYGPATH_W"; then
3345 if (cygpath --version) >/dev/null 2>/dev/null; then
3346 CYGPATH_W='cygpath -w'
3347 else
3348 CYGPATH_W=echo
3349 fi
3350 fi
3351
3352
3353 # Define the identity of the package.
3354 PACKAGE='xfontsel'
3355 VERSION='1.1.2'
3356
3357
3358 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3359
3360
3361 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3362
3363 # Some tools Automake needs.
3364
3365 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3366
3367
3368 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3369
3370
3371 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3372
3373
3374 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3375
3376
3377 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3378
3379 # For better backward compatibility. To be removed once Automake 1.9.x
3380 # dies out for good. For more background, see:
3381 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3382 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3383 mkdir_p='$(MKDIR_P)'
3384
3385 # We need awk for the "check" target (and possibly the TAP driver). The
3386 # system "awk" is bad on some platforms.
3387 # Always define AMTAR for backward compatibility. Yes, it's still used
3388 # in the wild :-( We should find a proper way to deprecate it ...
3389 AMTAR='$${TAR-tar}'
3390
3391
3392 # We'll loop over all known methods to create a tar archive until one works.
3393 _am_tools='gnutar plaintar pax cpio none'
3394
3395 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3396 # There is notably a 21 bits limit for the UID and the GID. In fact,
3397 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3398 # and bug#13588).
3399 am_max_uid=2097151 # 2^21 - 1
3400 am_max_gid=$am_max_uid
3401 # The $UID and $GID variables are not portable, so we need to resort
3402 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3403 # below are definitely unexpected, so allow the users to see them
3404 # (that is, avoid stderr redirection).
3405 am_uid=`id -u || echo unknown`
3406 am_gid=`id -g || echo unknown`
3407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3408 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3409 if test x$am_uid = xunknown; then
3410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3411 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3412 elif test $am_uid -le $am_max_uid; then
3413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 printf '%s\n' "yes" >&6; }
3415 else
3416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 printf '%s\n' "no" >&6; }
3418 _am_tools=none
3419 fi
3420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3421 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3422 if test x$gm_gid = xunknown; then
3423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3424 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3425 elif test $am_gid -le $am_max_gid; then
3426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3427 printf '%s\n' "yes" >&6; }
3428 else
3429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 printf '%s\n' "no" >&6; }
3431 _am_tools=none
3432 fi
3433
3434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3435 printf %s "checking how to create a ustar tar archive... " >&6; }
3436
3437 # Go ahead even if we have the value already cached. We do so because we
3438 # need to set the values for the 'am__tar' and 'am__untar' variables.
3439 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3440
3441 for _am_tool in $_am_tools; do
3442 case $_am_tool in
3443 gnutar)
3444 for _am_tar in tar gnutar gtar; do
3445 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3446 ($_am_tar --version) >&5 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && break
3450 done
3451 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3452 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3453 am__untar="$_am_tar -xf -"
3454 ;;
3455 plaintar)
3456 # Must skip GNU tar: if it does not support --format= it doesn't create
3457 # ustar tarball either.
3458 (tar --version) >/dev/null 2>&1 && continue
3459 am__tar='tar chf - "$$tardir"'
3460 am__tar_='tar chf - "$tardir"'
3461 am__untar='tar xf -'
3462 ;;
3463 pax)
3464 am__tar='pax -L -x ustar -w "$$tardir"'
3465 am__tar_='pax -L -x ustar -w "$tardir"'
3466 am__untar='pax -r'
3467 ;;
3468 cpio)
3469 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3470 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3471 am__untar='cpio -i -H ustar -d'
3472 ;;
3473 none)
3474 am__tar=false
3475 am__tar_=false
3476 am__untar=false
3477 ;;
3478 esac
3479
3480 # If the value was cached, stop now. We just wanted to have am__tar
3481 # and am__untar set.
3482 test -n "${am_cv_prog_tar_ustar}" && break
3483
3484 # tar/untar a dummy directory, and stop if the command works.
3485 rm -rf conftest.dir
3486 mkdir conftest.dir
3487 echo GrepMe > conftest.dir/file
3488 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3489 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 rm -rf conftest.dir
3494 if test -s conftest.tar; then
3495 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3496 ($am__untar <conftest.tar) >&5 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }
3500 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3501 (cat conftest.dir/file) >&5 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3506 fi
3507 done
3508 rm -rf conftest.dir
3509
3510 if test ${am_cv_prog_tar_ustar+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else case e in #(
3514 e) am_cv_prog_tar_ustar=$_am_tool ;;
3515 esac
3516 fi
3517
3518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3519 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
3520
3521
3522
3523
3524
3525 # Variables for tags utilities; see am/tags.am
3526 if test -z "$CTAGS"; then
3527 CTAGS=ctags
3528 fi
3529
3530 if test -z "$ETAGS"; then
3531 ETAGS=etags
3532 fi
3533
3534 if test -z "$CSCOPE"; then
3535 CSCOPE=cscope
3536 fi
3537
3538
3539
3540
3541
3542
3543
3544
3545 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569 DEPDIR="${am__leading_dot}deps"
3570
3571 ac_config_commands="$ac_config_commands depfiles"
3572
3573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3574 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3575 cat > confinc.mk << 'END'
3576 am__doit:
3577 @echo this is the am__doit target >confinc.out
3578 .PHONY: am__doit
3579 END
3580 am__include="#"
3581 am__quote=
3582 # BSD make does it like this.
3583 echo '.include "confinc.mk" # ignored' > confmf.BSD
3584 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3585 echo 'include confinc.mk # ignored' > confmf.GNU
3586 _am_result=no
3587 for s in GNU BSD; do
3588 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3589 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 case $?:`cat confinc.out 2>/dev/null` in #(
3594 '0:this is the am__doit target') :
3595 case $s in #(
3596 BSD) :
3597 am__include='.include' am__quote='"' ;; #(
3598 *) :
3599 am__include='include' am__quote='' ;;
3600 esac ;; #(
3601 *) :
3602 ;;
3603 esac
3604 if test "$am__include" != "#"; then
3605 _am_result="yes ($s style)"
3606 break
3607 fi
3608 done
3609 rm -f confinc.* confmf.*
3610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3611 printf '%s\n' "${_am_result}" >&6; }
3612
3613 # Check whether --enable-dependency-tracking was given.
3614 if test ${enable_dependency_tracking+y}
3615 then :
3616 enableval=$enable_dependency_tracking;
3617 fi
3618
3619 if test "x$enable_dependency_tracking" != xno; then
3620 am_depcomp="$ac_aux_dir/depcomp"
3621 AMDEPBACKSLASH='\'
3622 am__nodep='_no'
3623 fi
3624 if test "x$enable_dependency_tracking" != xno; then
3625 AMDEP_TRUE=
3626 AMDEP_FALSE='#'
3627 else
3628 AMDEP_TRUE='#'
3629 AMDEP_FALSE=
3630 fi
3631
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 printf %s "checking for $ac_word... " >&6; }
3643 if test ${ac_cv_prog_CC+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 case $as_dir in #(((
3655 '') as_dir=./ ;;
3656 */) ;;
3657 *) as_dir=$as_dir/ ;;
3658 esac
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3662 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi ;;
3670 esac
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 printf '%s\n' "$CC" >&6; }
3676 else
3677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 printf '%s\n' "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$ac_cv_prog_CC"; then
3684 ac_ct_CC=$CC
3685 # Extract the first word of "gcc", so it can be a program name with args.
3686 set dummy gcc; ac_word=$2
3687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 printf %s "checking for $ac_word... " >&6; }
3689 if test ${ac_cv_prog_ac_ct_CC+y}
3690 then :
3691 printf %s "(cached) " >&6
3692 else case e in #(
3693 e) if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 case $as_dir in #(((
3701 '') as_dir=./ ;;
3702 */) ;;
3703 *) as_dir=$as_dir/ ;;
3704 esac
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_ac_ct_CC="gcc"
3708 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 fi ;;
3716 esac
3717 fi
3718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 printf '%s\n' "$ac_ct_CC" >&6; }
3722 else
3723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 printf '%s\n' "no" >&6; }
3725 fi
3726
3727 if test "x$ac_ct_CC" = x; then
3728 CC=""
3729 else
3730 case $cross_compiling:$ac_tool_warned in
3731 yes:)
3732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3733 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3734 ac_tool_warned=yes ;;
3735 esac
3736 CC=$ac_ct_CC
3737 fi
3738 else
3739 CC="$ac_cv_prog_CC"
3740 fi
3741
3742 if test -z "$CC"; then
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3745 set dummy ${ac_tool_prefix}cc; ac_word=$2
3746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 printf %s "checking for $ac_word... " >&6; }
3748 if test ${ac_cv_prog_CC+y}
3749 then :
3750 printf %s "(cached) " >&6
3751 else case e in #(
3752 e) if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_CC="${ac_tool_prefix}cc"
3767 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi ;;
3775 esac
3776 fi
3777 CC=$ac_cv_prog_CC
3778 if test -n "$CC"; then
3779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780 printf '%s\n' "$CC" >&6; }
3781 else
3782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf '%s\n' "no" >&6; }
3784 fi
3785
3786
3787 fi
3788 fi
3789 if test -z "$CC"; then
3790 # Extract the first word of "cc", so it can be a program name with args.
3791 set dummy cc; ac_word=$2
3792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 printf %s "checking for $ac_word... " >&6; }
3794 if test ${ac_cv_prog_CC+y}
3795 then :
3796 printf %s "(cached) " >&6
3797 else case e in #(
3798 e) if test -n "$CC"; then
3799 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 else
3801 ac_prog_rejected=no
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 case $as_dir in #(((
3807 '') as_dir=./ ;;
3808 */) ;;
3809 *) as_dir=$as_dir/ ;;
3810 esac
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3813 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3814 ac_prog_rejected=yes
3815 continue
3816 fi
3817 ac_cv_prog_CC="cc"
3818 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 if test $ac_prog_rejected = yes; then
3826 # We found a bogon in the path, so make sure we never use it.
3827 set dummy $ac_cv_prog_CC
3828 shift
3829 if test $# != 0; then
3830 # We chose a different compiler from the bogus one.
3831 # However, it has the same basename, so the bogon will be chosen
3832 # first if we set CC to just the basename; use the full file name.
3833 shift
3834 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3835 fi
3836 fi
3837 fi ;;
3838 esac
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 printf '%s\n' "$CC" >&6; }
3844 else
3845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf '%s\n' "no" >&6; }
3847 fi
3848
3849
3850 fi
3851 if test -z "$CC"; then
3852 if test -n "$ac_tool_prefix"; then
3853 for ac_prog in cl.exe
3854 do
3855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 printf %s "checking for $ac_word... " >&6; }
3859 if test ${ac_cv_prog_CC+y}
3860 then :
3861 printf %s "(cached) " >&6
3862 else case e in #(
3863 e) if test -n "$CC"; then
3864 ac_cv_prog_CC="$CC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 case $as_dir in #(((
3871 '') as_dir=./ ;;
3872 */) ;;
3873 *) as_dir=$as_dir/ ;;
3874 esac
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi ;;
3886 esac
3887 fi
3888 CC=$ac_cv_prog_CC
3889 if test -n "$CC"; then
3890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3891 printf '%s\n' "$CC" >&6; }
3892 else
3893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 printf '%s\n' "no" >&6; }
3895 fi
3896
3897
3898 test -n "$CC" && break
3899 done
3900 fi
3901 if test -z "$CC"; then
3902 ac_ct_CC=$CC
3903 for ac_prog in cl.exe
3904 do
3905 # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy $ac_prog; ac_word=$2
3907 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 printf %s "checking for $ac_word... " >&6; }
3909 if test ${ac_cv_prog_ac_ct_CC+y}
3910 then :
3911 printf %s "(cached) " >&6
3912 else case e in #(
3913 e) if test -n "$ac_ct_CC"; then
3914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 case $as_dir in #(((
3921 '') as_dir=./ ;;
3922 */) ;;
3923 *) as_dir=$as_dir/ ;;
3924 esac
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_ac_ct_CC="$ac_prog"
3928 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 fi ;;
3936 esac
3937 fi
3938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 printf '%s\n' "$ac_ct_CC" >&6; }
3942 else
3943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf '%s\n' "no" >&6; }
3945 fi
3946
3947
3948 test -n "$ac_ct_CC" && break
3949 done
3950
3951 if test "x$ac_ct_CC" = x; then
3952 CC=""
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955 yes:)
3956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958 ac_tool_warned=yes ;;
3959 esac
3960 CC=$ac_ct_CC
3961 fi
3962 fi
3963
3964 fi
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}clang; ac_word=$2
3969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_CC+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else case e in #(
3975 e) if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 case $as_dir in #(((
3983 '') as_dir=./ ;;
3984 */) ;;
3985 *) as_dir=$as_dir/ ;;
3986 esac
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}clang"
3990 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi ;;
3998 esac
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 printf '%s\n' "$CC" >&6; }
4004 else
4005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf '%s\n' "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 if test -z "$ac_cv_prog_CC"; then
4012 ac_ct_CC=$CC
4013 # Extract the first word of "clang", so it can be a program name with args.
4014 set dummy clang; ac_word=$2
4015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_ac_ct_CC+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else case e in #(
4021 e) if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 case $as_dir in #(((
4029 '') as_dir=./ ;;
4030 */) ;;
4031 *) as_dir=$as_dir/ ;;
4032 esac
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_CC="clang"
4036 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi ;;
4044 esac
4045 fi
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 printf '%s\n' "$ac_ct_CC" >&6; }
4050 else
4051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 printf '%s\n' "no" >&6; }
4053 fi
4054
4055 if test "x$ac_ct_CC" = x; then
4056 CC=""
4057 else
4058 case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064 CC=$ac_ct_CC
4065 fi
4066 else
4067 CC="$ac_cv_prog_CC"
4068 fi
4069
4070 fi
4071
4072
4073 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4074 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4075 as_fn_error $? "no acceptable C compiler found in \$PATH
4076 See 'config.log' for more details" "$LINENO" 5; }
4077
4078 # Provide some information about the compiler.
4079 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4080 set X $ac_compile
4081 ac_compiler=$2
4082 for ac_option in --version -v -V -qversion -version; do
4083 { { ac_try="$ac_compiler $ac_option >&5"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 printf '%s\n' "$ac_try_echo"; } >&5
4090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4091 ac_status=$?
4092 if test -s conftest.err; then
4093 sed '10a\
4094 ... rest of stderr output deleted ...
4095 10q' conftest.err >conftest.er1
4096 cat conftest.er1 >&5
4097 fi
4098 rm -f conftest.er1 conftest.err
4099 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }
4101 done
4102
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main (void)
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 ac_clean_files_save=$ac_clean_files
4115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4116 # Try to create an executable without -o first, disregard a.out.
4117 # It will help us diagnose broken compilers, and finding out an intuition
4118 # of exeext.
4119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4120 printf %s "checking whether the C compiler works... " >&6; }
4121 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4122
4123 # The possible output files:
4124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4125
4126 ac_rmfiles=
4127 for ac_file in $ac_files
4128 do
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4132 esac
4133 done
4134 rm -f $ac_rmfiles
4135
4136 if { { ac_try="$ac_link_default"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 printf '%s\n' "$ac_try_echo"; } >&5
4143 (eval "$ac_link_default") 2>&5
4144 ac_status=$?
4145 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }
4147 then :
4148 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4149 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4151 # so that the user can short-circuit this test for compilers unknown to
4152 # Autoconf.
4153 for ac_file in $ac_files ''
4154 do
4155 test -f "$ac_file" || continue
4156 case $ac_file in
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4158 ;;
4159 [ab].out )
4160 # We found the default executable, but exeext='' is most
4161 # certainly right.
4162 break;;
4163 *.* )
4164 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4165 then :; else
4166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 fi
4168 # We set ac_cv_exeext here because the later test for it is not
4169 # safe: cross compilers may not add the suffix if given an '-o'
4170 # argument, so we may need to know it at that point already.
4171 # Even if this section looks crufty: it has the advantage of
4172 # actually working.
4173 break;;
4174 * )
4175 break;;
4176 esac
4177 done
4178 test "$ac_cv_exeext" = no && ac_cv_exeext=
4179
4180 else case e in #(
4181 e) ac_file='' ;;
4182 esac
4183 fi
4184 if test -z "$ac_file"
4185 then :
4186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 printf '%s\n' "no" >&6; }
4188 printf '%s\n' "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4192 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4193 as_fn_error 77 "C compiler cannot create executables
4194 See 'config.log' for more details" "$LINENO" 5; }
4195 else case e in #(
4196 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 printf '%s\n' "yes" >&6; } ;;
4198 esac
4199 fi
4200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4201 printf %s "checking for C compiler default output file name... " >&6; }
4202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4203 printf '%s\n' "$ac_file" >&6; }
4204 ac_exeext=$ac_cv_exeext
4205
4206 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4207 ac_clean_files=$ac_clean_files_save
4208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4209 printf %s "checking for suffix of executables... " >&6; }
4210 if { { ac_try="$ac_link"
4211 case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 printf '%s\n' "$ac_try_echo"; } >&5
4217 (eval "$ac_link") 2>&5
4218 ac_status=$?
4219 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }
4221 then :
4222 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4223 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4224 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4225 # 'rm'.
4226 for ac_file in conftest.exe conftest conftest.*; do
4227 test -f "$ac_file" || continue
4228 case $ac_file in
4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4231 break;;
4232 * ) break;;
4233 esac
4234 done
4235 else case e in #(
4236 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4237 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4238 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4239 See 'config.log' for more details" "$LINENO" 5; } ;;
4240 esac
4241 fi
4242 rm -f conftest conftest$ac_cv_exeext
4243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4244 printf '%s\n' "$ac_cv_exeext" >&6; }
4245
4246 rm -f conftest.$ac_ext
4247 EXEEXT=$ac_cv_exeext
4248 ac_exeext=$EXEEXT
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdio.h>
4252 int
4253 main (void)
4254 {
4255 FILE *f = fopen ("conftest.out", "w");
4256 if (!f)
4257 return 1;
4258 return ferror (f) || fclose (f) != 0;
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 ac_clean_files="$ac_clean_files conftest.out"
4265 # Check that the compiler produces executables we can run. If not, either
4266 # the compiler is broken, or we cross compile.
4267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4268 printf %s "checking whether we are cross compiling... " >&6; }
4269 if test "$cross_compiling" != yes; then
4270 { { ac_try="$ac_link"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf '%s\n' "$ac_try_echo"; } >&5
4277 (eval "$ac_link") 2>&5
4278 ac_status=$?
4279 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }
4281 if { ac_try='./conftest$ac_cv_exeext'
4282 { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 printf '%s\n' "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; }; then
4292 cross_compiling=no
4293 else
4294 if test "$cross_compiling" = maybe; then
4295 cross_compiling=yes
4296 else
4297 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4298 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4299 as_fn_error 77 "cannot run C compiled programs.
4300 If you meant to cross compile, use '--host'.
4301 See 'config.log' for more details" "$LINENO" 5; }
4302 fi
4303 fi
4304 fi
4305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4306 printf '%s\n' "$cross_compiling" >&6; }
4307
4308 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4309 conftest.o conftest.obj conftest.out
4310 ac_clean_files=$ac_clean_files_save
4311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4312 printf %s "checking for suffix of object files... " >&6; }
4313 if test ${ac_cv_objext+y}
4314 then :
4315 printf %s "(cached) " >&6
4316 else case e in #(
4317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319
4320 int
4321 main (void)
4322 {
4323
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.o conftest.obj
4329 if { { ac_try="$ac_compile"
4330 case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 printf '%s\n' "$ac_try_echo"; } >&5
4336 (eval "$ac_compile") 2>&5
4337 ac_status=$?
4338 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }
4340 then :
4341 for ac_file in conftest.o conftest.obj conftest.*; do
4342 test -f "$ac_file" || continue;
4343 case $ac_file in
4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4346 break;;
4347 esac
4348 done
4349 else case e in #(
4350 e) printf '%s\n' "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4354 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4355 as_fn_error $? "cannot compute suffix of object files: cannot compile
4356 See 'config.log' for more details" "$LINENO" 5; } ;;
4357 esac
4358 fi
4359 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4360 esac
4361 fi
4362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4363 printf '%s\n' "$ac_cv_objext" >&6; }
4364 OBJEXT=$ac_cv_objext
4365 ac_objext=$OBJEXT
4366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4367 printf %s "checking whether the compiler supports GNU C... " >&6; }
4368 if test ${ac_cv_c_compiler_gnu+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else case e in #(
4372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374
4375 int
4376 main (void)
4377 {
4378 #ifndef __GNUC__
4379 choke me
4380 #endif
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"
4387 then :
4388 ac_compiler_gnu=yes
4389 else case e in #(
4390 e) ac_compiler_gnu=no ;;
4391 esac
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4394 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4395 ;;
4396 esac
4397 fi
4398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4399 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402 if test $ac_compiler_gnu = yes; then
4403 GCC=yes
4404 else
4405 GCC=
4406 fi
4407 ac_test_CFLAGS=${CFLAGS+y}
4408 ac_save_CFLAGS=$CFLAGS
4409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4410 printf %s "checking whether $CC accepts -g... " >&6; }
4411 if test ${ac_cv_prog_cc_g+y}
4412 then :
4413 printf %s "(cached) " >&6
4414 else case e in #(
4415 e) ac_save_c_werror_flag=$ac_c_werror_flag
4416 ac_c_werror_flag=yes
4417 ac_cv_prog_cc_g=no
4418 CFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421
4422 int
4423 main (void)
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"
4431 then :
4432 ac_cv_prog_cc_g=yes
4433 else case e in #(
4434 e) CFLAGS=""
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"
4447 then :
4448
4449 else case e in #(
4450 e) ac_c_werror_flag=$ac_save_c_werror_flag
4451 CFLAGS="-g"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454
4455 int
4456 main (void)
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"
4464 then :
4465 ac_cv_prog_cc_g=yes
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4468 esac
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4471 esac
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4474 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4475 esac
4476 fi
4477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4478 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
4479 if test $ac_test_CFLAGS; then
4480 CFLAGS=$ac_save_CFLAGS
4481 elif test $ac_cv_prog_cc_g = yes; then
4482 if test "$GCC" = yes; then
4483 CFLAGS="-g -O2"
4484 else
4485 CFLAGS="-g"
4486 fi
4487 else
4488 if test "$GCC" = yes; then
4489 CFLAGS="-O2"
4490 else
4491 CFLAGS=
4492 fi
4493 fi
4494 ac_prog_cc_stdc=no
4495 if test x$ac_prog_cc_stdc = xno
4496 then :
4497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
4498 printf %s "checking for $CC option to enable C23 features... " >&6; }
4499 if test ${ac_cv_prog_cc_c23+y}
4500 then :
4501 printf %s "(cached) " >&6
4502 else case e in #(
4503 e) ac_cv_prog_cc_c23=no
4504 ac_save_CC=$CC
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 $ac_c_conftest_c23_program
4508 _ACEOF
4509 for ac_arg in '' -std=gnu23
4510 do
4511 CC="$ac_save_CC $ac_arg"
4512 if ac_fn_c_try_compile "$LINENO"
4513 then :
4514 ac_cv_prog_cc_c23=$ac_arg
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam
4517 test "x$ac_cv_prog_cc_c23" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC ;;
4521 esac
4522 fi
4523
4524 if test "x$ac_cv_prog_cc_c23" = xno
4525 then :
4526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4527 printf '%s\n' "unsupported" >&6; }
4528 else case e in #(
4529 e) if test "x$ac_cv_prog_cc_c23" = x
4530 then :
4531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4532 printf '%s\n' "none needed" >&6; }
4533 else case e in #(
4534 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
4535 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
4536 CC="$CC $ac_cv_prog_cc_c23" ;;
4537 esac
4538 fi
4539 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
4540 ac_prog_cc_stdc=c23 ;;
4541 esac
4542 fi
4543 fi
4544 if test x$ac_prog_cc_stdc = xno
4545 then :
4546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4547 printf %s "checking for $CC option to enable C11 features... " >&6; }
4548 if test ${ac_cv_prog_cc_c11+y}
4549 then :
4550 printf %s "(cached) " >&6
4551 else case e in #(
4552 e) ac_cv_prog_cc_c11=no
4553 ac_save_CC=$CC
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 $ac_c_conftest_c11_program
4557 _ACEOF
4558 for ac_arg in '' -std=gnu11 -std:c11
4559 do
4560 CC="$ac_save_CC $ac_arg"
4561 if ac_fn_c_try_compile "$LINENO"
4562 then :
4563 ac_cv_prog_cc_c11=$ac_arg
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext conftest.beam
4566 test "x$ac_cv_prog_cc_c11" != "xno" && break
4567 done
4568 rm -f conftest.$ac_ext
4569 CC=$ac_save_CC ;;
4570 esac
4571 fi
4572
4573 if test "x$ac_cv_prog_cc_c11" = xno
4574 then :
4575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4576 printf '%s\n' "unsupported" >&6; }
4577 else case e in #(
4578 e) if test "x$ac_cv_prog_cc_c11" = x
4579 then :
4580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4581 printf '%s\n' "none needed" >&6; }
4582 else case e in #(
4583 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4584 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
4585 CC="$CC $ac_cv_prog_cc_c11" ;;
4586 esac
4587 fi
4588 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4589 ac_prog_cc_stdc=c11 ;;
4590 esac
4591 fi
4592 fi
4593 if test x$ac_prog_cc_stdc = xno
4594 then :
4595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4596 printf %s "checking for $CC option to enable C99 features... " >&6; }
4597 if test ${ac_cv_prog_cc_c99+y}
4598 then :
4599 printf %s "(cached) " >&6
4600 else case e in #(
4601 e) ac_cv_prog_cc_c99=no
4602 ac_save_CC=$CC
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 $ac_c_conftest_c99_program
4606 _ACEOF
4607 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4608 do
4609 CC="$ac_save_CC $ac_arg"
4610 if ac_fn_c_try_compile "$LINENO"
4611 then :
4612 ac_cv_prog_cc_c99=$ac_arg
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.beam
4615 test "x$ac_cv_prog_cc_c99" != "xno" && break
4616 done
4617 rm -f conftest.$ac_ext
4618 CC=$ac_save_CC ;;
4619 esac
4620 fi
4621
4622 if test "x$ac_cv_prog_cc_c99" = xno
4623 then :
4624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4625 printf '%s\n' "unsupported" >&6; }
4626 else case e in #(
4627 e) if test "x$ac_cv_prog_cc_c99" = x
4628 then :
4629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4630 printf '%s\n' "none needed" >&6; }
4631 else case e in #(
4632 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4633 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
4634 CC="$CC $ac_cv_prog_cc_c99" ;;
4635 esac
4636 fi
4637 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4638 ac_prog_cc_stdc=c99 ;;
4639 esac
4640 fi
4641 fi
4642 if test x$ac_prog_cc_stdc = xno
4643 then :
4644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4645 printf %s "checking for $CC option to enable C89 features... " >&6; }
4646 if test ${ac_cv_prog_cc_c89+y}
4647 then :
4648 printf %s "(cached) " >&6
4649 else case e in #(
4650 e) ac_cv_prog_cc_c89=no
4651 ac_save_CC=$CC
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 $ac_c_conftest_c89_program
4655 _ACEOF
4656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4657 do
4658 CC="$ac_save_CC $ac_arg"
4659 if ac_fn_c_try_compile "$LINENO"
4660 then :
4661 ac_cv_prog_cc_c89=$ac_arg
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.beam
4664 test "x$ac_cv_prog_cc_c89" != "xno" && break
4665 done
4666 rm -f conftest.$ac_ext
4667 CC=$ac_save_CC ;;
4668 esac
4669 fi
4670
4671 if test "x$ac_cv_prog_cc_c89" = xno
4672 then :
4673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4674 printf '%s\n' "unsupported" >&6; }
4675 else case e in #(
4676 e) if test "x$ac_cv_prog_cc_c89" = x
4677 then :
4678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679 printf '%s\n' "none needed" >&6; }
4680 else case e in #(
4681 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4682 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
4683 CC="$CC $ac_cv_prog_cc_c89" ;;
4684 esac
4685 fi
4686 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4687 ac_prog_cc_stdc=c89 ;;
4688 esac
4689 fi
4690 fi
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698
4699 ac_ext=c
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4705 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4706 if test ${am_cv_prog_cc_c_o+y}
4707 then :
4708 printf %s "(cached) " >&6
4709 else case e in #(
4710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712
4713 int
4714 main (void)
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 # Make sure it works both with $CC and with simple cc.
4722 # Following AC_PROG_CC_C_O, we do the test twice because some
4723 # compilers refuse to overwrite an existing .o file with -o,
4724 # though they will create one.
4725 am_cv_prog_cc_c_o=yes
4726 for am_i in 1 2; do
4727 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4728 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } \
4732 && test -f conftest2.$ac_objext; then
4733 : OK
4734 else
4735 am_cv_prog_cc_c_o=no
4736 break
4737 fi
4738 done
4739 # aligned with autoconf, so not including core; see bug#72225.
4740 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4741 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4742 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4743 unset am_i ;;
4744 esac
4745 fi
4746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4747 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
4748 if test "$am_cv_prog_cc_c_o" != yes; then
4749 # Losing compiler, so override with the script.
4750 # FIXME: It is wrong to rewrite CC.
4751 # But if we don't then we get into trouble of one sort or another.
4752 # A longer-term fix would be to have automake use am__CC in this case,
4753 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4754 CC="$am_aux_dir/compile $CC"
4755 fi
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762
4763 depcc="$CC" am_compiler_list=
4764
4765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4766 printf %s "checking dependency style of $depcc... " >&6; }
4767 if test ${am_cv_CC_dependencies_compiler_type+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else case e in #(
4771 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4772 # We make a subdir and do the tests there. Otherwise we can end up
4773 # making bogus files that we don't know about and never remove. For
4774 # instance it was reported that on HP-UX the gcc test will end up
4775 # making a dummy file named 'D' -- because '-MD' means "put the output
4776 # in D".
4777 rm -rf conftest.dir
4778 mkdir conftest.dir
4779 # Copy depcomp to subdir because otherwise we won't find it if we're
4780 # using a relative directory.
4781 cp "$am_depcomp" conftest.dir
4782 cd conftest.dir
4783 # We will build objects and dependencies in a subdirectory because
4784 # it helps to detect inapplicable dependency modes. For instance
4785 # both Tru64's cc and ICC support -MD to output dependencies as a
4786 # side effect of compilation, but ICC will put the dependencies in
4787 # the current directory while Tru64 will put them in the object
4788 # directory.
4789 mkdir sub
4790
4791 am_cv_CC_dependencies_compiler_type=none
4792 if test "$am_compiler_list" = ""; then
4793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4794 fi
4795 am__universal=false
4796 case " $depcc " in #(
4797 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4798 esac
4799
4800 for depmode in $am_compiler_list; do
4801 # Setup a source with many dependencies, because some compilers
4802 # like to wrap large dependency lists on column 80 (with \), and
4803 # we should not choose a depcomp mode which is confused by this.
4804 #
4805 # We need to recreate these files for each test, as the compiler may
4806 # overwrite some of them when testing with obscure command lines.
4807 # This happens at least with the AIX C compiler.
4808 : > sub/conftest.c
4809 for i in 1 2 3 4 5 6; do
4810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4811 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4812 # Solaris 10 /bin/sh.
4813 echo '/* dummy */' > sub/conftst$i.h
4814 done
4815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4816
4817 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4818 # mode. It turns out that the SunPro C++ compiler does not properly
4819 # handle '-M -o', and we need to detect this. Also, some Intel
4820 # versions had trouble with output in subdirs.
4821 am__obj=sub/conftest.${OBJEXT-o}
4822 am__minus_obj="-o $am__obj"
4823 case $depmode in
4824 gcc)
4825 # This depmode causes a compiler race in universal mode.
4826 test "$am__universal" = false || continue
4827 ;;
4828 nosideeffect)
4829 # After this tag, mechanisms are not by side-effect, so they'll
4830 # only be used when explicitly requested.
4831 if test "x$enable_dependency_tracking" = xyes; then
4832 continue
4833 else
4834 break
4835 fi
4836 ;;
4837 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4838 # This compiler won't grok '-c -o', but also, the minuso test has
4839 # not run yet. These depmodes are late enough in the game, and
4840 # so weak that their functioning should not be impacted.
4841 am__obj=conftest.${OBJEXT-o}
4842 am__minus_obj=
4843 ;;
4844 none) break ;;
4845 esac
4846 if depmode=$depmode \
4847 source=sub/conftest.c object=$am__obj \
4848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4850 >/dev/null 2>conftest.err &&
4851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4855 # icc doesn't choke on unknown options, it will just issue warnings
4856 # or remarks (even with -Werror). So we grep stderr for any message
4857 # that says an option was ignored or not supported.
4858 # When given -MP, icc 7.0 and 7.1 complain thus:
4859 # icc: Command line warning: ignoring option '-M'; no argument required
4860 # The diagnosis changed in icc 8.0:
4861 # icc: Command line remark: option '-MP' not supported
4862 if (grep 'ignoring option' conftest.err ||
4863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4864 am_cv_CC_dependencies_compiler_type=$depmode
4865 break
4866 fi
4867 fi
4868 done
4869
4870 cd ..
4871 rm -rf conftest.dir
4872 else
4873 am_cv_CC_dependencies_compiler_type=none
4874 fi
4875 ;;
4876 esac
4877 fi
4878 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4879 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
4880 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4881
4882 if
4883 test "x$enable_dependency_tracking" != xno \
4884 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4885 am__fastdepCC_TRUE=
4886 am__fastdepCC_FALSE='#'
4887 else
4888 am__fastdepCC_TRUE='#'
4889 am__fastdepCC_FALSE=
4890 fi
4891
4892
4893
4894 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
4895 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
4896 if test ${ac_cv_c_undeclared_builtin_options+y}
4897 then :
4898 printf %s "(cached) " >&6
4899 else case e in #(
4900 e) ac_save_CFLAGS=$CFLAGS
4901 ac_cv_c_undeclared_builtin_options='cannot detect'
4902 for ac_arg in '' -fno-builtin; do
4903 CFLAGS="$ac_save_CFLAGS $ac_arg"
4904 # This test program should *not* compile successfully.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907
4908 int
4909 main (void)
4910 {
4911 (void) strchr;
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"
4917 then :
4918
4919 else case e in #(
4920 e) # This test program should compile successfully.
4921 # No library function is consistently available on
4922 # freestanding implementations, so test against a dummy
4923 # declaration. Include always-available headers on the
4924 # off chance that they somehow elicit warnings.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #include <float.h>
4928 #include <limits.h>
4929 #include <stdarg.h>
4930 #include <stddef.h>
4931 extern void ac_decl (int, char *);
4932
4933 int
4934 main (void)
4935 {
4936 (void) ac_decl (0, (char *) 0);
4937 (void) ac_decl;
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"
4944 then :
4945 if test x"$ac_arg" = x
4946 then :
4947 ac_cv_c_undeclared_builtin_options='none needed'
4948 else case e in #(
4949 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4950 esac
4951 fi
4952 break
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4955 esac
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958 done
4959 CFLAGS=$ac_save_CFLAGS
4960 ;;
4961 esac
4962 fi
4963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4964 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
4965 case $ac_cv_c_undeclared_builtin_options in #(
4966 'cannot detect') :
4967 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4968 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4969 as_fn_error $? "cannot make $CC report undeclared builtins
4970 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4971 'none needed') :
4972 ac_c_undeclared_builtin_options='' ;; #(
4973 *) :
4974 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4975 esac
4976
4977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
4978 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
4979 if test ${ac_cv_c_future_darwin_options+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else case e in #(
4983 e) ac_compile_saved="$ac_compile"
4984 ac_compile="$ac_compile -Werror=unguarded-availability-new"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #if ! (defined __APPLE__ && defined __MACH__)
4988 #error "-Werror=unguarded-availability-new not needed here"
4989 #endif
4990
4991 int
4992 main (void)
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"
5000 then :
5001 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5002 else case e in #(
5003 e) ac_cv_c_future_darwin_options='none needed' ;;
5004 esac
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 ac_compile="$ac_compile_saved"
5008 ;;
5009 esac
5010 fi
5011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5012 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5013 case $ac_cv_c_future_darwin_options in #(
5014 'none needed') :
5015 ac_c_future_darwin_options='' ;; #(
5016 *) :
5017 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5018 esac
5019
5020 ac_header= ac_cache=
5021 for ac_item in $ac_header_c_list
5022 do
5023 if test $ac_cache; then
5024 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5025 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5026 printf '%s\n' "#define $ac_item 1" >> confdefs.h
5027 fi
5028 ac_header= ac_cache=
5029 elif test $ac_header; then
5030 ac_cache=$ac_item
5031 else
5032 ac_header=$ac_item
5033 fi
5034 done
5035
5036
5037
5038
5039
5040
5041
5042
5043 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5044 then :
5045
5046 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
5047
5048 fi
5049
5050
5051
5052
5053 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5054 if test "x$ac_cv_have_decl___clang__" = xyes
5055 then :
5056 CLANGCC="yes"
5057 else case e in #(
5058 e) CLANGCC="no" ;;
5059 esac
5060 fi
5061 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5062 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5063 then :
5064 INTELCC="yes"
5065 else case e in #(
5066 e) INTELCC="no" ;;
5067 esac
5068 fi
5069 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5070 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5071 then :
5072 SUNCC="yes"
5073 else case e in #(
5074 e) SUNCC="no" ;;
5075 esac
5076 fi
5077
5078
5079
5080
5081
5082
5083
5084
5085 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 printf %s "checking for $ac_word... " >&6; }
5091 if test ${ac_cv_path_PKG_CONFIG+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else case e in #(
5095 e) case $PKG_CONFIG in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5098 ;;
5099 *)
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 case $as_dir in #(((
5105 '') as_dir=./ ;;
5106 */) ;;
5107 *) as_dir=$as_dir/ ;;
5108 esac
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5111 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5112 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 ;;
5120 esac ;;
5121 esac
5122 fi
5123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5124 if test -n "$PKG_CONFIG"; then
5125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5126 printf '%s\n' "$PKG_CONFIG" >&6; }
5127 else
5128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 printf '%s\n' "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_path_PKG_CONFIG"; then
5135 ac_pt_PKG_CONFIG=$PKG_CONFIG
5136 # Extract the first word of "pkg-config", so it can be a program name with args.
5137 set dummy pkg-config; ac_word=$2
5138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 printf %s "checking for $ac_word... " >&6; }
5140 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5141 then :
5142 printf %s "(cached) " >&6
5143 else case e in #(
5144 e) case $ac_pt_PKG_CONFIG in
5145 [\\/]* | ?:[\\/]*)
5146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5147 ;;
5148 *)
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 case $as_dir in #(((
5154 '') as_dir=./ ;;
5155 */) ;;
5156 *) as_dir=$as_dir/ ;;
5157 esac
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5161 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 ;;
5169 esac ;;
5170 esac
5171 fi
5172 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5173 if test -n "$ac_pt_PKG_CONFIG"; then
5174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5175 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5176 else
5177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 printf '%s\n' "no" >&6; }
5179 fi
5180
5181 if test "x$ac_pt_PKG_CONFIG" = x; then
5182 PKG_CONFIG=""
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5187 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190 PKG_CONFIG=$ac_pt_PKG_CONFIG
5191 fi
5192 else
5193 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5194 fi
5195
5196 fi
5197 if test -n "$PKG_CONFIG"; then
5198 _pkg_min_version=0.9.0
5199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5200 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5201 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203 printf '%s\n' "yes" >&6; }
5204 else
5205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 printf '%s\n' "no" >&6; }
5207 PKG_CONFIG=""
5208 fi
5209 fi
5210
5211
5212 # Make sure we can run config.sub.
5213 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5214 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5215
5216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5217 printf %s "checking build system type... " >&6; }
5218 if test ${ac_cv_build+y}
5219 then :
5220 printf %s "(cached) " >&6
5221 else case e in #(
5222 e) ac_build_alias=$build_alias
5223 test "x$ac_build_alias" = x &&
5224 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5225 test "x$ac_build_alias" = x &&
5226 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5227 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5228 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5229 ;;
5230 esac
5231 fi
5232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5233 printf '%s\n' "$ac_cv_build" >&6; }
5234 case $ac_cv_build in
5235 *-*-*) ;;
5236 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5237 esac
5238 build=$ac_cv_build
5239 ac_save_IFS=$IFS; IFS='-'
5240 set x $ac_cv_build
5241 shift
5242 build_cpu=$1
5243 build_vendor=$2
5244 shift; shift
5245 # Remember, the first character of IFS is used to create $*,
5246 # except with old shells:
5247 build_os=$*
5248 IFS=$ac_save_IFS
5249 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5250
5251
5252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5253 printf %s "checking host system type... " >&6; }
5254 if test ${ac_cv_host+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) if test "x$host_alias" = x; then
5259 ac_cv_host=$ac_cv_build
5260 else
5261 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5262 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5263 fi
5264 ;;
5265 esac
5266 fi
5267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5268 printf '%s\n' "$ac_cv_host" >&6; }
5269 case $ac_cv_host in
5270 *-*-*) ;;
5271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5272 esac
5273 host=$ac_cv_host
5274 ac_save_IFS=$IFS; IFS='-'
5275 set x $ac_cv_host
5276 shift
5277 host_cpu=$1
5278 host_vendor=$2
5279 shift; shift
5280 # Remember, the first character of IFS is used to create $*,
5281 # except with old shells:
5282 host_os=$*
5283 IFS=$ac_save_IFS
5284 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5285
5286
5287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5288 printf %s "checking for a sed that does not truncate output... " >&6; }
5289 if test ${ac_cv_path_SED+y}
5290 then :
5291 printf %s "(cached) " >&6
5292 else case e in #(
5293 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5294 for ac_i in 1 2 3 4 5 6 7; do
5295 ac_script="$ac_script$as_nl$ac_script"
5296 done
5297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5298 { ac_script=; unset ac_script;}
5299 if test -z "$SED"; then
5300 ac_path_SED_found=false
5301 # Loop through the user's path and test for each of PROGNAME-LIST
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 case $as_dir in #(((
5307 '') as_dir=./ ;;
5308 */) ;;
5309 *) as_dir=$as_dir/ ;;
5310 esac
5311 for ac_prog in sed gsed
5312 do
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5315 as_fn_executable_p "$ac_path_SED" || continue
5316 # Check for GNU ac_path_SED and select it if it is found.
5317 # Check for GNU $ac_path_SED
5318 case `"$ac_path_SED" --version 2>&1` in #(
5319 *GNU*)
5320 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5321 #(
5322 *)
5323 ac_count=0
5324 printf %s 0123456789 >"conftest.in"
5325 while :
5326 do
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 printf '%s\n' '' >> "conftest.nl"
5331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_SED_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_SED="$ac_path_SED"
5337 ac_path_SED_max=$ac_count
5338 fi
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5344
5345 $ac_path_SED_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_SED"; then
5351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5352 fi
5353 else
5354 ac_cv_path_SED=$SED
5355 fi
5356 ;;
5357 esac
5358 fi
5359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5360 printf '%s\n' "$ac_cv_path_SED" >&6; }
5361 SED="$ac_cv_path_SED"
5362 rm -f conftest.sed
5363
5364
5365
5366
5367
5368
5369 # Check whether --enable-selective-werror was given.
5370 if test ${enable_selective_werror+y}
5371 then :
5372 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5373 else case e in #(
5374 e) SELECTIVE_WERROR=yes ;;
5375 esac
5376 fi
5377
5378
5379
5380
5381
5382 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5383 if test "x$SUNCC" = "xyes"; then
5384 BASE_CFLAGS="-v"
5385 else
5386 BASE_CFLAGS=""
5387 fi
5388
5389 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5410 then :
5411 printf %s "(cached) " >&6
5412 else case e in #(
5413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 int i;
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"
5418 then :
5419 xorg_cv_cc_flag_unknown_warning_option=yes
5420 else case e in #(
5421 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5422 esac
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5425 esac
5426 fi
5427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5428 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5430 CFLAGS="$xorg_testset_save_CFLAGS"
5431 fi
5432
5433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436 fi
5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5441 then :
5442 printf %s "(cached) " >&6
5443 else case e in #(
5444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"
5449 then :
5450 xorg_cv_cc_flag_unused_command_line_argument=yes
5451 else case e in #(
5452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5453 esac
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5456 esac
5457 fi
5458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5459 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5461 CFLAGS="$xorg_testset_save_CFLAGS"
5462 fi
5463
5464 found="no"
5465
5466 if test $found = "no" ; then
5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469 fi
5470
5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 fi
5474
5475 CFLAGS="$CFLAGS -Wall"
5476
5477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5478 printf %s "checking if $CC supports -Wall... " >&6; }
5479 cacheid=xorg_cv_cc_flag__Wall
5480 if eval test \${$cacheid+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else case e in #(
5484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 int i;
5487 int
5488 main (void)
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"
5496 then :
5497 eval $cacheid=yes
5498 else case e in #(
5499 e) eval $cacheid=no ;;
5500 esac
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5503 conftest$ac_exeext conftest.$ac_ext ;;
5504 esac
5505 fi
5506
5507
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510 eval supported=\$$cacheid
5511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512 printf '%s\n' "$supported" >&6; }
5513 if test "$supported" = "yes" ; then
5514 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5515 found="yes"
5516 fi
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5540 then :
5541 printf %s "(cached) " >&6
5542 else case e in #(
5543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 int i;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"
5548 then :
5549 xorg_cv_cc_flag_unknown_warning_option=yes
5550 else case e in #(
5551 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5552 esac
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5555 esac
5556 fi
5557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 fi
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else case e in #(
5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 int i;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"
5579 then :
5580 xorg_cv_cc_flag_unused_command_line_argument=yes
5581 else case e in #(
5582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5583 esac
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5586 esac
5587 fi
5588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5589 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 found="no"
5595
5596 if test $found = "no" ; then
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 fi
5600
5601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5603 fi
5604
5605 CFLAGS="$CFLAGS -Wpointer-arith"
5606
5607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5608 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5609 cacheid=xorg_cv_cc_flag__Wpointer_arith
5610 if eval test \${$cacheid+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else case e in #(
5614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 int i;
5617 int
5618 main (void)
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_link "$LINENO"
5626 then :
5627 eval $cacheid=yes
5628 else case e in #(
5629 e) eval $cacheid=no ;;
5630 esac
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5633 conftest$ac_exeext conftest.$ac_ext ;;
5634 esac
5635 fi
5636
5637
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639
5640 eval supported=\$$cacheid
5641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642 printf '%s\n' "$supported" >&6; }
5643 if test "$supported" = "yes" ; then
5644 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5645 found="yes"
5646 fi
5647 fi
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 xorg_testset_save_CFLAGS="$CFLAGS"
5664
5665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else case e in #(
5673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"
5678 then :
5679 xorg_cv_cc_flag_unknown_warning_option=yes
5680 else case e in #(
5681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5682 esac
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5685 esac
5686 fi
5687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5688 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691 fi
5692
5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5696 fi
5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5701 then :
5702 printf %s "(cached) " >&6
5703 else case e in #(
5704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 int i;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"
5709 then :
5710 xorg_cv_cc_flag_unused_command_line_argument=yes
5711 else case e in #(
5712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5713 esac
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5716 esac
5717 fi
5718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wmissing-declarations"
5736
5737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5738 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5740 if eval test \${$cacheid+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else case e in #(
5744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main (void)
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"
5756 then :
5757 eval $cacheid=yes
5758 else case e in #(
5759 e) eval $cacheid=no ;;
5760 esac
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5763 conftest$ac_exeext conftest.$ac_ext ;;
5764 esac
5765 fi
5766
5767
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769
5770 eval supported=\$$cacheid
5771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772 printf '%s\n' "$supported" >&6; }
5773 if test "$supported" = "yes" ; then
5774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5775 found="yes"
5776 fi
5777 fi
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 xorg_testset_save_CFLAGS="$CFLAGS"
5794
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else case e in #(
5803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 int i;
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"
5808 then :
5809 xorg_cv_cc_flag_unknown_warning_option=yes
5810 else case e in #(
5811 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5812 esac
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5815 esac
5816 fi
5817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5818 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5820 CFLAGS="$xorg_testset_save_CFLAGS"
5821 fi
5822
5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 fi
5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840 xorg_cv_cc_flag_unused_command_line_argument=yes
5841 else case e in #(
5842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5843 esac
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5846 esac
5847 fi
5848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852 fi
5853
5854 found="no"
5855
5856 if test $found = "no" ; then
5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 fi
5860
5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863 fi
5864
5865 CFLAGS="$CFLAGS -Wformat=2"
5866
5867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5868 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5869 cacheid=xorg_cv_cc_flag__Wformat_2
5870 if eval test \${$cacheid+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else case e in #(
5874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 int i;
5877 int
5878 main (void)
5879 {
5880
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_link "$LINENO"
5886 then :
5887 eval $cacheid=yes
5888 else case e in #(
5889 e) eval $cacheid=no ;;
5890 esac
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5893 conftest$ac_exeext conftest.$ac_ext ;;
5894 esac
5895 fi
5896
5897
5898 CFLAGS="$xorg_testset_save_CFLAGS"
5899
5900 eval supported=\$$cacheid
5901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5902 printf '%s\n' "$supported" >&6; }
5903 if test "$supported" = "yes" ; then
5904 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5905 found="yes"
5906 fi
5907 fi
5908
5909 if test $found = "no" ; then
5910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912 fi
5913
5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916 fi
5917
5918 CFLAGS="$CFLAGS -Wformat"
5919
5920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5921 printf %s "checking if $CC supports -Wformat... " >&6; }
5922 cacheid=xorg_cv_cc_flag__Wformat
5923 if eval test \${$cacheid+y}
5924 then :
5925 printf %s "(cached) " >&6
5926 else case e in #(
5927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 int
5931 main (void)
5932 {
5933
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_link "$LINENO"
5939 then :
5940 eval $cacheid=yes
5941 else case e in #(
5942 e) eval $cacheid=no ;;
5943 esac
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5946 conftest$ac_exeext conftest.$ac_ext ;;
5947 esac
5948 fi
5949
5950
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953 eval supported=\$$cacheid
5954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955 printf '%s\n' "$supported" >&6; }
5956 if test "$supported" = "yes" ; then
5957 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5958 found="yes"
5959 fi
5960 fi
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 xorg_testset_save_CFLAGS="$CFLAGS"
5979
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5985 then :
5986 printf %s "(cached) " >&6
5987 else case e in #(
5988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 int i;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"
5993 then :
5994 xorg_cv_cc_flag_unknown_warning_option=yes
5995 else case e in #(
5996 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5997 esac
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6000 esac
6001 fi
6002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6003 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6005 CFLAGS="$xorg_testset_save_CFLAGS"
6006 fi
6007
6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011 fi
6012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else case e in #(
6019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"
6024 then :
6025 xorg_cv_cc_flag_unused_command_line_argument=yes
6026 else case e in #(
6027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6028 esac
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6031 esac
6032 fi
6033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6034 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6036 CFLAGS="$xorg_testset_save_CFLAGS"
6037 fi
6038
6039 found="no"
6040
6041 if test $found = "no" ; then
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 fi
6045
6046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6048 fi
6049
6050 CFLAGS="$CFLAGS -Wstrict-prototypes"
6051
6052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6053 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6054 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6055 if eval test \${$cacheid+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 int
6063 main (void)
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 if ac_fn_c_try_link "$LINENO"
6071 then :
6072 eval $cacheid=yes
6073 else case e in #(
6074 e) eval $cacheid=no ;;
6075 esac
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6078 conftest$ac_exeext conftest.$ac_ext ;;
6079 esac
6080 fi
6081
6082
6083 CFLAGS="$xorg_testset_save_CFLAGS"
6084
6085 eval supported=\$$cacheid
6086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6087 printf '%s\n' "$supported" >&6; }
6088 if test "$supported" = "yes" ; then
6089 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6090 found="yes"
6091 fi
6092 fi
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 xorg_testset_save_CFLAGS="$CFLAGS"
6109
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6115 then :
6116 printf %s "(cached) " >&6
6117 else case e in #(
6118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"
6123 then :
6124 xorg_cv_cc_flag_unknown_warning_option=yes
6125 else case e in #(
6126 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6127 esac
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6130 esac
6131 fi
6132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6133 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else case e in #(
6149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"
6154 then :
6155 xorg_cv_cc_flag_unused_command_line_argument=yes
6156 else case e in #(
6157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6158 esac
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6161 esac
6162 fi
6163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6164 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167 fi
6168
6169 found="no"
6170
6171 if test $found = "no" ; then
6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 fi
6175
6176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6178 fi
6179
6180 CFLAGS="$CFLAGS -Wmissing-prototypes"
6181
6182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6183 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6184 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6185 if eval test \${$cacheid+y}
6186 then :
6187 printf %s "(cached) " >&6
6188 else case e in #(
6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 int i;
6192 int
6193 main (void)
6194 {
6195
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_link "$LINENO"
6201 then :
6202 eval $cacheid=yes
6203 else case e in #(
6204 e) eval $cacheid=no ;;
6205 esac
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6208 conftest$ac_exeext conftest.$ac_ext ;;
6209 esac
6210 fi
6211
6212
6213 CFLAGS="$xorg_testset_save_CFLAGS"
6214
6215 eval supported=\$$cacheid
6216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6217 printf '%s\n' "$supported" >&6; }
6218 if test "$supported" = "yes" ; then
6219 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6220 found="yes"
6221 fi
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 xorg_testset_save_CFLAGS="$CFLAGS"
6239
6240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else case e in #(
6248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"
6253 then :
6254 xorg_cv_cc_flag_unknown_warning_option=yes
6255 else case e in #(
6256 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6257 esac
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6260 esac
6261 fi
6262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6263 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266 fi
6267
6268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 fi
6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6276 then :
6277 printf %s "(cached) " >&6
6278 else case e in #(
6279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 int i;
6282 _ACEOF
6283 if ac_fn_c_try_compile "$LINENO"
6284 then :
6285 xorg_cv_cc_flag_unused_command_line_argument=yes
6286 else case e in #(
6287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6288 esac
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6291 esac
6292 fi
6293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6294 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6296 CFLAGS="$xorg_testset_save_CFLAGS"
6297 fi
6298
6299 found="no"
6300
6301 if test $found = "no" ; then
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 fi
6305
6306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308 fi
6309
6310 CFLAGS="$CFLAGS -Wnested-externs"
6311
6312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6313 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6314 cacheid=xorg_cv_cc_flag__Wnested_externs
6315 if eval test \${$cacheid+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else case e in #(
6319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 int i;
6322 int
6323 main (void)
6324 {
6325
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"
6331 then :
6332 eval $cacheid=yes
6333 else case e in #(
6334 e) eval $cacheid=no ;;
6335 esac
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6338 conftest$ac_exeext conftest.$ac_ext ;;
6339 esac
6340 fi
6341
6342
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344
6345 eval supported=\$$cacheid
6346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6347 printf '%s\n' "$supported" >&6; }
6348 if test "$supported" = "yes" ; then
6349 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6350 found="yes"
6351 fi
6352 fi
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368 xorg_testset_save_CFLAGS="$CFLAGS"
6369
6370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6375 then :
6376 printf %s "(cached) " >&6
6377 else case e in #(
6378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 int i;
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"
6383 then :
6384 xorg_cv_cc_flag_unknown_warning_option=yes
6385 else case e in #(
6386 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6387 esac
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6390 esac
6391 fi
6392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6393 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6395 CFLAGS="$xorg_testset_save_CFLAGS"
6396 fi
6397
6398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 fi
6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"
6414 then :
6415 xorg_cv_cc_flag_unused_command_line_argument=yes
6416 else case e in #(
6417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6418 esac
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6421 esac
6422 fi
6423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6424 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6426 CFLAGS="$xorg_testset_save_CFLAGS"
6427 fi
6428
6429 found="no"
6430
6431 if test $found = "no" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435
6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438 fi
6439
6440 CFLAGS="$CFLAGS -Wbad-function-cast"
6441
6442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6443 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6444 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6445 if eval test \${$cacheid+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else case e in #(
6449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 int i;
6452 int
6453 main (void)
6454 {
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_link "$LINENO"
6461 then :
6462 eval $cacheid=yes
6463 else case e in #(
6464 e) eval $cacheid=no ;;
6465 esac
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6468 conftest$ac_exeext conftest.$ac_ext ;;
6469 esac
6470 fi
6471
6472
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474
6475 eval supported=\$$cacheid
6476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477 printf '%s\n' "$supported" >&6; }
6478 if test "$supported" = "yes" ; then
6479 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6480 found="yes"
6481 fi
6482 fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498 xorg_testset_save_CFLAGS="$CFLAGS"
6499
6500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6505 then :
6506 printf %s "(cached) " >&6
6507 else case e in #(
6508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"
6513 then :
6514 xorg_cv_cc_flag_unknown_warning_option=yes
6515 else case e in #(
6516 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6517 esac
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6520 esac
6521 fi
6522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6526 fi
6527
6528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531 fi
6532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else case e in #(
6539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"
6544 then :
6545 xorg_cv_cc_flag_unused_command_line_argument=yes
6546 else case e in #(
6547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6548 esac
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6551 esac
6552 fi
6553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6557 fi
6558
6559 found="no"
6560
6561 if test $found = "no" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565
6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568 fi
6569
6570 CFLAGS="$CFLAGS -Wold-style-definition"
6571
6572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6573 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6574 cacheid=xorg_cv_cc_flag__Wold_style_definition
6575 if eval test \${$cacheid+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else case e in #(
6579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 int
6583 main (void)
6584 {
6585
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_link "$LINENO"
6591 then :
6592 eval $cacheid=yes
6593 else case e in #(
6594 e) eval $cacheid=no ;;
6595 esac
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6598 conftest$ac_exeext conftest.$ac_ext ;;
6599 esac
6600 fi
6601
6602
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604
6605 eval supported=\$$cacheid
6606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607 printf '%s\n' "$supported" >&6; }
6608 if test "$supported" = "yes" ; then
6609 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6610 found="yes"
6611 fi
6612 fi
6613
6614 if test $found = "no" ; then
6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617 fi
6618
6619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621 fi
6622
6623 CFLAGS="$CFLAGS -fd"
6624
6625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6626 printf %s "checking if $CC supports -fd... " >&6; }
6627 cacheid=xorg_cv_cc_flag__fd
6628 if eval test \${$cacheid+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else case e in #(
6632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634 int i;
6635 int
6636 main (void)
6637 {
6638
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"
6644 then :
6645 eval $cacheid=yes
6646 else case e in #(
6647 e) eval $cacheid=no ;;
6648 esac
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6651 conftest$ac_exeext conftest.$ac_ext ;;
6652 esac
6653 fi
6654
6655
6656 CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658 eval supported=\$$cacheid
6659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660 printf '%s\n' "$supported" >&6; }
6661 if test "$supported" = "yes" ; then
6662 BASE_CFLAGS="$BASE_CFLAGS -fd"
6663 found="yes"
6664 fi
6665 fi
6666
6667
6668
6669
6670
6671 # This chunk adds additional warnings that could catch undesired effects.
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 xorg_testset_save_CFLAGS="$CFLAGS"
6686
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6692 then :
6693 printf %s "(cached) " >&6
6694 else case e in #(
6695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int i;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"
6700 then :
6701 xorg_cv_cc_flag_unknown_warning_option=yes
6702 else case e in #(
6703 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6704 esac
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6707 esac
6708 fi
6709 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713 fi
6714
6715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 fi
6719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else case e in #(
6726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"
6731 then :
6732 xorg_cv_cc_flag_unused_command_line_argument=yes
6733 else case e in #(
6734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6735 esac
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6738 esac
6739 fi
6740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6741 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6743 CFLAGS="$xorg_testset_save_CFLAGS"
6744 fi
6745
6746 found="no"
6747
6748 if test $found = "no" ; then
6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 fi
6752
6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6755 fi
6756
6757 CFLAGS="$CFLAGS -Wunused"
6758
6759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6760 printf %s "checking if $CC supports -Wunused... " >&6; }
6761 cacheid=xorg_cv_cc_flag__Wunused
6762 if eval test \${$cacheid+y}
6763 then :
6764 printf %s "(cached) " >&6
6765 else case e in #(
6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int i;
6769 int
6770 main (void)
6771 {
6772
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"
6778 then :
6779 eval $cacheid=yes
6780 else case e in #(
6781 e) eval $cacheid=no ;;
6782 esac
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6785 conftest$ac_exeext conftest.$ac_ext ;;
6786 esac
6787 fi
6788
6789
6790 CFLAGS="$xorg_testset_save_CFLAGS"
6791
6792 eval supported=\$$cacheid
6793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794 printf '%s\n' "$supported" >&6; }
6795 if test "$supported" = "yes" ; then
6796 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6797 found="yes"
6798 fi
6799 fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 xorg_testset_save_CFLAGS="$CFLAGS"
6816
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else case e in #(
6825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 int i;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"
6830 then :
6831 xorg_cv_cc_flag_unknown_warning_option=yes
6832 else case e in #(
6833 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6834 esac
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6837 esac
6838 fi
6839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 fi
6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"
6861 then :
6862 xorg_cv_cc_flag_unused_command_line_argument=yes
6863 else case e in #(
6864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6865 esac
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6868 esac
6869 fi
6870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6871 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6873 CFLAGS="$xorg_testset_save_CFLAGS"
6874 fi
6875
6876 found="no"
6877
6878 if test $found = "no" ; then
6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881 fi
6882
6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6885 fi
6886
6887 CFLAGS="$CFLAGS -Wuninitialized"
6888
6889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6890 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6891 cacheid=xorg_cv_cc_flag__Wuninitialized
6892 if eval test \${$cacheid+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else case e in #(
6896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 int
6900 main (void)
6901 {
6902
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"
6908 then :
6909 eval $cacheid=yes
6910 else case e in #(
6911 e) eval $cacheid=no ;;
6912 esac
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6915 conftest$ac_exeext conftest.$ac_ext ;;
6916 esac
6917 fi
6918
6919
6920 CFLAGS="$xorg_testset_save_CFLAGS"
6921
6922 eval supported=\$$cacheid
6923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6924 printf '%s\n' "$supported" >&6; }
6925 if test "$supported" = "yes" ; then
6926 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6927 found="yes"
6928 fi
6929 fi
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 xorg_testset_save_CFLAGS="$CFLAGS"
6946
6947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6952 then :
6953 printf %s "(cached) " >&6
6954 else case e in #(
6955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"
6960 then :
6961 xorg_cv_cc_flag_unknown_warning_option=yes
6962 else case e in #(
6963 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6964 esac
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6967 esac
6968 fi
6969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6970 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973 fi
6974
6975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6978 fi
6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else case e in #(
6986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 int i;
6989 _ACEOF
6990 if ac_fn_c_try_compile "$LINENO"
6991 then :
6992 xorg_cv_cc_flag_unused_command_line_argument=yes
6993 else case e in #(
6994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6995 esac
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6998 esac
6999 fi
7000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7001 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7003 CFLAGS="$xorg_testset_save_CFLAGS"
7004 fi
7005
7006 found="no"
7007
7008 if test $found = "no" ; then
7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 fi
7012
7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015 fi
7016
7017 CFLAGS="$CFLAGS -Wshadow"
7018
7019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7020 printf %s "checking if $CC supports -Wshadow... " >&6; }
7021 cacheid=xorg_cv_cc_flag__Wshadow
7022 if eval test \${$cacheid+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else case e in #(
7026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 int i;
7029 int
7030 main (void)
7031 {
7032
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"
7038 then :
7039 eval $cacheid=yes
7040 else case e in #(
7041 e) eval $cacheid=no ;;
7042 esac
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7045 conftest$ac_exeext conftest.$ac_ext ;;
7046 esac
7047 fi
7048
7049
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051
7052 eval supported=\$$cacheid
7053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054 printf '%s\n' "$supported" >&6; }
7055 if test "$supported" = "yes" ; then
7056 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7057 found="yes"
7058 fi
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else case e in #(
7085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"
7090 then :
7091 xorg_cv_cc_flag_unknown_warning_option=yes
7092 else case e in #(
7093 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7094 esac
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7097 esac
7098 fi
7099 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7100 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7102 CFLAGS="$xorg_testset_save_CFLAGS"
7103 fi
7104
7105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108 fi
7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7111 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7112 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7113 then :
7114 printf %s "(cached) " >&6
7115 else case e in #(
7116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 int i;
7119 _ACEOF
7120 if ac_fn_c_try_compile "$LINENO"
7121 then :
7122 xorg_cv_cc_flag_unused_command_line_argument=yes
7123 else case e in #(
7124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7125 esac
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7128 esac
7129 fi
7130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145 fi
7146
7147 CFLAGS="$CFLAGS -Wmissing-noreturn"
7148
7149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7150 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7151 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7152 if eval test \${$cacheid+y}
7153 then :
7154 printf %s "(cached) " >&6
7155 else case e in #(
7156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int i;
7159 int
7160 main (void)
7161 {
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"
7168 then :
7169 eval $cacheid=yes
7170 else case e in #(
7171 e) eval $cacheid=no ;;
7172 esac
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7175 conftest$ac_exeext conftest.$ac_ext ;;
7176 esac
7177 fi
7178
7179
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182 eval supported=\$$cacheid
7183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184 printf '%s\n' "$supported" >&6; }
7185 if test "$supported" = "yes" ; then
7186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7187 found="yes"
7188 fi
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else case e in #(
7215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"
7220 then :
7221 xorg_cv_cc_flag_unknown_warning_option=yes
7222 else case e in #(
7223 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7224 esac
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7227 esac
7228 fi
7229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7230 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7233 fi
7234
7235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7243 then :
7244 printf %s "(cached) " >&6
7245 else case e in #(
7246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 int i;
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"
7251 then :
7252 xorg_cv_cc_flag_unused_command_line_argument=yes
7253 else case e in #(
7254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7255 esac
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7258 esac
7259 fi
7260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264 fi
7265
7266 found="no"
7267
7268 if test $found = "no" ; then
7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272
7273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275 fi
7276
7277 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7278
7279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7280 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7281 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7282 if eval test \${$cacheid+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else case e in #(
7286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 int
7290 main (void)
7291 {
7292
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_link "$LINENO"
7298 then :
7299 eval $cacheid=yes
7300 else case e in #(
7301 e) eval $cacheid=no ;;
7302 esac
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7305 conftest$ac_exeext conftest.$ac_ext ;;
7306 esac
7307 fi
7308
7309
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312 eval supported=\$$cacheid
7313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314 printf '%s\n' "$supported" >&6; }
7315 if test "$supported" = "yes" ; then
7316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7317 found="yes"
7318 fi
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else case e in #(
7345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"
7350 then :
7351 xorg_cv_cc_flag_unknown_warning_option=yes
7352 else case e in #(
7353 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7354 esac
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7357 esac
7358 fi
7359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7373 then :
7374 printf %s "(cached) " >&6
7375 else case e in #(
7376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 int i;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"
7381 then :
7382 xorg_cv_cc_flag_unused_command_line_argument=yes
7383 else case e in #(
7384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7385 esac
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7388 esac
7389 fi
7390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7391 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7393 CFLAGS="$xorg_testset_save_CFLAGS"
7394 fi
7395
7396 found="no"
7397
7398 if test $found = "no" ; then
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 fi
7402
7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7405 fi
7406
7407 CFLAGS="$CFLAGS -Wredundant-decls"
7408
7409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7410 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7411 cacheid=xorg_cv_cc_flag__Wredundant_decls
7412 if eval test \${$cacheid+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else case e in #(
7416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 int i;
7419 int
7420 main (void)
7421 {
7422
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 if ac_fn_c_try_link "$LINENO"
7428 then :
7429 eval $cacheid=yes
7430 else case e in #(
7431 e) eval $cacheid=no ;;
7432 esac
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7435 conftest$ac_exeext conftest.$ac_ext ;;
7436 esac
7437 fi
7438
7439
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441
7442 eval supported=\$$cacheid
7443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7444 printf '%s\n' "$supported" >&6; }
7445 if test "$supported" = "yes" ; then
7446 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7447 found="yes"
7448 fi
7449 fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 xorg_testset_save_CFLAGS="$CFLAGS"
7466
7467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7472 then :
7473 printf %s "(cached) " >&6
7474 else case e in #(
7475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"
7480 then :
7481 xorg_cv_cc_flag_unknown_warning_option=yes
7482 else case e in #(
7483 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7484 esac
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7487 esac
7488 fi
7489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493 fi
7494
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498 fi
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else case e in #(
7506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 int i;
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"
7511 then :
7512 xorg_cv_cc_flag_unused_command_line_argument=yes
7513 else case e in #(
7514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7515 esac
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7518 esac
7519 fi
7520 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7521 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7523 CFLAGS="$xorg_testset_save_CFLAGS"
7524 fi
7525
7526 found="no"
7527
7528 if test $found = "no" ; then
7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531 fi
7532
7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7535 fi
7536
7537 CFLAGS="$CFLAGS -Wlogical-op"
7538
7539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7540 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7541 cacheid=xorg_cv_cc_flag__Wlogical_op
7542 if eval test \${$cacheid+y}
7543 then :
7544 printf %s "(cached) " >&6
7545 else case e in #(
7546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 int i;
7549 int
7550 main (void)
7551 {
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"
7558 then :
7559 eval $cacheid=yes
7560 else case e in #(
7561 e) eval $cacheid=no ;;
7562 esac
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565 conftest$ac_exeext conftest.$ac_ext ;;
7566 esac
7567 fi
7568
7569
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572 eval supported=\$$cacheid
7573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574 printf '%s\n' "$supported" >&6; }
7575 if test "$supported" = "yes" ; then
7576 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7577 found="yes"
7578 fi
7579 fi
7580
7581
7582
7583 # These are currently disabled because they are noisy. They will be enabled
7584 # in the future once the codebase is sufficiently modernized to silence
7585 # them. For now, I don't want them to drown out the other warnings.
7586 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7587 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7588 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7589
7590 # Turn some warnings into errors, so we don't accidentally get successful builds
7591 # when there are problems that should be fixed.
7592
7593 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 xorg_testset_save_CFLAGS="$CFLAGS"
7608
7609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"
7622 then :
7623 xorg_cv_cc_flag_unknown_warning_option=yes
7624 else case e in #(
7625 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7626 esac
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7629 esac
7630 fi
7631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635 fi
7636
7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 fi
7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7645 then :
7646 printf %s "(cached) " >&6
7647 else case e in #(
7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 int i;
7651 _ACEOF
7652 if ac_fn_c_try_compile "$LINENO"
7653 then :
7654 xorg_cv_cc_flag_unused_command_line_argument=yes
7655 else case e in #(
7656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7657 esac
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7660 esac
7661 fi
7662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7663 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666 fi
7667
7668 found="no"
7669
7670 if test $found = "no" ; then
7671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7673 fi
7674
7675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677 fi
7678
7679 CFLAGS="$CFLAGS -Werror=implicit"
7680
7681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7682 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7683 cacheid=xorg_cv_cc_flag__Werror_implicit
7684 if eval test \${$cacheid+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 int
7692 main (void)
7693 {
7694
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"
7700 then :
7701 eval $cacheid=yes
7702 else case e in #(
7703 e) eval $cacheid=no ;;
7704 esac
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707 conftest$ac_exeext conftest.$ac_ext ;;
7708 esac
7709 fi
7710
7711
7712 CFLAGS="$xorg_testset_save_CFLAGS"
7713
7714 eval supported=\$$cacheid
7715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7716 printf '%s\n' "$supported" >&6; }
7717 if test "$supported" = "yes" ; then
7718 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7719 found="yes"
7720 fi
7721 fi
7722
7723 if test $found = "no" ; then
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 fi
7727
7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 fi
7731
7732 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7733
7734 { 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
7735 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7736 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7737 if eval test \${$cacheid+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else case e in #(
7741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 int
7745 main (void)
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"
7753 then :
7754 eval $cacheid=yes
7755 else case e in #(
7756 e) eval $cacheid=no ;;
7757 esac
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7760 conftest$ac_exeext conftest.$ac_ext ;;
7761 esac
7762 fi
7763
7764
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7766
7767 eval supported=\$$cacheid
7768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769 printf '%s\n' "$supported" >&6; }
7770 if test "$supported" = "yes" ; then
7771 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7772 found="yes"
7773 fi
7774 fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 xorg_testset_save_CFLAGS="$CFLAGS"
7791
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7797 then :
7798 printf %s "(cached) " >&6
7799 else case e in #(
7800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"
7805 then :
7806 xorg_cv_cc_flag_unknown_warning_option=yes
7807 else case e in #(
7808 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7809 esac
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7812 esac
7813 fi
7814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7815 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 fi
7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else case e in #(
7831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"
7836 then :
7837 xorg_cv_cc_flag_unused_command_line_argument=yes
7838 else case e in #(
7839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7840 esac
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7843 esac
7844 fi
7845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 found="no"
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -Werror=nonnull"
7863
7864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7865 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7866 cacheid=xorg_cv_cc_flag__Werror_nonnull
7867 if eval test \${$cacheid+y}
7868 then :
7869 printf %s "(cached) " >&6
7870 else case e in #(
7871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 int
7875 main (void)
7876 {
7877
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"
7883 then :
7884 eval $cacheid=yes
7885 else case e in #(
7886 e) eval $cacheid=no ;;
7887 esac
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7890 conftest$ac_exeext conftest.$ac_ext ;;
7891 esac
7892 fi
7893
7894
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896
7897 eval supported=\$$cacheid
7898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899 printf '%s\n' "$supported" >&6; }
7900 if test "$supported" = "yes" ; then
7901 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7902 found="yes"
7903 fi
7904 fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7927 then :
7928 printf %s "(cached) " >&6
7929 else case e in #(
7930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 int i;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"
7935 then :
7936 xorg_cv_cc_flag_unknown_warning_option=yes
7937 else case e in #(
7938 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7939 esac
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7942 esac
7943 fi
7944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7945 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 fi
7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7958 then :
7959 printf %s "(cached) " >&6
7960 else case e in #(
7961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int i;
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"
7966 then :
7967 xorg_cv_cc_flag_unused_command_line_argument=yes
7968 else case e in #(
7969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7970 esac
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7973 esac
7974 fi
7975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7976 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7978 CFLAGS="$xorg_testset_save_CFLAGS"
7979 fi
7980
7981 found="no"
7982
7983 if test $found = "no" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 fi
7991
7992 CFLAGS="$CFLAGS -Werror=init-self"
7993
7994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7995 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7996 cacheid=xorg_cv_cc_flag__Werror_init_self
7997 if eval test \${$cacheid+y}
7998 then :
7999 printf %s "(cached) " >&6
8000 else case e in #(
8001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 int i;
8004 int
8005 main (void)
8006 {
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"
8013 then :
8014 eval $cacheid=yes
8015 else case e in #(
8016 e) eval $cacheid=no ;;
8017 esac
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8020 conftest$ac_exeext conftest.$ac_ext ;;
8021 esac
8022 fi
8023
8024
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027 eval supported=\$$cacheid
8028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029 printf '%s\n' "$supported" >&6; }
8030 if test "$supported" = "yes" ; then
8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8032 found="yes"
8033 fi
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else case e in #(
8060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 int i;
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"
8065 then :
8066 xorg_cv_cc_flag_unknown_warning_option=yes
8067 else case e in #(
8068 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8069 esac
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8072 esac
8073 fi
8074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077 CFLAGS="$xorg_testset_save_CFLAGS"
8078 fi
8079
8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else case e in #(
8091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"
8096 then :
8097 xorg_cv_cc_flag_unused_command_line_argument=yes
8098 else case e in #(
8099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8100 esac
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8103 esac
8104 fi
8105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8106 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8108 CFLAGS="$xorg_testset_save_CFLAGS"
8109 fi
8110
8111 found="no"
8112
8113 if test $found = "no" ; then
8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 fi
8117
8118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120 fi
8121
8122 CFLAGS="$CFLAGS -Werror=main"
8123
8124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8125 printf %s "checking if $CC supports -Werror=main... " >&6; }
8126 cacheid=xorg_cv_cc_flag__Werror_main
8127 if eval test \${$cacheid+y}
8128 then :
8129 printf %s "(cached) " >&6
8130 else case e in #(
8131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 int i;
8134 int
8135 main (void)
8136 {
8137
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"
8143 then :
8144 eval $cacheid=yes
8145 else case e in #(
8146 e) eval $cacheid=no ;;
8147 esac
8148 fi
8149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8150 conftest$ac_exeext conftest.$ac_ext ;;
8151 esac
8152 fi
8153
8154
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157 eval supported=\$$cacheid
8158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159 printf '%s\n' "$supported" >&6; }
8160 if test "$supported" = "yes" ; then
8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8162 found="yes"
8163 fi
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180 xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 int i;
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"
8195 then :
8196 xorg_cv_cc_flag_unknown_warning_option=yes
8197 else case e in #(
8198 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8199 esac
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8202 esac
8203 fi
8204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8207 CFLAGS="$xorg_testset_save_CFLAGS"
8208 fi
8209
8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 fi
8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else case e in #(
8221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"
8226 then :
8227 xorg_cv_cc_flag_unused_command_line_argument=yes
8228 else case e in #(
8229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8230 esac
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8233 esac
8234 fi
8235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239 fi
8240
8241 found="no"
8242
8243 if test $found = "no" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247
8248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8250 fi
8251
8252 CFLAGS="$CFLAGS -Werror=missing-braces"
8253
8254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8255 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8256 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8257 if eval test \${$cacheid+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 int
8265 main (void)
8266 {
8267
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"
8273 then :
8274 eval $cacheid=yes
8275 else case e in #(
8276 e) eval $cacheid=no ;;
8277 esac
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8280 conftest$ac_exeext conftest.$ac_ext ;;
8281 esac
8282 fi
8283
8284
8285 CFLAGS="$xorg_testset_save_CFLAGS"
8286
8287 eval supported=\$$cacheid
8288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8289 printf '%s\n' "$supported" >&6; }
8290 if test "$supported" = "yes" ; then
8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8292 found="yes"
8293 fi
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 xorg_testset_save_CFLAGS="$CFLAGS"
8311
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8316 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else case e in #(
8320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"
8325 then :
8326 xorg_cv_cc_flag_unknown_warning_option=yes
8327 else case e in #(
8328 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8329 esac
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8332 esac
8333 fi
8334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8337 CFLAGS="$xorg_testset_save_CFLAGS"
8338 fi
8339
8340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else case e in #(
8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 int i;
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"
8356 then :
8357 xorg_cv_cc_flag_unused_command_line_argument=yes
8358 else case e in #(
8359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8360 esac
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8363 esac
8364 fi
8365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8366 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369 fi
8370
8371 found="no"
8372
8373 if test $found = "no" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377
8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8380 fi
8381
8382 CFLAGS="$CFLAGS -Werror=sequence-point"
8383
8384 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8385 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8386 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8387 if eval test \${$cacheid+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else case e in #(
8391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 int
8395 main (void)
8396 {
8397
8398 ;
8399 return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_link "$LINENO"
8403 then :
8404 eval $cacheid=yes
8405 else case e in #(
8406 e) eval $cacheid=no ;;
8407 esac
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8410 conftest$ac_exeext conftest.$ac_ext ;;
8411 esac
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 printf '%s\n' "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else case e in #(
8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else case e in #(
8458 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8459 esac
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8462 esac
8463 fi
8464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468 fi
8469
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473 fi
8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else case e in #(
8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 int i;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"
8486 then :
8487 xorg_cv_cc_flag_unused_command_line_argument=yes
8488 else case e in #(
8489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8490 esac
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8493 esac
8494 fi
8495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8496 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 found="no"
8502
8503 if test $found = "no" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 fi
8511
8512 CFLAGS="$CFLAGS -Werror=return-type"
8513
8514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8515 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8516 cacheid=xorg_cv_cc_flag__Werror_return_type
8517 if eval test \${$cacheid+y}
8518 then :
8519 printf %s "(cached) " >&6
8520 else case e in #(
8521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 int i;
8524 int
8525 main (void)
8526 {
8527
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"
8533 then :
8534 eval $cacheid=yes
8535 else case e in #(
8536 e) eval $cacheid=no ;;
8537 esac
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8540 conftest$ac_exeext conftest.$ac_ext ;;
8541 esac
8542 fi
8543
8544
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546
8547 eval supported=\$$cacheid
8548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549 printf '%s\n' "$supported" >&6; }
8550 if test "$supported" = "yes" ; then
8551 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8552 found="yes"
8553 fi
8554 fi
8555
8556 if test $found = "no" ; then
8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 fi
8560
8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563 fi
8564
8565 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8566
8567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8568 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8569 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8570 if eval test \${$cacheid+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 int
8578 main (void)
8579 {
8580
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"
8586 then :
8587 eval $cacheid=yes
8588 else case e in #(
8589 e) eval $cacheid=no ;;
8590 esac
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8593 conftest$ac_exeext conftest.$ac_ext ;;
8594 esac
8595 fi
8596
8597
8598 CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600 eval supported=\$$cacheid
8601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602 printf '%s\n' "$supported" >&6; }
8603 if test "$supported" = "yes" ; then
8604 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8605 found="yes"
8606 fi
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else case e in #(
8633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 int i;
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"
8638 then :
8639 xorg_cv_cc_flag_unknown_warning_option=yes
8640 else case e in #(
8641 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8642 esac
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8645 esac
8646 fi
8647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8648 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656 fi
8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8661 then :
8662 printf %s "(cached) " >&6
8663 else case e in #(
8664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 _ACEOF
8668 if ac_fn_c_try_compile "$LINENO"
8669 then :
8670 xorg_cv_cc_flag_unused_command_line_argument=yes
8671 else case e in #(
8672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8673 esac
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8676 esac
8677 fi
8678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8679 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8681 CFLAGS="$xorg_testset_save_CFLAGS"
8682 fi
8683
8684 found="no"
8685
8686 if test $found = "no" ; then
8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689 fi
8690
8691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693 fi
8694
8695 CFLAGS="$CFLAGS -Werror=trigraphs"
8696
8697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8698 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8699 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8700 if eval test \${$cacheid+y}
8701 then :
8702 printf %s "(cached) " >&6
8703 else case e in #(
8704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 int i;
8707 int
8708 main (void)
8709 {
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"
8716 then :
8717 eval $cacheid=yes
8718 else case e in #(
8719 e) eval $cacheid=no ;;
8720 esac
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8723 conftest$ac_exeext conftest.$ac_ext ;;
8724 esac
8725 fi
8726
8727
8728 CFLAGS="$xorg_testset_save_CFLAGS"
8729
8730 eval supported=\$$cacheid
8731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732 printf '%s\n' "$supported" >&6; }
8733 if test "$supported" = "yes" ; then
8734 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8735 found="yes"
8736 fi
8737 fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753 xorg_testset_save_CFLAGS="$CFLAGS"
8754
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8760 then :
8761 printf %s "(cached) " >&6
8762 else case e in #(
8763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 int i;
8766 _ACEOF
8767 if ac_fn_c_try_compile "$LINENO"
8768 then :
8769 xorg_cv_cc_flag_unknown_warning_option=yes
8770 else case e in #(
8771 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8772 esac
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8775 esac
8776 fi
8777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8778 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8780 CFLAGS="$xorg_testset_save_CFLAGS"
8781 fi
8782
8783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 fi
8787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"
8799 then :
8800 xorg_cv_cc_flag_unused_command_line_argument=yes
8801 else case e in #(
8802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8803 esac
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8806 esac
8807 fi
8808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8809 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812 fi
8813
8814 found="no"
8815
8816 if test $found = "no" ; then
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 fi
8820
8821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8823 fi
8824
8825 CFLAGS="$CFLAGS -Werror=array-bounds"
8826
8827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8828 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8829 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8830 if eval test \${$cacheid+y}
8831 then :
8832 printf %s "(cached) " >&6
8833 else case e in #(
8834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 int
8838 main (void)
8839 {
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"
8846 then :
8847 eval $cacheid=yes
8848 else case e in #(
8849 e) eval $cacheid=no ;;
8850 esac
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8853 conftest$ac_exeext conftest.$ac_ext ;;
8854 esac
8855 fi
8856
8857
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859
8860 eval supported=\$$cacheid
8861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8862 printf '%s\n' "$supported" >&6; }
8863 if test "$supported" = "yes" ; then
8864 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8865 found="yes"
8866 fi
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 xorg_testset_save_CFLAGS="$CFLAGS"
8884
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else case e in #(
8893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"
8898 then :
8899 xorg_cv_cc_flag_unknown_warning_option=yes
8900 else case e in #(
8901 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8902 esac
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8905 esac
8906 fi
8907 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8908 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8910 CFLAGS="$xorg_testset_save_CFLAGS"
8911 fi
8912
8913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916 fi
8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8921 then :
8922 printf %s "(cached) " >&6
8923 else case e in #(
8924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 int i;
8927 _ACEOF
8928 if ac_fn_c_try_compile "$LINENO"
8929 then :
8930 xorg_cv_cc_flag_unused_command_line_argument=yes
8931 else case e in #(
8932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8933 esac
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8936 esac
8937 fi
8938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8939 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8942 fi
8943
8944 found="no"
8945
8946 if test $found = "no" ; then
8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 fi
8950
8951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953 fi
8954
8955 CFLAGS="$CFLAGS -Werror=write-strings"
8956
8957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8958 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8959 cacheid=xorg_cv_cc_flag__Werror_write_strings
8960 if eval test \${$cacheid+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else case e in #(
8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 int
8968 main (void)
8969 {
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_c_try_link "$LINENO"
8976 then :
8977 eval $cacheid=yes
8978 else case e in #(
8979 e) eval $cacheid=no ;;
8980 esac
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8983 conftest$ac_exeext conftest.$ac_ext ;;
8984 esac
8985 fi
8986
8987
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989
8990 eval supported=\$$cacheid
8991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992 printf '%s\n' "$supported" >&6; }
8993 if test "$supported" = "yes" ; then
8994 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8995 found="yes"
8996 fi
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013 xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else case e in #(
9023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 int i;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"
9028 then :
9029 xorg_cv_cc_flag_unknown_warning_option=yes
9030 else case e in #(
9031 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9032 esac
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9035 esac
9036 fi
9037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9038 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9040 CFLAGS="$xorg_testset_save_CFLAGS"
9041 fi
9042
9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 fi
9047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else case e in #(
9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"
9059 then :
9060 xorg_cv_cc_flag_unused_command_line_argument=yes
9061 else case e in #(
9062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9063 esac
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9066 esac
9067 fi
9068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9069 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9071 CFLAGS="$xorg_testset_save_CFLAGS"
9072 fi
9073
9074 found="no"
9075
9076 if test $found = "no" ; then
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 fi
9080
9081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9083 fi
9084
9085 CFLAGS="$CFLAGS -Werror=address"
9086
9087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9088 printf %s "checking if $CC supports -Werror=address... " >&6; }
9089 cacheid=xorg_cv_cc_flag__Werror_address
9090 if eval test \${$cacheid+y}
9091 then :
9092 printf %s "(cached) " >&6
9093 else case e in #(
9094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 int
9098 main (void)
9099 {
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"
9106 then :
9107 eval $cacheid=yes
9108 else case e in #(
9109 e) eval $cacheid=no ;;
9110 esac
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9113 conftest$ac_exeext conftest.$ac_ext ;;
9114 esac
9115 fi
9116
9117
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119
9120 eval supported=\$$cacheid
9121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122 printf '%s\n' "$supported" >&6; }
9123 if test "$supported" = "yes" ; then
9124 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9125 found="yes"
9126 fi
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 xorg_testset_save_CFLAGS="$CFLAGS"
9144
9145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9150 then :
9151 printf %s "(cached) " >&6
9152 else case e in #(
9153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 int i;
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"
9158 then :
9159 xorg_cv_cc_flag_unknown_warning_option=yes
9160 else case e in #(
9161 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9162 esac
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9165 esac
9166 fi
9167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171 fi
9172
9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else case e in #(
9184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"
9189 then :
9190 xorg_cv_cc_flag_unused_command_line_argument=yes
9191 else case e in #(
9192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9193 esac
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9196 esac
9197 fi
9198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202 fi
9203
9204 found="no"
9205
9206 if test $found = "no" ; then
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 fi
9214
9215 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9216
9217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9218 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9219 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9220 if eval test \${$cacheid+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else case e in #(
9224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main (void)
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"
9236 then :
9237 eval $cacheid=yes
9238 else case e in #(
9239 e) eval $cacheid=no ;;
9240 esac
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9243 conftest$ac_exeext conftest.$ac_ext ;;
9244 esac
9245 fi
9246
9247
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250 eval supported=\$$cacheid
9251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252 printf '%s\n' "$supported" >&6; }
9253 if test "$supported" = "yes" ; then
9254 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9255 found="yes"
9256 fi
9257 fi
9258
9259 if test $found = "no" ; then
9260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 fi
9263
9264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266 fi
9267
9268 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9269
9270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9271 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9272 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9273 if eval test \${$cacheid+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else case e in #(
9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main (void)
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"
9289 then :
9290 eval $cacheid=yes
9291 else case e in #(
9292 e) eval $cacheid=no ;;
9293 esac
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9296 conftest$ac_exeext conftest.$ac_ext ;;
9297 esac
9298 fi
9299
9300
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302
9303 eval supported=\$$cacheid
9304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305 printf '%s\n' "$supported" >&6; }
9306 if test "$supported" = "yes" ; then
9307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9308 found="yes"
9309 fi
9310 fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326 xorg_testset_save_CFLAGS="$CFLAGS"
9327
9328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9333 then :
9334 printf %s "(cached) " >&6
9335 else case e in #(
9336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int i;
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"
9341 then :
9342 xorg_cv_cc_flag_unknown_warning_option=yes
9343 else case e in #(
9344 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9345 esac
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9348 esac
9349 fi
9350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354 fi
9355
9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359 fi
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else case e in #(
9367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"
9372 then :
9373 xorg_cv_cc_flag_unused_command_line_argument=yes
9374 else case e in #(
9375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9376 esac
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9379 esac
9380 fi
9381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9382 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9384 CFLAGS="$xorg_testset_save_CFLAGS"
9385 fi
9386
9387 found="no"
9388
9389 if test $found = "no" ; then
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 fi
9393
9394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396 fi
9397
9398 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9399
9400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9401 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9402 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9403 if eval test \${$cacheid+y}
9404 then :
9405 printf %s "(cached) " >&6
9406 else case e in #(
9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int i;
9410 int
9411 main (void)
9412 {
9413
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_c_try_link "$LINENO"
9419 then :
9420 eval $cacheid=yes
9421 else case e in #(
9422 e) eval $cacheid=no ;;
9423 esac
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9426 conftest$ac_exeext conftest.$ac_ext ;;
9427 esac
9428 fi
9429
9430
9431 CFLAGS="$xorg_testset_save_CFLAGS"
9432
9433 eval supported=\$$cacheid
9434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9435 printf '%s\n' "$supported" >&6; }
9436 if test "$supported" = "yes" ; then
9437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9438 found="yes"
9439 fi
9440 fi
9441
9442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9443 else
9444 { 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
9445 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;}
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466 then :
9467 printf %s "(cached) " >&6
9468 else case e in #(
9469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"
9474 then :
9475 xorg_cv_cc_flag_unknown_warning_option=yes
9476 else case e in #(
9477 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9478 esac
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9481 esac
9482 fi
9483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9484 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9486 CFLAGS="$xorg_testset_save_CFLAGS"
9487 fi
9488
9489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492 fi
9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 int i;
9503 _ACEOF
9504 if ac_fn_c_try_compile "$LINENO"
9505 then :
9506 xorg_cv_cc_flag_unused_command_line_argument=yes
9507 else case e in #(
9508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9509 esac
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9512 esac
9513 fi
9514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9515 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9517 CFLAGS="$xorg_testset_save_CFLAGS"
9518 fi
9519
9520 found="no"
9521
9522 if test $found = "no" ; then
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9529 fi
9530
9531 CFLAGS="$CFLAGS -Wimplicit"
9532
9533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9534 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9535 cacheid=xorg_cv_cc_flag__Wimplicit
9536 if eval test \${$cacheid+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else case e in #(
9540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 int
9544 main (void)
9545 {
9546
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"
9552 then :
9553 eval $cacheid=yes
9554 else case e in #(
9555 e) eval $cacheid=no ;;
9556 esac
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext ;;
9560 esac
9561 fi
9562
9563
9564 CFLAGS="$xorg_testset_save_CFLAGS"
9565
9566 eval supported=\$$cacheid
9567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9568 printf '%s\n' "$supported" >&6; }
9569 if test "$supported" = "yes" ; then
9570 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9571 found="yes"
9572 fi
9573 fi
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 xorg_testset_save_CFLAGS="$CFLAGS"
9590
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9595 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9596 then :
9597 printf %s "(cached) " >&6
9598 else case e in #(
9599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int i;
9602 _ACEOF
9603 if ac_fn_c_try_compile "$LINENO"
9604 then :
9605 xorg_cv_cc_flag_unknown_warning_option=yes
9606 else case e in #(
9607 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9608 esac
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9611 esac
9612 fi
9613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9614 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617 fi
9618
9619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 fi
9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9627 then :
9628 printf %s "(cached) " >&6
9629 else case e in #(
9630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 int i;
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"
9635 then :
9636 xorg_cv_cc_flag_unused_command_line_argument=yes
9637 else case e in #(
9638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9639 esac
9640 fi
9641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9642 esac
9643 fi
9644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 found="no"
9651
9652 if test $found = "no" ; then
9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655 fi
9656
9657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9659 fi
9660
9661 CFLAGS="$CFLAGS -Wnonnull"
9662
9663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9664 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9665 cacheid=xorg_cv_cc_flag__Wnonnull
9666 if eval test \${$cacheid+y}
9667 then :
9668 printf %s "(cached) " >&6
9669 else case e in #(
9670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int i;
9673 int
9674 main (void)
9675 {
9676
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 if ac_fn_c_try_link "$LINENO"
9682 then :
9683 eval $cacheid=yes
9684 else case e in #(
9685 e) eval $cacheid=no ;;
9686 esac
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9689 conftest$ac_exeext conftest.$ac_ext ;;
9690 esac
9691 fi
9692
9693
9694 CFLAGS="$xorg_testset_save_CFLAGS"
9695
9696 eval supported=\$$cacheid
9697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9698 printf '%s\n' "$supported" >&6; }
9699 if test "$supported" = "yes" ; then
9700 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9701 found="yes"
9702 fi
9703 fi
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719 xorg_testset_save_CFLAGS="$CFLAGS"
9720
9721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9725 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9726 then :
9727 printf %s "(cached) " >&6
9728 else case e in #(
9729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 _ACEOF
9733 if ac_fn_c_try_compile "$LINENO"
9734 then :
9735 xorg_cv_cc_flag_unknown_warning_option=yes
9736 else case e in #(
9737 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9738 esac
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9741 esac
9742 fi
9743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747 fi
9748
9749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752 fi
9753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else case e in #(
9760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 int i;
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"
9765 then :
9766 xorg_cv_cc_flag_unused_command_line_argument=yes
9767 else case e in #(
9768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9769 esac
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9772 esac
9773 fi
9774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9775 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9777 CFLAGS="$xorg_testset_save_CFLAGS"
9778 fi
9779
9780 found="no"
9781
9782 if test $found = "no" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786
9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789 fi
9790
9791 CFLAGS="$CFLAGS -Winit-self"
9792
9793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9794 printf %s "checking if $CC supports -Winit-self... " >&6; }
9795 cacheid=xorg_cv_cc_flag__Winit_self
9796 if eval test \${$cacheid+y}
9797 then :
9798 printf %s "(cached) " >&6
9799 else case e in #(
9800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 int i;
9803 int
9804 main (void)
9805 {
9806
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"
9812 then :
9813 eval $cacheid=yes
9814 else case e in #(
9815 e) eval $cacheid=no ;;
9816 esac
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext ;;
9820 esac
9821 fi
9822
9823
9824 CFLAGS="$xorg_testset_save_CFLAGS"
9825
9826 eval supported=\$$cacheid
9827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9828 printf '%s\n' "$supported" >&6; }
9829 if test "$supported" = "yes" ; then
9830 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9831 found="yes"
9832 fi
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849 xorg_testset_save_CFLAGS="$CFLAGS"
9850
9851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9855 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9856 then :
9857 printf %s "(cached) " >&6
9858 else case e in #(
9859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"
9864 then :
9865 xorg_cv_cc_flag_unknown_warning_option=yes
9866 else case e in #(
9867 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9868 esac
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9871 esac
9872 fi
9873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9874 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9876 CFLAGS="$xorg_testset_save_CFLAGS"
9877 fi
9878
9879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882 fi
9883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9887 then :
9888 printf %s "(cached) " >&6
9889 else case e in #(
9890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 int i;
9893 _ACEOF
9894 if ac_fn_c_try_compile "$LINENO"
9895 then :
9896 xorg_cv_cc_flag_unused_command_line_argument=yes
9897 else case e in #(
9898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9899 esac
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9902 esac
9903 fi
9904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9905 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 found="no"
9911
9912 if test $found = "no" ; then
9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915 fi
9916
9917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919 fi
9920
9921 CFLAGS="$CFLAGS -Wmain"
9922
9923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9924 printf %s "checking if $CC supports -Wmain... " >&6; }
9925 cacheid=xorg_cv_cc_flag__Wmain
9926 if eval test \${$cacheid+y}
9927 then :
9928 printf %s "(cached) " >&6
9929 else case e in #(
9930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 int i;
9933 int
9934 main (void)
9935 {
9936
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"
9942 then :
9943 eval $cacheid=yes
9944 else case e in #(
9945 e) eval $cacheid=no ;;
9946 esac
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9949 conftest$ac_exeext conftest.$ac_ext ;;
9950 esac
9951 fi
9952
9953
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9955
9956 eval supported=\$$cacheid
9957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9958 printf '%s\n' "$supported" >&6; }
9959 if test "$supported" = "yes" ; then
9960 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9961 found="yes"
9962 fi
9963 fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979 xorg_testset_save_CFLAGS="$CFLAGS"
9980
9981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9986 then :
9987 printf %s "(cached) " >&6
9988 else case e in #(
9989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 int i;
9992 _ACEOF
9993 if ac_fn_c_try_compile "$LINENO"
9994 then :
9995 xorg_cv_cc_flag_unknown_warning_option=yes
9996 else case e in #(
9997 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9998 esac
9999 fi
10000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10001 esac
10002 fi
10003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10004 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10006 CFLAGS="$xorg_testset_save_CFLAGS"
10007 fi
10008
10009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012 fi
10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10017 then :
10018 printf %s "(cached) " >&6
10019 else case e in #(
10020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 int i;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"
10025 then :
10026 xorg_cv_cc_flag_unused_command_line_argument=yes
10027 else case e in #(
10028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10029 esac
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10032 esac
10033 fi
10034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10035 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10037 CFLAGS="$xorg_testset_save_CFLAGS"
10038 fi
10039
10040 found="no"
10041
10042 if test $found = "no" ; then
10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045 fi
10046
10047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10049 fi
10050
10051 CFLAGS="$CFLAGS -Wmissing-braces"
10052
10053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10054 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10055 cacheid=xorg_cv_cc_flag__Wmissing_braces
10056 if eval test \${$cacheid+y}
10057 then :
10058 printf %s "(cached) " >&6
10059 else case e in #(
10060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 int i;
10063 int
10064 main (void)
10065 {
10066
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"
10072 then :
10073 eval $cacheid=yes
10074 else case e in #(
10075 e) eval $cacheid=no ;;
10076 esac
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10079 conftest$ac_exeext conftest.$ac_ext ;;
10080 esac
10081 fi
10082
10083
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085
10086 eval supported=\$$cacheid
10087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10088 printf '%s\n' "$supported" >&6; }
10089 if test "$supported" = "yes" ; then
10090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10091 found="yes"
10092 fi
10093 fi
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109 xorg_testset_save_CFLAGS="$CFLAGS"
10110
10111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10116 then :
10117 printf %s "(cached) " >&6
10118 else case e in #(
10119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 int i;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"
10124 then :
10125 xorg_cv_cc_flag_unknown_warning_option=yes
10126 else case e in #(
10127 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10128 esac
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10131 esac
10132 fi
10133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137 fi
10138
10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 fi
10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else case e in #(
10150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int i;
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"
10155 then :
10156 xorg_cv_cc_flag_unused_command_line_argument=yes
10157 else case e in #(
10158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10159 esac
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10162 esac
10163 fi
10164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168 fi
10169
10170 found="no"
10171
10172 if test $found = "no" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176
10177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179 fi
10180
10181 CFLAGS="$CFLAGS -Wsequence-point"
10182
10183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10184 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10185 cacheid=xorg_cv_cc_flag__Wsequence_point
10186 if eval test \${$cacheid+y}
10187 then :
10188 printf %s "(cached) " >&6
10189 else case e in #(
10190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 int i;
10193 int
10194 main (void)
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"
10202 then :
10203 eval $cacheid=yes
10204 else case e in #(
10205 e) eval $cacheid=no ;;
10206 esac
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10209 conftest$ac_exeext conftest.$ac_ext ;;
10210 esac
10211 fi
10212
10213
10214 CFLAGS="$xorg_testset_save_CFLAGS"
10215
10216 eval supported=\$$cacheid
10217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10218 printf '%s\n' "$supported" >&6; }
10219 if test "$supported" = "yes" ; then
10220 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10221 found="yes"
10222 fi
10223 fi
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239 xorg_testset_save_CFLAGS="$CFLAGS"
10240
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10246 then :
10247 printf %s "(cached) " >&6
10248 else case e in #(
10249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 int i;
10252 _ACEOF
10253 if ac_fn_c_try_compile "$LINENO"
10254 then :
10255 xorg_cv_cc_flag_unknown_warning_option=yes
10256 else case e in #(
10257 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10258 esac
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10261 esac
10262 fi
10263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else case e in #(
10280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"
10285 then :
10286 xorg_cv_cc_flag_unused_command_line_argument=yes
10287 else case e in #(
10288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10289 esac
10290 fi
10291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10292 esac
10293 fi
10294 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10295 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10297 CFLAGS="$xorg_testset_save_CFLAGS"
10298 fi
10299
10300 found="no"
10301
10302 if test $found = "no" ; then
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 fi
10306
10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309 fi
10310
10311 CFLAGS="$CFLAGS -Wreturn-type"
10312
10313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10314 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10315 cacheid=xorg_cv_cc_flag__Wreturn_type
10316 if eval test \${$cacheid+y}
10317 then :
10318 printf %s "(cached) " >&6
10319 else case e in #(
10320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 int i;
10323 int
10324 main (void)
10325 {
10326
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"
10332 then :
10333 eval $cacheid=yes
10334 else case e in #(
10335 e) eval $cacheid=no ;;
10336 esac
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10339 conftest$ac_exeext conftest.$ac_ext ;;
10340 esac
10341 fi
10342
10343
10344 CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346 eval supported=\$$cacheid
10347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348 printf '%s\n' "$supported" >&6; }
10349 if test "$supported" = "yes" ; then
10350 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10351 found="yes"
10352 fi
10353 fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 xorg_testset_save_CFLAGS="$CFLAGS"
10370
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10376 then :
10377 printf %s "(cached) " >&6
10378 else case e in #(
10379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 int i;
10382 _ACEOF
10383 if ac_fn_c_try_compile "$LINENO"
10384 then :
10385 xorg_cv_cc_flag_unknown_warning_option=yes
10386 else case e in #(
10387 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10388 esac
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10391 esac
10392 fi
10393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10394 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397 fi
10398
10399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 fi
10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else case e in #(
10410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412 int i;
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"
10415 then :
10416 xorg_cv_cc_flag_unused_command_line_argument=yes
10417 else case e in #(
10418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10419 esac
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10422 esac
10423 fi
10424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428 fi
10429
10430 found="no"
10431
10432 if test $found = "no" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436
10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 fi
10440
10441 CFLAGS="$CFLAGS -Wtrigraphs"
10442
10443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10444 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10445 cacheid=xorg_cv_cc_flag__Wtrigraphs
10446 if eval test \${$cacheid+y}
10447 then :
10448 printf %s "(cached) " >&6
10449 else case e in #(
10450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 int i;
10453 int
10454 main (void)
10455 {
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"
10462 then :
10463 eval $cacheid=yes
10464 else case e in #(
10465 e) eval $cacheid=no ;;
10466 esac
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10469 conftest$ac_exeext conftest.$ac_ext ;;
10470 esac
10471 fi
10472
10473
10474 CFLAGS="$xorg_testset_save_CFLAGS"
10475
10476 eval supported=\$$cacheid
10477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10478 printf '%s\n' "$supported" >&6; }
10479 if test "$supported" = "yes" ; then
10480 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10481 found="yes"
10482 fi
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 xorg_testset_save_CFLAGS="$CFLAGS"
10500
10501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else case e in #(
10509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 int i;
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"
10514 then :
10515 xorg_cv_cc_flag_unknown_warning_option=yes
10516 else case e in #(
10517 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10518 esac
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10521 esac
10522 fi
10523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10524 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10526 CFLAGS="$xorg_testset_save_CFLAGS"
10527 fi
10528
10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532 fi
10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 int i;
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"
10545 then :
10546 xorg_cv_cc_flag_unused_command_line_argument=yes
10547 else case e in #(
10548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10549 esac
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10552 esac
10553 fi
10554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10555 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10557 CFLAGS="$xorg_testset_save_CFLAGS"
10558 fi
10559
10560 found="no"
10561
10562 if test $found = "no" ; then
10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565 fi
10566
10567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10569 fi
10570
10571 CFLAGS="$CFLAGS -Warray-bounds"
10572
10573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10574 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10575 cacheid=xorg_cv_cc_flag__Warray_bounds
10576 if eval test \${$cacheid+y}
10577 then :
10578 printf %s "(cached) " >&6
10579 else case e in #(
10580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 int i;
10583 int
10584 main (void)
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"
10592 then :
10593 eval $cacheid=yes
10594 else case e in #(
10595 e) eval $cacheid=no ;;
10596 esac
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10599 conftest$ac_exeext conftest.$ac_ext ;;
10600 esac
10601 fi
10602
10603
10604 CFLAGS="$xorg_testset_save_CFLAGS"
10605
10606 eval supported=\$$cacheid
10607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10608 printf '%s\n' "$supported" >&6; }
10609 if test "$supported" = "yes" ; then
10610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10611 found="yes"
10612 fi
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 xorg_testset_save_CFLAGS="$CFLAGS"
10630
10631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10636 then :
10637 printf %s "(cached) " >&6
10638 else case e in #(
10639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 int i;
10642 _ACEOF
10643 if ac_fn_c_try_compile "$LINENO"
10644 then :
10645 xorg_cv_cc_flag_unknown_warning_option=yes
10646 else case e in #(
10647 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10648 esac
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10651 esac
10652 fi
10653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10654 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10656 CFLAGS="$xorg_testset_save_CFLAGS"
10657 fi
10658
10659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10662 fi
10663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else case e in #(
10670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 int i;
10673 _ACEOF
10674 if ac_fn_c_try_compile "$LINENO"
10675 then :
10676 xorg_cv_cc_flag_unused_command_line_argument=yes
10677 else case e in #(
10678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10679 esac
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10682 esac
10683 fi
10684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10685 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10687 CFLAGS="$xorg_testset_save_CFLAGS"
10688 fi
10689
10690 found="no"
10691
10692 if test $found = "no" ; then
10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10695 fi
10696
10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10699 fi
10700
10701 CFLAGS="$CFLAGS -Wwrite-strings"
10702
10703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10704 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10705 cacheid=xorg_cv_cc_flag__Wwrite_strings
10706 if eval test \${$cacheid+y}
10707 then :
10708 printf %s "(cached) " >&6
10709 else case e in #(
10710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 int i;
10713 int
10714 main (void)
10715 {
10716
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"
10722 then :
10723 eval $cacheid=yes
10724 else case e in #(
10725 e) eval $cacheid=no ;;
10726 esac
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10729 conftest$ac_exeext conftest.$ac_ext ;;
10730 esac
10731 fi
10732
10733
10734 CFLAGS="$xorg_testset_save_CFLAGS"
10735
10736 eval supported=\$$cacheid
10737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10738 printf '%s\n' "$supported" >&6; }
10739 if test "$supported" = "yes" ; then
10740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10741 found="yes"
10742 fi
10743 fi
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759 xorg_testset_save_CFLAGS="$CFLAGS"
10760
10761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10765 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10766 then :
10767 printf %s "(cached) " >&6
10768 else case e in #(
10769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 int i;
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"
10774 then :
10775 xorg_cv_cc_flag_unknown_warning_option=yes
10776 else case e in #(
10777 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10778 esac
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10781 esac
10782 fi
10783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10784 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10786 CFLAGS="$xorg_testset_save_CFLAGS"
10787 fi
10788
10789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10792 fi
10793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10797 then :
10798 printf %s "(cached) " >&6
10799 else case e in #(
10800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10802 int i;
10803 _ACEOF
10804 if ac_fn_c_try_compile "$LINENO"
10805 then :
10806 xorg_cv_cc_flag_unused_command_line_argument=yes
10807 else case e in #(
10808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10809 esac
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10812 esac
10813 fi
10814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10815 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10817 CFLAGS="$xorg_testset_save_CFLAGS"
10818 fi
10819
10820 found="no"
10821
10822 if test $found = "no" ; then
10823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825 fi
10826
10827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10829 fi
10830
10831 CFLAGS="$CFLAGS -Waddress"
10832
10833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10834 printf %s "checking if $CC supports -Waddress... " >&6; }
10835 cacheid=xorg_cv_cc_flag__Waddress
10836 if eval test \${$cacheid+y}
10837 then :
10838 printf %s "(cached) " >&6
10839 else case e in #(
10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10842 int i;
10843 int
10844 main (void)
10845 {
10846
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"
10852 then :
10853 eval $cacheid=yes
10854 else case e in #(
10855 e) eval $cacheid=no ;;
10856 esac
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10859 conftest$ac_exeext conftest.$ac_ext ;;
10860 esac
10861 fi
10862
10863
10864 CFLAGS="$xorg_testset_save_CFLAGS"
10865
10866 eval supported=\$$cacheid
10867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10868 printf '%s\n' "$supported" >&6; }
10869 if test "$supported" = "yes" ; then
10870 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10871 found="yes"
10872 fi
10873 fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889 xorg_testset_save_CFLAGS="$CFLAGS"
10890
10891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10896 then :
10897 printf %s "(cached) " >&6
10898 else case e in #(
10899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 int i;
10902 _ACEOF
10903 if ac_fn_c_try_compile "$LINENO"
10904 then :
10905 xorg_cv_cc_flag_unknown_warning_option=yes
10906 else case e in #(
10907 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10908 esac
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10911 esac
10912 fi
10913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10914 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10916 CFLAGS="$xorg_testset_save_CFLAGS"
10917 fi
10918
10919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10922 fi
10923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10927 then :
10928 printf %s "(cached) " >&6
10929 else case e in #(
10930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10932 int i;
10933 _ACEOF
10934 if ac_fn_c_try_compile "$LINENO"
10935 then :
10936 xorg_cv_cc_flag_unused_command_line_argument=yes
10937 else case e in #(
10938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10939 esac
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10942 esac
10943 fi
10944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10945 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10947 CFLAGS="$xorg_testset_save_CFLAGS"
10948 fi
10949
10950 found="no"
10951
10952 if test $found = "no" ; then
10953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955 fi
10956
10957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10959 fi
10960
10961 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10962
10963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10964 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10965 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10966 if eval test \${$cacheid+y}
10967 then :
10968 printf %s "(cached) " >&6
10969 else case e in #(
10970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 int i;
10973 int
10974 main (void)
10975 {
10976
10977 ;
10978 return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"
10982 then :
10983 eval $cacheid=yes
10984 else case e in #(
10985 e) eval $cacheid=no ;;
10986 esac
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10989 conftest$ac_exeext conftest.$ac_ext ;;
10990 esac
10991 fi
10992
10993
10994 CFLAGS="$xorg_testset_save_CFLAGS"
10995
10996 eval supported=\$$cacheid
10997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10998 printf '%s\n' "$supported" >&6; }
10999 if test "$supported" = "yes" ; then
11000 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11001 found="yes"
11002 fi
11003 fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 xorg_testset_save_CFLAGS="$CFLAGS"
11020
11021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11026 then :
11027 printf %s "(cached) " >&6
11028 else case e in #(
11029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031 int i;
11032 _ACEOF
11033 if ac_fn_c_try_compile "$LINENO"
11034 then :
11035 xorg_cv_cc_flag_unknown_warning_option=yes
11036 else case e in #(
11037 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11038 esac
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11041 esac
11042 fi
11043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11044 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11046 CFLAGS="$xorg_testset_save_CFLAGS"
11047 fi
11048
11049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11052 fi
11053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11057 then :
11058 printf %s "(cached) " >&6
11059 else case e in #(
11060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062 int i;
11063 _ACEOF
11064 if ac_fn_c_try_compile "$LINENO"
11065 then :
11066 xorg_cv_cc_flag_unused_command_line_argument=yes
11067 else case e in #(
11068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11069 esac
11070 fi
11071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11072 esac
11073 fi
11074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11075 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11077 CFLAGS="$xorg_testset_save_CFLAGS"
11078 fi
11079
11080 found="no"
11081
11082 if test $found = "no" ; then
11083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11085 fi
11086
11087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11089 fi
11090
11091 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11092
11093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11094 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11095 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11096 if eval test \${$cacheid+y}
11097 then :
11098 printf %s "(cached) " >&6
11099 else case e in #(
11100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 int i;
11103 int
11104 main (void)
11105 {
11106
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"
11112 then :
11113 eval $cacheid=yes
11114 else case e in #(
11115 e) eval $cacheid=no ;;
11116 esac
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11119 conftest$ac_exeext conftest.$ac_ext ;;
11120 esac
11121 fi
11122
11123
11124 CFLAGS="$xorg_testset_save_CFLAGS"
11125
11126 eval supported=\$$cacheid
11127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11128 printf '%s\n' "$supported" >&6; }
11129 if test "$supported" = "yes" ; then
11130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11131 found="yes"
11132 fi
11133 fi
11134
11135
11136 fi
11137
11138
11139
11140
11141
11142
11143
11144 CWARNFLAGS="$BASE_CFLAGS"
11145 if test "x$GCC" = xyes ; then
11146 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11147 fi
11148
11149
11150
11151
11152
11153
11154
11155
11156 # Check whether --enable-strict-compilation was given.
11157 if test ${enable_strict_compilation+y}
11158 then :
11159 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11160 else case e in #(
11161 e) STRICT_COMPILE=no ;;
11162 esac
11163 fi
11164
11165
11166
11167
11168
11169
11170 STRICT_CFLAGS=""
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184 xorg_testset_save_CFLAGS="$CFLAGS"
11185
11186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11191 then :
11192 printf %s "(cached) " >&6
11193 else case e in #(
11194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196 int i;
11197 _ACEOF
11198 if ac_fn_c_try_compile "$LINENO"
11199 then :
11200 xorg_cv_cc_flag_unknown_warning_option=yes
11201 else case e in #(
11202 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11203 esac
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11206 esac
11207 fi
11208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11209 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11211 CFLAGS="$xorg_testset_save_CFLAGS"
11212 fi
11213
11214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11217 fi
11218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11222 then :
11223 printf %s "(cached) " >&6
11224 else case e in #(
11225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 int i;
11228 _ACEOF
11229 if ac_fn_c_try_compile "$LINENO"
11230 then :
11231 xorg_cv_cc_flag_unused_command_line_argument=yes
11232 else case e in #(
11233 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11234 esac
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11237 esac
11238 fi
11239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11240 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11242 CFLAGS="$xorg_testset_save_CFLAGS"
11243 fi
11244
11245 found="no"
11246
11247 if test $found = "no" ; then
11248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11250 fi
11251
11252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11254 fi
11255
11256 CFLAGS="$CFLAGS -pedantic"
11257
11258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11259 printf %s "checking if $CC supports -pedantic... " >&6; }
11260 cacheid=xorg_cv_cc_flag__pedantic
11261 if eval test \${$cacheid+y}
11262 then :
11263 printf %s "(cached) " >&6
11264 else case e in #(
11265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 int i;
11268 int
11269 main (void)
11270 {
11271
11272 ;
11273 return 0;
11274 }
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"
11277 then :
11278 eval $cacheid=yes
11279 else case e in #(
11280 e) eval $cacheid=no ;;
11281 esac
11282 fi
11283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11284 conftest$ac_exeext conftest.$ac_ext ;;
11285 esac
11286 fi
11287
11288
11289 CFLAGS="$xorg_testset_save_CFLAGS"
11290
11291 eval supported=\$$cacheid
11292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11293 printf '%s\n' "$supported" >&6; }
11294 if test "$supported" = "yes" ; then
11295 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11296 found="yes"
11297 fi
11298 fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314 xorg_testset_save_CFLAGS="$CFLAGS"
11315
11316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11321 then :
11322 printf %s "(cached) " >&6
11323 else case e in #(
11324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326 int i;
11327 _ACEOF
11328 if ac_fn_c_try_compile "$LINENO"
11329 then :
11330 xorg_cv_cc_flag_unknown_warning_option=yes
11331 else case e in #(
11332 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11333 esac
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11336 esac
11337 fi
11338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11339 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11341 CFLAGS="$xorg_testset_save_CFLAGS"
11342 fi
11343
11344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11347 fi
11348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11352 then :
11353 printf %s "(cached) " >&6
11354 else case e in #(
11355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 int i;
11358 _ACEOF
11359 if ac_fn_c_try_compile "$LINENO"
11360 then :
11361 xorg_cv_cc_flag_unused_command_line_argument=yes
11362 else case e in #(
11363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11364 esac
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11367 esac
11368 fi
11369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11370 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11372 CFLAGS="$xorg_testset_save_CFLAGS"
11373 fi
11374
11375 found="no"
11376
11377 if test $found = "no" ; then
11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11380 fi
11381
11382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11384 fi
11385
11386 CFLAGS="$CFLAGS -Werror"
11387
11388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11389 printf %s "checking if $CC supports -Werror... " >&6; }
11390 cacheid=xorg_cv_cc_flag__Werror
11391 if eval test \${$cacheid+y}
11392 then :
11393 printf %s "(cached) " >&6
11394 else case e in #(
11395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 int i;
11398 int
11399 main (void)
11400 {
11401
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"
11407 then :
11408 eval $cacheid=yes
11409 else case e in #(
11410 e) eval $cacheid=no ;;
11411 esac
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11414 conftest$ac_exeext conftest.$ac_ext ;;
11415 esac
11416 fi
11417
11418
11419 CFLAGS="$xorg_testset_save_CFLAGS"
11420
11421 eval supported=\$$cacheid
11422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11423 printf '%s\n' "$supported" >&6; }
11424 if test "$supported" = "yes" ; then
11425 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11426 found="yes"
11427 fi
11428 fi
11429
11430 if test $found = "no" ; then
11431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11433 fi
11434
11435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11437 fi
11438
11439 CFLAGS="$CFLAGS -errwarn"
11440
11441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11442 printf %s "checking if $CC supports -errwarn... " >&6; }
11443 cacheid=xorg_cv_cc_flag__errwarn
11444 if eval test \${$cacheid+y}
11445 then :
11446 printf %s "(cached) " >&6
11447 else case e in #(
11448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 int i;
11451 int
11452 main (void)
11453 {
11454
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"
11460 then :
11461 eval $cacheid=yes
11462 else case e in #(
11463 e) eval $cacheid=no ;;
11464 esac
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11467 conftest$ac_exeext conftest.$ac_ext ;;
11468 esac
11469 fi
11470
11471
11472 CFLAGS="$xorg_testset_save_CFLAGS"
11473
11474 eval supported=\$$cacheid
11475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11476 printf '%s\n' "$supported" >&6; }
11477 if test "$supported" = "yes" ; then
11478 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11479 found="yes"
11480 fi
11481 fi
11482
11483
11484
11485 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11486 # activate it with -Werror, so we add it here explicitly.
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 xorg_testset_save_CFLAGS="$CFLAGS"
11501
11502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11507 then :
11508 printf %s "(cached) " >&6
11509 else case e in #(
11510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 int i;
11513 _ACEOF
11514 if ac_fn_c_try_compile "$LINENO"
11515 then :
11516 xorg_cv_cc_flag_unknown_warning_option=yes
11517 else case e in #(
11518 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11519 esac
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11522 esac
11523 fi
11524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11525 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11527 CFLAGS="$xorg_testset_save_CFLAGS"
11528 fi
11529
11530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11533 fi
11534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11535 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11538 then :
11539 printf %s "(cached) " >&6
11540 else case e in #(
11541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 int i;
11544 _ACEOF
11545 if ac_fn_c_try_compile "$LINENO"
11546 then :
11547 xorg_cv_cc_flag_unused_command_line_argument=yes
11548 else case e in #(
11549 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11550 esac
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11553 esac
11554 fi
11555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11556 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11558 CFLAGS="$xorg_testset_save_CFLAGS"
11559 fi
11560
11561 found="no"
11562
11563 if test $found = "no" ; then
11564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11566 fi
11567
11568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11570 fi
11571
11572 CFLAGS="$CFLAGS -Werror=attributes"
11573
11574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11575 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11576 cacheid=xorg_cv_cc_flag__Werror_attributes
11577 if eval test \${$cacheid+y}
11578 then :
11579 printf %s "(cached) " >&6
11580 else case e in #(
11581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583 int i;
11584 int
11585 main (void)
11586 {
11587
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"
11593 then :
11594 eval $cacheid=yes
11595 else case e in #(
11596 e) eval $cacheid=no ;;
11597 esac
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11600 conftest$ac_exeext conftest.$ac_ext ;;
11601 esac
11602 fi
11603
11604
11605 CFLAGS="$xorg_testset_save_CFLAGS"
11606
11607 eval supported=\$$cacheid
11608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11609 printf '%s\n' "$supported" >&6; }
11610 if test "$supported" = "yes" ; then
11611 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11612 found="yes"
11613 fi
11614 fi
11615
11616
11617
11618 if test "x$STRICT_COMPILE" = "xyes"; then
11619 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11620 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11621 fi
11622
11623
11624
11625
11626
11627
11628
11629
11630 cat >>confdefs.h <<_ACEOF
11631 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11632 _ACEOF
11633
11634 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11635 if test "x$PVM" = "x"; then
11636 PVM="0"
11637 fi
11638
11639 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11640
11641 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11642 if test "x$PVP" = "x"; then
11643 PVP="0"
11644 fi
11645
11646 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11647
11648
11649
11650 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11651 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11652 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11653 touch \$(top_srcdir)/ChangeLog; \
11654 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11655
11656
11657
11658
11659 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11660 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11661 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11662 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11663 touch \$(top_srcdir)/INSTALL; \
11664 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11665
11666
11667
11668
11669
11670
11671 case $host_os in
11672 solaris*)
11673 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11674 # check for a man page file found in later versions that use
11675 # traditional section numbers instead
11676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11677 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11678 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11679 then :
11680 printf %s "(cached) " >&6
11681 else case e in #(
11682 e) test "$cross_compiling" = yes &&
11683 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11684 if test -r "/usr/share/man/man7/attributes.7"; then
11685 ac_cv_file__usr_share_man_man7_attributes_7=yes
11686 else
11687 ac_cv_file__usr_share_man_man7_attributes_7=no
11688 fi ;;
11689 esac
11690 fi
11691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11692 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11693 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11694 then :
11695 SYSV_MAN_SECTIONS=false
11696 else case e in #(
11697 e) SYSV_MAN_SECTIONS=true ;;
11698 esac
11699 fi
11700
11701 ;;
11702 *) SYSV_MAN_SECTIONS=false ;;
11703 esac
11704
11705 if test x$APP_MAN_SUFFIX = x ; then
11706 APP_MAN_SUFFIX=1
11707 fi
11708 if test x$APP_MAN_DIR = x ; then
11709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11710 fi
11711
11712 if test x$LIB_MAN_SUFFIX = x ; then
11713 LIB_MAN_SUFFIX=3
11714 fi
11715 if test x$LIB_MAN_DIR = x ; then
11716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11717 fi
11718
11719 if test x$FILE_MAN_SUFFIX = x ; then
11720 case $SYSV_MAN_SECTIONS in
11721 true) FILE_MAN_SUFFIX=4 ;;
11722 *) FILE_MAN_SUFFIX=5 ;;
11723 esac
11724 fi
11725 if test x$FILE_MAN_DIR = x ; then
11726 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11727 fi
11728
11729 if test x$MISC_MAN_SUFFIX = x ; then
11730 case $SYSV_MAN_SECTIONS in
11731 true) MISC_MAN_SUFFIX=5 ;;
11732 *) MISC_MAN_SUFFIX=7 ;;
11733 esac
11734 fi
11735 if test x$MISC_MAN_DIR = x ; then
11736 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11737 fi
11738
11739 if test x$DRIVER_MAN_SUFFIX = x ; then
11740 case $SYSV_MAN_SECTIONS in
11741 true) DRIVER_MAN_SUFFIX=7 ;;
11742 *) DRIVER_MAN_SUFFIX=4 ;;
11743 esac
11744 fi
11745 if test x$DRIVER_MAN_DIR = x ; then
11746 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11747 fi
11748
11749 if test x$ADMIN_MAN_SUFFIX = x ; then
11750 case $SYSV_MAN_SECTIONS in
11751 true) ADMIN_MAN_SUFFIX=1m ;;
11752 *) ADMIN_MAN_SUFFIX=8 ;;
11753 esac
11754 fi
11755 if test x$ADMIN_MAN_DIR = x ; then
11756 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11757 fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 XORG_MAN_PAGE="X Version 11"
11774
11775 MAN_SUBSTS="\
11776 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11777 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11778 -e 's|__xservername__|Xorg|g' \
11779 -e 's|__xconfigfile__|xorg.conf|g' \
11780 -e 's|__projectroot__|\$(prefix)|g' \
11781 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11782 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11783 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11784 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11785 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11786 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11787 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11788
11789
11790
11791
11792 AM_DEFAULT_VERBOSITY=0
11793
11794
11795
11796
11797
11798
11799 pkg_failed=no
11800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XFONTSEL" >&5
11801 printf %s "checking for XFONTSEL... " >&6; }
11802
11803 if test -n "$XFONTSEL_CFLAGS"; then
11804 pkg_cv_XFONTSEL_CFLAGS="$XFONTSEL_CFLAGS"
11805 elif test -n "$PKG_CONFIG"; then
11806 if test -n "$PKG_CONFIG" && \
11807 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11808 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11809 ac_status=$?
11810 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11811 test $ac_status = 0; }; then
11812 pkg_cv_XFONTSEL_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11813 test "x$?" != "x0" && pkg_failed=yes
11814 else
11815 pkg_failed=yes
11816 fi
11817 else
11818 pkg_failed=untried
11819 fi
11820 if test -n "$XFONTSEL_LIBS"; then
11821 pkg_cv_XFONTSEL_LIBS="$XFONTSEL_LIBS"
11822 elif test -n "$PKG_CONFIG"; then
11823 if test -n "$PKG_CONFIG" && \
11824 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11825 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11826 ac_status=$?
11827 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11828 test $ac_status = 0; }; then
11829 pkg_cv_XFONTSEL_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11830 test "x$?" != "x0" && pkg_failed=yes
11831 else
11832 pkg_failed=yes
11833 fi
11834 else
11835 pkg_failed=untried
11836 fi
11837
11838
11839
11840 if test $pkg_failed = yes; then
11841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 printf '%s\n' "no" >&6; }
11843
11844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11845 _pkg_short_errors_supported=yes
11846 else
11847 _pkg_short_errors_supported=no
11848 fi
11849 if test $_pkg_short_errors_supported = yes; then
11850 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11851 else
11852 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11853 fi
11854 # Put the nasty error message in config.log where it belongs
11855 echo "$XFONTSEL_PKG_ERRORS" >&5
11856
11857 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
11858
11859 $XFONTSEL_PKG_ERRORS
11860
11861 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11862 installed software in a non-standard prefix.
11863
11864 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11865 and XFONTSEL_LIBS to avoid the need to call pkg-config.
11866 See the pkg-config man page for more details." "$LINENO" 5
11867 elif test $pkg_failed = untried; then
11868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 printf '%s\n' "no" >&6; }
11870 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11871 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
11872 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11873 is in your PATH or set the PKG_CONFIG environment variable to the full
11874 path to pkg-config.
11875
11876 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11877 and XFONTSEL_LIBS to avoid the need to call pkg-config.
11878 See the pkg-config man page for more details.
11879
11880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11881 See 'config.log' for more details" "$LINENO" 5; }
11882 else
11883 XFONTSEL_CFLAGS=$pkg_cv_XFONTSEL_CFLAGS
11884 XFONTSEL_LIBS=$pkg_cv_XFONTSEL_LIBS
11885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886 printf '%s\n' "yes" >&6; }
11887
11888 fi
11889
11890
11891 pkg_failed=no
11892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11893 printf %s "checking for APPDEFS... " >&6; }
11894
11895 if test -n "$APPDEFS_CFLAGS"; then
11896 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11897 elif test -n "$PKG_CONFIG"; then
11898 if test -n "$PKG_CONFIG" && \
11899 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11900 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11901 ac_status=$?
11902 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; }; then
11904 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11905 test "x$?" != "x0" && pkg_failed=yes
11906 else
11907 pkg_failed=yes
11908 fi
11909 else
11910 pkg_failed=untried
11911 fi
11912 if test -n "$APPDEFS_LIBS"; then
11913 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11914 elif test -n "$PKG_CONFIG"; then
11915 if test -n "$PKG_CONFIG" && \
11916 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11917 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11918 ac_status=$?
11919 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920 test $ac_status = 0; }; then
11921 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11922 test "x$?" != "x0" && pkg_failed=yes
11923 else
11924 pkg_failed=yes
11925 fi
11926 else
11927 pkg_failed=untried
11928 fi
11929
11930
11931
11932 if test $pkg_failed = yes; then
11933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 printf '%s\n' "no" >&6; }
11935
11936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11937 _pkg_short_errors_supported=yes
11938 else
11939 _pkg_short_errors_supported=no
11940 fi
11941 if test $_pkg_short_errors_supported = yes; then
11942 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11943 else
11944 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11945 fi
11946 # Put the nasty error message in config.log where it belongs
11947 echo "$APPDEFS_PKG_ERRORS" >&5
11948
11949 as_fn_error $? "Package requirements (xt) were not met:
11950
11951 $APPDEFS_PKG_ERRORS
11952
11953 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11954 installed software in a non-standard prefix.
11955
11956 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11957 and APPDEFS_LIBS to avoid the need to call pkg-config.
11958 See the pkg-config man page for more details." "$LINENO" 5
11959 elif test $pkg_failed = untried; then
11960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 printf '%s\n' "no" >&6; }
11962 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11963 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
11964 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11965 is in your PATH or set the PKG_CONFIG environment variable to the full
11966 path to pkg-config.
11967
11968 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11969 and APPDEFS_LIBS to avoid the need to call pkg-config.
11970 See the pkg-config man page for more details.
11971
11972 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11973 See 'config.log' for more details" "$LINENO" 5; }
11974 else
11975 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11976 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 printf '%s\n' "yes" >&6; }
11979
11980 fi
11981 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11982
11983 # Check whether --with-appdefaultdir was given.
11984 if test ${with_appdefaultdir+y}
11985 then :
11986 withval=$with_appdefaultdir; appdefaultdir="$withval"
11987 else case e in #(
11988 e) appdefaultdir="${xt_appdefaultdir}" ;;
11989 esac
11990 fi
11991
11992
11993
11994 # Internationalization & localization support
11995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11996 printf %s "checking for library containing gettext... " >&6; }
11997 if test ${ac_cv_search_gettext+y}
11998 then :
11999 printf %s "(cached) " >&6
12000 else case e in #(
12001 e) ac_func_search_save_LIBS=$LIBS
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply.
12008 The 'extern "C"' is for builds by C++ compilers;
12009 although this is not generally supported in C code supporting it here
12010 has little cost and some practical benefit (sr 110532). */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char gettext (void);
12015 int
12016 main (void)
12017 {
12018 return gettext ();
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 for ac_lib in '' intl
12024 do
12025 if test -z "$ac_lib"; then
12026 ac_res="none required"
12027 else
12028 ac_res=-l$ac_lib
12029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12030 fi
12031 if ac_fn_c_try_link "$LINENO"
12032 then :
12033 ac_cv_search_gettext=$ac_res
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12036 conftest$ac_exeext
12037 if test ${ac_cv_search_gettext+y}
12038 then :
12039 break
12040 fi
12041 done
12042 if test ${ac_cv_search_gettext+y}
12043 then :
12044
12045 else case e in #(
12046 e) ac_cv_search_gettext=no ;;
12047 esac
12048 fi
12049 rm conftest.$ac_ext
12050 LIBS=$ac_func_search_save_LIBS ;;
12051 esac
12052 fi
12053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
12054 printf '%s\n' "$ac_cv_search_gettext" >&6; }
12055 ac_res=$ac_cv_search_gettext
12056 if test "$ac_res" != no
12057 then :
12058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12059 USE_GETTEXT="yes"
12060 else case e in #(
12061 e) USE_GETTEXT="no" ;;
12062 esac
12063 fi
12064
12065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
12066 printf %s "checking where to install localized messages... " >&6; }
12067
12068 # Check whether --with-localedir was given.
12069 if test ${with_localedir+y}
12070 then :
12071 withval=$with_localedir; LOCALEDIR=${withval}
12072 else case e in #(
12073 e) LOCALEDIR=${datadir}/locale ;;
12074 esac
12075 fi
12076
12077 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
12078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
12079 printf '%s\n' "nowhere" >&6; }
12080 USE_GETTEXT="no"
12081 else
12082
12083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
12084 printf '%s\n' "$LOCALEDIR" >&6; }
12085 fi
12086
12087 if test "x$USE_GETTEXT" = "xyes" ; then
12088
12089 printf '%s\n' "#define USE_GETTEXT 1" >>confdefs.h
12090
12091 fi
12092 if test "x$USE_GETTEXT" = "xyes"; then
12093 USE_GETTEXT_TRUE=
12094 USE_GETTEXT_FALSE='#'
12095 else
12096 USE_GETTEXT_TRUE='#'
12097 USE_GETTEXT_FALSE=
12098 fi
12099
12100
12101
12102 ac_config_files="$ac_config_files Makefile man/Makefile"
12103
12104 cat >confcache <<\_ACEOF
12105 # This file is a shell script that caches the results of configure
12106 # tests run on this system so they can be shared between configure
12107 # scripts and configure runs, see configure's option --config-cache.
12108 # It is not useful on other systems. If it contains results you don't
12109 # want to keep, you may remove or edit it.
12110 #
12111 # config.status only pays attention to the cache file if you give it
12112 # the --recheck option to rerun configure.
12113 #
12114 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12115 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12116 # following values.
12117
12118 _ACEOF
12119
12120 ac_cache_dump |
12121 sed '
12122 /^ac_cv_env_/b end
12123 t clear
12124 :clear
12125 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12126 t end
12127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12128 :end' >>confcache
12129 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12130 if test -w "$cache_file"; then
12131 if test "x$cache_file" != "x/dev/null"; then
12132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12133 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12134 if test ! -f "$cache_file" || test -h "$cache_file"; then
12135 cat confcache >"$cache_file"
12136 else
12137 case $cache_file in #(
12138 */* | ?:*)
12139 mv -f confcache "$cache_file"$$ &&
12140 mv -f "$cache_file"$$ "$cache_file" ;; #(
12141 *)
12142 mv -f confcache "$cache_file" ;;
12143 esac
12144 fi
12145 fi
12146 else
12147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12148 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12149 fi
12150 fi
12151 rm -f confcache
12152
12153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12154 # Let make expand exec_prefix.
12155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12156
12157 DEFS=-DHAVE_CONFIG_H
12158
12159 ac_libobjs=
12160 ac_ltlibobjs=
12161 U=
12162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12163 # 1. Remove the extension, and $U if already installed.
12164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12165 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12167 # will be set to the directory where LIBOBJS objects are built.
12168 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12169 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12170 done
12171 LIBOBJS=$ac_libobjs
12172
12173 LTLIBOBJS=$ac_ltlibobjs
12174
12175
12176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12177 printf %s "checking that generated files are newer than configure... " >&6; }
12178 if test -n "$am_sleep_pid"; then
12179 # Hide warnings about reused PIDs.
12180 wait $am_sleep_pid 2>/dev/null
12181 fi
12182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12183 printf '%s\n' "done" >&6; }
12184 case $enable_silent_rules in # (((
12185 yes) AM_DEFAULT_VERBOSITY=0;;
12186 no) AM_DEFAULT_VERBOSITY=1;;
12187 esac
12188 if test $am_cv_make_support_nested_variables = yes; then
12189 AM_V='$(V)'
12190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12191 else
12192 AM_V=$AM_DEFAULT_VERBOSITY
12193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12194 fi
12195
12196 if test -n "$EXEEXT"; then
12197 am__EXEEXT_TRUE=
12198 am__EXEEXT_FALSE='#'
12199 else
12200 am__EXEEXT_TRUE='#'
12201 am__EXEEXT_FALSE=
12202 fi
12203
12204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12205 as_fn_error $? "conditional \"AMDEP\" was never defined.
12206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12207 fi
12208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12211 fi
12212 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
12213 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
12214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12215 fi
12216
12217 : "${CONFIG_STATUS=./config.status}"
12218 case $CONFIG_STATUS in #(
12219 -*) :
12220 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12221 */*) :
12222 ;; #(
12223 *) :
12224 CONFIG_STATUS=./$CONFIG_STATUS ;;
12225 esac
12226
12227 ac_write_fail=0
12228 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12230 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12231 as_write_fail=0
12232 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12233 #! $SHELL
12234 # Generated by $as_me.
12235 # Run this file to recreate the current configuration.
12236 # Compiler output produced by configure, useful for debugging
12237 # configure, is in config.log if it exists.
12238
12239 debug=false
12240 ac_cs_recheck=false
12241 ac_cs_silent=false
12242
12243 SHELL=\${CONFIG_SHELL-$SHELL}
12244 export SHELL
12245 _ASEOF
12246 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12247 ## -------------------- ##
12248 ## M4sh Initialization. ##
12249 ## -------------------- ##
12250
12251 # Be more Bourne compatible
12252 DUALCASE=1; export DUALCASE # for MKS sh
12253 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12254 then :
12255 emulate sh
12256 NULLCMD=:
12257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12258 # contradicts POSIX and common usage. Disable this.
12259 alias -g '${1+"$@"}'='"$@"'
12260 setopt NO_GLOB_SUBST
12261 else case e in #(
12262 e) case `(set -o) 2>/dev/null` in #(
12263 *posix*) :
12264 set -o posix ;; #(
12265 *) :
12266 ;;
12267 esac ;;
12268 esac
12269 fi
12270
12271
12272
12273 # Reset variables that may have inherited troublesome values from
12274 # the environment.
12275
12276 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12277 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12278 # side effect of setting IFS to empty, thus disabling word splitting.)
12279 # Quoting is to prevent editors from complaining about space-tab.
12280 as_nl='
12281 '
12282 export as_nl
12283 IFS=" "" $as_nl"
12284
12285 PS1='$ '
12286 PS2='> '
12287 PS4='+ '
12288
12289 # Ensure predictable behavior from utilities with locale-dependent output.
12290 LC_ALL=C
12291 export LC_ALL
12292 LANGUAGE=C
12293 export LANGUAGE
12294
12295 # We cannot yet rely on "unset" to work, but we need these variables
12296 # to be unset--not just set to an empty or harmless value--now, to
12297 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12298 # also avoids known problems related to "unset" and subshell syntax
12299 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12300 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12301 do eval test \${$as_var+y} \
12302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12303 done
12304
12305 # Ensure that fds 0, 1, and 2 are open.
12306 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12307 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12308 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12309
12310 # The user is always right.
12311 if ${PATH_SEPARATOR+false} :; then
12312 PATH_SEPARATOR=:
12313 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12314 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12315 PATH_SEPARATOR=';'
12316 }
12317 fi
12318
12319
12320 # Find who we are. Look in the path if we contain no directory separator.
12321 as_myself=
12322 case $0 in #((
12323 *[\\/]* ) as_myself=$0 ;;
12324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 case $as_dir in #(((
12329 '') as_dir=./ ;;
12330 */) ;;
12331 *) as_dir=$as_dir/ ;;
12332 esac
12333 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12334 done
12335 IFS=$as_save_IFS
12336
12337 ;;
12338 esac
12339 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12340 # in which case we are not to be found in the path.
12341 if test "x$as_myself" = x; then
12342 as_myself=$0
12343 fi
12344 if test ! -f "$as_myself"; then
12345 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12346 exit 1
12347 fi
12348
12349
12350
12351 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12352 # ----------------------------------------
12353 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12354 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12355 # script with STATUS, using 1 if that was 0.
12356 as_fn_error ()
12357 {
12358 as_status=$1; test $as_status -eq 0 && as_status=1
12359 if test "$4"; then
12360 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12361 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12362 fi
12363 printf '%s\n' "$as_me: error: $2" >&2
12364 as_fn_exit $as_status
12365 } # as_fn_error
12366
12367
12368 # as_fn_set_status STATUS
12369 # -----------------------
12370 # Set $? to STATUS, without forking.
12371 as_fn_set_status ()
12372 {
12373 return $1
12374 } # as_fn_set_status
12375
12376 # as_fn_exit STATUS
12377 # -----------------
12378 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12379 as_fn_exit ()
12380 {
12381 set +e
12382 as_fn_set_status $1
12383 exit $1
12384 } # as_fn_exit
12385
12386 # as_fn_unset VAR
12387 # ---------------
12388 # Portably unset VAR.
12389 as_fn_unset ()
12390 {
12391 { eval $1=; unset $1;}
12392 }
12393 as_unset=as_fn_unset
12394
12395 # as_fn_append VAR VALUE
12396 # ----------------------
12397 # Append the text in VALUE to the end of the definition contained in VAR. Take
12398 # advantage of any shell optimizations that allow amortized linear growth over
12399 # repeated appends, instead of the typical quadratic growth present in naive
12400 # implementations.
12401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12402 then :
12403 eval 'as_fn_append ()
12404 {
12405 eval $1+=\$2
12406 }'
12407 else case e in #(
12408 e) as_fn_append ()
12409 {
12410 eval $1=\$$1\$2
12411 } ;;
12412 esac
12413 fi # as_fn_append
12414
12415 # as_fn_arith ARG...
12416 # ------------------
12417 # Perform arithmetic evaluation on the ARGs, and store the result in the
12418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12419 # must be portable across $(()) and expr.
12420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12421 then :
12422 eval 'as_fn_arith ()
12423 {
12424 as_val=$(( $* ))
12425 }'
12426 else case e in #(
12427 e) as_fn_arith ()
12428 {
12429 as_val=`expr "$@" || test $? -eq 1`
12430 } ;;
12431 esac
12432 fi # as_fn_arith
12433
12434
12435 if expr a : '\(a\)' >/dev/null 2>&1 &&
12436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12437 as_expr=expr
12438 else
12439 as_expr=false
12440 fi
12441
12442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12443 as_basename=basename
12444 else
12445 as_basename=false
12446 fi
12447
12448 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12449 as_dirname=dirname
12450 else
12451 as_dirname=false
12452 fi
12453
12454 as_me=`$as_basename -- "$0" ||
12455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12456 X"$0" : 'X\(//\)$' \| \
12457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12458 printf '%s\n' X/"$0" |
12459 sed '/^.*\/\([^/][^/]*\)\/*$/{
12460 s//\1/
12461 q
12462 }
12463 /^X\/\(\/\/\)$/{
12464 s//\1/
12465 q
12466 }
12467 /^X\/\(\/\).*/{
12468 s//\1/
12469 q
12470 }
12471 s/.*/./; q'`
12472
12473 # Avoid depending upon Character Ranges.
12474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12477 as_cr_digits='0123456789'
12478 as_cr_alnum=$as_cr_Letters$as_cr_digits
12479
12480 rm -f conf$$ conf$$.exe conf$$.file
12481 if test -d conf$$.dir; then
12482 rm -f conf$$.dir/conf$$.file
12483 else
12484 rm -f conf$$.dir
12485 mkdir conf$$.dir 2>/dev/null
12486 fi
12487 if (echo >conf$$.file) 2>/dev/null; then
12488 if ln -s conf$$.file conf$$ 2>/dev/null; then
12489 as_ln_s='ln -s'
12490 # ... but there are two gotchas:
12491 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12492 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12493 # In both cases, we have to default to 'cp -pR'.
12494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12495 as_ln_s='cp -pR'
12496 elif ln conf$$.file conf$$ 2>/dev/null; then
12497 as_ln_s=ln
12498 else
12499 as_ln_s='cp -pR'
12500 fi
12501 else
12502 as_ln_s='cp -pR'
12503 fi
12504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12505 rmdir conf$$.dir 2>/dev/null
12506
12507
12508 # as_fn_mkdir_p
12509 # -------------
12510 # Create "$as_dir" as a directory, including parents if necessary.
12511 as_fn_mkdir_p ()
12512 {
12513
12514 case $as_dir in #(
12515 -*) as_dir=./$as_dir;;
12516 esac
12517 test -d "$as_dir" || eval $as_mkdir_p || {
12518 as_dirs=
12519 while :; do
12520 case $as_dir in #(
12521 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12522 *) as_qdir=$as_dir;;
12523 esac
12524 as_dirs="'$as_qdir' $as_dirs"
12525 as_dir=`$as_dirname -- "$as_dir" ||
12526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12527 X"$as_dir" : 'X\(//\)[^/]' \| \
12528 X"$as_dir" : 'X\(//\)$' \| \
12529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12530 printf '%s\n' X"$as_dir" |
12531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\/\)[^/].*/{
12536 s//\1/
12537 q
12538 }
12539 /^X\(\/\/\)$/{
12540 s//\1/
12541 q
12542 }
12543 /^X\(\/\).*/{
12544 s//\1/
12545 q
12546 }
12547 s/.*/./; q'`
12548 test -d "$as_dir" && break
12549 done
12550 test -z "$as_dirs" || eval "mkdir $as_dirs"
12551 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12552
12553
12554 } # as_fn_mkdir_p
12555 if mkdir -p . 2>/dev/null; then
12556 as_mkdir_p='mkdir -p "$as_dir"'
12557 else
12558 test -d ./-p && rmdir ./-p
12559 as_mkdir_p=false
12560 fi
12561
12562
12563 # as_fn_executable_p FILE
12564 # -----------------------
12565 # Test if FILE is an executable regular file.
12566 as_fn_executable_p ()
12567 {
12568 test -f "$1" && test -x "$1"
12569 } # as_fn_executable_p
12570 as_test_x='test -x'
12571 as_executable_p=as_fn_executable_p
12572
12573 # Sed expression to map a string onto a valid CPP name.
12574 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12575 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12576
12577 # Sed expression to map a string onto a valid variable name.
12578 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12579 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12580
12581
12582 exec 6>&1
12583 ## ------------------------------------- ##
12584 ## Main body of "$CONFIG_STATUS" script. ##
12585 ## ------------------------------------- ##
12586 _ASEOF
12587 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12588
12589 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12590 # Save the log message, to keep $0 and so on meaningful, and to
12591 # report actual input values of CONFIG_FILES etc. instead of their
12592 # values after options handling.
12593 ac_log="
12594 This file was extended by xfontsel $as_me 1.1.2, which was
12595 generated by GNU Autoconf 2.73. Invocation command line was
12596
12597 CONFIG_FILES = $CONFIG_FILES
12598 CONFIG_HEADERS = $CONFIG_HEADERS
12599 CONFIG_LINKS = $CONFIG_LINKS
12600 CONFIG_COMMANDS = $CONFIG_COMMANDS
12601 $ $0 $@
12602
12603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12604 "
12605
12606 _ACEOF
12607
12608 case $ac_config_files in *"
12609 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12610 esac
12611
12612 case $ac_config_headers in *"
12613 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12614 esac
12615
12616
12617 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12618 # Files that config.status was made for.
12619 config_files="$ac_config_files"
12620 config_headers="$ac_config_headers"
12621 config_commands="$ac_config_commands"
12622
12623 _ACEOF
12624
12625 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12626 ac_cs_usage="\
12627 '$as_me' instantiates files and other configuration actions
12628 from templates according to the current configuration. Unless the files
12629 and actions are specified as TAGs, all are instantiated by default.
12630
12631 Usage: $0 [OPTION]... [TAG]...
12632
12633 -h, --help print this help, then exit
12634 -V, --version print version number and configuration settings, then exit
12635 --config print configuration, then exit
12636 -q, --quiet, --silent
12637 do not print progress messages
12638 -d, --debug don't remove temporary files
12639 --recheck update $as_me by reconfiguring in the same conditions
12640 --file=FILE[:TEMPLATE]
12641 instantiate the configuration file FILE
12642 --header=FILE[:TEMPLATE]
12643 instantiate the configuration header FILE
12644
12645 Configuration files:
12646 $config_files
12647
12648 Configuration headers:
12649 $config_headers
12650
12651 Configuration commands:
12652 $config_commands
12653
12654 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>."
12655
12656 _ACEOF
12657 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12658 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12659 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12660 ac_cs_config='$ac_cs_config_escaped'
12661 ac_cs_version="\\
12662 xfontsel config.status 1.1.2
12663 configured by $0, generated by GNU Autoconf 2.73,
12664 with options \\"\$ac_cs_config\\"
12665
12666 Copyright (C) 2026 Free Software Foundation, Inc.
12667 This config.status script is free software; the Free Software Foundation
12668 gives unlimited permission to copy, distribute and modify it."
12669
12670 ac_pwd='$ac_pwd'
12671 srcdir='$srcdir'
12672 INSTALL='$INSTALL'
12673 MKDIR_P='$MKDIR_P'
12674 AWK='$AWK'
12675 test -n "\$AWK" || {
12676 awk '' </dev/null ||
12677 as_fn_error \$? "try installing gawk"
12678 AWK=awk
12679 }
12680 _ACEOF
12681
12682 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12683 # The default lists apply if the user does not specify any file.
12684 ac_need_defaults=:
12685 while test $# != 0
12686 do
12687 case $1 in
12688 --*=?*)
12689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12691 ac_shift=:
12692 ;;
12693 --*=)
12694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12695 ac_optarg=
12696 ac_shift=:
12697 ;;
12698 *)
12699 ac_option=$1
12700 ac_optarg=$2
12701 ac_shift=shift
12702 ;;
12703 esac
12704
12705 case $ac_option in
12706 # Handling of the options.
12707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12708 ac_cs_recheck=: ;;
12709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12710 printf '%s\n' "$ac_cs_version"; exit ;;
12711 --config | --confi | --conf | --con | --co | --c )
12712 printf '%s\n' "$ac_cs_config"; exit ;;
12713 --debug | --debu | --deb | --de | --d | -d )
12714 debug=: ;;
12715 --file | --fil | --fi | --f )
12716 $ac_shift
12717 case $ac_optarg in
12718 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12719 '') as_fn_error $? "missing file argument" ;;
12720 esac
12721 as_fn_append CONFIG_FILES " '$ac_optarg'"
12722 ac_need_defaults=false;;
12723 --header | --heade | --head | --hea )
12724 $ac_shift
12725 case $ac_optarg in
12726 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12727 esac
12728 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12729 ac_need_defaults=false;;
12730 --he | --h)
12731 # Conflict between --help and --header
12732 as_fn_error $? "ambiguous option: '$1'
12733 Try '$0 --help' for more information.";;
12734 --help | --hel | -h )
12735 printf '%s\n' "$ac_cs_usage"; exit ;;
12736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12737 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12738 ac_cs_silent=: ;;
12739
12740 # This is an error.
12741 -*) as_fn_error $? "unrecognized option: '$1'
12742 Try '$0 --help' for more information." ;;
12743
12744 *) as_fn_append ac_config_targets " $1"
12745 ac_need_defaults=false ;;
12746
12747 esac
12748 shift
12749 done
12750
12751 ac_configure_extra_args=
12752
12753 if $ac_cs_silent; then
12754 exec 6>/dev/null
12755 ac_configure_extra_args="$ac_configure_extra_args --silent"
12756 fi
12757
12758 _ACEOF
12759 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12760 if \$ac_cs_recheck; then
12761 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12762 shift
12763 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12764 CONFIG_SHELL='$SHELL'
12765 export CONFIG_SHELL
12766 exec "\$@"
12767 fi
12768
12769 _ACEOF
12770 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12771 exec 5>>config.log
12772 {
12773 echo
12774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12775 ## Running $as_me. ##
12776 _ASBOX
12777 printf '%s\n' "$ac_log"
12778 } >&5
12779
12780 _ACEOF
12781 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12782 #
12783 # INIT-COMMANDS
12784 #
12785 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12786
12787 _ACEOF
12788
12789 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12790
12791 # Handling of arguments.
12792 for ac_config_target in $ac_config_targets
12793 do
12794 case $ac_config_target in
12795 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12798 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12799
12800 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12801 esac
12802 done
12803
12804
12805 # If the user did not use the arguments to specify the items to instantiate,
12806 # then the envvar interface is used. Set only those that are not.
12807 # We use the long form for the default assignment because of an extremely
12808 # bizarre bug on SunOS 4.1.3.
12809 if $ac_need_defaults; then
12810 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12811 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12812 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12813 fi
12814
12815 # Have a temporary directory for convenience. Make it in the build tree
12816 # simply because there is no reason against having it here, and in addition,
12817 # creating and moving files from /tmp can sometimes cause problems.
12818 # Hook for its removal unless debugging.
12819 # Note that there is a small window in which the directory will not be cleaned:
12820 # after its creation but before its name has been assigned to '$tmp'.
12821 $debug ||
12822 {
12823 tmp= ac_tmp=
12824 trap 'exit_status=$?
12825 : "${ac_tmp:=$tmp}"
12826 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12827 ' 0
12828 trap 'as_fn_exit 1' 1 2 13 15
12829 }
12830 # Create a (secure) tmp directory for tmp files.
12831
12832 {
12833 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12834 test -d "$tmp"
12835 } ||
12836 {
12837 tmp=./conf$$-$RANDOM
12838 (umask 077 && mkdir "$tmp")
12839 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12840 ac_tmp=$tmp
12841
12842 # Set up the scripts for CONFIG_FILES section.
12843 # No need to generate them if there are no CONFIG_FILES.
12844 # This happens for instance with './config.status config.h'.
12845 if test -n "$CONFIG_FILES"; then
12846
12847
12848 ac_cr=`echo X | tr X '\015'`
12849 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12850 # But we know of no other shell where ac_cr would be empty at this
12851 # point, so we can use a bashism as a fallback.
12852 if test "x$ac_cr" = x; then
12853 eval ac_cr=\$\'\\r\'
12854 fi
12855 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12856 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12857 ac_cs_awk_cr='\\r'
12858 else
12859 ac_cs_awk_cr=$ac_cr
12860 fi
12861
12862 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12863 _ACEOF
12864
12865
12866 {
12867 echo "cat >conf$$subs.awk <<_ACEOF" &&
12868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12869 echo "_ACEOF"
12870 } >conf$$subs.sh ||
12871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12872 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
12873 ac_delim='%!_!# '
12874 for ac_last_try in false false false false false :; do
12875 . ./conf$$subs.sh ||
12876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12877
12878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
12879 if test $ac_delim_n = $ac_delim_num; then
12880 break
12881 elif $ac_last_try; then
12882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12883 else
12884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12885 fi
12886 done
12887 rm -f conf$$subs.sh
12888
12889 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12890 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12891 _ACEOF
12892 sed -n '
12893 h
12894 s/^/S["/; s/!.*/"]=/
12895 p
12896 g
12897 s/^[^!]*!//
12898 :repl
12899 t repl
12900 s/'"$ac_delim"'$//
12901 t delim
12902 :nl
12903 h
12904 s/\(.\{148\}\)..*/\1/
12905 t more1
12906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12907 p
12908 n
12909 b repl
12910 :more1
12911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12912 p
12913 g
12914 s/.\{148\}//
12915 t nl
12916 :delim
12917 h
12918 s/\(.\{148\}\)..*/\1/
12919 t more2
12920 s/["\\]/\\&/g; s/^/"/; s/$/"/
12921 p
12922 b
12923 :more2
12924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12925 p
12926 g
12927 s/.\{148\}//
12928 t delim
12929 ' <conf$$subs.awk | sed '
12930 /^[^""]/{
12931 N
12932 s/\n//
12933 }
12934 ' >>"$CONFIG_STATUS" || ac_write_fail=1
12935 rm -f conf$$subs.awk
12936 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12937 _ACAWK
12938 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12939 for (key in S) S_is_set[key] = 1
12940 FS = ""
12941
12942 }
12943 {
12944 line = $ 0
12945 nfields = split(line, field, "@")
12946 substed = 0
12947 len = length(field[1])
12948 for (i = 2; i < nfields; i++) {
12949 key = field[i]
12950 keylen = length(key)
12951 if (S_is_set[key]) {
12952 value = S[key]
12953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12954 len += length(value) + length(field[++i])
12955 substed = 1
12956 } else
12957 len += 1 + keylen
12958 }
12959
12960 print line
12961 }
12962
12963 _ACAWK
12964 _ACEOF
12965 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12966 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12967 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12968 else
12969 cat
12970 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12971 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12972 _ACEOF
12973
12974 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12975 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12976 # trailing colons and then remove the whole line if VPATH becomes empty
12977 # (actually we leave an empty line to preserve line numbers).
12978 if test "x$srcdir" = x.; then
12979 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12980 h
12981 s///
12982 s/^/:/
12983 s/[ ]*$/:/
12984 s/:\$(srcdir):/:/g
12985 s/:\${srcdir}:/:/g
12986 s/:@srcdir@:/:/g
12987 s/^:*//
12988 s/:*$//
12989 x
12990 s/\(=[ ]*\).*/\1/
12991 G
12992 s/\n//
12993 s/^[^=]*=[ ]*$//
12994 }'
12995 fi
12996
12997 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12998 fi # test -n "$CONFIG_FILES"
12999
13000 # Set up the scripts for CONFIG_HEADERS section.
13001 # No need to generate them if there are no CONFIG_HEADERS.
13002 # This happens for instance with './config.status Makefile'.
13003 if test -n "$CONFIG_HEADERS"; then
13004 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13005 BEGIN {
13006 _ACEOF
13007
13008 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13009 # here-document in config.status, that substitutes the proper values into
13010 # config.h.in to produce config.h.
13011
13012 # Create a delimiter string that does not exist in confdefs.h, to ease
13013 # handling of long lines.
13014 ac_delim='%!_!# '
13015 for ac_last_try in false false :; do
13016 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13017 if test -z "$ac_tt"; then
13018 break
13019 elif $ac_last_try; then
13020 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13021 else
13022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13023 fi
13024 done
13025
13026 # For the awk script, D is an array of macro values keyed by name,
13027 # likewise P contains macro parameters if any. Preserve backslash
13028 # newline sequences.
13029
13030 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13031 sed -n '
13032 s/.\{148\}/&'"$ac_delim"'/g
13033 t rset
13034 :rset
13035 s/^[ ]*#[ ]*define[ ][ ]*/ /
13036 t def
13037 d
13038 :def
13039 s/\\$//
13040 t bsnl
13041 s/["\\]/\\&/g
13042 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13043 D["\1"]=" \3"/p
13044 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13045 d
13046 :bsnl
13047 s/["\\]/\\&/g
13048 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13049 D["\1"]=" \3\\\\\\n"\\/p
13050 t cont
13051 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13052 t cont
13053 d
13054 :cont
13055 n
13056 s/.\{148\}/&'"$ac_delim"'/g
13057 t clear
13058 :clear
13059 s/\\$//
13060 t bsnlc
13061 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13062 d
13063 :bsnlc
13064 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13065 b cont
13066 ' <confdefs.h | sed '
13067 s/'"$ac_delim"'/"\\\
13068 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13069
13070 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13071 for (key in D) D_is_set[key] = 1
13072 FS = ""
13073 }
13074 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13075 line = \$ 0
13076 split(line, arg, " ")
13077 if (arg[1] == "#") {
13078 defundef = arg[2]
13079 mac1 = arg[3]
13080 } else {
13081 defundef = substr(arg[1], 2)
13082 mac1 = arg[2]
13083 }
13084 split(mac1, mac2, "(") #)
13085 macro = mac2[1]
13086 prefix = substr(line, 1, index(line, defundef) - 1)
13087 if (D_is_set[macro]) {
13088 suffix = P[macro] D[macro]
13089 while (suffix ~ /[\t ]$/) {
13090 suffix = substr(suffix, 1, length(suffix) - 1)
13091 }
13092 # Preserve the white space surrounding the "#".
13093 print prefix "define", macro suffix
13094 next
13095 } else {
13096 # Replace #undef with comments. This is necessary, for example,
13097 # in the case of _POSIX_SOURCE, which is predefined and required
13098 # on some systems where configure will not decide to define it.
13099 if (defundef == "undef") {
13100 print "/*", prefix defundef, macro, "*/"
13101 next
13102 }
13103 }
13104 }
13105 { print }
13106 _ACAWK
13107 _ACEOF
13108 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13109 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13110 fi # test -n "$CONFIG_HEADERS"
13111
13112
13113 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13114 shift
13115 for ac_tag
13116 do
13117 case $ac_tag in
13118 :[FHLC]) ac_mode=$ac_tag; continue;;
13119 esac
13120 case $ac_mode$ac_tag in
13121 :[FHL]*:*);;
13122 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13123 :[FH]-) ac_tag=-:-;;
13124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13125 esac
13126 ac_save_IFS=$IFS
13127 IFS=:
13128 set x $ac_tag
13129 IFS=$ac_save_IFS
13130 shift
13131 ac_file=$1
13132 shift
13133
13134 case $ac_mode in
13135 :L) ac_source=$1;;
13136 :[FH])
13137 ac_file_inputs=
13138 for ac_f
13139 do
13140 case $ac_f in
13141 -) ac_f="$ac_tmp/stdin";;
13142 *) # Look for the file first in the build tree, then in the source tree
13143 # (if the path is not absolute). The absolute path cannot be DOS-style,
13144 # because $ac_f cannot contain ':'.
13145 test -f "$ac_f" ||
13146 case $ac_f in
13147 [\\/$]*) false;;
13148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13149 esac ||
13150 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13151 esac
13152 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13153 as_fn_append ac_file_inputs " '$ac_f'"
13154 done
13155
13156 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13157 # use $as_me), people would be surprised to read:
13158 # /* config.h. Generated by config.status. */
13159 configure_input='Generated from '`
13160 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13161 `' by configure.'
13162 if test x"$ac_file" != x-; then
13163 configure_input="$ac_file. $configure_input"
13164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13165 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13166 fi
13167 # Neutralize special characters interpreted by sed in replacement strings.
13168 case $configure_input in #(
13169 *\&* | *\|* | *\\* )
13170 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13172 *) ac_sed_conf_input=$configure_input;;
13173 esac
13174
13175 case $ac_tag in
13176 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13178 esac
13179 ;;
13180 esac
13181
13182 ac_dir=`$as_dirname -- "$ac_file" ||
13183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13184 X"$ac_file" : 'X\(//\)[^/]' \| \
13185 X"$ac_file" : 'X\(//\)$' \| \
13186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13187 printf '%s\n' X"$ac_file" |
13188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13189 s//\1/
13190 q
13191 }
13192 /^X\(\/\/\)[^/].*/{
13193 s//\1/
13194 q
13195 }
13196 /^X\(\/\/\)$/{
13197 s//\1/
13198 q
13199 }
13200 /^X\(\/\).*/{
13201 s//\1/
13202 q
13203 }
13204 s/.*/./; q'`
13205 as_dir="$ac_dir"; as_fn_mkdir_p
13206 ac_builddir=.
13207
13208 case "$ac_dir" in
13209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13210 *)
13211 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13212 # A ".." for each directory in $ac_dir_suffix.
13213 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13214 case $ac_top_builddir_sub in
13215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13217 esac ;;
13218 esac
13219 ac_abs_top_builddir=$ac_pwd
13220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13221 # for backward compatibility:
13222 ac_top_builddir=$ac_top_build_prefix
13223
13224 case $srcdir in
13225 .) # We are building in place.
13226 ac_srcdir=.
13227 ac_top_srcdir=$ac_top_builddir_sub
13228 ac_abs_top_srcdir=$ac_pwd ;;
13229 [\\/]* | ?:[\\/]* ) # Absolute name.
13230 ac_srcdir=$srcdir$ac_dir_suffix;
13231 ac_top_srcdir=$srcdir
13232 ac_abs_top_srcdir=$srcdir ;;
13233 *) # Relative name.
13234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13235 ac_top_srcdir=$ac_top_build_prefix$srcdir
13236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13237 esac
13238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13239
13240
13241 case $ac_mode in
13242 :F)
13243 #
13244 # CONFIG_FILE
13245 #
13246
13247 case $INSTALL in
13248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13250 esac
13251 ac_MKDIR_P=$MKDIR_P
13252 case $MKDIR_P in
13253 [\\/$]* | ?:[\\/]* ) ;;
13254 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13255 esac
13256 _ACEOF
13257
13258 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13259 # If the template does not know about datarootdir, expand it.
13260 # FIXME: This hack should be removed a few years after 2.60.
13261 ac_datarootdir_hack=; ac_datarootdir_seen=
13262 ac_sed_dataroot='
13263 /datarootdir/ {
13264 p
13265 q
13266 }
13267 /@datadir@/p
13268 /@docdir@/p
13269 /@infodir@/p
13270 /@localedir@/p
13271 /@mandir@/p'
13272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13273 *datarootdir*) ac_datarootdir_seen=yes;;
13274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13276 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13277 _ACEOF
13278 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13279 ac_datarootdir_hack='
13280 s&@datadir@&$datadir&g
13281 s&@docdir@&$docdir&g
13282 s&@infodir@&$infodir&g
13283 s&@localedir@&$localedir&g
13284 s&@mandir@&$mandir&g
13285 s&\\\${datarootdir}&$datarootdir&g' ;;
13286 esac
13287 _ACEOF
13288
13289 # Neutralize VPATH when '$srcdir' = '.'.
13290 # Shell code in configure.ac might set extrasub.
13291 # FIXME: do we really want to maintain this feature?
13292 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13293 ac_sed_extra="$ac_vpsub
13294 $extrasub
13295 _ACEOF
13296 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13297 :t
13298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13299 s|@configure_input@|$ac_sed_conf_input|;t t
13300 s&@top_builddir@&$ac_top_builddir_sub&;t t
13301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13302 s&@srcdir@&$ac_srcdir&;t t
13303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13304 s&@top_srcdir@&$ac_top_srcdir&;t t
13305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13306 s&@builddir@&$ac_builddir&;t t
13307 s&@abs_builddir@&$ac_abs_builddir&;t t
13308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13309 s&@INSTALL@&$ac_INSTALL&;t t
13310 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13311 $ac_datarootdir_hack
13312 "
13313 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13314 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13315
13316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13317 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13319 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13321 which seems to be undefined. Please make sure it is defined" >&5
13322 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13323 which seems to be undefined. Please make sure it is defined" >&2;}
13324
13325 rm -f "$ac_tmp/stdin"
13326 case $ac_file in
13327 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13328 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13329 esac \
13330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13331 ;;
13332 :H)
13333 #
13334 # CONFIG_HEADER
13335 #
13336 if test x"$ac_file" != x-; then
13337 {
13338 printf '%s\n' "/* $configure_input */" >&1 \
13339 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13340 } >"$ac_tmp/config.h" \
13341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13342 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13344 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13345 else
13346 rm -f "$ac_file"
13347 mv "$ac_tmp/config.h" "$ac_file" \
13348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13349 fi
13350 else
13351 printf '%s\n' "/* $configure_input */" >&1 \
13352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13353 || as_fn_error $? "could not create -" "$LINENO" 5
13354 fi
13355 # Compute "$ac_file"'s index in $config_headers.
13356 _am_arg="$ac_file"
13357 _am_stamp_count=1
13358 for _am_header in $config_headers :; do
13359 case $_am_header in
13360 $_am_arg | $_am_arg:* )
13361 break ;;
13362 * )
13363 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13364 esac
13365 done
13366 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13367 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13368 X"$_am_arg" : 'X\(//\)[^/]' \| \
13369 X"$_am_arg" : 'X\(//\)$' \| \
13370 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13371 printf '%s\n' X"$_am_arg" |
13372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13373 s//\1/
13374 q
13375 }
13376 /^X\(\/\/\)[^/].*/{
13377 s//\1/
13378 q
13379 }
13380 /^X\(\/\/\)$/{
13381 s//\1/
13382 q
13383 }
13384 /^X\(\/\).*/{
13385 s//\1/
13386 q
13387 }
13388 s/.*/./; q'`/stamp-h$_am_stamp_count
13389 ;;
13390
13391 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13392 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13393 ;;
13394 esac
13395
13396
13397 case $ac_file$ac_mode in
13398 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13399 # Older Autoconf quotes --file arguments for eval, but not when files
13400 # are listed without --file. Let's play safe and only enable the eval
13401 # if we detect the quoting.
13402 # TODO: see whether this extra hack can be removed once we start
13403 # requiring Autoconf 2.70 or later.
13404 case $CONFIG_FILES in #(
13405 *\'*) :
13406 eval set x "$CONFIG_FILES" ;; #(
13407 *) :
13408 set x $CONFIG_FILES ;; #(
13409 *) :
13410 ;;
13411 esac
13412 shift
13413 # Used to flag and report bootstrapping failures.
13414 am_rc=0
13415 for am_mf
13416 do
13417 # Strip MF so we end up with the name of the file.
13418 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13419 # Check whether this is an Automake generated Makefile which includes
13420 # dependency-tracking related rules and includes.
13421 # Grep'ing the whole file directly is not great: AIX grep has a line
13422 # limit of 2048, but all sed's we know have understand at least 4000.
13423 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13424 || continue
13425 am_dirpart=`$as_dirname -- "$am_mf" ||
13426 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13427 X"$am_mf" : 'X\(//\)[^/]' \| \
13428 X"$am_mf" : 'X\(//\)$' \| \
13429 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13430 printf '%s\n' X"$am_mf" |
13431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13432 s//\1/
13433 q
13434 }
13435 /^X\(\/\/\)[^/].*/{
13436 s//\1/
13437 q
13438 }
13439 /^X\(\/\/\)$/{
13440 s//\1/
13441 q
13442 }
13443 /^X\(\/\).*/{
13444 s//\1/
13445 q
13446 }
13447 s/.*/./; q'`
13448 am_filepart=`$as_basename -- "$am_mf" ||
13449 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13450 X"$am_mf" : 'X\(//\)$' \| \
13451 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13452 printf '%s\n' X/"$am_mf" |
13453 sed '/^.*\/\([^/][^/]*\)\/*$/{
13454 s//\1/
13455 q
13456 }
13457 /^X\/\(\/\/\)$/{
13458 s//\1/
13459 q
13460 }
13461 /^X\/\(\/\).*/{
13462 s//\1/
13463 q
13464 }
13465 s/.*/./; q'`
13466 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13467 && sed -e '/# am--include-marker/d' "$am_filepart" \
13468 | $MAKE -f - am--depfiles" >&5
13469 (cd "$am_dirpart" \
13470 && sed -e '/# am--include-marker/d' "$am_filepart" \
13471 | $MAKE -f - am--depfiles) >&5 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } || am_rc=$?
13475 done
13476 if test $am_rc -ne 0; then
13477 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13478 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13479 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13480 for automatic dependency tracking. If GNU make was not used, consider
13481 re-running the configure script with MAKE=\"gmake\" (or whatever is
13482 necessary). You can also try re-running configure with the
13483 '--disable-dependency-tracking' option to at least be able to build
13484 the package (albeit without support for automatic dependency tracking).
13485 See 'config.log' for more details" "$LINENO" 5; }
13486 fi
13487 { am_dirpart=; unset am_dirpart;}
13488 { am_filepart=; unset am_filepart;}
13489 { am_mf=; unset am_mf;}
13490 { am_rc=; unset am_rc;}
13491 rm -f conftest-deps.mk
13492 }
13493 ;;
13494
13495 esac
13496 done # for ac_tag
13497
13498
13499 as_fn_exit 0
13500 _ACEOF
13501 ac_clean_CONFIG_STATUS=
13502
13503 test $ac_write_fail = 0 ||
13504 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13505
13506
13507 # configure is writing to config.log, and then calls config.status.
13508 # config.status does its own redirection, appending to config.log.
13509 # Unfortunately, on DOS this fails, as config.log is still kept open
13510 # by configure, so config.status won't be able to write to it; its
13511 # output is simply discarded. So we exec the FD to /dev/null,
13512 # effectively closing config.log, so it can be properly (re)opened and
13513 # appended to by config.status. When coming back to configure, we
13514 # need to make the FD available again.
13515 if test "$no_create" != yes; then
13516 ac_cs_success=:
13517 case $CONFIG_STATUS in #(
13518 -*) :
13519 ac_no_opts=-- ;; #(
13520 *) :
13521 ac_no_opts= ;;
13522 esac
13523 ac_config_status_args=
13524 test "$silent" = yes &&
13525 ac_config_status_args="$ac_config_status_args --quiet"
13526 exec 5>/dev/null
13527 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13528 ac_cs_success=false
13529 exec 5>>config.log
13530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13531 # would make configure fail if this is the last instruction.
13532 $ac_cs_success || as_fn_exit 1
13533 fi
13534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13535 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13536 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13537 fi
13538
13539
13540