configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for font-util 1.4.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/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/font/util/-/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='font-util'
591 PACKAGE_TARNAME='font-util'
592 PACKAGE_VERSION='1.4.2'
593 PACKAGE_STRING='font-util 1.4.2'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/-/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 : ${enable_year2038:=no}
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 MAPDIR
636 fontrootdir
637 MAN_SUBSTS
638 XORG_MAN_PAGE
639 ADMIN_MAN_DIR
640 DRIVER_MAN_DIR
641 MISC_MAN_DIR
642 FILE_MAN_DIR
643 LIB_MAN_DIR
644 APP_MAN_DIR
645 ADMIN_MAN_SUFFIX
646 DRIVER_MAN_SUFFIX
647 MISC_MAN_SUFFIX
648 FILE_MAN_SUFFIX
649 LIB_MAN_SUFFIX
650 APP_MAN_SUFFIX
651 SED
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 am__xargs_n
669 am__rm_f_notfound
670 AM_BACKSLASH
671 AM_DEFAULT_VERBOSITY
672 AM_DEFAULT_V
673 AM_V
674 CSCOPE
675 ETAGS
676 CTAGS
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__include
685 DEPDIR
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 runstatedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL
755 am__quote'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_dependency_tracking
760 enable_silent_rules
761 enable_selective_werror
762 enable_strict_compilation
763 enable_largefile
764 with_fontrootdir
765 with_mapdir
766 enable_year2038
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 PKG_CONFIG
777 PKG_CONFIG_PATH
778 PKG_CONFIG_LIBDIR'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 runstatedir='${localstatedir}/run'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: '$ac_useropt'"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: '$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -runstatedir | --runstatedir | --runstatedi | --runstated \
1069 | --runstate | --runstat | --runsta | --runst | --runs \
1070 | --run | --ru | --r)
1071 ac_prev=runstatedir ;;
1072 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1073 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1074 | --run=* | --ru=* | --r=*)
1075 runstatedir=$ac_optarg ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: '$ac_useropt'"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: '$ac_useropt'"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: '$ac_option'
1173 Try '$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir runstatedir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: '$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 printf '%s\n' X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 'configure' configures font-util 1.4.2 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print 'checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for '--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or '..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, 'make install' will install all the files in
1354 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than '$ac_default_prefix' using '--prefix',
1356 for instance '--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/font-util]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of font-util 1.4.2:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --disable-selective-werror
1413 Turn off selective compiler errors. (default:
1414 enabled)
1415 --enable-strict-compilation
1416 Enable all warnings from compiler and make them
1417 errors (default: disabled)
1418 --disable-largefile omit support for large files
1419 --enable-year2038 support timestamps after 2038
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-fontrootdir=DIR Path to parent of font subdirectories
1425 [DATADIR/fonts/X11]
1426 --with-mapdir=DIR Path to install font maps [FONTROOTDIR/util]
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 PKG_CONFIG path to pkg-config utility
1437 PKG_CONFIG_PATH
1438 directories to add to pkg-config's search path
1439 PKG_CONFIG_LIBDIR
1440 path overriding pkg-config's built-in search path
1441
1442 Use these variables to override the choices made by 'configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for configure.gnu first; this name is used for a wrapper for
1492 # Metaconfig's "Configure" on case-insensitive file systems.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 font-util configure 1.4.2
1510 generated by GNU Autoconf 2.73
1511
1512 Copyright (C) 2026 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext conftest.beam
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 printf '%s\n' "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext
1549 then :
1550 ac_retval=0
1551 else case e in #(
1552 e) printf '%s\n' "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1 ;;
1556 esac
1557 fi
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 printf %s "checking for $2... " >&6; }
1572 if eval test \${$3+y}
1573 then :
1574 printf %s "(cached) " >&6
1575 else case e in #(
1576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1578 $4
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"
1582 then :
1583 eval "$3=yes"
1584 else case e in #(
1585 e) eval "$3=no" ;;
1586 esac
1587 fi
1588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1589 esac
1590 fi
1591 eval ac_res=\$$3
1592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 printf '%s\n' "$ac_res" >&6; }
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
1596 } # ac_fn_c_check_header_compile
1597
1598 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1599 # ------------------------------------------------------------------
1600 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1601 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1602 ac_fn_check_decl ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 as_decl_name=`echo $2|sed 's/ *(.*//'`
1606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1607 printf %s "checking whether $as_decl_name is declared... " >&6; }
1608 if eval test \${$3+y}
1609 then :
1610 printf %s "(cached) " >&6
1611 else case e in #(
1612 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1613 eval ac_save_FLAGS=\$$6
1614 as_fn_append $6 " $5"
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 int
1619 main (void)
1620 {
1621 #ifndef $as_decl_name
1622 #ifdef __cplusplus
1623 (void) $as_decl_use;
1624 #else
1625 (void) $as_decl_name;
1626 #endif
1627 #endif
1628
1629 ;
1630 return 0;
1631 }
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"
1634 then :
1635 eval "$3=yes"
1636 else case e in #(
1637 e) eval "$3=no" ;;
1638 esac
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1641 eval $6=\$ac_save_FLAGS
1642 ;;
1643 esac
1644 fi
1645 eval ac_res=\$$3
1646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 printf '%s\n' "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_check_decl
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf '%s\n' "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else case e in #(
1684 e) printf '%s\n' "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1 ;;
1688 esac
1689 fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (void); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 (void);
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1754 conftest$ac_exeext conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf '%s\n' "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763 ac_configure_args_raw=
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 *\'*)
1768 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769 esac
1770 as_fn_append ac_configure_args_raw " '$ac_arg'"
1771 done
1772
1773 case $ac_configure_args_raw in
1774 *$as_nl*)
1775 ac_safe_unquote= ;;
1776 *)
1777 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1778 ac_unsafe_a="$ac_unsafe_z#~"
1779 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1780 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1781 esac
1782
1783 cat >config.log <<_ACEOF
1784 This file contains any messages produced by compilers while
1785 running configure, to aid debugging if configure makes a mistake.
1786
1787 It was created by font-util $as_me 1.4.2, which was
1788 generated by GNU Autoconf 2.73. Invocation command line was
1789
1790 $ $0$ac_configure_args_raw
1791
1792 _ACEOF
1793 exec 5>>config.log
1794 {
1795 cat <<_ASUNAME
1796 ## --------- ##
1797 ## Platform. ##
1798 ## --------- ##
1799
1800 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1801 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1802 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1803 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1804 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805
1806 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1807 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1808
1809 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1810 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1811 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1812 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1813 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1814 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1815 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1816
1817 _ASUNAME
1818
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822 IFS=$as_save_IFS
1823 case $as_dir in #(((
1824 '') as_dir=./ ;;
1825 */) ;;
1826 *) as_dir=$as_dir/ ;;
1827 esac
1828 printf '%s\n' "PATH: $as_dir"
1829 done
1830 IFS=$as_save_IFS
1831
1832 } >&5
1833
1834 cat >&5 <<_ACEOF
1835
1836
1837 ## ----------- ##
1838 ## Core tests. ##
1839 ## ----------- ##
1840
1841 _ACEOF
1842
1843
1844 # Keep a trace of the command line.
1845 # Strip out --no-create and --no-recursion so they do not pile up.
1846 # Strip out --silent because we don't want to record it for future runs.
1847 # Also quote any args containing shell meta-characters.
1848 # Make two passes to allow for proper duplicate-argument suppression.
1849 ac_configure_args=
1850 ac_configure_args0=
1851 ac_configure_args1=
1852 ac_must_keep_next=false
1853 for ac_pass in 1 2
1854 do
1855 for ac_arg
1856 do
1857 case $ac_arg in
1858 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1860 | -silent | --silent | --silen | --sile | --sil)
1861 continue ;;
1862 *\'*)
1863 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 esac
1865 case $ac_pass in
1866 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1867 2)
1868 as_fn_append ac_configure_args1 " '$ac_arg'"
1869 if test $ac_must_keep_next = true; then
1870 ac_must_keep_next=false # Got value, back to normal.
1871 else
1872 case $ac_arg in
1873 *=* | --config-cache | -C | -disable-* | --disable-* \
1874 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1875 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1876 | -with-* | --with-* | -without-* | --without-* | --x)
1877 case "$ac_configure_args0 " in
1878 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1879 esac
1880 ;;
1881 -* ) ac_must_keep_next=true ;;
1882 esac
1883 fi
1884 as_fn_append ac_configure_args " '$ac_arg'"
1885 ;;
1886 esac
1887 done
1888 done
1889 { ac_configure_args0=; unset ac_configure_args0;}
1890 { ac_configure_args1=; unset ac_configure_args1;}
1891
1892 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1893 ac_cache_dump ()
1894 {
1895 # The following way of writing the cache mishandles newlines in values,
1896 # but we know of no workaround that is simple, portable, and efficient.
1897 # So, we kill variables containing newlines.
1898 # Ultrix sh set writes to stderr and can't be redirected directly,
1899 # and sets the high bit in the cache file unless we assign to the vars.
1900 (
1901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in #(
1904 *${as_nl}*)
1905 case $ac_var in #(
1906 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1907 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1908 esac
1909 case $ac_var in #(
1910 _ | IFS | as_nl) ;; #(
1911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1912 *) { eval $ac_var=; unset $ac_var;} ;;
1913 esac ;;
1914 esac
1915 done
1916
1917 (set) 2>&1 |
1918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1919 *${as_nl}ac_space=\ *)
1920 # 'set' does not quote correctly, so add quotes: double-quote
1921 # substitution turns \\\\ into \\, and sed turns \\ into \.
1922 sed -n \
1923 "s/'/'\\\\''/g;
1924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1925 ;; #(
1926 *)
1927 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929 ;;
1930 esac |
1931 sort
1932 )
1933 }
1934
1935 # Print debugging info to stdout.
1936 ac_dump_debugging_info ()
1937 {
1938 echo
1939
1940 printf '%s\n' "## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##"
1943 echo
1944 ac_cache_dump
1945 echo
1946
1947 printf '%s\n' "## ----------------- ##
1948 ## Output variables. ##
1949 ## ----------------- ##"
1950 echo
1951 for ac_var in $ac_subst_vars
1952 do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1956 esac
1957 printf '%s\n' "$ac_var='$ac_val'"
1958 done | sort
1959 echo
1960
1961 if test -n "$ac_subst_files"; then
1962 printf '%s\n' "## ------------------- ##
1963 ## File substitutions. ##
1964 ## ------------------- ##"
1965 echo
1966 for ac_var in $ac_subst_files
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1971 esac
1972 printf '%s\n' "$ac_var='$ac_val'"
1973 done | sort
1974 echo
1975 fi
1976
1977 if test -s confdefs.h; then
1978 printf '%s\n' "## ----------- ##
1979 ## confdefs.h. ##
1980 ## ----------- ##"
1981 echo
1982 cat confdefs.h
1983 echo
1984 fi
1985 test "$ac_signal" != 0 &&
1986 printf '%s\n' "$as_me: caught signal $ac_signal"
1987 printf '%s\n' "$as_me: exit $exit_status"
1988 }
1989
1990 # When interrupted or exit'd, cleanup temporary files, and complete
1991 # config.log.
1992 ac_exit_trap ()
1993 {
1994 exit_status=
1995 # Sanitize IFS.
1996 IFS=" "" $as_nl"
1997 # Save into config.log some information that might help in debugging.
1998 ac_dump_debugging_info >&5
1999 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002 }
2003
2004 trap 'ac_exit_trap $?' 0
2005 for ac_signal in 1 2 13 15; do
2006 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2007 done
2008 ac_signal=0
2009
2010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2011 rm -f -r conftest* confdefs.h
2012
2013 printf '%s\n' "/* confdefs.h */" > confdefs.h
2014
2015 # Predefined preprocessor variables.
2016
2017 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2018
2019 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2020
2021 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2022
2023 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2024
2025 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2026
2027 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2028
2029
2030 # Let the site file select an alternate cache file if it wants to.
2031 # Prefer an explicitly selected file to automatically selected ones.
2032 if test -n "$CONFIG_SITE"; then
2033 ac_site_files="$CONFIG_SITE"
2034 elif test "x$prefix" != xNONE; then
2035 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2036 else
2037 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2038 fi
2039
2040 for ac_site_file in $ac_site_files
2041 do
2042 case $ac_site_file in #(
2043 */*) :
2044 ;; #(
2045 *) :
2046 ac_site_file=./$ac_site_file ;;
2047 esac
2048 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2051 sed 's/^/| /' "$ac_site_file" >&5
2052 . "$ac_site_file" \
2053 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2054 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2055 as_fn_error $? "failed to load site script $ac_site_file
2056 See 'config.log' for more details" "$LINENO" 5; }
2057 fi
2058 done
2059
2060 if test -r "$cache_file"; then
2061 # Some versions of bash will fail to source /dev/null (special files
2062 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2063 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2066 case $cache_file in
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
2069 esac
2070 fi
2071 else
2072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2074 >$cache_file
2075 fi
2076
2077 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2078 # Test code for whether the C compiler supports C23 (global declarations)
2079 ac_c_conftest_c23_globals='
2080 /* Does the compiler advertise conformance to C17 or earlier?
2081 Although GCC 14 does not do that, even with -std=gnu23,
2082 it is close enough, and defines __STDC_VERSION == 202000L. */
2083 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2084 # error "Compiler advertises conformance to C17 or earlier"
2085 #endif
2086
2087 // Check alignas.
2088 char alignas (double) c23_aligned_as_double;
2089 char alignas (0) c23_no_special_alignment;
2090 extern char c23_aligned_as_int;
2091 char alignas (0) alignas (int) c23_aligned_as_int;
2092
2093 // Check alignof.
2094 enum
2095 {
2096 c23_int_alignment = alignof (int),
2097 c23_int_array_alignment = alignof (int[100]),
2098 c23_char_alignment = alignof (char)
2099 };
2100 static_assert (0 < -alignof (int), "alignof is signed");
2101
2102 int function_with_unnamed_parameter (int) { return 0; }
2103
2104 void c23_noreturn ();
2105
2106 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2107 The parens pacify GCC 15. */
2108 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2109
2110 bool check_that_bool_works = true | false | !nullptr;
2111 #if !true
2112 # error "true does not work in #if"
2113 #endif
2114 #if false
2115 #elifdef __STDC_VERSION__
2116 #else
2117 # error "#elifdef does not work"
2118 #endif
2119
2120 #ifndef __has_c_attribute
2121 # error "__has_c_attribute not defined"
2122 #endif
2123
2124 #ifndef __has_include
2125 # error "__has_include not defined"
2126 #endif
2127
2128 #define LPAREN() (
2129 #define FORTY_TWO(x) 42
2130 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2131 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2132
2133 static_assert (0b101010 == 42);
2134 static_assert (0B101010 == 42);
2135 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2136 static_assert (0.500'\''000'\''000 == 0.5);
2137
2138 enum unsignedish : unsigned int { uione = 1 };
2139 static_assert (0 < -uione);
2140
2141 #include <stddef.h>
2142 constexpr nullptr_t null_pointer = nullptr;
2143
2144 static typeof (1 + 1L) two () { return 2; }
2145 static long int three () { return 3; }
2146 '
2147
2148 # Test code for whether the C compiler supports C23 (body of main).
2149 ac_c_conftest_c23_main='
2150 {
2151 label_before_declaration:
2152 int arr[10] = {};
2153 if (arr[0])
2154 goto label_before_declaration;
2155 if (!arr[0])
2156 goto label_at_end_of_block;
2157 label_at_end_of_block:
2158 }
2159 ok |= !null_pointer;
2160 ok |= two != three;
2161 '
2162
2163 # Test code for whether the C compiler supports C23 (complete).
2164 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2165
2166 int
2167 main (int, char **)
2168 {
2169 int ok = 0;
2170 ${ac_c_conftest_c23_main}
2171 return ok;
2172 }
2173 "
2174
2175 # Test code for whether the C compiler supports C89 (global declarations)
2176 ac_c_conftest_c89_globals='
2177 /* Do not test the value of __STDC__, because some compilers define it to 0
2178 or do not define it, while otherwise adequately conforming. */
2179
2180 #include <stddef.h>
2181 #include <stdarg.h>
2182 struct stat;
2183 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2184 struct buf { int x; };
2185 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2186 static char *e (char **p, int i)
2187 {
2188 return p[i];
2189 }
2190 static char *f (char * (*g) (char **, int), char **p, ...)
2191 {
2192 char *s;
2193 va_list v;
2194 va_start (v,p);
2195 s = g (p, va_arg (v,int));
2196 va_end (v);
2197 return s;
2198 }
2199
2200 /* C89 style stringification. */
2201 #define noexpand_stringify(a) #a
2202 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2203
2204 /* C89 style token pasting. Exercises some of the corner cases that
2205 e.g. old MSVC gets wrong, but not very hard. */
2206 #define noexpand_concat(a,b) a##b
2207 #define expand_concat(a,b) noexpand_concat(a,b)
2208 extern int vA;
2209 extern int vbee;
2210 #define aye A
2211 #define bee B
2212 int *pvA = &expand_concat(v,aye);
2213 int *pvbee = &noexpand_concat(v,bee);
2214
2215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2216 function prototypes and stuff, but not \xHH hex character constants.
2217 These do not provoke an error unfortunately, instead are silently treated
2218 as an "x". The following induces an error, until -std is added to get
2219 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2220 array size at least. It is necessary to write \x00 == 0 to get something
2221 that is true only with -std. */
2222 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2223
2224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2225 inside strings and character constants. */
2226 #define FOO(x) '\''x'\''
2227 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2228
2229 int test (int i, double x);
2230 struct s1 {int (*f) (int a);};
2231 struct s2 {int (*f) (double a);};
2232 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2233 int, int);'
2234
2235 # Test code for whether the C compiler supports C89 (body of main).
2236 ac_c_conftest_c89_main='
2237 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2238 '
2239
2240 # Test code for whether the C compiler supports C99 (global declarations)
2241 ac_c_conftest_c99_globals='
2242 /* Does the compiler advertise C99 conformance? */
2243 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2244 # error "Compiler does not advertise C99 conformance"
2245 #endif
2246
2247 // See if C++-style comments work.
2248
2249 #include <stdbool.h>
2250 extern int puts (const char *);
2251 extern int printf (const char *, ...);
2252 extern int dprintf (int, const char *, ...);
2253 extern void *malloc (size_t);
2254 extern void free (void *);
2255
2256 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2257 // dprintf is used instead of fprintf to avoid needing to declare
2258 // FILE and stderr, and "aND" is used instead of "and" to work around
2259 // GCC bug 40564 which is irrelevant here.
2260 #define debug(...) dprintf (2, __VA_ARGS__)
2261 #define showlist(...) puts (#__VA_ARGS__)
2262 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2263 static void
2264 test_varargs_macros (void)
2265 {
2266 int x = 1234;
2267 int y = 5678;
2268 debug ("Flag");
2269 debug ("X = %d\n", x);
2270 showlist (The first, second, aND third items.);
2271 report (x>y, "x is %d but y is %d", x, y);
2272 }
2273
2274 // Check long long types.
2275 #define BIG64 18446744073709551615ull
2276 #define BIG32 4294967295ul
2277 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2278 #if !BIG_OK
2279 #error "your preprocessor is broken"
2280 #endif
2281 #if BIG_OK
2282 #else
2283 #error "your preprocessor is broken"
2284 #endif
2285 static long long int bignum = -9223372036854775807LL;
2286 static unsigned long long int ubignum = BIG64;
2287
2288 struct incomplete_array
2289 {
2290 int datasize;
2291 double data[];
2292 };
2293
2294 struct named_init {
2295 int number;
2296 const wchar_t *name;
2297 double average;
2298 };
2299
2300 typedef const char *ccp;
2301
2302 static inline int
2303 test_restrict (ccp restrict text)
2304 {
2305 // Iterate through items via the restricted pointer.
2306 // Also check for declarations in for loops.
2307 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2308 continue;
2309 return 0;
2310 }
2311
2312 // Check varargs and va_copy.
2313 static bool
2314 test_varargs (const char *format, ...)
2315 {
2316 va_list args;
2317 va_start (args, format);
2318 va_list args_copy;
2319 va_copy (args_copy, args);
2320
2321 const char *str = "";
2322 int number = 0;
2323 float fnumber = 0;
2324
2325 while (*format)
2326 {
2327 switch (*format++)
2328 {
2329 case '\''s'\'': // string
2330 str = va_arg (args_copy, const char *);
2331 break;
2332 case '\''d'\'': // int
2333 number = va_arg (args_copy, int);
2334 break;
2335 case '\''f'\'': // float
2336 fnumber = va_arg (args_copy, double);
2337 break;
2338 default:
2339 break;
2340 }
2341 }
2342 va_end (args_copy);
2343 va_end (args);
2344
2345 return *str && number && fnumber;
2346 }
2347 '
2348
2349 # Test code for whether the C compiler supports C99 (body of main).
2350 ac_c_conftest_c99_main='
2351 // Check bool.
2352 _Bool success = false;
2353 success |= (argc != 0);
2354
2355 // Check restrict.
2356 if (test_restrict ("String literal") == 0)
2357 success = true;
2358 const char *restrict newvar = "Another string";
2359
2360 // Check varargs.
2361 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2362 test_varargs_macros ();
2363
2364 // Check flexible array members.
2365 static struct incomplete_array *volatile incomplete_array_pointer;
2366 struct incomplete_array *ia = incomplete_array_pointer;
2367 ia->datasize = 10;
2368 for (int i = 0; i < ia->datasize; ++i)
2369 ia->data[i] = i * 1.234;
2370 // Work around memory leak warnings.
2371 free (ia);
2372
2373 // Check named initializers.
2374 struct named_init ni = {
2375 .number = 34,
2376 .name = L"Test wide string",
2377 .average = 543.34343,
2378 };
2379
2380 ni.number = 58;
2381
2382 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2383 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2384
2385 // work around unused variable warnings
2386 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2387 || ni.number != 58);
2388 '
2389
2390 # Test code for whether the C compiler supports C11 (global declarations)
2391 ac_c_conftest_c11_globals='
2392 /* Does the compiler advertise C11 conformance? */
2393 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2394 # error "Compiler does not advertise C11 conformance"
2395 #endif
2396
2397 // Check _Alignas.
2398 char _Alignas (double) aligned_as_double;
2399 char _Alignas (0) no_special_alignment;
2400 extern char aligned_as_int;
2401 char _Alignas (0) _Alignas (int) aligned_as_int;
2402
2403 // Check _Alignof.
2404 enum
2405 {
2406 int_alignment = _Alignof (int),
2407 int_array_alignment = _Alignof (int[100]),
2408 char_alignment = _Alignof (char)
2409 };
2410 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2411
2412 // Check _Noreturn.
2413 int _Noreturn does_not_return (void) { for (;;) continue; }
2414
2415 // Check _Static_assert.
2416 struct test_static_assert
2417 {
2418 int x;
2419 _Static_assert (sizeof (int) <= sizeof (long int),
2420 "_Static_assert does not work in struct");
2421 long int y;
2422 };
2423
2424 // Check UTF-8 literals.
2425 #define u8 syntax error!
2426 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2427
2428 // Check duplicate typedefs.
2429 typedef long *long_ptr;
2430 typedef long int *long_ptr;
2431 typedef long_ptr long_ptr;
2432
2433 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2434 struct anonymous
2435 {
2436 union {
2437 struct { int i; int j; };
2438 struct { int k; long int l; } w;
2439 };
2440 int m;
2441 } v1;
2442 '
2443
2444 # Test code for whether the C compiler supports C11 (body of main).
2445 ac_c_conftest_c11_main='
2446 _Static_assert ((offsetof (struct anonymous, i)
2447 == offsetof (struct anonymous, w.k)),
2448 "Anonymous union alignment botch");
2449 v1.i = 2;
2450 v1.w.k = 5;
2451 ok |= v1.i != 5;
2452 '
2453
2454 # Test code for whether the C compiler supports C11 (complete).
2455 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2456 ${ac_c_conftest_c99_globals}
2457 ${ac_c_conftest_c11_globals}
2458
2459 int
2460 main (int argc, char **argv)
2461 {
2462 int ok = 0;
2463 ${ac_c_conftest_c89_main}
2464 ${ac_c_conftest_c99_main}
2465 ${ac_c_conftest_c11_main}
2466 return ok;
2467 }
2468 "
2469
2470 # Test code for whether the C compiler supports C99 (complete).
2471 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2472 ${ac_c_conftest_c99_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 ${ac_c_conftest_c99_main}
2480 return ok;
2481 }
2482 "
2483
2484 # Test code for whether the C compiler supports C89 (complete).
2485 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2486
2487 int
2488 main (int argc, char **argv)
2489 {
2490 int ok = 0;
2491 ${ac_c_conftest_c89_main}
2492 return ok;
2493 }
2494 "
2495
2496 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2497 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2498 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2499 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2500 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2501 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2502 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2503 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2504 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2505 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2506
2507 # Auxiliary files required by this configure script.
2508 ac_aux_files="config.guess config.sub missing install-sh compile"
2509
2510 # Locations in which to look for auxiliary files.
2511 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2512
2513 # Search for a directory containing all of the required auxiliary files,
2514 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2515 # If we don't find one directory that contains all the files we need,
2516 # we report the set of missing files from the *first* directory in
2517 # $ac_aux_dir_candidates and give up.
2518 ac_missing_aux_files=""
2519 ac_first_candidate=:
2520 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 as_found=false
2523 for as_dir in $ac_aux_dir_candidates
2524 do
2525 IFS=$as_save_IFS
2526 case $as_dir in #(((
2527 '') as_dir=./ ;;
2528 */) ;;
2529 *) as_dir=$as_dir/ ;;
2530 esac
2531 as_found=:
2532
2533 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2534 ac_aux_dir_found=yes
2535 ac_install_sh=
2536 for ac_aux in $ac_aux_files
2537 do
2538 # As a special case, if "install-sh" is required, that requirement
2539 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2540 # and $ac_install_sh is set appropriately for whichever one is found.
2541 if test x"$ac_aux" = x"install-sh"
2542 then
2543 if test -f "${as_dir}install-sh"; then
2544 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2545 ac_install_sh="${as_dir}install-sh -c"
2546 elif test -f "${as_dir}install.sh"; then
2547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2548 ac_install_sh="${as_dir}install.sh -c"
2549 elif test -f "${as_dir}shtool"; then
2550 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2551 ac_install_sh="${as_dir}shtool install -c"
2552 else
2553 ac_aux_dir_found=no
2554 if $ac_first_candidate; then
2555 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2556 else
2557 break
2558 fi
2559 fi
2560 else
2561 if test -f "${as_dir}${ac_aux}"; then
2562 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2563 else
2564 ac_aux_dir_found=no
2565 if $ac_first_candidate; then
2566 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2567 else
2568 break
2569 fi
2570 fi
2571 fi
2572 done
2573 if test "$ac_aux_dir_found" = yes; then
2574 ac_aux_dir="$as_dir"
2575 break
2576 fi
2577 ac_first_candidate=false
2578
2579 as_found=false
2580 done
2581 IFS=$as_save_IFS
2582 if $as_found
2583 then :
2584
2585 else case e in #(
2586 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2587 esac
2588 fi
2589
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 if test -f "${ac_aux_dir}config.guess"; then
2596 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2597 fi
2598 if test -f "${ac_aux_dir}config.sub"; then
2599 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2600 fi
2601 if test -f "$ac_aux_dir/configure"; then
2602 ac_configure="$SHELL ${ac_aux_dir}configure"
2603 fi
2604
2605 # Check that the precious variables saved in the cache have kept the same
2606 # value.
2607 ac_cache_corrupted=false
2608 for ac_var in $ac_precious_vars; do
2609 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2610 eval ac_new_set=\$ac_env_${ac_var}_set
2611 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2612 eval ac_new_val=\$ac_env_${ac_var}_value
2613 case $ac_old_set,$ac_new_set in
2614 set,)
2615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2616 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2617 ac_cache_corrupted=: ;;
2618 ,set)
2619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2620 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,);;
2623 *)
2624 if test "x$ac_old_val" != "x$ac_new_val"; then
2625 # differences in whitespace do not lead to failure.
2626 ac_old_val_w=
2627 for ac_val in x $ac_old_val; do
2628 ac_old_val_w="$ac_old_val_w $ac_val"
2629 done
2630 ac_new_val_w=
2631 for ac_val in x $ac_new_val; do
2632 ac_new_val_w="$ac_new_val_w $ac_val"
2633 done
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2636 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted=:
2638 else
2639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2640 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\$ac_old_val
2642 fi
2643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2644 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2646 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2647 fi;;
2648 esac
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2651 case $ac_new_val in
2652 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg=$ac_var=$ac_new_val ;;
2654 esac
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2658 esac
2659 fi
2660 done
2661 if $ac_cache_corrupted; then
2662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2663 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2667 and start over" "$LINENO" 5
2668 fi
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2672
2673
2674 # Determine whether it's possible to make 'echo' print without a newline.
2675 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2676 # for compatibility with existing Makefiles.
2677 ECHO_C= ECHO_N= ECHO_T=
2678 case `echo -n x` in #(((((
2679 -n*)
2680 case `echo 'xy\c'` in
2681 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2682 xy) ECHO_C='\c';;
2683 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2684 ECHO_T=' ';;
2685 esac;;
2686 *)
2687 ECHO_N='-n';;
2688 esac
2689
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695
2696
2697
2698 ac_config_headers="$ac_config_headers config.h"
2699
2700 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2701 # Must be called before any macros that run the compiler (like LT_INIT)
2702 # to avoid autoconf errors.
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717 # Expand $ac_aux_dir to an absolute path.
2718 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 printf %s "checking for $ac_word... " >&6; }
2730 if test ${ac_cv_prog_CC+y}
2731 then :
2732 printf %s "(cached) " >&6
2733 else case e in #(
2734 e) if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 case $as_dir in #(((
2742 '') as_dir=./ ;;
2743 */) ;;
2744 *) as_dir=$as_dir/ ;;
2745 esac
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi ;;
2757 esac
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 printf '%s\n' "$CC" >&6; }
2763 else
2764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 printf '%s\n' "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_CC"; then
2771 ac_ct_CC=$CC
2772 # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 printf %s "checking for $ac_word... " >&6; }
2776 if test ${ac_cv_prog_ac_ct_CC+y}
2777 then :
2778 printf %s "(cached) " >&6
2779 else case e in #(
2780 e) if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 case $as_dir in #(((
2788 '') as_dir=./ ;;
2789 */) ;;
2790 *) as_dir=$as_dir/ ;;
2791 esac
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="gcc"
2795 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi ;;
2803 esac
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 printf '%s\n' "$ac_ct_CC" >&6; }
2809 else
2810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 printf '%s\n' "no" >&6; }
2812 fi
2813
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2824 fi
2825 else
2826 CC="$ac_cv_prog_CC"
2827 fi
2828
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
2833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 printf %s "checking for $ac_word... " >&6; }
2835 if test ${ac_cv_prog_CC+y}
2836 then :
2837 printf %s "(cached) " >&6
2838 else case e in #(
2839 e) if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 case $as_dir in #(((
2847 '') as_dir=./ ;;
2848 */) ;;
2849 *) as_dir=$as_dir/ ;;
2850 esac
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi ;;
2862 esac
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 printf '%s\n' "$CC" >&6; }
2868 else
2869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 printf '%s\n' "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 fi
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 printf %s "checking for $ac_word... " >&6; }
2881 if test ${ac_cv_prog_CC+y}
2882 then :
2883 printf %s "(cached) " >&6
2884 else case e in #(
2885 e) if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 ac_prog_rejected=no
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 case $as_dir in #(((
2894 '') as_dir=./ ;;
2895 */) ;;
2896 *) as_dir=$as_dir/ ;;
2897 esac
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2902 continue
2903 fi
2904 ac_cv_prog_CC="cc"
2905 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2922 fi
2923 fi
2924 fi ;;
2925 esac
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 printf '%s\n' "$CC" >&6; }
2931 else
2932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf '%s\n' "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 printf %s "checking for $ac_word... " >&6; }
2946 if test ${ac_cv_prog_CC+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else case e in #(
2950 e) if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 case $as_dir in #(((
2958 '') as_dir=./ ;;
2959 */) ;;
2960 *) as_dir=$as_dir/ ;;
2961 esac
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2965 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi ;;
2973 esac
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 printf '%s\n' "$CC" >&6; }
2979 else
2980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 printf '%s\n' "no" >&6; }
2982 fi
2983
2984
2985 test -n "$CC" && break
2986 done
2987 fi
2988 if test -z "$CC"; then
2989 ac_ct_CC=$CC
2990 for ac_prog in cl.exe
2991 do
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 printf %s "checking for $ac_word... " >&6; }
2996 if test ${ac_cv_prog_ac_ct_CC+y}
2997 then :
2998 printf %s "(cached) " >&6
2999 else case e in #(
3000 e) if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 case $as_dir in #(((
3008 '') as_dir=./ ;;
3009 */) ;;
3010 *) as_dir=$as_dir/ ;;
3011 esac
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3014 ac_cv_prog_ac_ct_CC="$ac_prog"
3015 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi ;;
3023 esac
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028 printf '%s\n' "$ac_ct_CC" >&6; }
3029 else
3030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 printf '%s\n' "no" >&6; }
3032 fi
3033
3034
3035 test -n "$ac_ct_CC" && break
3036 done
3037
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3048 fi
3049 fi
3050
3051 fi
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}clang; ac_word=$2
3056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 printf %s "checking for $ac_word... " >&6; }
3058 if test ${ac_cv_prog_CC+y}
3059 then :
3060 printf %s "(cached) " >&6
3061 else case e in #(
3062 e) if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 case $as_dir in #(((
3070 '') as_dir=./ ;;
3071 */) ;;
3072 *) as_dir=$as_dir/ ;;
3073 esac
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}clang"
3077 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi ;;
3085 esac
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 printf '%s\n' "$CC" >&6; }
3091 else
3092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 printf '%s\n' "no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$ac_cv_prog_CC"; then
3099 ac_ct_CC=$CC
3100 # Extract the first word of "clang", so it can be a program name with args.
3101 set dummy clang; ac_word=$2
3102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 printf %s "checking for $ac_word... " >&6; }
3104 if test ${ac_cv_prog_ac_ct_CC+y}
3105 then :
3106 printf %s "(cached) " >&6
3107 else case e in #(
3108 e) if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 case $as_dir in #(((
3116 '') as_dir=./ ;;
3117 */) ;;
3118 *) as_dir=$as_dir/ ;;
3119 esac
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="clang"
3123 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi ;;
3131 esac
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 printf '%s\n' "$ac_ct_CC" >&6; }
3137 else
3138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 printf '%s\n' "no" >&6; }
3140 fi
3141
3142 if test "x$ac_ct_CC" = x; then
3143 CC=""
3144 else
3145 case $cross_compiling:$ac_tool_warned in
3146 yes:)
3147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3148 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3149 ac_tool_warned=yes ;;
3150 esac
3151 CC=$ac_ct_CC
3152 fi
3153 else
3154 CC="$ac_cv_prog_CC"
3155 fi
3156
3157 fi
3158
3159
3160 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3161 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3162 as_fn_error $? "no acceptable C compiler found in \$PATH
3163 See 'config.log' for more details" "$LINENO" 5; }
3164
3165 # Provide some information about the compiler.
3166 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3167 set X $ac_compile
3168 ac_compiler=$2
3169 for ac_option in --version -v -V -qversion -version; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 printf '%s\n' "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3178 ac_status=$?
3179 if test -s conftest.err; then
3180 sed '10a\
3181 ... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
3184 fi
3185 rm -f conftest.er1 conftest.err
3186 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 done
3189
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192
3193 int
3194 main (void)
3195 {
3196
3197 ;
3198 return 0;
3199 }
3200 _ACEOF
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3205 # of exeext.
3206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207 printf %s "checking whether the C compiler works... " >&6; }
3208 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210 # The possible output files:
3211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
3213 ac_rmfiles=
3214 for ac_file in $ac_files
3215 do
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 esac
3220 done
3221 rm -f $ac_rmfiles
3222
3223 if { { ac_try="$ac_link_default"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 printf '%s\n' "$ac_try_echo"; } >&5
3230 (eval "$ac_link_default") 2>&5
3231 ac_status=$?
3232 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }
3234 then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3236 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 ;;
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 fi
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an '-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3261 * )
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else case e in #(
3268 e) ac_file='' ;;
3269 esac
3270 fi
3271 if test -z "$ac_file"
3272 then :
3273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 printf '%s\n' "no" >&6; }
3275 printf '%s\n' "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3279 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3280 as_fn_error 77 "C compiler cannot create executables
3281 See 'config.log' for more details" "$LINENO" 5; }
3282 else case e in #(
3283 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 printf '%s\n' "yes" >&6; } ;;
3285 esac
3286 fi
3287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288 printf %s "checking for C compiler default output file name... " >&6; }
3289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3290 printf '%s\n' "$ac_file" >&6; }
3291 ac_exeext=$ac_cv_exeext
3292
3293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3294 ac_clean_files=$ac_clean_files_save
3295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 printf %s "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 printf '%s\n' "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3305 ac_status=$?
3306 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3308 then :
3309 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3310 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3311 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3312 # 'rm'.
3313 for ac_file in conftest.exe conftest conftest.*; do
3314 test -f "$ac_file" || continue
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 break;;
3319 * ) break;;
3320 esac
3321 done
3322 else case e in #(
3323 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3324 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3326 See 'config.log' for more details" "$LINENO" 5; } ;;
3327 esac
3328 fi
3329 rm -f conftest conftest$ac_cv_exeext
3330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3331 printf '%s\n' "$ac_cv_exeext" >&6; }
3332
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3335 ac_exeext=$EXEEXT
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338 #include <stdio.h>
3339 int
3340 main (void)
3341 {
3342 FILE *f = fopen ("conftest.out", "w");
3343 if (!f)
3344 return 1;
3345 return ferror (f) || fclose (f) != 0;
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 ac_clean_files="$ac_clean_files conftest.out"
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3355 printf %s "checking whether we are cross compiling... " >&6; }
3356 if test "$cross_compiling" != yes; then
3357 { { ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 printf '%s\n' "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3365 ac_status=$?
3366 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 if { ac_try='./conftest$ac_cv_exeext'
3369 { { case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 printf '%s\n' "$ac_try_echo"; } >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3385 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3386 as_fn_error 77 "cannot run C compiled programs.
3387 If you meant to cross compile, use '--host'.
3388 See 'config.log' for more details" "$LINENO" 5; }
3389 fi
3390 fi
3391 fi
3392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3393 printf '%s\n' "$cross_compiling" >&6; }
3394
3395 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3396 conftest.o conftest.obj conftest.out
3397 ac_clean_files=$ac_clean_files_save
3398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3399 printf %s "checking for suffix of object files... " >&6; }
3400 if test ${ac_cv_objext+y}
3401 then :
3402 printf %s "(cached) " >&6
3403 else case e in #(
3404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3406
3407 int
3408 main (void)
3409 {
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.o conftest.obj
3416 if { { ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 printf '%s\n' "$ac_try_echo"; } >&5
3423 (eval "$ac_compile") 2>&5
3424 ac_status=$?
3425 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }
3427 then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433 break;;
3434 esac
3435 done
3436 else case e in #(
3437 e) printf '%s\n' "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3441 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot compute suffix of object files: cannot compile
3443 See 'config.log' for more details" "$LINENO" 5; } ;;
3444 esac
3445 fi
3446 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3447 esac
3448 fi
3449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 printf '%s\n' "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3454 printf %s "checking whether the compiler supports GNU C... " >&6; }
3455 if test ${ac_cv_c_compiler_gnu+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else case e in #(
3459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main (void)
3464 {
3465 #ifndef __GNUC__
3466 choke me
3467 #endif
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"
3474 then :
3475 ac_compiler_gnu=yes
3476 else case e in #(
3477 e) ac_compiler_gnu=no ;;
3478 esac
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482 ;;
3483 esac
3484 fi
3485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3486 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489 if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491 else
3492 GCC=
3493 fi
3494 ac_test_CFLAGS=${CFLAGS+y}
3495 ac_save_CFLAGS=$CFLAGS
3496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3497 printf %s "checking whether $CC accepts -g... " >&6; }
3498 if test ${ac_cv_prog_cc_g+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else case e in #(
3502 e) ac_save_c_werror_flag=$ac_c_werror_flag
3503 ac_c_werror_flag=yes
3504 ac_cv_prog_cc_g=no
3505 CFLAGS="-g"
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508
3509 int
3510 main (void)
3511 {
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"
3518 then :
3519 ac_cv_prog_cc_g=yes
3520 else case e in #(
3521 e) CFLAGS=""
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main (void)
3527 {
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"
3534 then :
3535
3536 else case e in #(
3537 e) ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main (void)
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"
3551 then :
3552 ac_cv_prog_cc_g=yes
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3555 esac
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3558 esac
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3562 esac
3563 fi
3564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3566 if test $ac_test_CFLAGS; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574 else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580 fi
3581 ac_prog_cc_stdc=no
3582 if test x$ac_prog_cc_stdc = xno
3583 then :
3584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3585 printf %s "checking for $CC option to enable C23 features... " >&6; }
3586 if test ${ac_cv_prog_cc_c23+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else case e in #(
3590 e) ac_cv_prog_cc_c23=no
3591 ac_save_CC=$CC
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 $ac_c_conftest_c23_program
3595 _ACEOF
3596 for ac_arg in '' -std=gnu23
3597 do
3598 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"
3600 then :
3601 ac_cv_prog_cc_c23=$ac_arg
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.beam
3604 test "x$ac_cv_prog_cc_c23" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC ;;
3608 esac
3609 fi
3610
3611 if test "x$ac_cv_prog_cc_c23" = xno
3612 then :
3613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3614 printf '%s\n' "unsupported" >&6; }
3615 else case e in #(
3616 e) if test "x$ac_cv_prog_cc_c23" = x
3617 then :
3618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 printf '%s\n' "none needed" >&6; }
3620 else case e in #(
3621 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3622 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3623 CC="$CC $ac_cv_prog_cc_c23" ;;
3624 esac
3625 fi
3626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3627 ac_prog_cc_stdc=c23 ;;
3628 esac
3629 fi
3630 fi
3631 if test x$ac_prog_cc_stdc = xno
3632 then :
3633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3634 printf %s "checking for $CC option to enable C11 features... " >&6; }
3635 if test ${ac_cv_prog_cc_c11+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else case e in #(
3639 e) ac_cv_prog_cc_c11=no
3640 ac_save_CC=$CC
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 $ac_c_conftest_c11_program
3644 _ACEOF
3645 for ac_arg in '' -std=gnu11 -std:c11
3646 do
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"
3649 then :
3650 ac_cv_prog_cc_c11=$ac_arg
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.beam
3653 test "x$ac_cv_prog_cc_c11" != "xno" && break
3654 done
3655 rm -f conftest.$ac_ext
3656 CC=$ac_save_CC ;;
3657 esac
3658 fi
3659
3660 if test "x$ac_cv_prog_cc_c11" = xno
3661 then :
3662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3663 printf '%s\n' "unsupported" >&6; }
3664 else case e in #(
3665 e) if test "x$ac_cv_prog_cc_c11" = x
3666 then :
3667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 printf '%s\n' "none needed" >&6; }
3669 else case e in #(
3670 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3671 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3672 CC="$CC $ac_cv_prog_cc_c11" ;;
3673 esac
3674 fi
3675 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3676 ac_prog_cc_stdc=c11 ;;
3677 esac
3678 fi
3679 fi
3680 if test x$ac_prog_cc_stdc = xno
3681 then :
3682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3683 printf %s "checking for $CC option to enable C99 features... " >&6; }
3684 if test ${ac_cv_prog_cc_c99+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else case e in #(
3688 e) ac_cv_prog_cc_c99=no
3689 ac_save_CC=$CC
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 $ac_c_conftest_c99_program
3693 _ACEOF
3694 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3695 do
3696 CC="$ac_save_CC $ac_arg"
3697 if ac_fn_c_try_compile "$LINENO"
3698 then :
3699 ac_cv_prog_cc_c99=$ac_arg
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.beam
3702 test "x$ac_cv_prog_cc_c99" != "xno" && break
3703 done
3704 rm -f conftest.$ac_ext
3705 CC=$ac_save_CC ;;
3706 esac
3707 fi
3708
3709 if test "x$ac_cv_prog_cc_c99" = xno
3710 then :
3711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 printf '%s\n' "unsupported" >&6; }
3713 else case e in #(
3714 e) if test "x$ac_cv_prog_cc_c99" = x
3715 then :
3716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3717 printf '%s\n' "none needed" >&6; }
3718 else case e in #(
3719 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3720 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3721 CC="$CC $ac_cv_prog_cc_c99" ;;
3722 esac
3723 fi
3724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3725 ac_prog_cc_stdc=c99 ;;
3726 esac
3727 fi
3728 fi
3729 if test x$ac_prog_cc_stdc = xno
3730 then :
3731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3732 printf %s "checking for $CC option to enable C89 features... " >&6; }
3733 if test ${ac_cv_prog_cc_c89+y}
3734 then :
3735 printf %s "(cached) " >&6
3736 else case e in #(
3737 e) ac_cv_prog_cc_c89=no
3738 ac_save_CC=$CC
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 $ac_c_conftest_c89_program
3742 _ACEOF
3743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 do
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"
3747 then :
3748 ac_cv_prog_cc_c89=$ac_arg
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.beam
3751 test "x$ac_cv_prog_cc_c89" != "xno" && break
3752 done
3753 rm -f conftest.$ac_ext
3754 CC=$ac_save_CC ;;
3755 esac
3756 fi
3757
3758 if test "x$ac_cv_prog_cc_c89" = xno
3759 then :
3760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761 printf '%s\n' "unsupported" >&6; }
3762 else case e in #(
3763 e) if test "x$ac_cv_prog_cc_c89" = x
3764 then :
3765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766 printf '%s\n' "none needed" >&6; }
3767 else case e in #(
3768 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3769 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3770 CC="$CC $ac_cv_prog_cc_c89" ;;
3771 esac
3772 fi
3773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3774 ac_prog_cc_stdc=c89 ;;
3775 esac
3776 fi
3777 fi
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3792 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3793 if test ${am_cv_prog_cc_c_o+y}
3794 then :
3795 printf %s "(cached) " >&6
3796 else case e in #(
3797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799
3800 int
3801 main (void)
3802 {
3803
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 # Make sure it works both with $CC and with simple cc.
3809 # Following AC_PROG_CC_C_O, we do the test twice because some
3810 # compilers refuse to overwrite an existing .o file with -o,
3811 # though they will create one.
3812 am_cv_prog_cc_c_o=yes
3813 for am_i in 1 2; do
3814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } \
3819 && test -f conftest2.$ac_objext; then
3820 : OK
3821 else
3822 am_cv_prog_cc_c_o=no
3823 break
3824 fi
3825 done
3826 # aligned with autoconf, so not including core; see bug#72225.
3827 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3828 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3829 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3830 unset am_i ;;
3831 esac
3832 fi
3833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3834 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3835 if test "$am_cv_prog_cc_c_o" != yes; then
3836 # Losing compiler, so override with the script.
3837 # FIXME: It is wrong to rewrite CC.
3838 # But if we don't then we get into trouble of one sort or another.
3839 # A longer-term fix would be to have automake use am__CC in this case,
3840 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3841 CC="$am_aux_dir/compile $CC"
3842 fi
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849
3850
3851 ac_header= ac_cache=
3852 for ac_item in $ac_header_c_list
3853 do
3854 if test $ac_cache; then
3855 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3856 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3857 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3858 fi
3859 ac_header= ac_cache=
3860 elif test $ac_header; then
3861 ac_cache=$ac_item
3862 else
3863 ac_header=$ac_item
3864 fi
3865 done
3866
3867
3868
3869
3870
3871
3872
3873
3874 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3875 then :
3876
3877 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
3878
3879 fi
3880
3881
3882
3883
3884
3885
3886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3887 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3888 if test ${ac_cv_safe_to_define___extensions__+y}
3889 then :
3890 printf %s "(cached) " >&6
3891 else case e in #(
3892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894
3895 # define __EXTENSIONS__ 1
3896 $ac_includes_default
3897 int
3898 main (void)
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_compile "$LINENO"
3906 then :
3907 ac_cv_safe_to_define___extensions__=yes
3908 else case e in #(
3909 e) ac_cv_safe_to_define___extensions__=no ;;
3910 esac
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3913 esac
3914 fi
3915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3916 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
3917
3918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3919 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3920 if test ${ac_cv_should_define__xopen_source+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else case e in #(
3924 e) ac_cv_should_define__xopen_source=no
3925 if test $ac_cv_header_wchar_h = yes
3926 then :
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 #include <wchar.h>
3931 mbstate_t x;
3932 int
3933 main (void)
3934 {
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"
3941 then :
3942
3943 else case e in #(
3944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946
3947 #define _XOPEN_SOURCE 500
3948 #include <wchar.h>
3949 mbstate_t x;
3950 int
3951 main (void)
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"
3959 then :
3960 ac_cv_should_define__xopen_source=yes
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3963 esac
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3966 fi ;;
3967 esac
3968 fi
3969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3970 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
3971
3972 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
3973
3974 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
3975
3976 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3977
3978 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
3979
3980 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3981
3982 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
3983
3984 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
3985
3986 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3987
3988 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3989
3990 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3991
3992 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3993
3994 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3995
3996 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3997
3998 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3999
4000 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4001
4002 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4003
4004 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4005
4006 if test $ac_cv_header_minix_config_h = yes
4007 then :
4008 MINIX=yes
4009 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4010
4011 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4012
4013 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4014
4015 else case e in #(
4016 e) MINIX= ;;
4017 esac
4018 fi
4019 if test $ac_cv_safe_to_define___extensions__ = yes
4020 then :
4021 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4022
4023 fi
4024 if test $ac_cv_should_define__xopen_source = yes
4025 then :
4026 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4027
4028 fi
4029
4030
4031 # Initialize Automake
4032 am__api_version='1.18'
4033
4034
4035 # Find a good install program. We prefer a C program (faster),
4036 # so one script is as good as another. But avoid the broken or
4037 # incompatible versions:
4038 # SysV /etc/install, /usr/sbin/install
4039 # SunOS /usr/etc/install
4040 # IRIX /sbin/install
4041 # AIX /bin/install
4042 # AmigaOS /C/install, which installs bootblocks on floppy discs
4043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4046 # OS/2's system install, which has a completely different semantic
4047 # ./install, which can be erroneously created by make from ./install.sh.
4048 # Reject install programs that cannot install multiple files.
4049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4050 printf %s "checking for a BSD-compatible install... " >&6; }
4051 if test -z "$INSTALL"; then
4052 if test ${ac_cv_path_install+y}
4053 then :
4054 printf %s "(cached) " >&6
4055 else case e in #(
4056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059 IFS=$as_save_IFS
4060 case $as_dir in #(((
4061 '') as_dir=./ ;;
4062 */) ;;
4063 *) as_dir=$as_dir/ ;;
4064 esac
4065 # Account for fact that we put trailing slashes in our PATH walk.
4066 case $as_dir in #((
4067 ./ | /[cC]/* | \
4068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4070 /usr/ucb/* ) ;;
4071 *)
4072 # OSF/1 and SCO ODT 3.0 have their own names for install.
4073 # Don't use installbsd from OSF/1 since it installs stuff as root
4074 # by default.
4075 for ac_prog in ginstall scoinst install; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4078 if test $ac_prog = install &&
4079 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080 # AIX install. It has an incompatible calling convention.
4081 :
4082 elif test $ac_prog = install &&
4083 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084 # program-specific install script used by HP pwplus--don't use.
4085 :
4086 else
4087 rm -rf conftest.one conftest.two conftest.dir
4088 echo one > conftest.one
4089 echo two > conftest.two
4090 mkdir conftest.dir
4091 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4092 test -s conftest.one && test -s conftest.two &&
4093 test -s conftest.dir/conftest.one &&
4094 test -s conftest.dir/conftest.two
4095 then
4096 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4097 break 3
4098 fi
4099 fi
4100 fi
4101 done
4102 done
4103 ;;
4104 esac
4105
4106 done
4107 IFS=$as_save_IFS
4108
4109 rm -rf conftest.one conftest.two conftest.dir
4110 ;;
4111 esac
4112 fi
4113 if test ${ac_cv_path_install+y}; then
4114 INSTALL=$ac_cv_path_install
4115 else
4116 # As a last resort, use the slow shell script. Don't cache a
4117 # value for INSTALL within a source directory, because that will
4118 # break other packages using the cache if that directory is
4119 # removed, or if the value is a relative name.
4120 INSTALL=$ac_install_sh
4121 fi
4122 fi
4123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4124 printf '%s\n' "$INSTALL" >&6; }
4125
4126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4127 # It thinks the first close brace ends the variable substitution.
4128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4129
4130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4131
4132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4133
4134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4135 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4136 if test ${am_cv_sleep_fractional_seconds+y}
4137 then :
4138 printf %s "(cached) " >&6
4139 else case e in #(
4140 e) if sleep 0.001 2>/dev/null
4141 then :
4142 am_cv_sleep_fractional_seconds=yes
4143 else case e in #(
4144 e) am_cv_sleep_fractional_seconds=no ;;
4145 esac
4146 fi
4147 ;;
4148 esac
4149 fi
4150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4151 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4152
4153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4154 printf %s "checking filesystem timestamp resolution... " >&6; }
4155 if test ${am_cv_filesystem_timestamp_resolution+y}
4156 then :
4157 printf %s "(cached) " >&6
4158 else case e in #(
4159 e) # Default to the worst case.
4160 am_cv_filesystem_timestamp_resolution=2
4161
4162 # Only try to go finer than 1 sec if sleep can do it.
4163 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4164 # - 1 sec is not much of a win compared to 2 sec, and
4165 # - it takes 2 seconds to perform the test whether 1 sec works.
4166 #
4167 # Instead, just use the default 2s on platforms that have 1s resolution,
4168 # accept the extra 1s delay when using $sleep in the Automake tests, in
4169 # exchange for not incurring the 2s delay for running the test for all
4170 # packages.
4171 #
4172 am_try_resolutions=
4173 if test "$am_cv_sleep_fractional_seconds" = yes; then
4174 # Even a millisecond often causes a bunch of false positives,
4175 # so just try a hundredth of a second. The time saved between .001 and
4176 # .01 is not terribly consequential.
4177 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4178 fi
4179
4180 # In order to catch current-generation FAT out, we must *modify* files
4181 # that already exist; the *creation* timestamp is finer. Use names
4182 # that make ls -t sort them differently when they have equal
4183 # timestamps than when they have distinct timestamps, keeping
4184 # in mind that ls -t prints the *newest* file first.
4185 rm -f conftest.ts?
4186 : > conftest.ts1
4187 : > conftest.ts2
4188 : > conftest.ts3
4189
4190 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4191 # clobber the current shell's arguments. (Outer-level square brackets
4192 # are removed by m4; they're present so that m4 does not expand
4193 # <dollar><star>; be careful, easy to get confused.)
4194 if (
4195 set X `ls -t conftest.ts[12]` &&
4196 {
4197 test "$*" != "X conftest.ts1 conftest.ts2" ||
4198 test "$*" != "X conftest.ts2 conftest.ts1";
4199 }
4200 ); then :; else
4201 # If neither matched, then we have a broken ls. This can happen
4202 # if, for instance, CONFIG_SHELL is bash and it inherits a
4203 # broken ls alias from the environment. This has actually
4204 # happened. Such a system could not be considered "sane".
4205 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4206 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4207 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4208 as_fn_error $? "ls -t produces unexpected output.
4209 Make sure there is not a broken ls alias in your environment.
4210 See 'config.log' for more details" "$LINENO" 5; }
4211 fi
4212
4213 for am_try_res in $am_try_resolutions; do
4214 # Any one fine-grained sleep might happen to cross the boundary
4215 # between two values of a coarser actual resolution, but if we do
4216 # two fine-grained sleeps in a row, at least one of them will fall
4217 # entirely within a coarse interval.
4218 echo alpha > conftest.ts1
4219 sleep $am_try_res
4220 echo beta > conftest.ts2
4221 sleep $am_try_res
4222 echo gamma > conftest.ts3
4223
4224 # We assume that 'ls -t' will make use of high-resolution
4225 # timestamps if the operating system supports them at all.
4226 if (set X `ls -t conftest.ts?` &&
4227 test "$2" = conftest.ts3 &&
4228 test "$3" = conftest.ts2 &&
4229 test "$4" = conftest.ts1); then
4230 #
4231 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4232 # because we don't need to test make.
4233 make_ok=true
4234 if test $am_try_res != 1; then
4235 # But if we've succeeded so far with a subsecond resolution, we
4236 # have one more thing to check: make. It can happen that
4237 # everything else supports the subsecond mtimes, but make doesn't;
4238 # notably on macOS, which ships make 3.81 from 2006 (the last one
4239 # released under GPLv2). https://bugs.gnu.org/68808
4240 #
4241 # We test $MAKE if it is defined in the environment, else "make".
4242 # It might get overridden later, but our hope is that in practice
4243 # it does not matter: it is the system "make" which is (by far)
4244 # the most likely to be broken, whereas if the user overrides it,
4245 # probably they did so with a better, or at least not worse, make.
4246 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4247 #
4248 # Create a Makefile (real tab character here):
4249 rm -f conftest.mk
4250 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4251 echo ' touch conftest.ts2' >>conftest.mk
4252 #
4253 # Now, running
4254 # touch conftest.ts1; touch conftest.ts2; make
4255 # should touch ts1 because ts2 is newer. This could happen by luck,
4256 # but most often, it will fail if make's support is insufficient. So
4257 # test for several consecutive successes.
4258 #
4259 # (We reuse conftest.ts[12] because we still want to modify existing
4260 # files, not create new ones, per above.)
4261 n=0
4262 make=${MAKE-make}
4263 until test $n -eq 3; do
4264 echo one > conftest.ts1
4265 sleep $am_try_res
4266 echo two > conftest.ts2 # ts2 should now be newer than ts1
4267 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4268 make_ok=false
4269 break # out of $n loop
4270 fi
4271 n=`expr $n + 1`
4272 done
4273 fi
4274 #
4275 if $make_ok; then
4276 # Everything we know to check worked out, so call this resolution good.
4277 am_cv_filesystem_timestamp_resolution=$am_try_res
4278 break # out of $am_try_res loop
4279 fi
4280 # Otherwise, we'll go on to check the next resolution.
4281 fi
4282 done
4283 rm -f conftest.ts?
4284 # (end _am_filesystem_timestamp_resolution)
4285 ;;
4286 esac
4287 fi
4288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4289 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4290
4291 # This check should not be cached, as it may vary across builds of
4292 # different projects.
4293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4294 printf %s "checking whether build environment is sane... " >&6; }
4295 # Reject unsafe characters in $srcdir or the absolute working directory
4296 # name. Accept space and tab only in the latter.
4297 am_lf='
4298 '
4299 case `pwd` in
4300 *[\\\"\#\$\&\'\`$am_lf]*)
4301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 printf '%s\n' "no" >&6; }
4303 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4304 esac
4305 case $srcdir in
4306 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 printf '%s\n' "no" >&6; }
4309 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4310 esac
4311
4312 # Do 'set' in a subshell so we don't clobber the current shell's
4313 # arguments. Must try -L first in case configure is actually a
4314 # symlink; some systems play weird games with the mod time of symlinks
4315 # (eg FreeBSD returns the mod time of the symlink's containing
4316 # directory).
4317 am_build_env_is_sane=no
4318 am_has_slept=no
4319 rm -f conftest.file
4320 for am_try in 1 2; do
4321 echo "timestamp, slept: $am_has_slept" > conftest.file
4322 if (
4323 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4324 if test "$*" = "X"; then
4325 # -L didn't work.
4326 set X `ls -t "$srcdir/configure" conftest.file`
4327 fi
4328 test "$2" = conftest.file
4329 ); then
4330 am_build_env_is_sane=yes
4331 break
4332 fi
4333 # Just in case.
4334 sleep "$am_cv_filesystem_timestamp_resolution"
4335 am_has_slept=yes
4336 done
4337
4338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4339 printf '%s\n' "$am_build_env_is_sane" >&6; }
4340 if test "$am_build_env_is_sane" = no; then
4341 as_fn_error $? "newly created file is older than distributed files!
4342 Check your system clock" "$LINENO" 5
4343 fi
4344
4345 # If we didn't sleep, we still need to ensure time stamps of config.status and
4346 # generated files are strictly newer.
4347 am_sleep_pid=
4348 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4349 then :
4350
4351 else case e in #(
4352 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4353 am_sleep_pid=$!
4354 ;;
4355 esac
4356 fi
4357
4358 rm -f conftest.file
4359
4360 test "$program_prefix" != NONE &&
4361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4362 # Use a double $ so make ignores it.
4363 test "$program_suffix" != NONE &&
4364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4365 # Double any \ or $.
4366 # By default was 's,x,x', remove it if useless.
4367 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4368 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4369
4370
4371 if test x"${MISSING+set}" != xset; then
4372 MISSING="\${SHELL} '$am_aux_dir/missing'"
4373 fi
4374 # Use eval to expand $SHELL
4375 if eval "$MISSING --is-lightweight"; then
4376 am_missing_run="$MISSING "
4377 else
4378 am_missing_run=
4379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4380 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4381 fi
4382
4383 if test x"${install_sh+set}" != xset; then
4384 case $am_aux_dir in
4385 *\ * | *\ *)
4386 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4387 *)
4388 install_sh="\${SHELL} $am_aux_dir/install-sh"
4389 esac
4390 fi
4391
4392 # Installed binaries are usually stripped using 'strip' when the user
4393 # run "make install-strip". However 'strip' might not be the right
4394 # tool to use in cross-compilation environments, therefore Automake
4395 # will honor the 'STRIP' environment variable to overrule this program.
4396 if test "$cross_compiling" != no; then
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}strip; ac_word=$2
4400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 printf %s "checking for $ac_word... " >&6; }
4402 if test ${ac_cv_prog_STRIP+y}
4403 then :
4404 printf %s "(cached) " >&6
4405 else case e in #(
4406 e) if test -n "$STRIP"; then
4407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412 IFS=$as_save_IFS
4413 case $as_dir in #(((
4414 '') as_dir=./ ;;
4415 */) ;;
4416 *) as_dir=$as_dir/ ;;
4417 esac
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4421 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi ;;
4429 esac
4430 fi
4431 STRIP=$ac_cv_prog_STRIP
4432 if test -n "$STRIP"; then
4433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4434 printf '%s\n' "$STRIP" >&6; }
4435 else
4436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 printf '%s\n' "no" >&6; }
4438 fi
4439
4440
4441 fi
4442 if test -z "$ac_cv_prog_STRIP"; then
4443 ac_ct_STRIP=$STRIP
4444 # Extract the first word of "strip", so it can be a program name with args.
4445 set dummy strip; ac_word=$2
4446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 printf %s "checking for $ac_word... " >&6; }
4448 if test ${ac_cv_prog_ac_ct_STRIP+y}
4449 then :
4450 printf %s "(cached) " >&6
4451 else case e in #(
4452 e) if test -n "$ac_ct_STRIP"; then
4453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458 IFS=$as_save_IFS
4459 case $as_dir in #(((
4460 '') as_dir=./ ;;
4461 */) ;;
4462 *) as_dir=$as_dir/ ;;
4463 esac
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_ac_ct_STRIP="strip"
4467 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 fi ;;
4475 esac
4476 fi
4477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4478 if test -n "$ac_ct_STRIP"; then
4479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4480 printf '%s\n' "$ac_ct_STRIP" >&6; }
4481 else
4482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 printf '%s\n' "no" >&6; }
4484 fi
4485
4486 if test "x$ac_ct_STRIP" = x; then
4487 STRIP=":"
4488 else
4489 case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495 STRIP=$ac_ct_STRIP
4496 fi
4497 else
4498 STRIP="$ac_cv_prog_STRIP"
4499 fi
4500
4501 fi
4502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4503
4504
4505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4506 printf %s "checking for a race-free mkdir -p... " >&6; }
4507 if test -z "$MKDIR_P"; then
4508 if test ${ac_cv_path_mkdir+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else case e in #(
4512 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4514 do
4515 IFS=$as_save_IFS
4516 case $as_dir in #(((
4517 '') as_dir=./ ;;
4518 */) ;;
4519 *) as_dir=$as_dir/ ;;
4520 esac
4521 for ac_prog in mkdir gmkdir; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4524 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4525 'mkdir ('*'coreutils) '* | \
4526 *'BusyBox '* | \
4527 'mkdir (fileutils) '4.1*)
4528 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4529 break 3;;
4530 esac
4531 done
4532 done
4533 done
4534 IFS=$as_save_IFS
4535 ;;
4536 esac
4537 fi
4538
4539 test -d ./--version && rmdir ./--version
4540 if test ${ac_cv_path_mkdir+y}; then
4541 MKDIR_P="$ac_cv_path_mkdir -p"
4542 else
4543 # As a last resort, use plain mkdir -p,
4544 # in the hope it doesn't have the bugs of ancient mkdir.
4545 MKDIR_P='mkdir -p'
4546 fi
4547 fi
4548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4549 printf '%s\n' "$MKDIR_P" >&6; }
4550
4551 for ac_prog in gawk mawk nawk awk 'busybox awk'
4552 do
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 printf %s "checking for $ac_word... " >&6; }
4557 if test ${ac_cv_prog_AWK+y}
4558 then :
4559 printf %s "(cached) " >&6
4560 else case e in #(
4561 e) if test -n "$AWK"; then
4562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 case $as_dir in #(((
4569 '') as_dir=./ ;;
4570 */) ;;
4571 *) as_dir=$as_dir/ ;;
4572 esac
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_AWK="$ac_prog"
4576 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi ;;
4584 esac
4585 fi
4586 AWK=$ac_cv_prog_AWK
4587 if test -n "$AWK"; then
4588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4589 printf '%s\n' "$AWK" >&6; }
4590 else
4591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 printf '%s\n' "no" >&6; }
4593 fi
4594
4595
4596 test -n "$AWK" && break
4597 done
4598
4599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4600 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4601 set x ${MAKE-make}
4602 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4603 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else case e in #(
4607 e) cat >conftest.make <<\_ACEOF
4608 SHELL = /bin/sh
4609 all:
4610 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4611 _ACEOF
4612 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4614 *@@@%%%=?*=@@@%%%*)
4615 eval ac_cv_prog_make_${ac_make}_set=yes;;
4616 *)
4617 eval ac_cv_prog_make_${ac_make}_set=no;;
4618 esac
4619 rm -f conftest.make ;;
4620 esac
4621 fi
4622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624 printf '%s\n' "yes" >&6; }
4625 SET_MAKE=
4626 else
4627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 printf '%s\n' "no" >&6; }
4629 SET_MAKE="MAKE=${MAKE-make}"
4630 fi
4631
4632 rm -rf .tst 2>/dev/null
4633 mkdir .tst 2>/dev/null
4634 if test -d .tst; then
4635 am__leading_dot=.
4636 else
4637 am__leading_dot=_
4638 fi
4639 rmdir .tst 2>/dev/null
4640
4641 DEPDIR="${am__leading_dot}deps"
4642
4643 ac_config_commands="$ac_config_commands depfiles"
4644
4645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4646 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4647 cat > confinc.mk << 'END'
4648 am__doit:
4649 @echo this is the am__doit target >confinc.out
4650 .PHONY: am__doit
4651 END
4652 am__include="#"
4653 am__quote=
4654 # BSD make does it like this.
4655 echo '.include "confinc.mk" # ignored' > confmf.BSD
4656 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4657 echo 'include confinc.mk # ignored' > confmf.GNU
4658 _am_result=no
4659 for s in GNU BSD; do
4660 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4661 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }
4665 case $?:`cat confinc.out 2>/dev/null` in #(
4666 '0:this is the am__doit target') :
4667 case $s in #(
4668 BSD) :
4669 am__include='.include' am__quote='"' ;; #(
4670 *) :
4671 am__include='include' am__quote='' ;;
4672 esac ;; #(
4673 *) :
4674 ;;
4675 esac
4676 if test "$am__include" != "#"; then
4677 _am_result="yes ($s style)"
4678 break
4679 fi
4680 done
4681 rm -f confinc.* confmf.*
4682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4683 printf '%s\n' "${_am_result}" >&6; }
4684
4685 # Check whether --enable-dependency-tracking was given.
4686 if test ${enable_dependency_tracking+y}
4687 then :
4688 enableval=$enable_dependency_tracking;
4689 fi
4690
4691 if test "x$enable_dependency_tracking" != xno; then
4692 am_depcomp="$ac_aux_dir/depcomp"
4693 AMDEPBACKSLASH='\'
4694 am__nodep='_no'
4695 fi
4696 if test "x$enable_dependency_tracking" != xno; then
4697 AMDEP_TRUE=
4698 AMDEP_FALSE='#'
4699 else
4700 AMDEP_TRUE='#'
4701 AMDEP_FALSE=
4702 fi
4703
4704
4705 AM_DEFAULT_VERBOSITY=1
4706 # Check whether --enable-silent-rules was given.
4707 if test ${enable_silent_rules+y}
4708 then :
4709 enableval=$enable_silent_rules;
4710 fi
4711
4712 am_make=${MAKE-make}
4713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4714 printf %s "checking whether $am_make supports nested variables... " >&6; }
4715 if test ${am_cv_make_support_nested_variables+y}
4716 then :
4717 printf %s "(cached) " >&6
4718 else case e in #(
4719 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4720 BAR0=false
4721 BAR1=true
4722 V=1
4723 am__doit:
4724 @$(TRUE)
4725 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4726 am_cv_make_support_nested_variables=yes
4727 else
4728 am_cv_make_support_nested_variables=no
4729 fi ;;
4730 esac
4731 fi
4732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4733 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4734 AM_BACKSLASH='\'
4735
4736 am__rm_f_notfound=
4737 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4738 then :
4739
4740 else case e in #(
4741 e) am__rm_f_notfound='""' ;;
4742 esac
4743 fi
4744
4745
4746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4747 printf %s "checking xargs -n works... " >&6; }
4748 if test ${am_cv_xargs_n_works+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else case e in #(
4752 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4753 3"
4754 then :
4755 am_cv_xargs_n_works=yes
4756 else case e in #(
4757 e) am_cv_xargs_n_works=no ;;
4758 esac
4759 fi ;;
4760 esac
4761 fi
4762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4763 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4764 if test "$am_cv_xargs_n_works" = yes
4765 then :
4766 am__xargs_n='xargs -n'
4767 else case e in #(
4768 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4769 ;;
4770 esac
4771 fi
4772
4773 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4774 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4775 # is not polluted with repeated "-I."
4776 am__isrc=' -I$(srcdir)'
4777 # test to see if srcdir already configured
4778 if test -f $srcdir/config.status; then
4779 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4780 fi
4781 fi
4782
4783 # test whether we have cygpath
4784 if test -z "$CYGPATH_W"; then
4785 if (cygpath --version) >/dev/null 2>/dev/null; then
4786 CYGPATH_W='cygpath -w'
4787 else
4788 CYGPATH_W=echo
4789 fi
4790 fi
4791
4792
4793 # Define the identity of the package.
4794 PACKAGE='font-util'
4795 VERSION='1.4.2'
4796
4797
4798 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4799
4800
4801 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4802
4803 # Some tools Automake needs.
4804
4805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4806
4807
4808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4809
4810
4811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4812
4813
4814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4815
4816
4817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4818
4819 # For better backward compatibility. To be removed once Automake 1.9.x
4820 # dies out for good. For more background, see:
4821 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4822 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4823 mkdir_p='$(MKDIR_P)'
4824
4825 # We need awk for the "check" target (and possibly the TAP driver). The
4826 # system "awk" is bad on some platforms.
4827 # Always define AMTAR for backward compatibility. Yes, it's still used
4828 # in the wild :-( We should find a proper way to deprecate it ...
4829 AMTAR='$${TAR-tar}'
4830
4831
4832 # We'll loop over all known methods to create a tar archive until one works.
4833 _am_tools='gnutar plaintar pax cpio none'
4834
4835 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4836 # There is notably a 21 bits limit for the UID and the GID. In fact,
4837 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4838 # and bug#13588).
4839 am_max_uid=2097151 # 2^21 - 1
4840 am_max_gid=$am_max_uid
4841 # The $UID and $GID variables are not portable, so we need to resort
4842 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4843 # below are definitely unexpected, so allow the users to see them
4844 # (that is, avoid stderr redirection).
4845 am_uid=`id -u || echo unknown`
4846 am_gid=`id -g || echo unknown`
4847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4848 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4849 if test x$am_uid = xunknown; then
4850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4851 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4852 elif test $am_uid -le $am_max_uid; then
4853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 printf '%s\n' "yes" >&6; }
4855 else
4856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 printf '%s\n' "no" >&6; }
4858 _am_tools=none
4859 fi
4860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4861 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4862 if test x$gm_gid = xunknown; then
4863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4864 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4865 elif test $am_gid -le $am_max_gid; then
4866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 printf '%s\n' "yes" >&6; }
4868 else
4869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 printf '%s\n' "no" >&6; }
4871 _am_tools=none
4872 fi
4873
4874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4875 printf %s "checking how to create a ustar tar archive... " >&6; }
4876
4877 # Go ahead even if we have the value already cached. We do so because we
4878 # need to set the values for the 'am__tar' and 'am__untar' variables.
4879 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4880
4881 for _am_tool in $_am_tools; do
4882 case $_am_tool in
4883 gnutar)
4884 for _am_tar in tar gnutar gtar; do
4885 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4886 ($_am_tar --version) >&5 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && break
4890 done
4891 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4892 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4893 am__untar="$_am_tar -xf -"
4894 ;;
4895 plaintar)
4896 # Must skip GNU tar: if it does not support --format= it doesn't create
4897 # ustar tarball either.
4898 (tar --version) >/dev/null 2>&1 && continue
4899 am__tar='tar chf - "$$tardir"'
4900 am__tar_='tar chf - "$tardir"'
4901 am__untar='tar xf -'
4902 ;;
4903 pax)
4904 am__tar='pax -L -x ustar -w "$$tardir"'
4905 am__tar_='pax -L -x ustar -w "$tardir"'
4906 am__untar='pax -r'
4907 ;;
4908 cpio)
4909 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4910 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4911 am__untar='cpio -i -H ustar -d'
4912 ;;
4913 none)
4914 am__tar=false
4915 am__tar_=false
4916 am__untar=false
4917 ;;
4918 esac
4919
4920 # If the value was cached, stop now. We just wanted to have am__tar
4921 # and am__untar set.
4922 test -n "${am_cv_prog_tar_ustar}" && break
4923
4924 # tar/untar a dummy directory, and stop if the command works.
4925 rm -rf conftest.dir
4926 mkdir conftest.dir
4927 echo GrepMe > conftest.dir/file
4928 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4929 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }
4933 rm -rf conftest.dir
4934 if test -s conftest.tar; then
4935 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4936 ($am__untar <conftest.tar) >&5 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }
4940 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4941 (cat conftest.dir/file) >&5 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }
4945 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4946 fi
4947 done
4948 rm -rf conftest.dir
4949
4950 if test ${am_cv_prog_tar_ustar+y}
4951 then :
4952 printf %s "(cached) " >&6
4953 else case e in #(
4954 e) am_cv_prog_tar_ustar=$_am_tool ;;
4955 esac
4956 fi
4957
4958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4959 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4960
4961
4962
4963
4964
4965 depcc="$CC" am_compiler_list=
4966
4967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4968 printf %s "checking dependency style of $depcc... " >&6; }
4969 if test ${am_cv_CC_dependencies_compiler_type+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else case e in #(
4973 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974 # We make a subdir and do the tests there. Otherwise we can end up
4975 # making bogus files that we don't know about and never remove. For
4976 # instance it was reported that on HP-UX the gcc test will end up
4977 # making a dummy file named 'D' -- because '-MD' means "put the output
4978 # in D".
4979 rm -rf conftest.dir
4980 mkdir conftest.dir
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4984 cd conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4990 # directory.
4991 mkdir sub
4992
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996 fi
4997 am__universal=false
4998 case " $depcc " in #(
4999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5000 esac
5001
5002 for depmode in $am_compiler_list; do
5003 # Setup a source with many dependencies, because some compilers
5004 # like to wrap large dependency lists on column 80 (with \), and
5005 # we should not choose a depcomp mode which is confused by this.
5006 #
5007 # We need to recreate these files for each test, as the compiler may
5008 # overwrite some of them when testing with obscure command lines.
5009 # This happens at least with the AIX C compiler.
5010 : > sub/conftest.c
5011 for i in 1 2 3 4 5 6; do
5012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5013 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5014 # Solaris 10 /bin/sh.
5015 echo '/* dummy */' > sub/conftst$i.h
5016 done
5017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5018
5019 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5020 # mode. It turns out that the SunPro C++ compiler does not properly
5021 # handle '-M -o', and we need to detect this. Also, some Intel
5022 # versions had trouble with output in subdirs.
5023 am__obj=sub/conftest.${OBJEXT-o}
5024 am__minus_obj="-o $am__obj"
5025 case $depmode in
5026 gcc)
5027 # This depmode causes a compiler race in universal mode.
5028 test "$am__universal" = false || continue
5029 ;;
5030 nosideeffect)
5031 # After this tag, mechanisms are not by side-effect, so they'll
5032 # only be used when explicitly requested.
5033 if test "x$enable_dependency_tracking" = xyes; then
5034 continue
5035 else
5036 break
5037 fi
5038 ;;
5039 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5040 # This compiler won't grok '-c -o', but also, the minuso test has
5041 # not run yet. These depmodes are late enough in the game, and
5042 # so weak that their functioning should not be impacted.
5043 am__obj=conftest.${OBJEXT-o}
5044 am__minus_obj=
5045 ;;
5046 none) break ;;
5047 esac
5048 if depmode=$depmode \
5049 source=sub/conftest.c object=$am__obj \
5050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5052 >/dev/null 2>conftest.err &&
5053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5057 # icc doesn't choke on unknown options, it will just issue warnings
5058 # or remarks (even with -Werror). So we grep stderr for any message
5059 # that says an option was ignored or not supported.
5060 # When given -MP, icc 7.0 and 7.1 complain thus:
5061 # icc: Command line warning: ignoring option '-M'; no argument required
5062 # The diagnosis changed in icc 8.0:
5063 # icc: Command line remark: option '-MP' not supported
5064 if (grep 'ignoring option' conftest.err ||
5065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5066 am_cv_CC_dependencies_compiler_type=$depmode
5067 break
5068 fi
5069 fi
5070 done
5071
5072 cd ..
5073 rm -rf conftest.dir
5074 else
5075 am_cv_CC_dependencies_compiler_type=none
5076 fi
5077 ;;
5078 esac
5079 fi
5080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5081 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5083
5084 if
5085 test "x$enable_dependency_tracking" != xno \
5086 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5087 am__fastdepCC_TRUE=
5088 am__fastdepCC_FALSE='#'
5089 else
5090 am__fastdepCC_TRUE='#'
5091 am__fastdepCC_FALSE=
5092 fi
5093
5094
5095 # Variables for tags utilities; see am/tags.am
5096 if test -z "$CTAGS"; then
5097 CTAGS=ctags
5098 fi
5099
5100 if test -z "$ETAGS"; then
5101 ETAGS=etags
5102 fi
5103
5104 if test -z "$CSCOPE"; then
5105 CSCOPE=cscope
5106 fi
5107
5108
5109
5110
5111
5112
5113
5114
5115 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
5128 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
5129 if test ${ac_cv_c_undeclared_builtin_options+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else case e in #(
5133 e) ac_save_CFLAGS=$CFLAGS
5134 ac_cv_c_undeclared_builtin_options='cannot detect'
5135 for ac_arg in '' -fno-builtin; do
5136 CFLAGS="$ac_save_CFLAGS $ac_arg"
5137 # This test program should *not* compile successfully.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140
5141 int
5142 main (void)
5143 {
5144 (void) strchr;
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151
5152 else case e in #(
5153 e) # This test program should compile successfully.
5154 # No library function is consistently available on
5155 # freestanding implementations, so test against a dummy
5156 # declaration. Include always-available headers on the
5157 # off chance that they somehow elicit warnings.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <float.h>
5161 #include <limits.h>
5162 #include <stdarg.h>
5163 #include <stddef.h>
5164 extern void ac_decl (int, char *);
5165
5166 int
5167 main (void)
5168 {
5169 (void) ac_decl (0, (char *) 0);
5170 (void) ac_decl;
5171
5172 ;
5173 return 0;
5174 }
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"
5177 then :
5178 if test x"$ac_arg" = x
5179 then :
5180 ac_cv_c_undeclared_builtin_options='none needed'
5181 else case e in #(
5182 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5183 esac
5184 fi
5185 break
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5188 esac
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5191 done
5192 CFLAGS=$ac_save_CFLAGS
5193 ;;
5194 esac
5195 fi
5196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5197 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5198 case $ac_cv_c_undeclared_builtin_options in #(
5199 'cannot detect') :
5200 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5201 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5202 as_fn_error $? "cannot make $CC report undeclared builtins
5203 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5204 'none needed') :
5205 ac_c_undeclared_builtin_options='' ;; #(
5206 *) :
5207 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5208 esac
5209
5210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5211 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5212 if test ${ac_cv_c_future_darwin_options+y}
5213 then :
5214 printf %s "(cached) " >&6
5215 else case e in #(
5216 e) ac_compile_saved="$ac_compile"
5217 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #if ! (defined __APPLE__ && defined __MACH__)
5221 #error "-Werror=unguarded-availability-new not needed here"
5222 #endif
5223
5224 int
5225 main (void)
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"
5233 then :
5234 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5235 else case e in #(
5236 e) ac_cv_c_future_darwin_options='none needed' ;;
5237 esac
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5240 ac_compile="$ac_compile_saved"
5241 ;;
5242 esac
5243 fi
5244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5245 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5246 case $ac_cv_c_future_darwin_options in #(
5247 'none needed') :
5248 ac_c_future_darwin_options='' ;; #(
5249 *) :
5250 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5251 esac
5252
5253
5254
5255
5256
5257 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"
5258 if test "x$ac_cv_have_decl___clang__" = xyes
5259 then :
5260 CLANGCC="yes"
5261 else case e in #(
5262 e) CLANGCC="no" ;;
5263 esac
5264 fi
5265 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"
5266 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5267 then :
5268 INTELCC="yes"
5269 else case e in #(
5270 e) INTELCC="no" ;;
5271 esac
5272 fi
5273 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"
5274 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5275 then :
5276 SUNCC="yes"
5277 else case e in #(
5278 e) SUNCC="no" ;;
5279 esac
5280 fi
5281
5282
5283
5284
5285
5286
5287
5288
5289 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 printf %s "checking for $ac_word... " >&6; }
5295 if test ${ac_cv_path_PKG_CONFIG+y}
5296 then :
5297 printf %s "(cached) " >&6
5298 else case e in #(
5299 e) case $PKG_CONFIG in
5300 [\\/]* | ?:[\\/]*)
5301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5302 ;;
5303 *)
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 case $as_dir in #(((
5309 '') as_dir=./ ;;
5310 */) ;;
5311 *) as_dir=$as_dir/ ;;
5312 esac
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5315 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5316 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5317 break 2
5318 fi
5319 done
5320 done
5321 IFS=$as_save_IFS
5322
5323 ;;
5324 esac ;;
5325 esac
5326 fi
5327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5328 if test -n "$PKG_CONFIG"; then
5329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5330 printf '%s\n' "$PKG_CONFIG" >&6; }
5331 else
5332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 printf '%s\n' "no" >&6; }
5334 fi
5335
5336
5337 fi
5338 if test -z "$ac_cv_path_PKG_CONFIG"; then
5339 ac_pt_PKG_CONFIG=$PKG_CONFIG
5340 # Extract the first word of "pkg-config", so it can be a program name with args.
5341 set dummy pkg-config; ac_word=$2
5342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 printf %s "checking for $ac_word... " >&6; }
5344 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else case e in #(
5348 e) case $ac_pt_PKG_CONFIG in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5351 ;;
5352 *)
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 case $as_dir in #(((
5358 '') as_dir=./ ;;
5359 */) ;;
5360 *) as_dir=$as_dir/ ;;
5361 esac
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5365 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 ;;
5373 esac ;;
5374 esac
5375 fi
5376 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5377 if test -n "$ac_pt_PKG_CONFIG"; then
5378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5379 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5380 else
5381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 printf '%s\n' "no" >&6; }
5383 fi
5384
5385 if test "x$ac_pt_PKG_CONFIG" = x; then
5386 PKG_CONFIG=""
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394 PKG_CONFIG=$ac_pt_PKG_CONFIG
5395 fi
5396 else
5397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5398 fi
5399
5400 fi
5401 if test -n "$PKG_CONFIG"; then
5402 _pkg_min_version=0.9.0
5403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5404 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5406 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 printf '%s\n' "yes" >&6; }
5408 else
5409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 printf '%s\n' "no" >&6; }
5411 PKG_CONFIG=""
5412 fi
5413 fi
5414
5415
5416 # Make sure we can run config.sub.
5417 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5418 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5419
5420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5421 printf %s "checking build system type... " >&6; }
5422 if test ${ac_cv_build+y}
5423 then :
5424 printf %s "(cached) " >&6
5425 else case e in #(
5426 e) ac_build_alias=$build_alias
5427 test "x$ac_build_alias" = x &&
5428 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5429 test "x$ac_build_alias" = x &&
5430 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5431 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5432 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5433 ;;
5434 esac
5435 fi
5436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5437 printf '%s\n' "$ac_cv_build" >&6; }
5438 case $ac_cv_build in
5439 *-*-*) ;;
5440 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5441 esac
5442 build=$ac_cv_build
5443 ac_save_IFS=$IFS; IFS='-'
5444 set x $ac_cv_build
5445 shift
5446 build_cpu=$1
5447 build_vendor=$2
5448 shift; shift
5449 # Remember, the first character of IFS is used to create $*,
5450 # except with old shells:
5451 build_os=$*
5452 IFS=$ac_save_IFS
5453 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5454
5455
5456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5457 printf %s "checking host system type... " >&6; }
5458 if test ${ac_cv_host+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else case e in #(
5462 e) if test "x$host_alias" = x; then
5463 ac_cv_host=$ac_cv_build
5464 else
5465 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5466 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5467 fi
5468 ;;
5469 esac
5470 fi
5471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5472 printf '%s\n' "$ac_cv_host" >&6; }
5473 case $ac_cv_host in
5474 *-*-*) ;;
5475 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5476 esac
5477 host=$ac_cv_host
5478 ac_save_IFS=$IFS; IFS='-'
5479 set x $ac_cv_host
5480 shift
5481 host_cpu=$1
5482 host_vendor=$2
5483 shift; shift
5484 # Remember, the first character of IFS is used to create $*,
5485 # except with old shells:
5486 host_os=$*
5487 IFS=$ac_save_IFS
5488 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5489
5490
5491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5492 printf %s "checking for a sed that does not truncate output... " >&6; }
5493 if test ${ac_cv_path_SED+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else case e in #(
5497 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498 for ac_i in 1 2 3 4 5 6 7; do
5499 ac_script="$ac_script$as_nl$ac_script"
5500 done
5501 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5502 { ac_script=; unset ac_script;}
5503 if test -z "$SED"; then
5504 ac_path_SED_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 case $as_dir in #(((
5511 '') as_dir=./ ;;
5512 */) ;;
5513 *) as_dir=$as_dir/ ;;
5514 esac
5515 for ac_prog in sed gsed
5516 do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5519 as_fn_executable_p "$ac_path_SED" || continue
5520 # Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in #(
5523 *GNU*)
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525 #(
5526 *)
5527 ac_count=0
5528 printf %s 0123456789 >"conftest.in"
5529 while :
5530 do
5531 cat "conftest.in" "conftest.in" >"conftest.tmp"
5532 mv "conftest.tmp" "conftest.in"
5533 cp "conftest.in" "conftest.nl"
5534 printf '%s\n' '' >> "conftest.nl"
5535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5537 as_fn_arith $ac_count + 1 && ac_count=$as_val
5538 if test $ac_count -gt ${ac_path_SED_max-0}; then
5539 # Best one so far, save it but keep looking for a better one
5540 ac_cv_path_SED="$ac_path_SED"
5541 ac_path_SED_max=$ac_count
5542 fi
5543 # 10*(2^10) chars as input seems more than enough
5544 test $ac_count -gt 10 && break
5545 done
5546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5547 esac
5548
5549 $ac_path_SED_found && break 3
5550 done
5551 done
5552 done
5553 IFS=$as_save_IFS
5554 if test -z "$ac_cv_path_SED"; then
5555 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5556 fi
5557 else
5558 ac_cv_path_SED=$SED
5559 fi
5560 ;;
5561 esac
5562 fi
5563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5564 printf '%s\n' "$ac_cv_path_SED" >&6; }
5565 SED="$ac_cv_path_SED"
5566 rm -f conftest.sed
5567
5568
5569
5570
5571
5572
5573 # Check whether --enable-selective-werror was given.
5574 if test ${enable_selective_werror+y}
5575 then :
5576 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5577 else case e in #(
5578 e) SELECTIVE_WERROR=yes ;;
5579 esac
5580 fi
5581
5582
5583
5584
5585
5586 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5587 if test "x$SUNCC" = "xyes"; then
5588 BASE_CFLAGS="-v"
5589 else
5590 BASE_CFLAGS=""
5591 fi
5592
5593 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 xorg_testset_save_CFLAGS="$CFLAGS"
5608
5609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else case e in #(
5617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"
5622 then :
5623 xorg_cv_cc_flag_unknown_warning_option=yes
5624 else case e in #(
5625 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5626 esac
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5629 esac
5630 fi
5631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5632 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5634 CFLAGS="$xorg_testset_save_CFLAGS"
5635 fi
5636
5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 fi
5641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else case e in #(
5648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 int i;
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"
5653 then :
5654 xorg_cv_cc_flag_unused_command_line_argument=yes
5655 else case e in #(
5656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5657 esac
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5660 esac
5661 fi
5662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 found="no"
5669
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674
5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 fi
5678
5679 CFLAGS="$CFLAGS -Wall"
5680
5681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5682 printf %s "checking if $CC supports -Wall... " >&6; }
5683 cacheid=xorg_cv_cc_flag__Wall
5684 if eval test \${$cacheid+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else case e in #(
5688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 int i;
5691 int
5692 main (void)
5693 {
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 if ac_fn_c_try_link "$LINENO"
5700 then :
5701 eval $cacheid=yes
5702 else case e in #(
5703 e) eval $cacheid=no ;;
5704 esac
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5707 conftest$ac_exeext conftest.$ac_ext ;;
5708 esac
5709 fi
5710
5711
5712 CFLAGS="$xorg_testset_save_CFLAGS"
5713
5714 eval supported=\$$cacheid
5715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5716 printf '%s\n' "$supported" >&6; }
5717 if test "$supported" = "yes" ; then
5718 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5719 found="yes"
5720 fi
5721 fi
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 xorg_testset_save_CFLAGS="$CFLAGS"
5738
5739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5744 then :
5745 printf %s "(cached) " >&6
5746 else case e in #(
5747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 int i;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"
5752 then :
5753 xorg_cv_cc_flag_unknown_warning_option=yes
5754 else case e in #(
5755 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5756 esac
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5759 esac
5760 fi
5761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765 fi
5766
5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 fi
5771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else case e in #(
5778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"
5783 then :
5784 xorg_cv_cc_flag_unused_command_line_argument=yes
5785 else case e in #(
5786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5787 esac
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5790 esac
5791 fi
5792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5793 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5795 CFLAGS="$xorg_testset_save_CFLAGS"
5796 fi
5797
5798 found="no"
5799
5800 if test $found = "no" ; then
5801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803 fi
5804
5805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807 fi
5808
5809 CFLAGS="$CFLAGS -Wpointer-arith"
5810
5811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5812 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5813 cacheid=xorg_cv_cc_flag__Wpointer_arith
5814 if eval test \${$cacheid+y}
5815 then :
5816 printf %s "(cached) " >&6
5817 else case e in #(
5818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 int i;
5821 int
5822 main (void)
5823 {
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_c_try_link "$LINENO"
5830 then :
5831 eval $cacheid=yes
5832 else case e in #(
5833 e) eval $cacheid=no ;;
5834 esac
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5837 conftest$ac_exeext conftest.$ac_ext ;;
5838 esac
5839 fi
5840
5841
5842 CFLAGS="$xorg_testset_save_CFLAGS"
5843
5844 eval supported=\$$cacheid
5845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5846 printf '%s\n' "$supported" >&6; }
5847 if test "$supported" = "yes" ; then
5848 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5849 found="yes"
5850 fi
5851 fi
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 xorg_testset_save_CFLAGS="$CFLAGS"
5868
5869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5872 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5873 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else case e in #(
5877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"
5882 then :
5883 xorg_cv_cc_flag_unknown_warning_option=yes
5884 else case e in #(
5885 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5886 esac
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5889 esac
5890 fi
5891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5892 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5894 CFLAGS="$xorg_testset_save_CFLAGS"
5895 fi
5896
5897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900 fi
5901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5903 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5904 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5905 then :
5906 printf %s "(cached) " >&6
5907 else case e in #(
5908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 int i;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"
5913 then :
5914 xorg_cv_cc_flag_unused_command_line_argument=yes
5915 else case e in #(
5916 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5917 esac
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5920 esac
5921 fi
5922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5923 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5925 CFLAGS="$xorg_testset_save_CFLAGS"
5926 fi
5927
5928 found="no"
5929
5930 if test $found = "no" ; then
5931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5933 fi
5934
5935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937 fi
5938
5939 CFLAGS="$CFLAGS -Wmissing-declarations"
5940
5941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5942 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5943 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5944 if eval test \${$cacheid+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else case e in #(
5948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int i;
5951 int
5952 main (void)
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"
5960 then :
5961 eval $cacheid=yes
5962 else case e in #(
5963 e) eval $cacheid=no ;;
5964 esac
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5967 conftest$ac_exeext conftest.$ac_ext ;;
5968 esac
5969 fi
5970
5971
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5973
5974 eval supported=\$$cacheid
5975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5976 printf '%s\n' "$supported" >&6; }
5977 if test "$supported" = "yes" ; then
5978 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5979 found="yes"
5980 fi
5981 fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 xorg_testset_save_CFLAGS="$CFLAGS"
5998
5999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else case e in #(
6007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"
6012 then :
6013 xorg_cv_cc_flag_unknown_warning_option=yes
6014 else case e in #(
6015 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6016 esac
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6019 esac
6020 fi
6021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6022 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6024 CFLAGS="$xorg_testset_save_CFLAGS"
6025 fi
6026
6027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030 fi
6031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6033 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6034 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6035 then :
6036 printf %s "(cached) " >&6
6037 else case e in #(
6038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 int i;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"
6043 then :
6044 xorg_cv_cc_flag_unused_command_line_argument=yes
6045 else case e in #(
6046 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6047 esac
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6050 esac
6051 fi
6052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6053 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6055 CFLAGS="$xorg_testset_save_CFLAGS"
6056 fi
6057
6058 found="no"
6059
6060 if test $found = "no" ; then
6061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063 fi
6064
6065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067 fi
6068
6069 CFLAGS="$CFLAGS -Wformat=2"
6070
6071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6072 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6073 cacheid=xorg_cv_cc_flag__Wformat_2
6074 if eval test \${$cacheid+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else case e in #(
6078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int i;
6081 int
6082 main (void)
6083 {
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"
6090 then :
6091 eval $cacheid=yes
6092 else case e in #(
6093 e) eval $cacheid=no ;;
6094 esac
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6097 conftest$ac_exeext conftest.$ac_ext ;;
6098 esac
6099 fi
6100
6101
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6103
6104 eval supported=\$$cacheid
6105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6106 printf '%s\n' "$supported" >&6; }
6107 if test "$supported" = "yes" ; then
6108 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6109 found="yes"
6110 fi
6111 fi
6112
6113 if test $found = "no" ; then
6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 fi
6117
6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120 fi
6121
6122 CFLAGS="$CFLAGS -Wformat"
6123
6124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6125 printf %s "checking if $CC supports -Wformat... " >&6; }
6126 cacheid=xorg_cv_cc_flag__Wformat
6127 if eval test \${$cacheid+y}
6128 then :
6129 printf %s "(cached) " >&6
6130 else case e in #(
6131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 int i;
6134 int
6135 main (void)
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"
6143 then :
6144 eval $cacheid=yes
6145 else case e in #(
6146 e) eval $cacheid=no ;;
6147 esac
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6150 conftest$ac_exeext conftest.$ac_ext ;;
6151 esac
6152 fi
6153
6154
6155 CFLAGS="$xorg_testset_save_CFLAGS"
6156
6157 eval supported=\$$cacheid
6158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6159 printf '%s\n' "$supported" >&6; }
6160 if test "$supported" = "yes" ; then
6161 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6162 found="yes"
6163 fi
6164 fi
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else case e in #(
6192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 int i;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"
6197 then :
6198 xorg_cv_cc_flag_unknown_warning_option=yes
6199 else case e in #(
6200 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6201 esac
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6204 esac
6205 fi
6206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6207 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6209 CFLAGS="$xorg_testset_save_CFLAGS"
6210 fi
6211
6212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 fi
6216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6220 then :
6221 printf %s "(cached) " >&6
6222 else case e in #(
6223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 int i;
6226 _ACEOF
6227 if ac_fn_c_try_compile "$LINENO"
6228 then :
6229 xorg_cv_cc_flag_unused_command_line_argument=yes
6230 else case e in #(
6231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6232 esac
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6235 esac
6236 fi
6237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 found="no"
6244
6245 if test $found = "no" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249
6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 fi
6253
6254 CFLAGS="$CFLAGS -Wstrict-prototypes"
6255
6256 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6257 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6258 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6259 if eval test \${$cacheid+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 int
6267 main (void)
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"
6275 then :
6276 eval $cacheid=yes
6277 else case e in #(
6278 e) eval $cacheid=no ;;
6279 esac
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6282 conftest$ac_exeext conftest.$ac_ext ;;
6283 esac
6284 fi
6285
6286
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288
6289 eval supported=\$$cacheid
6290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6291 printf '%s\n' "$supported" >&6; }
6292 if test "$supported" = "yes" ; then
6293 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6294 found="yes"
6295 fi
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 xorg_testset_save_CFLAGS="$CFLAGS"
6313
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6317 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6318 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6319 then :
6320 printf %s "(cached) " >&6
6321 else case e in #(
6322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int i;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"
6327 then :
6328 xorg_cv_cc_flag_unknown_warning_option=yes
6329 else case e in #(
6330 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6331 esac
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6334 esac
6335 fi
6336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6350 then :
6351 printf %s "(cached) " >&6
6352 else case e in #(
6353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 int i;
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"
6358 then :
6359 xorg_cv_cc_flag_unused_command_line_argument=yes
6360 else case e in #(
6361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6362 esac
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6365 esac
6366 fi
6367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6368 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6370 CFLAGS="$xorg_testset_save_CFLAGS"
6371 fi
6372
6373 found="no"
6374
6375 if test $found = "no" ; then
6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378 fi
6379
6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382 fi
6383
6384 CFLAGS="$CFLAGS -Wmissing-prototypes"
6385
6386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6387 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6388 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6389 if eval test \${$cacheid+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else case e in #(
6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 int i;
6396 int
6397 main (void)
6398 {
6399
6400 ;
6401 return 0;
6402 }
6403 _ACEOF
6404 if ac_fn_c_try_link "$LINENO"
6405 then :
6406 eval $cacheid=yes
6407 else case e in #(
6408 e) eval $cacheid=no ;;
6409 esac
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6412 conftest$ac_exeext conftest.$ac_ext ;;
6413 esac
6414 fi
6415
6416
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419 eval supported=\$$cacheid
6420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421 printf '%s\n' "$supported" >&6; }
6422 if test "$supported" = "yes" ; then
6423 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6424 found="yes"
6425 fi
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6449 then :
6450 printf %s "(cached) " >&6
6451 else case e in #(
6452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 int i;
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"
6457 then :
6458 xorg_cv_cc_flag_unknown_warning_option=yes
6459 else case e in #(
6460 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6461 esac
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6464 esac
6465 fi
6466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6467 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6469 CFLAGS="$xorg_testset_save_CFLAGS"
6470 fi
6471
6472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6475 fi
6476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else case e in #(
6483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 _ACEOF
6487 if ac_fn_c_try_compile "$LINENO"
6488 then :
6489 xorg_cv_cc_flag_unused_command_line_argument=yes
6490 else case e in #(
6491 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6492 esac
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6495 esac
6496 fi
6497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6498 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6500 CFLAGS="$xorg_testset_save_CFLAGS"
6501 fi
6502
6503 found="no"
6504
6505 if test $found = "no" ; then
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 fi
6509
6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 fi
6513
6514 CFLAGS="$CFLAGS -Wnested-externs"
6515
6516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6517 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6518 cacheid=xorg_cv_cc_flag__Wnested_externs
6519 if eval test \${$cacheid+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else case e in #(
6523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 int i;
6526 int
6527 main (void)
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_link "$LINENO"
6535 then :
6536 eval $cacheid=yes
6537 else case e in #(
6538 e) eval $cacheid=no ;;
6539 esac
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6542 conftest$ac_exeext conftest.$ac_ext ;;
6543 esac
6544 fi
6545
6546
6547 CFLAGS="$xorg_testset_save_CFLAGS"
6548
6549 eval supported=\$$cacheid
6550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6551 printf '%s\n' "$supported" >&6; }
6552 if test "$supported" = "yes" ; then
6553 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6554 found="yes"
6555 fi
6556 fi
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572 xorg_testset_save_CFLAGS="$CFLAGS"
6573
6574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else case e in #(
6582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 int i;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"
6587 then :
6588 xorg_cv_cc_flag_unknown_warning_option=yes
6589 else case e in #(
6590 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6591 esac
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6594 esac
6595 fi
6596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6597 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6600 fi
6601
6602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605 fi
6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6608 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6609 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6610 then :
6611 printf %s "(cached) " >&6
6612 else case e in #(
6613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int i;
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"
6618 then :
6619 xorg_cv_cc_flag_unused_command_line_argument=yes
6620 else case e in #(
6621 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6622 esac
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6625 esac
6626 fi
6627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6628 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6630 CFLAGS="$xorg_testset_save_CFLAGS"
6631 fi
6632
6633 found="no"
6634
6635 if test $found = "no" ; then
6636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6638 fi
6639
6640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642 fi
6643
6644 CFLAGS="$CFLAGS -Wbad-function-cast"
6645
6646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6647 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6648 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6649 if eval test \${$cacheid+y}
6650 then :
6651 printf %s "(cached) " >&6
6652 else case e in #(
6653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 int i;
6656 int
6657 main (void)
6658 {
6659
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 if ac_fn_c_try_link "$LINENO"
6665 then :
6666 eval $cacheid=yes
6667 else case e in #(
6668 e) eval $cacheid=no ;;
6669 esac
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6672 conftest$ac_exeext conftest.$ac_ext ;;
6673 esac
6674 fi
6675
6676
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678
6679 eval supported=\$$cacheid
6680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6681 printf '%s\n' "$supported" >&6; }
6682 if test "$supported" = "yes" ; then
6683 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6684 found="yes"
6685 fi
6686 fi
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 xorg_testset_save_CFLAGS="$CFLAGS"
6703
6704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6709 then :
6710 printf %s "(cached) " >&6
6711 else case e in #(
6712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int i;
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"
6717 then :
6718 xorg_cv_cc_flag_unknown_warning_option=yes
6719 else case e in #(
6720 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6721 esac
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6724 esac
6725 fi
6726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6727 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730 fi
6731
6732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735 fi
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else case e in #(
6743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"
6748 then :
6749 xorg_cv_cc_flag_unused_command_line_argument=yes
6750 else case e in #(
6751 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6752 esac
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6755 esac
6756 fi
6757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6758 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6760 CFLAGS="$xorg_testset_save_CFLAGS"
6761 fi
6762
6763 found="no"
6764
6765 if test $found = "no" ; then
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 fi
6769
6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772 fi
6773
6774 CFLAGS="$CFLAGS -Wold-style-definition"
6775
6776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6777 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6778 cacheid=xorg_cv_cc_flag__Wold_style_definition
6779 if eval test \${$cacheid+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else case e in #(
6783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 int i;
6786 int
6787 main (void)
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_link "$LINENO"
6795 then :
6796 eval $cacheid=yes
6797 else case e in #(
6798 e) eval $cacheid=no ;;
6799 esac
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6802 conftest$ac_exeext conftest.$ac_ext ;;
6803 esac
6804 fi
6805
6806
6807 CFLAGS="$xorg_testset_save_CFLAGS"
6808
6809 eval supported=\$$cacheid
6810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6811 printf '%s\n' "$supported" >&6; }
6812 if test "$supported" = "yes" ; then
6813 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6814 found="yes"
6815 fi
6816 fi
6817
6818 if test $found = "no" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825 fi
6826
6827 CFLAGS="$CFLAGS -fd"
6828
6829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6830 printf %s "checking if $CC supports -fd... " >&6; }
6831 cacheid=xorg_cv_cc_flag__fd
6832 if eval test \${$cacheid+y}
6833 then :
6834 printf %s "(cached) " >&6
6835 else case e in #(
6836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 int i;
6839 int
6840 main (void)
6841 {
6842
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"
6848 then :
6849 eval $cacheid=yes
6850 else case e in #(
6851 e) eval $cacheid=no ;;
6852 esac
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6855 conftest$ac_exeext conftest.$ac_ext ;;
6856 esac
6857 fi
6858
6859
6860 CFLAGS="$xorg_testset_save_CFLAGS"
6861
6862 eval supported=\$$cacheid
6863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6864 printf '%s\n' "$supported" >&6; }
6865 if test "$supported" = "yes" ; then
6866 BASE_CFLAGS="$BASE_CFLAGS -fd"
6867 found="yes"
6868 fi
6869 fi
6870
6871
6872
6873
6874
6875 # This chunk adds additional warnings that could catch undesired effects.
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 xorg_testset_save_CFLAGS="$CFLAGS"
6890
6891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6896 then :
6897 printf %s "(cached) " >&6
6898 else case e in #(
6899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 int i;
6902 _ACEOF
6903 if ac_fn_c_try_compile "$LINENO"
6904 then :
6905 xorg_cv_cc_flag_unknown_warning_option=yes
6906 else case e in #(
6907 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6908 esac
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6911 esac
6912 fi
6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6914 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922 fi
6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else case e in #(
6930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 int i;
6933 _ACEOF
6934 if ac_fn_c_try_compile "$LINENO"
6935 then :
6936 xorg_cv_cc_flag_unused_command_line_argument=yes
6937 else case e in #(
6938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6939 esac
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6942 esac
6943 fi
6944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6945 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6947 CFLAGS="$xorg_testset_save_CFLAGS"
6948 fi
6949
6950 found="no"
6951
6952 if test $found = "no" ; then
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 fi
6956
6957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6959 fi
6960
6961 CFLAGS="$CFLAGS -Wunused"
6962
6963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6964 printf %s "checking if $CC supports -Wunused... " >&6; }
6965 cacheid=xorg_cv_cc_flag__Wunused
6966 if eval test \${$cacheid+y}
6967 then :
6968 printf %s "(cached) " >&6
6969 else case e in #(
6970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 int i;
6973 int
6974 main (void)
6975 {
6976
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"
6982 then :
6983 eval $cacheid=yes
6984 else case e in #(
6985 e) eval $cacheid=no ;;
6986 esac
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6989 conftest$ac_exeext conftest.$ac_ext ;;
6990 esac
6991 fi
6992
6993
6994 CFLAGS="$xorg_testset_save_CFLAGS"
6995
6996 eval supported=\$$cacheid
6997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6998 printf '%s\n' "$supported" >&6; }
6999 if test "$supported" = "yes" ; then
7000 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7001 found="yes"
7002 fi
7003 fi
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 xorg_testset_save_CFLAGS="$CFLAGS"
7020
7021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7025 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7026 then :
7027 printf %s "(cached) " >&6
7028 else case e in #(
7029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"
7034 then :
7035 xorg_cv_cc_flag_unknown_warning_option=yes
7036 else case e in #(
7037 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7038 esac
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7041 esac
7042 fi
7043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7044 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 fi
7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else case e in #(
7060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 int i;
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"
7065 then :
7066 xorg_cv_cc_flag_unused_command_line_argument=yes
7067 else case e in #(
7068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7069 esac
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7072 esac
7073 fi
7074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7075 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078 fi
7079
7080 found="no"
7081
7082 if test $found = "no" ; then
7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085 fi
7086
7087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089 fi
7090
7091 CFLAGS="$CFLAGS -Wuninitialized"
7092
7093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7094 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7095 cacheid=xorg_cv_cc_flag__Wuninitialized
7096 if eval test \${$cacheid+y}
7097 then :
7098 printf %s "(cached) " >&6
7099 else case e in #(
7100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 int i;
7103 int
7104 main (void)
7105 {
7106
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_link "$LINENO"
7112 then :
7113 eval $cacheid=yes
7114 else case e in #(
7115 e) eval $cacheid=no ;;
7116 esac
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7119 conftest$ac_exeext conftest.$ac_ext ;;
7120 esac
7121 fi
7122
7123
7124 CFLAGS="$xorg_testset_save_CFLAGS"
7125
7126 eval supported=\$$cacheid
7127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7128 printf '%s\n' "$supported" >&6; }
7129 if test "$supported" = "yes" ; then
7130 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7131 found="yes"
7132 fi
7133 fi
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149 xorg_testset_save_CFLAGS="$CFLAGS"
7150
7151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else case e in #(
7159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"
7164 then :
7165 xorg_cv_cc_flag_unknown_warning_option=yes
7166 else case e in #(
7167 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7168 esac
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7171 esac
7172 fi
7173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7174 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177 fi
7178
7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182 fi
7183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7187 then :
7188 printf %s "(cached) " >&6
7189 else case e in #(
7190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"
7195 then :
7196 xorg_cv_cc_flag_unused_command_line_argument=yes
7197 else case e in #(
7198 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7199 esac
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7202 esac
7203 fi
7204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7205 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7207 CFLAGS="$xorg_testset_save_CFLAGS"
7208 fi
7209
7210 found="no"
7211
7212 if test $found = "no" ; then
7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 fi
7216
7217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 fi
7220
7221 CFLAGS="$CFLAGS -Wshadow"
7222
7223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7224 printf %s "checking if $CC supports -Wshadow... " >&6; }
7225 cacheid=xorg_cv_cc_flag__Wshadow
7226 if eval test \${$cacheid+y}
7227 then :
7228 printf %s "(cached) " >&6
7229 else case e in #(
7230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 int
7234 main (void)
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"
7242 then :
7243 eval $cacheid=yes
7244 else case e in #(
7245 e) eval $cacheid=no ;;
7246 esac
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7249 conftest$ac_exeext conftest.$ac_ext ;;
7250 esac
7251 fi
7252
7253
7254 CFLAGS="$xorg_testset_save_CFLAGS"
7255
7256 eval supported=\$$cacheid
7257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7258 printf '%s\n' "$supported" >&6; }
7259 if test "$supported" = "yes" ; then
7260 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7261 found="yes"
7262 fi
7263 fi
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 xorg_testset_save_CFLAGS="$CFLAGS"
7280
7281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7284 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7285 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else case e in #(
7289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"
7294 then :
7295 xorg_cv_cc_flag_unknown_warning_option=yes
7296 else case e in #(
7297 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7298 esac
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7301 esac
7302 fi
7303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7304 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7306 CFLAGS="$xorg_testset_save_CFLAGS"
7307 fi
7308
7309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312 fi
7313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7317 then :
7318 printf %s "(cached) " >&6
7319 else case e in #(
7320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"
7325 then :
7326 xorg_cv_cc_flag_unused_command_line_argument=yes
7327 else case e in #(
7328 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7329 esac
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7332 esac
7333 fi
7334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7335 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338 fi
7339
7340 found="no"
7341
7342 if test $found = "no" ; then
7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345 fi
7346
7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 fi
7350
7351 CFLAGS="$CFLAGS -Wmissing-noreturn"
7352
7353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7354 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7355 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7356 if eval test \${$cacheid+y}
7357 then :
7358 printf %s "(cached) " >&6
7359 else case e in #(
7360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 int i;
7363 int
7364 main (void)
7365 {
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"
7372 then :
7373 eval $cacheid=yes
7374 else case e in #(
7375 e) eval $cacheid=no ;;
7376 esac
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7379 conftest$ac_exeext conftest.$ac_ext ;;
7380 esac
7381 fi
7382
7383
7384 CFLAGS="$xorg_testset_save_CFLAGS"
7385
7386 eval supported=\$$cacheid
7387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7388 printf '%s\n' "$supported" >&6; }
7389 if test "$supported" = "yes" ; then
7390 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7391 found="yes"
7392 fi
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409 xorg_testset_save_CFLAGS="$CFLAGS"
7410
7411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7415 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"
7424 then :
7425 xorg_cv_cc_flag_unknown_warning_option=yes
7426 else case e in #(
7427 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7428 esac
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7431 esac
7432 fi
7433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7434 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7436 CFLAGS="$xorg_testset_save_CFLAGS"
7437 fi
7438
7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 fi
7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7445 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7446 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7447 then :
7448 printf %s "(cached) " >&6
7449 else case e in #(
7450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"
7455 then :
7456 xorg_cv_cc_flag_unused_command_line_argument=yes
7457 else case e in #(
7458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7459 esac
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7462 esac
7463 fi
7464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7465 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468 fi
7469
7470 found="no"
7471
7472 if test $found = "no" ; then
7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475 fi
7476
7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7479 fi
7480
7481 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7482
7483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7484 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7485 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7486 if eval test \${$cacheid+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else case e in #(
7490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 int i;
7493 int
7494 main (void)
7495 {
7496
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"
7502 then :
7503 eval $cacheid=yes
7504 else case e in #(
7505 e) eval $cacheid=no ;;
7506 esac
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7509 conftest$ac_exeext conftest.$ac_ext ;;
7510 esac
7511 fi
7512
7513
7514 CFLAGS="$xorg_testset_save_CFLAGS"
7515
7516 eval supported=\$$cacheid
7517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7518 printf '%s\n' "$supported" >&6; }
7519 if test "$supported" = "yes" ; then
7520 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7521 found="yes"
7522 fi
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 xorg_testset_save_CFLAGS="$CFLAGS"
7540
7541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7545 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else case e in #(
7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"
7554 then :
7555 xorg_cv_cc_flag_unknown_warning_option=yes
7556 else case e in #(
7557 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7558 esac
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7561 esac
7562 fi
7563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7564 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7566 CFLAGS="$xorg_testset_save_CFLAGS"
7567 fi
7568
7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572 fi
7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7575 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7576 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7577 then :
7578 printf %s "(cached) " >&6
7579 else case e in #(
7580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 int i;
7583 _ACEOF
7584 if ac_fn_c_try_compile "$LINENO"
7585 then :
7586 xorg_cv_cc_flag_unused_command_line_argument=yes
7587 else case e in #(
7588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7589 esac
7590 fi
7591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7592 esac
7593 fi
7594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7595 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7597 CFLAGS="$xorg_testset_save_CFLAGS"
7598 fi
7599
7600 found="no"
7601
7602 if test $found = "no" ; then
7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605 fi
7606
7607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609 fi
7610
7611 CFLAGS="$CFLAGS -Wredundant-decls"
7612
7613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7614 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7615 cacheid=xorg_cv_cc_flag__Wredundant_decls
7616 if eval test \${$cacheid+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else case e in #(
7620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 int i;
7623 int
7624 main (void)
7625 {
7626
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"
7632 then :
7633 eval $cacheid=yes
7634 else case e in #(
7635 e) eval $cacheid=no ;;
7636 esac
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7639 conftest$ac_exeext conftest.$ac_ext ;;
7640 esac
7641 fi
7642
7643
7644 CFLAGS="$xorg_testset_save_CFLAGS"
7645
7646 eval supported=\$$cacheid
7647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7648 printf '%s\n' "$supported" >&6; }
7649 if test "$supported" = "yes" ; then
7650 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7651 found="yes"
7652 fi
7653 fi
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669 xorg_testset_save_CFLAGS="$CFLAGS"
7670
7671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else case e in #(
7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 int i;
7682 _ACEOF
7683 if ac_fn_c_try_compile "$LINENO"
7684 then :
7685 xorg_cv_cc_flag_unknown_warning_option=yes
7686 else case e in #(
7687 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7688 esac
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7691 esac
7692 fi
7693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7694 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7707 then :
7708 printf %s "(cached) " >&6
7709 else case e in #(
7710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 int i;
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"
7715 then :
7716 xorg_cv_cc_flag_unused_command_line_argument=yes
7717 else case e in #(
7718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7719 esac
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7722 esac
7723 fi
7724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7725 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7727 CFLAGS="$xorg_testset_save_CFLAGS"
7728 fi
7729
7730 found="no"
7731
7732 if test $found = "no" ; then
7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735 fi
7736
7737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739 fi
7740
7741 CFLAGS="$CFLAGS -Wlogical-op"
7742
7743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7744 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7745 cacheid=xorg_cv_cc_flag__Wlogical_op
7746 if eval test \${$cacheid+y}
7747 then :
7748 printf %s "(cached) " >&6
7749 else case e in #(
7750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 int i;
7753 int
7754 main (void)
7755 {
7756
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_link "$LINENO"
7762 then :
7763 eval $cacheid=yes
7764 else case e in #(
7765 e) eval $cacheid=no ;;
7766 esac
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7769 conftest$ac_exeext conftest.$ac_ext ;;
7770 esac
7771 fi
7772
7773
7774 CFLAGS="$xorg_testset_save_CFLAGS"
7775
7776 eval supported=\$$cacheid
7777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7778 printf '%s\n' "$supported" >&6; }
7779 if test "$supported" = "yes" ; then
7780 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7781 found="yes"
7782 fi
7783 fi
7784
7785
7786
7787 # These are currently disabled because they are noisy. They will be enabled
7788 # in the future once the codebase is sufficiently modernized to silence
7789 # them. For now, I don't want them to drown out the other warnings.
7790 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7791 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7792 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7793
7794 # Turn some warnings into errors, so we don't accidentally get successful builds
7795 # when there are problems that should be fixed.
7796
7797 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 xorg_testset_save_CFLAGS="$CFLAGS"
7812
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7817 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7818 then :
7819 printf %s "(cached) " >&6
7820 else case e in #(
7821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 int i;
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"
7826 then :
7827 xorg_cv_cc_flag_unknown_warning_option=yes
7828 else case e in #(
7829 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7830 esac
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7833 esac
7834 fi
7835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7836 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 fi
7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7849 then :
7850 printf %s "(cached) " >&6
7851 else case e in #(
7852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 int i;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"
7857 then :
7858 xorg_cv_cc_flag_unused_command_line_argument=yes
7859 else case e in #(
7860 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7861 esac
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7864 esac
7865 fi
7866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7867 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7869 CFLAGS="$xorg_testset_save_CFLAGS"
7870 fi
7871
7872 found="no"
7873
7874 if test $found = "no" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 fi
7882
7883 CFLAGS="$CFLAGS -Werror=implicit"
7884
7885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7886 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7887 cacheid=xorg_cv_cc_flag__Werror_implicit
7888 if eval test \${$cacheid+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else case e in #(
7892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 int i;
7895 int
7896 main (void)
7897 {
7898
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"
7904 then :
7905 eval $cacheid=yes
7906 else case e in #(
7907 e) eval $cacheid=no ;;
7908 esac
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7911 conftest$ac_exeext conftest.$ac_ext ;;
7912 esac
7913 fi
7914
7915
7916 CFLAGS="$xorg_testset_save_CFLAGS"
7917
7918 eval supported=\$$cacheid
7919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7920 printf '%s\n' "$supported" >&6; }
7921 if test "$supported" = "yes" ; then
7922 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7923 found="yes"
7924 fi
7925 fi
7926
7927 if test $found = "no" ; then
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 fi
7931
7932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934 fi
7935
7936 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7937
7938 { 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
7939 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7940 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7941 if eval test \${$cacheid+y}
7942 then :
7943 printf %s "(cached) " >&6
7944 else case e in #(
7945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 int i;
7948 int
7949 main (void)
7950 {
7951
7952 ;
7953 return 0;
7954 }
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"
7957 then :
7958 eval $cacheid=yes
7959 else case e in #(
7960 e) eval $cacheid=no ;;
7961 esac
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7964 conftest$ac_exeext conftest.$ac_ext ;;
7965 esac
7966 fi
7967
7968
7969 CFLAGS="$xorg_testset_save_CFLAGS"
7970
7971 eval supported=\$$cacheid
7972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7973 printf '%s\n' "$supported" >&6; }
7974 if test "$supported" = "yes" ; then
7975 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7976 found="yes"
7977 fi
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 xorg_testset_save_CFLAGS="$CFLAGS"
7995
7996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8001 then :
8002 printf %s "(cached) " >&6
8003 else case e in #(
8004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 int i;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"
8009 then :
8010 xorg_cv_cc_flag_unknown_warning_option=yes
8011 else case e in #(
8012 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8013 esac
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8016 esac
8017 fi
8018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8019 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022 fi
8023
8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027 fi
8028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else case e in #(
8035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 int i;
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"
8040 then :
8041 xorg_cv_cc_flag_unused_command_line_argument=yes
8042 else case e in #(
8043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8044 esac
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8047 esac
8048 fi
8049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8050 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053 fi
8054
8055 found="no"
8056
8057 if test $found = "no" ; then
8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060 fi
8061
8062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 fi
8065
8066 CFLAGS="$CFLAGS -Werror=nonnull"
8067
8068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8069 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8070 cacheid=xorg_cv_cc_flag__Werror_nonnull
8071 if eval test \${$cacheid+y}
8072 then :
8073 printf %s "(cached) " >&6
8074 else case e in #(
8075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 int i;
8078 int
8079 main (void)
8080 {
8081
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"
8087 then :
8088 eval $cacheid=yes
8089 else case e in #(
8090 e) eval $cacheid=no ;;
8091 esac
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8094 conftest$ac_exeext conftest.$ac_ext ;;
8095 esac
8096 fi
8097
8098
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100
8101 eval supported=\$$cacheid
8102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8103 printf '%s\n' "$supported" >&6; }
8104 if test "$supported" = "yes" ; then
8105 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8106 found="yes"
8107 fi
8108 fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 xorg_testset_save_CFLAGS="$CFLAGS"
8125
8126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8129 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8130 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8131 then :
8132 printf %s "(cached) " >&6
8133 else case e in #(
8134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 _ACEOF
8138 if ac_fn_c_try_compile "$LINENO"
8139 then :
8140 xorg_cv_cc_flag_unknown_warning_option=yes
8141 else case e in #(
8142 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8143 esac
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8146 esac
8147 fi
8148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8149 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8151 CFLAGS="$xorg_testset_save_CFLAGS"
8152 fi
8153
8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157 fi
8158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8160 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8161 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else case e in #(
8165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"
8170 then :
8171 xorg_cv_cc_flag_unused_command_line_argument=yes
8172 else case e in #(
8173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8174 esac
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8177 esac
8178 fi
8179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8180 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183 fi
8184
8185 found="no"
8186
8187 if test $found = "no" ; then
8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190 fi
8191
8192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194 fi
8195
8196 CFLAGS="$CFLAGS -Werror=init-self"
8197
8198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8199 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8200 cacheid=xorg_cv_cc_flag__Werror_init_self
8201 if eval test \${$cacheid+y}
8202 then :
8203 printf %s "(cached) " >&6
8204 else case e in #(
8205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 int i;
8208 int
8209 main (void)
8210 {
8211
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"
8217 then :
8218 eval $cacheid=yes
8219 else case e in #(
8220 e) eval $cacheid=no ;;
8221 esac
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8224 conftest$ac_exeext conftest.$ac_ext ;;
8225 esac
8226 fi
8227
8228
8229 CFLAGS="$xorg_testset_save_CFLAGS"
8230
8231 eval supported=\$$cacheid
8232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8233 printf '%s\n' "$supported" >&6; }
8234 if test "$supported" = "yes" ; then
8235 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8236 found="yes"
8237 fi
8238 fi
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254 xorg_testset_save_CFLAGS="$CFLAGS"
8255
8256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8260 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 xorg_cv_cc_flag_unknown_warning_option=yes
8271 else case e in #(
8272 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8273 esac
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8276 esac
8277 fi
8278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8279 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282 fi
8283
8284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8292 then :
8293 printf %s "(cached) " >&6
8294 else case e in #(
8295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 int i;
8298 _ACEOF
8299 if ac_fn_c_try_compile "$LINENO"
8300 then :
8301 xorg_cv_cc_flag_unused_command_line_argument=yes
8302 else case e in #(
8303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8304 esac
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8307 esac
8308 fi
8309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8310 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8312 CFLAGS="$xorg_testset_save_CFLAGS"
8313 fi
8314
8315 found="no"
8316
8317 if test $found = "no" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321
8322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324 fi
8325
8326 CFLAGS="$CFLAGS -Werror=main"
8327
8328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8329 printf %s "checking if $CC supports -Werror=main... " >&6; }
8330 cacheid=xorg_cv_cc_flag__Werror_main
8331 if eval test \${$cacheid+y}
8332 then :
8333 printf %s "(cached) " >&6
8334 else case e in #(
8335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 int
8339 main (void)
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"
8347 then :
8348 eval $cacheid=yes
8349 else case e in #(
8350 e) eval $cacheid=no ;;
8351 esac
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext ;;
8355 esac
8356 fi
8357
8358
8359 CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361 eval supported=\$$cacheid
8362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363 printf '%s\n' "$supported" >&6; }
8364 if test "$supported" = "yes" ; then
8365 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8366 found="yes"
8367 fi
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8391 then :
8392 printf %s "(cached) " >&6
8393 else case e in #(
8394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 int i;
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"
8399 then :
8400 xorg_cv_cc_flag_unknown_warning_option=yes
8401 else case e in #(
8402 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8403 esac
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8406 esac
8407 fi
8408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8409 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412 fi
8413
8414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 fi
8418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else case e in #(
8425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 int i;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"
8430 then :
8431 xorg_cv_cc_flag_unused_command_line_argument=yes
8432 else case e in #(
8433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8434 esac
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8437 esac
8438 fi
8439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 found="no"
8446
8447 if test $found = "no" ; then
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451
8452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 fi
8455
8456 CFLAGS="$CFLAGS -Werror=missing-braces"
8457
8458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8459 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8460 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8461 if eval test \${$cacheid+y}
8462 then :
8463 printf %s "(cached) " >&6
8464 else case e in #(
8465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 int i;
8468 int
8469 main (void)
8470 {
8471
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"
8477 then :
8478 eval $cacheid=yes
8479 else case e in #(
8480 e) eval $cacheid=no ;;
8481 esac
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8484 conftest$ac_exeext conftest.$ac_ext ;;
8485 esac
8486 fi
8487
8488
8489 CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491 eval supported=\$$cacheid
8492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493 printf '%s\n' "$supported" >&6; }
8494 if test "$supported" = "yes" ; then
8495 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8496 found="yes"
8497 fi
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else case e in #(
8524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 int i;
8527 _ACEOF
8528 if ac_fn_c_try_compile "$LINENO"
8529 then :
8530 xorg_cv_cc_flag_unknown_warning_option=yes
8531 else case e in #(
8532 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8533 esac
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8536 esac
8537 fi
8538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8539 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8542 fi
8543
8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547 fi
8548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else case e in #(
8555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 int i;
8558 _ACEOF
8559 if ac_fn_c_try_compile "$LINENO"
8560 then :
8561 xorg_cv_cc_flag_unused_command_line_argument=yes
8562 else case e in #(
8563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8564 esac
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8567 esac
8568 fi
8569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573 fi
8574
8575 found="no"
8576
8577 if test $found = "no" ; then
8578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 fi
8581
8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 fi
8585
8586 CFLAGS="$CFLAGS -Werror=sequence-point"
8587
8588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8589 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8590 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8591 if eval test \${$cacheid+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else case e in #(
8595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 int
8599 main (void)
8600 {
8601
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_link "$LINENO"
8607 then :
8608 eval $cacheid=yes
8609 else case e in #(
8610 e) eval $cacheid=no ;;
8611 esac
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8614 conftest$ac_exeext conftest.$ac_ext ;;
8615 esac
8616 fi
8617
8618
8619 CFLAGS="$xorg_testset_save_CFLAGS"
8620
8621 eval supported=\$$cacheid
8622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8623 printf '%s\n' "$supported" >&6; }
8624 if test "$supported" = "yes" ; then
8625 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8626 found="yes"
8627 fi
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 xorg_testset_save_CFLAGS="$CFLAGS"
8645
8646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else case e in #(
8654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 int i;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"
8659 then :
8660 xorg_cv_cc_flag_unknown_warning_option=yes
8661 else case e in #(
8662 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8663 esac
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8666 esac
8667 fi
8668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8669 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672 fi
8673
8674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677 fi
8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8682 then :
8683 printf %s "(cached) " >&6
8684 else case e in #(
8685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"
8690 then :
8691 xorg_cv_cc_flag_unused_command_line_argument=yes
8692 else case e in #(
8693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8694 esac
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8697 esac
8698 fi
8699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8700 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8703 fi
8704
8705 found="no"
8706
8707 if test $found = "no" ; then
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 fi
8711
8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 fi
8715
8716 CFLAGS="$CFLAGS -Werror=return-type"
8717
8718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8719 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8720 cacheid=xorg_cv_cc_flag__Werror_return_type
8721 if eval test \${$cacheid+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else case e in #(
8725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int i;
8728 int
8729 main (void)
8730 {
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"
8737 then :
8738 eval $cacheid=yes
8739 else case e in #(
8740 e) eval $cacheid=no ;;
8741 esac
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8744 conftest$ac_exeext conftest.$ac_ext ;;
8745 esac
8746 fi
8747
8748
8749 CFLAGS="$xorg_testset_save_CFLAGS"
8750
8751 eval supported=\$$cacheid
8752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8753 printf '%s\n' "$supported" >&6; }
8754 if test "$supported" = "yes" ; then
8755 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8756 found="yes"
8757 fi
8758 fi
8759
8760 if test $found = "no" ; then
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763 fi
8764
8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8767 fi
8768
8769 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8770
8771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8772 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8773 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8774 if eval test \${$cacheid+y}
8775 then :
8776 printf %s "(cached) " >&6
8777 else case e in #(
8778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 int i;
8781 int
8782 main (void)
8783 {
8784
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"
8790 then :
8791 eval $cacheid=yes
8792 else case e in #(
8793 e) eval $cacheid=no ;;
8794 esac
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8797 conftest$ac_exeext conftest.$ac_ext ;;
8798 esac
8799 fi
8800
8801
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803
8804 eval supported=\$$cacheid
8805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8806 printf '%s\n' "$supported" >&6; }
8807 if test "$supported" = "yes" ; then
8808 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8809 found="yes"
8810 fi
8811 fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 xorg_testset_save_CFLAGS="$CFLAGS"
8828
8829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8833 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8834 then :
8835 printf %s "(cached) " >&6
8836 else case e in #(
8837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 int i;
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"
8842 then :
8843 xorg_cv_cc_flag_unknown_warning_option=yes
8844 else case e in #(
8845 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8846 esac
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8849 esac
8850 fi
8851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 fi
8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else case e in #(
8868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"
8873 then :
8874 xorg_cv_cc_flag_unused_command_line_argument=yes
8875 else case e in #(
8876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8877 esac
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8880 esac
8881 fi
8882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886 fi
8887
8888 found="no"
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -Werror=trigraphs"
8900
8901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8902 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8903 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8904 if eval test \${$cacheid+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else case e in #(
8908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main (void)
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"
8920 then :
8921 eval $cacheid=yes
8922 else case e in #(
8923 e) eval $cacheid=no ;;
8924 esac
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8927 conftest$ac_exeext conftest.$ac_ext ;;
8928 esac
8929 fi
8930
8931
8932 CFLAGS="$xorg_testset_save_CFLAGS"
8933
8934 eval supported=\$$cacheid
8935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8936 printf '%s\n' "$supported" >&6; }
8937 if test "$supported" = "yes" ; then
8938 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8939 found="yes"
8940 fi
8941 fi
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 xorg_testset_save_CFLAGS="$CFLAGS"
8958
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else case e in #(
8967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"
8972 then :
8973 xorg_cv_cc_flag_unknown_warning_option=yes
8974 else case e in #(
8975 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8976 esac
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8979 esac
8980 fi
8981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8995 then :
8996 printf %s "(cached) " >&6
8997 else case e in #(
8998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 int i;
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"
9003 then :
9004 xorg_cv_cc_flag_unused_command_line_argument=yes
9005 else case e in #(
9006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9007 esac
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9010 esac
9011 fi
9012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9013 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016 fi
9017
9018 found="no"
9019
9020 if test $found = "no" ; then
9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023 fi
9024
9025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027 fi
9028
9029 CFLAGS="$CFLAGS -Werror=array-bounds"
9030
9031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9032 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9033 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9034 if eval test \${$cacheid+y}
9035 then :
9036 printf %s "(cached) " >&6
9037 else case e in #(
9038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 int i;
9041 int
9042 main (void)
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"
9050 then :
9051 eval $cacheid=yes
9052 else case e in #(
9053 e) eval $cacheid=no ;;
9054 esac
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9057 conftest$ac_exeext conftest.$ac_ext ;;
9058 esac
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 printf '%s\n' "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9094 then :
9095 printf %s "(cached) " >&6
9096 else case e in #(
9097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"
9102 then :
9103 xorg_cv_cc_flag_unknown_warning_option=yes
9104 else case e in #(
9105 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9106 esac
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9109 esac
9110 fi
9111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115 fi
9116
9117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120 fi
9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else case e in #(
9128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"
9133 then :
9134 xorg_cv_cc_flag_unused_command_line_argument=yes
9135 else case e in #(
9136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9137 esac
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9140 esac
9141 fi
9142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146 fi
9147
9148 found="no"
9149
9150 if test $found = "no" ; then
9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 fi
9154
9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 fi
9158
9159 CFLAGS="$CFLAGS -Werror=write-strings"
9160
9161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9162 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9163 cacheid=xorg_cv_cc_flag__Werror_write_strings
9164 if eval test \${$cacheid+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else case e in #(
9168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 int i;
9171 int
9172 main (void)
9173 {
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"
9180 then :
9181 eval $cacheid=yes
9182 else case e in #(
9183 e) eval $cacheid=no ;;
9184 esac
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9187 conftest$ac_exeext conftest.$ac_ext ;;
9188 esac
9189 fi
9190
9191
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193
9194 eval supported=\$$cacheid
9195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9196 printf '%s\n' "$supported" >&6; }
9197 if test "$supported" = "yes" ; then
9198 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9199 found="yes"
9200 fi
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 xorg_testset_save_CFLAGS="$CFLAGS"
9218
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else case e in #(
9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"
9232 then :
9233 xorg_cv_cc_flag_unknown_warning_option=yes
9234 else case e in #(
9235 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9236 esac
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9239 esac
9240 fi
9241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9242 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 fi
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else case e in #(
9258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 int i;
9261 _ACEOF
9262 if ac_fn_c_try_compile "$LINENO"
9263 then :
9264 xorg_cv_cc_flag_unused_command_line_argument=yes
9265 else case e in #(
9266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9267 esac
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9270 esac
9271 fi
9272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9273 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276 fi
9277
9278 found="no"
9279
9280 if test $found = "no" ; then
9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283 fi
9284
9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287 fi
9288
9289 CFLAGS="$CFLAGS -Werror=address"
9290
9291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9292 printf %s "checking if $CC supports -Werror=address... " >&6; }
9293 cacheid=xorg_cv_cc_flag__Werror_address
9294 if eval test \${$cacheid+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else case e in #(
9298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 int i;
9301 int
9302 main (void)
9303 {
9304
9305 ;
9306 return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"
9310 then :
9311 eval $cacheid=yes
9312 else case e in #(
9313 e) eval $cacheid=no ;;
9314 esac
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9317 conftest$ac_exeext conftest.$ac_ext ;;
9318 esac
9319 fi
9320
9321
9322 CFLAGS="$xorg_testset_save_CFLAGS"
9323
9324 eval supported=\$$cacheid
9325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9326 printf '%s\n' "$supported" >&6; }
9327 if test "$supported" = "yes" ; then
9328 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9329 found="yes"
9330 fi
9331 fi
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 xorg_testset_save_CFLAGS="$CFLAGS"
9348
9349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9353 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else case e in #(
9357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"
9362 then :
9363 xorg_cv_cc_flag_unknown_warning_option=yes
9364 else case e in #(
9365 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9366 esac
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9369 esac
9370 fi
9371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9372 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375 fi
9376
9377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380 fi
9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else case e in #(
9388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int i;
9391 _ACEOF
9392 if ac_fn_c_try_compile "$LINENO"
9393 then :
9394 xorg_cv_cc_flag_unused_command_line_argument=yes
9395 else case e in #(
9396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9397 esac
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9400 esac
9401 fi
9402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9403 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406 fi
9407
9408 found="no"
9409
9410 if test $found = "no" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414
9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 fi
9418
9419 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9420
9421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9422 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9423 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9424 if eval test \${$cacheid+y}
9425 then :
9426 printf %s "(cached) " >&6
9427 else case e in #(
9428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 int i;
9431 int
9432 main (void)
9433 {
9434
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"
9440 then :
9441 eval $cacheid=yes
9442 else case e in #(
9443 e) eval $cacheid=no ;;
9444 esac
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9447 conftest$ac_exeext conftest.$ac_ext ;;
9448 esac
9449 fi
9450
9451
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453
9454 eval supported=\$$cacheid
9455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9456 printf '%s\n' "$supported" >&6; }
9457 if test "$supported" = "yes" ; then
9458 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9459 found="yes"
9460 fi
9461 fi
9462
9463 if test $found = "no" ; then
9464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466 fi
9467
9468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470 fi
9471
9472 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9473
9474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9475 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9476 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9477 if eval test \${$cacheid+y}
9478 then :
9479 printf %s "(cached) " >&6
9480 else case e in #(
9481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 int i;
9484 int
9485 main (void)
9486 {
9487
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"
9493 then :
9494 eval $cacheid=yes
9495 else case e in #(
9496 e) eval $cacheid=no ;;
9497 esac
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9500 conftest$ac_exeext conftest.$ac_ext ;;
9501 esac
9502 fi
9503
9504
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507 eval supported=\$$cacheid
9508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509 printf '%s\n' "$supported" >&6; }
9510 if test "$supported" = "yes" ; then
9511 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9512 found="yes"
9513 fi
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"
9545 then :
9546 xorg_cv_cc_flag_unknown_warning_option=yes
9547 else case e in #(
9548 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9549 esac
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9552 esac
9553 fi
9554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9555 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9558 fi
9559
9560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563 fi
9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9568 then :
9569 printf %s "(cached) " >&6
9570 else case e in #(
9571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 int i;
9574 _ACEOF
9575 if ac_fn_c_try_compile "$LINENO"
9576 then :
9577 xorg_cv_cc_flag_unused_command_line_argument=yes
9578 else case e in #(
9579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9580 esac
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9583 esac
9584 fi
9585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9586 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9588 CFLAGS="$xorg_testset_save_CFLAGS"
9589 fi
9590
9591 found="no"
9592
9593 if test $found = "no" ; then
9594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596 fi
9597
9598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 fi
9601
9602 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9603
9604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9605 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9606 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9607 if eval test \${$cacheid+y}
9608 then :
9609 printf %s "(cached) " >&6
9610 else case e in #(
9611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 int
9615 main (void)
9616 {
9617
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_link "$LINENO"
9623 then :
9624 eval $cacheid=yes
9625 else case e in #(
9626 e) eval $cacheid=no ;;
9627 esac
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9630 conftest$ac_exeext conftest.$ac_ext ;;
9631 esac
9632 fi
9633
9634
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636
9637 eval supported=\$$cacheid
9638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9639 printf '%s\n' "$supported" >&6; }
9640 if test "$supported" = "yes" ; then
9641 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9642 found="yes"
9643 fi
9644 fi
9645
9646 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9647 else
9648 { 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
9649 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;}
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 xorg_testset_save_CFLAGS="$CFLAGS"
9664
9665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9670 then :
9671 printf %s "(cached) " >&6
9672 else case e in #(
9673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 int i;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"
9678 then :
9679 xorg_cv_cc_flag_unknown_warning_option=yes
9680 else case e in #(
9681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9682 esac
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9685 esac
9686 fi
9687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9688 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9690 CFLAGS="$xorg_testset_save_CFLAGS"
9691 fi
9692
9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 fi
9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9701 then :
9702 printf %s "(cached) " >&6
9703 else case e in #(
9704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 int i;
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"
9709 then :
9710 xorg_cv_cc_flag_unused_command_line_argument=yes
9711 else case e in #(
9712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9713 esac
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9716 esac
9717 fi
9718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9719 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9721 CFLAGS="$xorg_testset_save_CFLAGS"
9722 fi
9723
9724 found="no"
9725
9726 if test $found = "no" ; then
9727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729 fi
9730
9731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733 fi
9734
9735 CFLAGS="$CFLAGS -Wimplicit"
9736
9737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9738 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9739 cacheid=xorg_cv_cc_flag__Wimplicit
9740 if eval test \${$cacheid+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else case e in #(
9744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 int i;
9747 int
9748 main (void)
9749 {
9750
9751 ;
9752 return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"
9756 then :
9757 eval $cacheid=yes
9758 else case e in #(
9759 e) eval $cacheid=no ;;
9760 esac
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9763 conftest$ac_exeext conftest.$ac_ext ;;
9764 esac
9765 fi
9766
9767
9768 CFLAGS="$xorg_testset_save_CFLAGS"
9769
9770 eval supported=\$$cacheid
9771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9772 printf '%s\n' "$supported" >&6; }
9773 if test "$supported" = "yes" ; then
9774 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9775 found="yes"
9776 fi
9777 fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793 xorg_testset_save_CFLAGS="$CFLAGS"
9794
9795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else case e in #(
9803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 int i;
9806 _ACEOF
9807 if ac_fn_c_try_compile "$LINENO"
9808 then :
9809 xorg_cv_cc_flag_unknown_warning_option=yes
9810 else case e in #(
9811 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9812 esac
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9815 esac
9816 fi
9817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9818 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9820 CFLAGS="$xorg_testset_save_CFLAGS"
9821 fi
9822
9823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826 fi
9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9831 then :
9832 printf %s "(cached) " >&6
9833 else case e in #(
9834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 int i;
9837 _ACEOF
9838 if ac_fn_c_try_compile "$LINENO"
9839 then :
9840 xorg_cv_cc_flag_unused_command_line_argument=yes
9841 else case e in #(
9842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9843 esac
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9846 esac
9847 fi
9848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9849 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9851 CFLAGS="$xorg_testset_save_CFLAGS"
9852 fi
9853
9854 found="no"
9855
9856 if test $found = "no" ; then
9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 fi
9860
9861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863 fi
9864
9865 CFLAGS="$CFLAGS -Wnonnull"
9866
9867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9868 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9869 cacheid=xorg_cv_cc_flag__Wnonnull
9870 if eval test \${$cacheid+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else case e in #(
9874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 int i;
9877 int
9878 main (void)
9879 {
9880
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"
9886 then :
9887 eval $cacheid=yes
9888 else case e in #(
9889 e) eval $cacheid=no ;;
9890 esac
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9893 conftest$ac_exeext conftest.$ac_ext ;;
9894 esac
9895 fi
9896
9897
9898 CFLAGS="$xorg_testset_save_CFLAGS"
9899
9900 eval supported=\$$cacheid
9901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9902 printf '%s\n' "$supported" >&6; }
9903 if test "$supported" = "yes" ; then
9904 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9905 found="yes"
9906 fi
9907 fi
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 xorg_testset_save_CFLAGS="$CFLAGS"
9924
9925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9928 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9929 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9930 then :
9931 printf %s "(cached) " >&6
9932 else case e in #(
9933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"
9938 then :
9939 xorg_cv_cc_flag_unknown_warning_option=yes
9940 else case e in #(
9941 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9942 esac
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9945 esac
9946 fi
9947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9948 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9961 then :
9962 printf %s "(cached) " >&6
9963 else case e in #(
9964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 int i;
9967 _ACEOF
9968 if ac_fn_c_try_compile "$LINENO"
9969 then :
9970 xorg_cv_cc_flag_unused_command_line_argument=yes
9971 else case e in #(
9972 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9973 esac
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9976 esac
9977 fi
9978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9982 fi
9983
9984 found="no"
9985
9986 if test $found = "no" ; then
9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989 fi
9990
9991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993 fi
9994
9995 CFLAGS="$CFLAGS -Winit-self"
9996
9997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9998 printf %s "checking if $CC supports -Winit-self... " >&6; }
9999 cacheid=xorg_cv_cc_flag__Winit_self
10000 if eval test \${$cacheid+y}
10001 then :
10002 printf %s "(cached) " >&6
10003 else case e in #(
10004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int i;
10007 int
10008 main (void)
10009 {
10010
10011 ;
10012 return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"
10016 then :
10017 eval $cacheid=yes
10018 else case e in #(
10019 e) eval $cacheid=no ;;
10020 esac
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10023 conftest$ac_exeext conftest.$ac_ext ;;
10024 esac
10025 fi
10026
10027
10028 CFLAGS="$xorg_testset_save_CFLAGS"
10029
10030 eval supported=\$$cacheid
10031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10032 printf '%s\n' "$supported" >&6; }
10033 if test "$supported" = "yes" ; then
10034 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10035 found="yes"
10036 fi
10037 fi
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053 xorg_testset_save_CFLAGS="$CFLAGS"
10054
10055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10059 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10060 then :
10061 printf %s "(cached) " >&6
10062 else case e in #(
10063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 int i;
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"
10068 then :
10069 xorg_cv_cc_flag_unknown_warning_option=yes
10070 else case e in #(
10071 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10072 esac
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10075 esac
10076 fi
10077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10078 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10080 CFLAGS="$xorg_testset_save_CFLAGS"
10081 fi
10082
10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086 fi
10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else case e in #(
10094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 int i;
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"
10099 then :
10100 xorg_cv_cc_flag_unused_command_line_argument=yes
10101 else case e in #(
10102 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10103 esac
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10106 esac
10107 fi
10108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10109 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10111 CFLAGS="$xorg_testset_save_CFLAGS"
10112 fi
10113
10114 found="no"
10115
10116 if test $found = "no" ; then
10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119 fi
10120
10121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123 fi
10124
10125 CFLAGS="$CFLAGS -Wmain"
10126
10127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10128 printf %s "checking if $CC supports -Wmain... " >&6; }
10129 cacheid=xorg_cv_cc_flag__Wmain
10130 if eval test \${$cacheid+y}
10131 then :
10132 printf %s "(cached) " >&6
10133 else case e in #(
10134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int i;
10137 int
10138 main (void)
10139 {
10140
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"
10146 then :
10147 eval $cacheid=yes
10148 else case e in #(
10149 e) eval $cacheid=no ;;
10150 esac
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10153 conftest$ac_exeext conftest.$ac_ext ;;
10154 esac
10155 fi
10156
10157
10158 CFLAGS="$xorg_testset_save_CFLAGS"
10159
10160 eval supported=\$$cacheid
10161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10162 printf '%s\n' "$supported" >&6; }
10163 if test "$supported" = "yes" ; then
10164 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10165 found="yes"
10166 fi
10167 fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 xorg_testset_save_CFLAGS="$CFLAGS"
10184
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else case e in #(
10193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 int i;
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"
10198 then :
10199 xorg_cv_cc_flag_unknown_warning_option=yes
10200 else case e in #(
10201 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10202 esac
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10205 esac
10206 fi
10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10208 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216 fi
10217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10221 then :
10222 printf %s "(cached) " >&6
10223 else case e in #(
10224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 int i;
10227 _ACEOF
10228 if ac_fn_c_try_compile "$LINENO"
10229 then :
10230 xorg_cv_cc_flag_unused_command_line_argument=yes
10231 else case e in #(
10232 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10233 esac
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10236 esac
10237 fi
10238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10239 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242 fi
10243
10244 found="no"
10245
10246 if test $found = "no" ; then
10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249 fi
10250
10251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253 fi
10254
10255 CFLAGS="$CFLAGS -Wmissing-braces"
10256
10257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10258 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10259 cacheid=xorg_cv_cc_flag__Wmissing_braces
10260 if eval test \${$cacheid+y}
10261 then :
10262 printf %s "(cached) " >&6
10263 else case e in #(
10264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 int i;
10267 int
10268 main (void)
10269 {
10270
10271 ;
10272 return 0;
10273 }
10274 _ACEOF
10275 if ac_fn_c_try_link "$LINENO"
10276 then :
10277 eval $cacheid=yes
10278 else case e in #(
10279 e) eval $cacheid=no ;;
10280 esac
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10283 conftest$ac_exeext conftest.$ac_ext ;;
10284 esac
10285 fi
10286
10287
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289
10290 eval supported=\$$cacheid
10291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10292 printf '%s\n' "$supported" >&6; }
10293 if test "$supported" = "yes" ; then
10294 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10295 found="yes"
10296 fi
10297 fi
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313 xorg_testset_save_CFLAGS="$CFLAGS"
10314
10315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10320 then :
10321 printf %s "(cached) " >&6
10322 else case e in #(
10323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"
10328 then :
10329 xorg_cv_cc_flag_unknown_warning_option=yes
10330 else case e in #(
10331 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10332 esac
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10335 esac
10336 fi
10337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10338 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10340 CFLAGS="$xorg_testset_save_CFLAGS"
10341 fi
10342
10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10346 fi
10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10351 then :
10352 printf %s "(cached) " >&6
10353 else case e in #(
10354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 int i;
10357 _ACEOF
10358 if ac_fn_c_try_compile "$LINENO"
10359 then :
10360 xorg_cv_cc_flag_unused_command_line_argument=yes
10361 else case e in #(
10362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10363 esac
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10366 esac
10367 fi
10368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10369 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372 fi
10373
10374 found="no"
10375
10376 if test $found = "no" ; then
10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379 fi
10380
10381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10383 fi
10384
10385 CFLAGS="$CFLAGS -Wsequence-point"
10386
10387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10388 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10389 cacheid=xorg_cv_cc_flag__Wsequence_point
10390 if eval test \${$cacheid+y}
10391 then :
10392 printf %s "(cached) " >&6
10393 else case e in #(
10394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 int i;
10397 int
10398 main (void)
10399 {
10400
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"
10406 then :
10407 eval $cacheid=yes
10408 else case e in #(
10409 e) eval $cacheid=no ;;
10410 esac
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10413 conftest$ac_exeext conftest.$ac_ext ;;
10414 esac
10415 fi
10416
10417
10418 CFLAGS="$xorg_testset_save_CFLAGS"
10419
10420 eval supported=\$$cacheid
10421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10422 printf '%s\n' "$supported" >&6; }
10423 if test "$supported" = "yes" ; then
10424 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10425 found="yes"
10426 fi
10427 fi
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443 xorg_testset_save_CFLAGS="$CFLAGS"
10444
10445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10450 then :
10451 printf %s "(cached) " >&6
10452 else case e in #(
10453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 int i;
10456 _ACEOF
10457 if ac_fn_c_try_compile "$LINENO"
10458 then :
10459 xorg_cv_cc_flag_unknown_warning_option=yes
10460 else case e in #(
10461 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10462 esac
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10465 esac
10466 fi
10467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10468 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471 fi
10472
10473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 fi
10477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10481 then :
10482 printf %s "(cached) " >&6
10483 else case e in #(
10484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486 int i;
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"
10489 then :
10490 xorg_cv_cc_flag_unused_command_line_argument=yes
10491 else case e in #(
10492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10493 esac
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10496 esac
10497 fi
10498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10499 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10501 CFLAGS="$xorg_testset_save_CFLAGS"
10502 fi
10503
10504 found="no"
10505
10506 if test $found = "no" ; then
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 fi
10510
10511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10513 fi
10514
10515 CFLAGS="$CFLAGS -Wreturn-type"
10516
10517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10518 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10519 cacheid=xorg_cv_cc_flag__Wreturn_type
10520 if eval test \${$cacheid+y}
10521 then :
10522 printf %s "(cached) " >&6
10523 else case e in #(
10524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 int i;
10527 int
10528 main (void)
10529 {
10530
10531 ;
10532 return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"
10536 then :
10537 eval $cacheid=yes
10538 else case e in #(
10539 e) eval $cacheid=no ;;
10540 esac
10541 fi
10542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10543 conftest$ac_exeext conftest.$ac_ext ;;
10544 esac
10545 fi
10546
10547
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549
10550 eval supported=\$$cacheid
10551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10552 printf '%s\n' "$supported" >&6; }
10553 if test "$supported" = "yes" ; then
10554 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10555 found="yes"
10556 fi
10557 fi
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 xorg_testset_save_CFLAGS="$CFLAGS"
10574
10575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10580 then :
10581 printf %s "(cached) " >&6
10582 else case e in #(
10583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 int i;
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"
10588 then :
10589 xorg_cv_cc_flag_unknown_warning_option=yes
10590 else case e in #(
10591 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10592 esac
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10595 esac
10596 fi
10597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10598 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10600 CFLAGS="$xorg_testset_save_CFLAGS"
10601 fi
10602
10603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606 fi
10607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10611 then :
10612 printf %s "(cached) " >&6
10613 else case e in #(
10614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616 int i;
10617 _ACEOF
10618 if ac_fn_c_try_compile "$LINENO"
10619 then :
10620 xorg_cv_cc_flag_unused_command_line_argument=yes
10621 else case e in #(
10622 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10623 esac
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10626 esac
10627 fi
10628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10629 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10631 CFLAGS="$xorg_testset_save_CFLAGS"
10632 fi
10633
10634 found="no"
10635
10636 if test $found = "no" ; then
10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639 fi
10640
10641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10643 fi
10644
10645 CFLAGS="$CFLAGS -Wtrigraphs"
10646
10647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10648 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10649 cacheid=xorg_cv_cc_flag__Wtrigraphs
10650 if eval test \${$cacheid+y}
10651 then :
10652 printf %s "(cached) " >&6
10653 else case e in #(
10654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 int i;
10657 int
10658 main (void)
10659 {
10660
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"
10666 then :
10667 eval $cacheid=yes
10668 else case e in #(
10669 e) eval $cacheid=no ;;
10670 esac
10671 fi
10672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10673 conftest$ac_exeext conftest.$ac_ext ;;
10674 esac
10675 fi
10676
10677
10678 CFLAGS="$xorg_testset_save_CFLAGS"
10679
10680 eval supported=\$$cacheid
10681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10682 printf '%s\n' "$supported" >&6; }
10683 if test "$supported" = "yes" ; then
10684 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10685 found="yes"
10686 fi
10687 fi
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 xorg_testset_save_CFLAGS="$CFLAGS"
10704
10705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else case e in #(
10713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int i;
10716 _ACEOF
10717 if ac_fn_c_try_compile "$LINENO"
10718 then :
10719 xorg_cv_cc_flag_unknown_warning_option=yes
10720 else case e in #(
10721 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10722 esac
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10725 esac
10726 fi
10727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10728 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10730 CFLAGS="$xorg_testset_save_CFLAGS"
10731 fi
10732
10733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736 fi
10737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10741 then :
10742 printf %s "(cached) " >&6
10743 else case e in #(
10744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 int i;
10747 _ACEOF
10748 if ac_fn_c_try_compile "$LINENO"
10749 then :
10750 xorg_cv_cc_flag_unused_command_line_argument=yes
10751 else case e in #(
10752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10753 esac
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10756 esac
10757 fi
10758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10759 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10761 CFLAGS="$xorg_testset_save_CFLAGS"
10762 fi
10763
10764 found="no"
10765
10766 if test $found = "no" ; then
10767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10769 fi
10770
10771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10773 fi
10774
10775 CFLAGS="$CFLAGS -Warray-bounds"
10776
10777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10778 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10779 cacheid=xorg_cv_cc_flag__Warray_bounds
10780 if eval test \${$cacheid+y}
10781 then :
10782 printf %s "(cached) " >&6
10783 else case e in #(
10784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 int i;
10787 int
10788 main (void)
10789 {
10790
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"
10796 then :
10797 eval $cacheid=yes
10798 else case e in #(
10799 e) eval $cacheid=no ;;
10800 esac
10801 fi
10802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10803 conftest$ac_exeext conftest.$ac_ext ;;
10804 esac
10805 fi
10806
10807
10808 CFLAGS="$xorg_testset_save_CFLAGS"
10809
10810 eval supported=\$$cacheid
10811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10812 printf '%s\n' "$supported" >&6; }
10813 if test "$supported" = "yes" ; then
10814 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10815 found="yes"
10816 fi
10817 fi
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833 xorg_testset_save_CFLAGS="$CFLAGS"
10834
10835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10840 then :
10841 printf %s "(cached) " >&6
10842 else case e in #(
10843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 int i;
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"
10848 then :
10849 xorg_cv_cc_flag_unknown_warning_option=yes
10850 else case e in #(
10851 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10852 esac
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10855 esac
10856 fi
10857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10858 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10860 CFLAGS="$xorg_testset_save_CFLAGS"
10861 fi
10862
10863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10866 fi
10867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10871 then :
10872 printf %s "(cached) " >&6
10873 else case e in #(
10874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876 int i;
10877 _ACEOF
10878 if ac_fn_c_try_compile "$LINENO"
10879 then :
10880 xorg_cv_cc_flag_unused_command_line_argument=yes
10881 else case e in #(
10882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10883 esac
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10886 esac
10887 fi
10888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10889 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10891 CFLAGS="$xorg_testset_save_CFLAGS"
10892 fi
10893
10894 found="no"
10895
10896 if test $found = "no" ; then
10897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10899 fi
10900
10901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10903 fi
10904
10905 CFLAGS="$CFLAGS -Wwrite-strings"
10906
10907 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10908 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10909 cacheid=xorg_cv_cc_flag__Wwrite_strings
10910 if eval test \${$cacheid+y}
10911 then :
10912 printf %s "(cached) " >&6
10913 else case e in #(
10914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 int i;
10917 int
10918 main (void)
10919 {
10920
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"
10926 then :
10927 eval $cacheid=yes
10928 else case e in #(
10929 e) eval $cacheid=no ;;
10930 esac
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10933 conftest$ac_exeext conftest.$ac_ext ;;
10934 esac
10935 fi
10936
10937
10938 CFLAGS="$xorg_testset_save_CFLAGS"
10939
10940 eval supported=\$$cacheid
10941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10942 printf '%s\n' "$supported" >&6; }
10943 if test "$supported" = "yes" ; then
10944 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10945 found="yes"
10946 fi
10947 fi
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963 xorg_testset_save_CFLAGS="$CFLAGS"
10964
10965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10970 then :
10971 printf %s "(cached) " >&6
10972 else case e in #(
10973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975 int i;
10976 _ACEOF
10977 if ac_fn_c_try_compile "$LINENO"
10978 then :
10979 xorg_cv_cc_flag_unknown_warning_option=yes
10980 else case e in #(
10981 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10982 esac
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10985 esac
10986 fi
10987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10988 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10990 CFLAGS="$xorg_testset_save_CFLAGS"
10991 fi
10992
10993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10996 fi
10997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11001 then :
11002 printf %s "(cached) " >&6
11003 else case e in #(
11004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 int i;
11007 _ACEOF
11008 if ac_fn_c_try_compile "$LINENO"
11009 then :
11010 xorg_cv_cc_flag_unused_command_line_argument=yes
11011 else case e in #(
11012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11013 esac
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11016 esac
11017 fi
11018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11019 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11021 CFLAGS="$xorg_testset_save_CFLAGS"
11022 fi
11023
11024 found="no"
11025
11026 if test $found = "no" ; then
11027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11029 fi
11030
11031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11033 fi
11034
11035 CFLAGS="$CFLAGS -Waddress"
11036
11037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11038 printf %s "checking if $CC supports -Waddress... " >&6; }
11039 cacheid=xorg_cv_cc_flag__Waddress
11040 if eval test \${$cacheid+y}
11041 then :
11042 printf %s "(cached) " >&6
11043 else case e in #(
11044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 int i;
11047 int
11048 main (void)
11049 {
11050
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"
11056 then :
11057 eval $cacheid=yes
11058 else case e in #(
11059 e) eval $cacheid=no ;;
11060 esac
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11063 conftest$ac_exeext conftest.$ac_ext ;;
11064 esac
11065 fi
11066
11067
11068 CFLAGS="$xorg_testset_save_CFLAGS"
11069
11070 eval supported=\$$cacheid
11071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11072 printf '%s\n' "$supported" >&6; }
11073 if test "$supported" = "yes" ; then
11074 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11075 found="yes"
11076 fi
11077 fi
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 xorg_testset_save_CFLAGS="$CFLAGS"
11094
11095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11100 then :
11101 printf %s "(cached) " >&6
11102 else case e in #(
11103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 int i;
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"
11108 then :
11109 xorg_cv_cc_flag_unknown_warning_option=yes
11110 else case e in #(
11111 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11112 esac
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11115 esac
11116 fi
11117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11118 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11120 CFLAGS="$xorg_testset_save_CFLAGS"
11121 fi
11122
11123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11126 fi
11127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11131 then :
11132 printf %s "(cached) " >&6
11133 else case e in #(
11134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 int i;
11137 _ACEOF
11138 if ac_fn_c_try_compile "$LINENO"
11139 then :
11140 xorg_cv_cc_flag_unused_command_line_argument=yes
11141 else case e in #(
11142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11143 esac
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11146 esac
11147 fi
11148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11149 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11151 CFLAGS="$xorg_testset_save_CFLAGS"
11152 fi
11153
11154 found="no"
11155
11156 if test $found = "no" ; then
11157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11159 fi
11160
11161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11163 fi
11164
11165 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11166
11167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11168 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11169 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11170 if eval test \${$cacheid+y}
11171 then :
11172 printf %s "(cached) " >&6
11173 else case e in #(
11174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 int i;
11177 int
11178 main (void)
11179 {
11180
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"
11186 then :
11187 eval $cacheid=yes
11188 else case e in #(
11189 e) eval $cacheid=no ;;
11190 esac
11191 fi
11192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11193 conftest$ac_exeext conftest.$ac_ext ;;
11194 esac
11195 fi
11196
11197
11198 CFLAGS="$xorg_testset_save_CFLAGS"
11199
11200 eval supported=\$$cacheid
11201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11202 printf '%s\n' "$supported" >&6; }
11203 if test "$supported" = "yes" ; then
11204 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11205 found="yes"
11206 fi
11207 fi
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223 xorg_testset_save_CFLAGS="$CFLAGS"
11224
11225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11229 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11230 then :
11231 printf %s "(cached) " >&6
11232 else case e in #(
11233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 int i;
11236 _ACEOF
11237 if ac_fn_c_try_compile "$LINENO"
11238 then :
11239 xorg_cv_cc_flag_unknown_warning_option=yes
11240 else case e in #(
11241 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11242 esac
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11245 esac
11246 fi
11247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11248 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11250 CFLAGS="$xorg_testset_save_CFLAGS"
11251 fi
11252
11253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11256 fi
11257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11261 then :
11262 printf %s "(cached) " >&6
11263 else case e in #(
11264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 int i;
11267 _ACEOF
11268 if ac_fn_c_try_compile "$LINENO"
11269 then :
11270 xorg_cv_cc_flag_unused_command_line_argument=yes
11271 else case e in #(
11272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11273 esac
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11276 esac
11277 fi
11278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11279 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11281 CFLAGS="$xorg_testset_save_CFLAGS"
11282 fi
11283
11284 found="no"
11285
11286 if test $found = "no" ; then
11287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11289 fi
11290
11291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11293 fi
11294
11295 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11296
11297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11298 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11299 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11300 if eval test \${$cacheid+y}
11301 then :
11302 printf %s "(cached) " >&6
11303 else case e in #(
11304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 int i;
11307 int
11308 main (void)
11309 {
11310
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"
11316 then :
11317 eval $cacheid=yes
11318 else case e in #(
11319 e) eval $cacheid=no ;;
11320 esac
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11323 conftest$ac_exeext conftest.$ac_ext ;;
11324 esac
11325 fi
11326
11327
11328 CFLAGS="$xorg_testset_save_CFLAGS"
11329
11330 eval supported=\$$cacheid
11331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11332 printf '%s\n' "$supported" >&6; }
11333 if test "$supported" = "yes" ; then
11334 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11335 found="yes"
11336 fi
11337 fi
11338
11339
11340 fi
11341
11342
11343
11344
11345
11346
11347
11348 CWARNFLAGS="$BASE_CFLAGS"
11349 if test "x$GCC" = xyes ; then
11350 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359
11360 # Check whether --enable-strict-compilation was given.
11361 if test ${enable_strict_compilation+y}
11362 then :
11363 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11364 else case e in #(
11365 e) STRICT_COMPILE=no ;;
11366 esac
11367 fi
11368
11369
11370
11371
11372
11373
11374 STRICT_CFLAGS=""
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388 xorg_testset_save_CFLAGS="$CFLAGS"
11389
11390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11394 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else case e in #(
11398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400 int i;
11401 _ACEOF
11402 if ac_fn_c_try_compile "$LINENO"
11403 then :
11404 xorg_cv_cc_flag_unknown_warning_option=yes
11405 else case e in #(
11406 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11407 esac
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11410 esac
11411 fi
11412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11413 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11415 CFLAGS="$xorg_testset_save_CFLAGS"
11416 fi
11417
11418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11421 fi
11422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11426 then :
11427 printf %s "(cached) " >&6
11428 else case e in #(
11429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 int i;
11432 _ACEOF
11433 if ac_fn_c_try_compile "$LINENO"
11434 then :
11435 xorg_cv_cc_flag_unused_command_line_argument=yes
11436 else case e in #(
11437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11438 esac
11439 fi
11440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11441 esac
11442 fi
11443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11444 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11446 CFLAGS="$xorg_testset_save_CFLAGS"
11447 fi
11448
11449 found="no"
11450
11451 if test $found = "no" ; then
11452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11454 fi
11455
11456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11458 fi
11459
11460 CFLAGS="$CFLAGS -pedantic"
11461
11462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11463 printf %s "checking if $CC supports -pedantic... " >&6; }
11464 cacheid=xorg_cv_cc_flag__pedantic
11465 if eval test \${$cacheid+y}
11466 then :
11467 printf %s "(cached) " >&6
11468 else case e in #(
11469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471 int i;
11472 int
11473 main (void)
11474 {
11475
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"
11481 then :
11482 eval $cacheid=yes
11483 else case e in #(
11484 e) eval $cacheid=no ;;
11485 esac
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11488 conftest$ac_exeext conftest.$ac_ext ;;
11489 esac
11490 fi
11491
11492
11493 CFLAGS="$xorg_testset_save_CFLAGS"
11494
11495 eval supported=\$$cacheid
11496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11497 printf '%s\n' "$supported" >&6; }
11498 if test "$supported" = "yes" ; then
11499 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11500 found="yes"
11501 fi
11502 fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518 xorg_testset_save_CFLAGS="$CFLAGS"
11519
11520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11524 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11525 then :
11526 printf %s "(cached) " >&6
11527 else case e in #(
11528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 int i;
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"
11533 then :
11534 xorg_cv_cc_flag_unknown_warning_option=yes
11535 else case e in #(
11536 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11537 esac
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11540 esac
11541 fi
11542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11543 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11545 CFLAGS="$xorg_testset_save_CFLAGS"
11546 fi
11547
11548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11551 fi
11552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11556 then :
11557 printf %s "(cached) " >&6
11558 else case e in #(
11559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 int i;
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"
11564 then :
11565 xorg_cv_cc_flag_unused_command_line_argument=yes
11566 else case e in #(
11567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11568 esac
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11571 esac
11572 fi
11573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11574 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11576 CFLAGS="$xorg_testset_save_CFLAGS"
11577 fi
11578
11579 found="no"
11580
11581 if test $found = "no" ; then
11582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11584 fi
11585
11586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11588 fi
11589
11590 CFLAGS="$CFLAGS -Werror"
11591
11592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11593 printf %s "checking if $CC supports -Werror... " >&6; }
11594 cacheid=xorg_cv_cc_flag__Werror
11595 if eval test \${$cacheid+y}
11596 then :
11597 printf %s "(cached) " >&6
11598 else case e in #(
11599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601 int i;
11602 int
11603 main (void)
11604 {
11605
11606 ;
11607 return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"
11611 then :
11612 eval $cacheid=yes
11613 else case e in #(
11614 e) eval $cacheid=no ;;
11615 esac
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11618 conftest$ac_exeext conftest.$ac_ext ;;
11619 esac
11620 fi
11621
11622
11623 CFLAGS="$xorg_testset_save_CFLAGS"
11624
11625 eval supported=\$$cacheid
11626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11627 printf '%s\n' "$supported" >&6; }
11628 if test "$supported" = "yes" ; then
11629 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11630 found="yes"
11631 fi
11632 fi
11633
11634 if test $found = "no" ; then
11635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11637 fi
11638
11639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11641 fi
11642
11643 CFLAGS="$CFLAGS -errwarn"
11644
11645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11646 printf %s "checking if $CC supports -errwarn... " >&6; }
11647 cacheid=xorg_cv_cc_flag__errwarn
11648 if eval test \${$cacheid+y}
11649 then :
11650 printf %s "(cached) " >&6
11651 else case e in #(
11652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654 int i;
11655 int
11656 main (void)
11657 {
11658
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"
11664 then :
11665 eval $cacheid=yes
11666 else case e in #(
11667 e) eval $cacheid=no ;;
11668 esac
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11671 conftest$ac_exeext conftest.$ac_ext ;;
11672 esac
11673 fi
11674
11675
11676 CFLAGS="$xorg_testset_save_CFLAGS"
11677
11678 eval supported=\$$cacheid
11679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11680 printf '%s\n' "$supported" >&6; }
11681 if test "$supported" = "yes" ; then
11682 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11683 found="yes"
11684 fi
11685 fi
11686
11687
11688
11689 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11690 # activate it with -Werror, so we add it here explicitly.
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704 xorg_testset_save_CFLAGS="$CFLAGS"
11705
11706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11711 then :
11712 printf %s "(cached) " >&6
11713 else case e in #(
11714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 int i;
11717 _ACEOF
11718 if ac_fn_c_try_compile "$LINENO"
11719 then :
11720 xorg_cv_cc_flag_unknown_warning_option=yes
11721 else case e in #(
11722 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11723 esac
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11726 esac
11727 fi
11728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11729 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11731 CFLAGS="$xorg_testset_save_CFLAGS"
11732 fi
11733
11734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11737 fi
11738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11742 then :
11743 printf %s "(cached) " >&6
11744 else case e in #(
11745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747 int i;
11748 _ACEOF
11749 if ac_fn_c_try_compile "$LINENO"
11750 then :
11751 xorg_cv_cc_flag_unused_command_line_argument=yes
11752 else case e in #(
11753 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11754 esac
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11757 esac
11758 fi
11759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11760 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11762 CFLAGS="$xorg_testset_save_CFLAGS"
11763 fi
11764
11765 found="no"
11766
11767 if test $found = "no" ; then
11768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11770 fi
11771
11772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11774 fi
11775
11776 CFLAGS="$CFLAGS -Werror=attributes"
11777
11778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11779 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11780 cacheid=xorg_cv_cc_flag__Werror_attributes
11781 if eval test \${$cacheid+y}
11782 then :
11783 printf %s "(cached) " >&6
11784 else case e in #(
11785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 int i;
11788 int
11789 main (void)
11790 {
11791
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 if ac_fn_c_try_link "$LINENO"
11797 then :
11798 eval $cacheid=yes
11799 else case e in #(
11800 e) eval $cacheid=no ;;
11801 esac
11802 fi
11803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11804 conftest$ac_exeext conftest.$ac_ext ;;
11805 esac
11806 fi
11807
11808
11809 CFLAGS="$xorg_testset_save_CFLAGS"
11810
11811 eval supported=\$$cacheid
11812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11813 printf '%s\n' "$supported" >&6; }
11814 if test "$supported" = "yes" ; then
11815 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11816 found="yes"
11817 fi
11818 fi
11819
11820
11821
11822 if test "x$STRICT_COMPILE" = "xyes"; then
11823 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11824 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11825 fi
11826
11827
11828
11829
11830
11831
11832
11833
11834 cat >>confdefs.h <<_ACEOF
11835 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11836 _ACEOF
11837
11838 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11839 if test "x$PVM" = "x"; then
11840 PVM="0"
11841 fi
11842
11843 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11844
11845 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11846 if test "x$PVP" = "x"; then
11847 PVP="0"
11848 fi
11849
11850 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11851
11852
11853
11854 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11855 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11856 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11857 touch \$(top_srcdir)/ChangeLog; \
11858 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11859
11860
11861
11862
11863 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11864 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11865 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11866 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11867 touch \$(top_srcdir)/INSTALL; \
11868 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11869
11870
11871
11872
11873
11874
11875 case $host_os in
11876 solaris*)
11877 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11878 # check for a man page file found in later versions that use
11879 # traditional section numbers instead
11880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11881 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11882 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11883 then :
11884 printf %s "(cached) " >&6
11885 else case e in #(
11886 e) test "$cross_compiling" = yes &&
11887 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11888 if test -r "/usr/share/man/man7/attributes.7"; then
11889 ac_cv_file__usr_share_man_man7_attributes_7=yes
11890 else
11891 ac_cv_file__usr_share_man_man7_attributes_7=no
11892 fi ;;
11893 esac
11894 fi
11895 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11896 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11897 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11898 then :
11899 SYSV_MAN_SECTIONS=false
11900 else case e in #(
11901 e) SYSV_MAN_SECTIONS=true ;;
11902 esac
11903 fi
11904
11905 ;;
11906 *) SYSV_MAN_SECTIONS=false ;;
11907 esac
11908
11909 if test x$APP_MAN_SUFFIX = x ; then
11910 APP_MAN_SUFFIX=1
11911 fi
11912 if test x$APP_MAN_DIR = x ; then
11913 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11914 fi
11915
11916 if test x$LIB_MAN_SUFFIX = x ; then
11917 LIB_MAN_SUFFIX=3
11918 fi
11919 if test x$LIB_MAN_DIR = x ; then
11920 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11921 fi
11922
11923 if test x$FILE_MAN_SUFFIX = x ; then
11924 case $SYSV_MAN_SECTIONS in
11925 true) FILE_MAN_SUFFIX=4 ;;
11926 *) FILE_MAN_SUFFIX=5 ;;
11927 esac
11928 fi
11929 if test x$FILE_MAN_DIR = x ; then
11930 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11931 fi
11932
11933 if test x$MISC_MAN_SUFFIX = x ; then
11934 case $SYSV_MAN_SECTIONS in
11935 true) MISC_MAN_SUFFIX=5 ;;
11936 *) MISC_MAN_SUFFIX=7 ;;
11937 esac
11938 fi
11939 if test x$MISC_MAN_DIR = x ; then
11940 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11941 fi
11942
11943 if test x$DRIVER_MAN_SUFFIX = x ; then
11944 case $SYSV_MAN_SECTIONS in
11945 true) DRIVER_MAN_SUFFIX=7 ;;
11946 *) DRIVER_MAN_SUFFIX=4 ;;
11947 esac
11948 fi
11949 if test x$DRIVER_MAN_DIR = x ; then
11950 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11951 fi
11952
11953 if test x$ADMIN_MAN_SUFFIX = x ; then
11954 case $SYSV_MAN_SECTIONS in
11955 true) ADMIN_MAN_SUFFIX=1m ;;
11956 *) ADMIN_MAN_SUFFIX=8 ;;
11957 esac
11958 fi
11959 if test x$ADMIN_MAN_DIR = x ; then
11960 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11961 fi
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977 XORG_MAN_PAGE="X Version 11"
11978
11979 MAN_SUBSTS="\
11980 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11981 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11982 -e 's|__xservername__|Xorg|g' \
11983 -e 's|__xconfigfile__|xorg.conf|g' \
11984 -e 's|__projectroot__|\$(prefix)|g' \
11985 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11986 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11987 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11988 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11989 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11990 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11991 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11992
11993
11994
11995
11996 AM_DEFAULT_VERBOSITY=0
11997
11998
11999
12000
12001
12002 # Checks for typedefs, structures, and compiler characteristics.
12003 # Check whether --enable-largefile was given.
12004 if test ${enable_largefile+y}
12005 then :
12006 enableval=$enable_largefile;
12007 fi
12008 if test "$enable_largefile,$enable_year2038" != no,no
12009 then :
12010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
12011 printf %s "checking for $CC option to support large files... " >&6; }
12012 if test ${ac_cv_sys_largefile_opts+y}
12013 then :
12014 printf %s "(cached) " >&6
12015 else case e in #(
12016 e) ac_save_CPPFLAGS=$CPPFLAGS
12017 ac_opt_found=no
12018 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
12019 if test x"$ac_opt" != x"none needed"
12020 then :
12021 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12022 fi
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #include <sys/types.h>
12026 #ifndef FTYPE
12027 # define FTYPE off_t
12028 #endif
12029 /* Check that FTYPE can represent 2**63 - 1 correctly.
12030 We can't simply define LARGE_FTYPE to be 9223372036854775807,
12031 since some C++ compilers masquerading as C compilers
12032 incorrectly reject 9223372036854775807. */
12033 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
12034 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
12035 && LARGE_FTYPE % 2147483647 == 1)
12036 ? 1 : -1];
12037 int
12038 main (void)
12039 {
12040
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 if ac_fn_c_try_compile "$LINENO"
12046 then :
12047 if test x"$ac_opt" = x"none needed"
12048 then :
12049 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
12050 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
12051 if ac_fn_c_try_compile "$LINENO"
12052 then :
12053
12054 else case e in #(
12055 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
12056 if ac_fn_c_try_compile "$LINENO"
12057 then :
12058 ac_opt='-D_FILE_OFFSET_BITS=64'
12059 fi
12060 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
12061 esac
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext conftest.beam
12064 fi
12065 ac_cv_sys_largefile_opts=$ac_opt
12066 ac_opt_found=yes
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12069 test $ac_opt_found = no || break
12070 done
12071 CPPFLAGS=$ac_save_CPPFLAGS
12072
12073 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12074 esac
12075 fi
12076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12077 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }
12078
12079 ac_have_largefile=yes
12080 case $ac_cv_sys_largefile_opts in #(
12081 "none needed") :
12082 ;; #(
12083 "supported through gnulib") :
12084 ;; #(
12085 "support not detected") :
12086 ac_have_largefile=no ;; #(
12087 "-D_FILE_OFFSET_BITS=64") :
12088
12089 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12090 ;; #(
12091 "-D_LARGE_FILES=1") :
12092
12093 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h
12094 ;; #(
12095 *) :
12096 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12097 esac
12098
12099 if test "$enable_year2038" != no
12100 then :
12101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
12102 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
12103 if test ${ac_cv_sys_year2038_opts+y}
12104 then :
12105 printf %s "(cached) " >&6
12106 else case e in #(
12107 e) ac_save_CPPFLAGS="$CPPFLAGS"
12108 ac_opt_found=no
12109 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
12110 if test x"$ac_opt" != x"none needed"
12111 then :
12112 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12113 fi
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116
12117 #include <time.h>
12118 /* Check that time_t can represent 2**32 - 1 correctly. */
12119 #define LARGE_TIME_T \\
12120 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12121 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12122 && LARGE_TIME_T % 65537 == 0)
12123 ? 1 : -1];
12124
12125 int
12126 main (void)
12127 {
12128
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"
12134 then :
12135 ac_cv_sys_year2038_opts="$ac_opt"
12136 ac_opt_found=yes
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12139 test $ac_opt_found = no || break
12140 done
12141 CPPFLAGS="$ac_save_CPPFLAGS"
12142 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12143 esac
12144 fi
12145 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12146 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }
12147
12148 ac_have_year2038=yes
12149 case $ac_cv_sys_year2038_opts in #(
12150 "none needed") :
12151 ;; #(
12152 "support not detected") :
12153 ac_have_year2038=no ;; #(
12154 "-D_TIME_BITS=64") :
12155
12156 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h
12157 ;; #(
12158 "-D__MINGW_USE_VC2005_COMPAT") :
12159
12160 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12161 ;; #(
12162 "-U_USE_32_BIT_TIME_T"*) :
12163 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12164 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12165 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12166 will stop working after mid-January 2038. Remove
12167 _USE_32BIT_TIME_T from the compiler flags.
12168 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12169 *) :
12170 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12171 esac
12172
12173 fi
12174
12175 fi
12176
12177 # Checks for library functions.
12178 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
12179 if test "x$ac_cv_func_reallocarray" = xyes
12180 then :
12181 printf '%s\n' "#define HAVE_REALLOCARRAY 1" >>confdefs.h
12182
12183 fi
12184
12185
12186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
12187 printf %s "checking for root directory for font files... " >&6; }
12188 fontrootdir='${datadir}/fonts/X11'
12189
12190 # Check whether --with-fontrootdir was given.
12191 if test ${with_fontrootdir+y}
12192 then :
12193 withval=$with_fontrootdir; fontrootdir="${withval}"
12194 fi
12195
12196
12197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
12198 printf '%s\n' "${fontrootdir}" >&6; }
12199
12200 mapdir='${fontrootdir}/util'
12201
12202 # Check whether --with-mapdir was given.
12203 if test ${with_mapdir+y}
12204 then :
12205 withval=$with_mapdir; mapdir="${withval}"
12206 fi
12207
12208 MAPDIR="$mapdir"
12209
12210
12211 ac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
12212
12213
12214 cat >confcache <<\_ACEOF
12215 # This file is a shell script that caches the results of configure
12216 # tests run on this system so they can be shared between configure
12217 # scripts and configure runs, see configure's option --config-cache.
12218 # It is not useful on other systems. If it contains results you don't
12219 # want to keep, you may remove or edit it.
12220 #
12221 # config.status only pays attention to the cache file if you give it
12222 # the --recheck option to rerun configure.
12223 #
12224 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12225 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12226 # following values.
12227
12228 _ACEOF
12229
12230 ac_cache_dump |
12231 sed '
12232 /^ac_cv_env_/b end
12233 t clear
12234 :clear
12235 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12236 t end
12237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12238 :end' >>confcache
12239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12240 if test -w "$cache_file"; then
12241 if test "x$cache_file" != "x/dev/null"; then
12242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12243 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12244 if test ! -f "$cache_file" || test -h "$cache_file"; then
12245 cat confcache >"$cache_file"
12246 else
12247 case $cache_file in #(
12248 */* | ?:*)
12249 mv -f confcache "$cache_file"$$ &&
12250 mv -f "$cache_file"$$ "$cache_file" ;; #(
12251 *)
12252 mv -f confcache "$cache_file" ;;
12253 esac
12254 fi
12255 fi
12256 else
12257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12258 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12259 fi
12260 fi
12261 rm -f confcache
12262
12263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12264 # Let make expand exec_prefix.
12265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12266
12267 DEFS=-DHAVE_CONFIG_H
12268
12269 ac_libobjs=
12270 ac_ltlibobjs=
12271 U=
12272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12273 # 1. Remove the extension, and $U if already installed.
12274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12275 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12277 # will be set to the directory where LIBOBJS objects are built.
12278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12280 done
12281 LIBOBJS=$ac_libobjs
12282
12283 LTLIBOBJS=$ac_ltlibobjs
12284
12285
12286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12287 printf %s "checking that generated files are newer than configure... " >&6; }
12288 if test -n "$am_sleep_pid"; then
12289 # Hide warnings about reused PIDs.
12290 wait $am_sleep_pid 2>/dev/null
12291 fi
12292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12293 printf '%s\n' "done" >&6; }
12294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12295 as_fn_error $? "conditional \"AMDEP\" was never defined.
12296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12297 fi
12298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12299 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12301 fi
12302 case $enable_silent_rules in # (((
12303 yes) AM_DEFAULT_VERBOSITY=0;;
12304 no) AM_DEFAULT_VERBOSITY=1;;
12305 esac
12306 if test $am_cv_make_support_nested_variables = yes; then
12307 AM_V='$(V)'
12308 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12309 else
12310 AM_V=$AM_DEFAULT_VERBOSITY
12311 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12312 fi
12313
12314 if test -n "$EXEEXT"; then
12315 am__EXEEXT_TRUE=
12316 am__EXEEXT_FALSE='#'
12317 else
12318 am__EXEEXT_TRUE='#'
12319 am__EXEEXT_FALSE=
12320 fi
12321
12322 # Check whether --enable-year2038 was given.
12323 if test ${enable_year2038+y}
12324 then :
12325 enableval=$enable_year2038;
12326 fi
12327
12328
12329 : "${CONFIG_STATUS=./config.status}"
12330 case $CONFIG_STATUS in #(
12331 -*) :
12332 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12333 */*) :
12334 ;; #(
12335 *) :
12336 CONFIG_STATUS=./$CONFIG_STATUS ;;
12337 esac
12338
12339 ac_write_fail=0
12340 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12342 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12343 as_write_fail=0
12344 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12345 #! $SHELL
12346 # Generated by $as_me.
12347 # Run this file to recreate the current configuration.
12348 # Compiler output produced by configure, useful for debugging
12349 # configure, is in config.log if it exists.
12350
12351 debug=false
12352 ac_cs_recheck=false
12353 ac_cs_silent=false
12354
12355 SHELL=\${CONFIG_SHELL-$SHELL}
12356 export SHELL
12357 _ASEOF
12358 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12359 ## -------------------- ##
12360 ## M4sh Initialization. ##
12361 ## -------------------- ##
12362
12363 # Be more Bourne compatible
12364 DUALCASE=1; export DUALCASE # for MKS sh
12365 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12366 then :
12367 emulate sh
12368 NULLCMD=:
12369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12370 # contradicts POSIX and common usage. Disable this.
12371 alias -g '${1+"$@"}'='"$@"'
12372 setopt NO_GLOB_SUBST
12373 else case e in #(
12374 e) case `(set -o) 2>/dev/null` in #(
12375 *posix*) :
12376 set -o posix ;; #(
12377 *) :
12378 ;;
12379 esac ;;
12380 esac
12381 fi
12382
12383
12384
12385 # Reset variables that may have inherited troublesome values from
12386 # the environment.
12387
12388 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12389 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12390 # side effect of setting IFS to empty, thus disabling word splitting.)
12391 # Quoting is to prevent editors from complaining about space-tab.
12392 as_nl='
12393 '
12394 export as_nl
12395 IFS=" "" $as_nl"
12396
12397 PS1='$ '
12398 PS2='> '
12399 PS4='+ '
12400
12401 # Ensure predictable behavior from utilities with locale-dependent output.
12402 LC_ALL=C
12403 export LC_ALL
12404 LANGUAGE=C
12405 export LANGUAGE
12406
12407 # We cannot yet rely on "unset" to work, but we need these variables
12408 # to be unset--not just set to an empty or harmless value--now, to
12409 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12410 # also avoids known problems related to "unset" and subshell syntax
12411 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12412 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12413 do eval test \${$as_var+y} \
12414 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12415 done
12416
12417 # Ensure that fds 0, 1, and 2 are open.
12418 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12419 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12420 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12421
12422 # The user is always right.
12423 if ${PATH_SEPARATOR+false} :; then
12424 PATH_SEPARATOR=:
12425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12427 PATH_SEPARATOR=';'
12428 }
12429 fi
12430
12431
12432 # Find who we are. Look in the path if we contain no directory separator.
12433 as_myself=
12434 case $0 in #((
12435 *[\\/]* ) as_myself=$0 ;;
12436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439 IFS=$as_save_IFS
12440 case $as_dir in #(((
12441 '') as_dir=./ ;;
12442 */) ;;
12443 *) as_dir=$as_dir/ ;;
12444 esac
12445 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12446 done
12447 IFS=$as_save_IFS
12448
12449 ;;
12450 esac
12451 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12452 # in which case we are not to be found in the path.
12453 if test "x$as_myself" = x; then
12454 as_myself=$0
12455 fi
12456 if test ! -f "$as_myself"; then
12457 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12458 exit 1
12459 fi
12460
12461
12462
12463 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12464 # ----------------------------------------
12465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12467 # script with STATUS, using 1 if that was 0.
12468 as_fn_error ()
12469 {
12470 as_status=$1; test $as_status -eq 0 && as_status=1
12471 if test "$4"; then
12472 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12473 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12474 fi
12475 printf '%s\n' "$as_me: error: $2" >&2
12476 as_fn_exit $as_status
12477 } # as_fn_error
12478
12479
12480 # as_fn_set_status STATUS
12481 # -----------------------
12482 # Set $? to STATUS, without forking.
12483 as_fn_set_status ()
12484 {
12485 return $1
12486 } # as_fn_set_status
12487
12488 # as_fn_exit STATUS
12489 # -----------------
12490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12491 as_fn_exit ()
12492 {
12493 set +e
12494 as_fn_set_status $1
12495 exit $1
12496 } # as_fn_exit
12497
12498 # as_fn_unset VAR
12499 # ---------------
12500 # Portably unset VAR.
12501 as_fn_unset ()
12502 {
12503 { eval $1=; unset $1;}
12504 }
12505 as_unset=as_fn_unset
12506
12507 # as_fn_append VAR VALUE
12508 # ----------------------
12509 # Append the text in VALUE to the end of the definition contained in VAR. Take
12510 # advantage of any shell optimizations that allow amortized linear growth over
12511 # repeated appends, instead of the typical quadratic growth present in naive
12512 # implementations.
12513 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12514 then :
12515 eval 'as_fn_append ()
12516 {
12517 eval $1+=\$2
12518 }'
12519 else case e in #(
12520 e) as_fn_append ()
12521 {
12522 eval $1=\$$1\$2
12523 } ;;
12524 esac
12525 fi # as_fn_append
12526
12527 # as_fn_arith ARG...
12528 # ------------------
12529 # Perform arithmetic evaluation on the ARGs, and store the result in the
12530 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12531 # must be portable across $(()) and expr.
12532 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12533 then :
12534 eval 'as_fn_arith ()
12535 {
12536 as_val=$(( $* ))
12537 }'
12538 else case e in #(
12539 e) as_fn_arith ()
12540 {
12541 as_val=`expr "$@" || test $? -eq 1`
12542 } ;;
12543 esac
12544 fi # as_fn_arith
12545
12546
12547 if expr a : '\(a\)' >/dev/null 2>&1 &&
12548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12549 as_expr=expr
12550 else
12551 as_expr=false
12552 fi
12553
12554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12555 as_basename=basename
12556 else
12557 as_basename=false
12558 fi
12559
12560 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12561 as_dirname=dirname
12562 else
12563 as_dirname=false
12564 fi
12565
12566 as_me=`$as_basename -- "$0" ||
12567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12568 X"$0" : 'X\(//\)$' \| \
12569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12570 printf '%s\n' X/"$0" |
12571 sed '/^.*\/\([^/][^/]*\)\/*$/{
12572 s//\1/
12573 q
12574 }
12575 /^X\/\(\/\/\)$/{
12576 s//\1/
12577 q
12578 }
12579 /^X\/\(\/\).*/{
12580 s//\1/
12581 q
12582 }
12583 s/.*/./; q'`
12584
12585 # Avoid depending upon Character Ranges.
12586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12589 as_cr_digits='0123456789'
12590 as_cr_alnum=$as_cr_Letters$as_cr_digits
12591
12592 rm -f conf$$ conf$$.exe conf$$.file
12593 if test -d conf$$.dir; then
12594 rm -f conf$$.dir/conf$$.file
12595 else
12596 rm -f conf$$.dir
12597 mkdir conf$$.dir 2>/dev/null
12598 fi
12599 if (echo >conf$$.file) 2>/dev/null; then
12600 if ln -s conf$$.file conf$$ 2>/dev/null; then
12601 as_ln_s='ln -s'
12602 # ... but there are two gotchas:
12603 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12604 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12605 # In both cases, we have to default to 'cp -pR'.
12606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12607 as_ln_s='cp -pR'
12608 elif ln conf$$.file conf$$ 2>/dev/null; then
12609 as_ln_s=ln
12610 else
12611 as_ln_s='cp -pR'
12612 fi
12613 else
12614 as_ln_s='cp -pR'
12615 fi
12616 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12617 rmdir conf$$.dir 2>/dev/null
12618
12619
12620 # as_fn_mkdir_p
12621 # -------------
12622 # Create "$as_dir" as a directory, including parents if necessary.
12623 as_fn_mkdir_p ()
12624 {
12625
12626 case $as_dir in #(
12627 -*) as_dir=./$as_dir;;
12628 esac
12629 test -d "$as_dir" || eval $as_mkdir_p || {
12630 as_dirs=
12631 while :; do
12632 case $as_dir in #(
12633 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12634 *) as_qdir=$as_dir;;
12635 esac
12636 as_dirs="'$as_qdir' $as_dirs"
12637 as_dir=`$as_dirname -- "$as_dir" ||
12638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12639 X"$as_dir" : 'X\(//\)[^/]' \| \
12640 X"$as_dir" : 'X\(//\)$' \| \
12641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12642 printf '%s\n' X"$as_dir" |
12643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12644 s//\1/
12645 q
12646 }
12647 /^X\(\/\/\)[^/].*/{
12648 s//\1/
12649 q
12650 }
12651 /^X\(\/\/\)$/{
12652 s//\1/
12653 q
12654 }
12655 /^X\(\/\).*/{
12656 s//\1/
12657 q
12658 }
12659 s/.*/./; q'`
12660 test -d "$as_dir" && break
12661 done
12662 test -z "$as_dirs" || eval "mkdir $as_dirs"
12663 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12664
12665
12666 } # as_fn_mkdir_p
12667 if mkdir -p . 2>/dev/null; then
12668 as_mkdir_p='mkdir -p "$as_dir"'
12669 else
12670 test -d ./-p && rmdir ./-p
12671 as_mkdir_p=false
12672 fi
12673
12674
12675 # as_fn_executable_p FILE
12676 # -----------------------
12677 # Test if FILE is an executable regular file.
12678 as_fn_executable_p ()
12679 {
12680 test -f "$1" && test -x "$1"
12681 } # as_fn_executable_p
12682 as_test_x='test -x'
12683 as_executable_p=as_fn_executable_p
12684
12685 # Sed expression to map a string onto a valid CPP name.
12686 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12687 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12688
12689 # Sed expression to map a string onto a valid variable name.
12690 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12691 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12692
12693
12694 exec 6>&1
12695 ## ------------------------------------- ##
12696 ## Main body of "$CONFIG_STATUS" script. ##
12697 ## ------------------------------------- ##
12698 _ASEOF
12699 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12700
12701 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12702 # Save the log message, to keep $0 and so on meaningful, and to
12703 # report actual input values of CONFIG_FILES etc. instead of their
12704 # values after options handling.
12705 ac_log="
12706 This file was extended by font-util $as_me 1.4.2, which was
12707 generated by GNU Autoconf 2.73. Invocation command line was
12708
12709 CONFIG_FILES = $CONFIG_FILES
12710 CONFIG_HEADERS = $CONFIG_HEADERS
12711 CONFIG_LINKS = $CONFIG_LINKS
12712 CONFIG_COMMANDS = $CONFIG_COMMANDS
12713 $ $0 $@
12714
12715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12716 "
12717
12718 _ACEOF
12719
12720 case $ac_config_files in *"
12721 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12722 esac
12723
12724 case $ac_config_headers in *"
12725 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12726 esac
12727
12728
12729 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12730 # Files that config.status was made for.
12731 config_files="$ac_config_files"
12732 config_headers="$ac_config_headers"
12733 config_commands="$ac_config_commands"
12734
12735 _ACEOF
12736
12737 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12738 ac_cs_usage="\
12739 '$as_me' instantiates files and other configuration actions
12740 from templates according to the current configuration. Unless the files
12741 and actions are specified as TAGs, all are instantiated by default.
12742
12743 Usage: $0 [OPTION]... [TAG]...
12744
12745 -h, --help print this help, then exit
12746 -V, --version print version number and configuration settings, then exit
12747 --config print configuration, then exit
12748 -q, --quiet, --silent
12749 do not print progress messages
12750 -d, --debug don't remove temporary files
12751 --recheck update $as_me by reconfiguring in the same conditions
12752 --file=FILE[:TEMPLATE]
12753 instantiate the configuration file FILE
12754 --header=FILE[:TEMPLATE]
12755 instantiate the configuration header FILE
12756
12757 Configuration files:
12758 $config_files
12759
12760 Configuration headers:
12761 $config_headers
12762
12763 Configuration commands:
12764 $config_commands
12765
12766 Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>."
12767
12768 _ACEOF
12769 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12770 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12771 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12772 ac_cs_config='$ac_cs_config_escaped'
12773 ac_cs_version="\\
12774 font-util config.status 1.4.2
12775 configured by $0, generated by GNU Autoconf 2.73,
12776 with options \\"\$ac_cs_config\\"
12777
12778 Copyright (C) 2026 Free Software Foundation, Inc.
12779 This config.status script is free software; the Free Software Foundation
12780 gives unlimited permission to copy, distribute and modify it."
12781
12782 ac_pwd='$ac_pwd'
12783 srcdir='$srcdir'
12784 INSTALL='$INSTALL'
12785 MKDIR_P='$MKDIR_P'
12786 AWK='$AWK'
12787 test -n "\$AWK" || {
12788 awk '' </dev/null ||
12789 as_fn_error \$? "try installing gawk"
12790 AWK=awk
12791 }
12792 _ACEOF
12793
12794 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12795 # The default lists apply if the user does not specify any file.
12796 ac_need_defaults=:
12797 while test $# != 0
12798 do
12799 case $1 in
12800 --*=?*)
12801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12803 ac_shift=:
12804 ;;
12805 --*=)
12806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12807 ac_optarg=
12808 ac_shift=:
12809 ;;
12810 *)
12811 ac_option=$1
12812 ac_optarg=$2
12813 ac_shift=shift
12814 ;;
12815 esac
12816
12817 case $ac_option in
12818 # Handling of the options.
12819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12820 ac_cs_recheck=: ;;
12821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12822 printf '%s\n' "$ac_cs_version"; exit ;;
12823 --config | --confi | --conf | --con | --co | --c )
12824 printf '%s\n' "$ac_cs_config"; exit ;;
12825 --debug | --debu | --deb | --de | --d | -d )
12826 debug=: ;;
12827 --file | --fil | --fi | --f )
12828 $ac_shift
12829 case $ac_optarg in
12830 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12831 '') as_fn_error $? "missing file argument" ;;
12832 esac
12833 as_fn_append CONFIG_FILES " '$ac_optarg'"
12834 ac_need_defaults=false;;
12835 --header | --heade | --head | --hea )
12836 $ac_shift
12837 case $ac_optarg in
12838 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12839 esac
12840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12841 ac_need_defaults=false;;
12842 --he | --h)
12843 # Conflict between --help and --header
12844 as_fn_error $? "ambiguous option: '$1'
12845 Try '$0 --help' for more information.";;
12846 --help | --hel | -h )
12847 printf '%s\n' "$ac_cs_usage"; exit ;;
12848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12850 ac_cs_silent=: ;;
12851
12852 # This is an error.
12853 -*) as_fn_error $? "unrecognized option: '$1'
12854 Try '$0 --help' for more information." ;;
12855
12856 *) as_fn_append ac_config_targets " $1"
12857 ac_need_defaults=false ;;
12858
12859 esac
12860 shift
12861 done
12862
12863 ac_configure_extra_args=
12864
12865 if $ac_cs_silent; then
12866 exec 6>/dev/null
12867 ac_configure_extra_args="$ac_configure_extra_args --silent"
12868 fi
12869
12870 _ACEOF
12871 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12872 if \$ac_cs_recheck; then
12873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12874 shift
12875 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12876 CONFIG_SHELL='$SHELL'
12877 export CONFIG_SHELL
12878 exec "\$@"
12879 fi
12880
12881 _ACEOF
12882 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12883 exec 5>>config.log
12884 {
12885 echo
12886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12887 ## Running $as_me. ##
12888 _ASBOX
12889 printf '%s\n' "$ac_log"
12890 } >&5
12891
12892 _ACEOF
12893 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12894 #
12895 # INIT-COMMANDS
12896 #
12897 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12898
12899 _ACEOF
12900
12901 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12902
12903 # Handling of arguments.
12904 for ac_config_target in $ac_config_targets
12905 do
12906 case $ac_config_target in
12907 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12908 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12909 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12910 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12911 "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
12912 "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
12913
12914 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12915 esac
12916 done
12917
12918
12919 # If the user did not use the arguments to specify the items to instantiate,
12920 # then the envvar interface is used. Set only those that are not.
12921 # We use the long form for the default assignment because of an extremely
12922 # bizarre bug on SunOS 4.1.3.
12923 if $ac_need_defaults; then
12924 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12925 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12926 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12927 fi
12928
12929 # Have a temporary directory for convenience. Make it in the build tree
12930 # simply because there is no reason against having it here, and in addition,
12931 # creating and moving files from /tmp can sometimes cause problems.
12932 # Hook for its removal unless debugging.
12933 # Note that there is a small window in which the directory will not be cleaned:
12934 # after its creation but before its name has been assigned to '$tmp'.
12935 $debug ||
12936 {
12937 tmp= ac_tmp=
12938 trap 'exit_status=$?
12939 : "${ac_tmp:=$tmp}"
12940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12941 ' 0
12942 trap 'as_fn_exit 1' 1 2 13 15
12943 }
12944 # Create a (secure) tmp directory for tmp files.
12945
12946 {
12947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12948 test -d "$tmp"
12949 } ||
12950 {
12951 tmp=./conf$$-$RANDOM
12952 (umask 077 && mkdir "$tmp")
12953 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12954 ac_tmp=$tmp
12955
12956 # Set up the scripts for CONFIG_FILES section.
12957 # No need to generate them if there are no CONFIG_FILES.
12958 # This happens for instance with './config.status config.h'.
12959 if test -n "$CONFIG_FILES"; then
12960
12961
12962 ac_cr=`echo X | tr X '\015'`
12963 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12964 # But we know of no other shell where ac_cr would be empty at this
12965 # point, so we can use a bashism as a fallback.
12966 if test "x$ac_cr" = x; then
12967 eval ac_cr=\$\'\\r\'
12968 fi
12969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12971 ac_cs_awk_cr='\\r'
12972 else
12973 ac_cs_awk_cr=$ac_cr
12974 fi
12975
12976 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12977 _ACEOF
12978
12979
12980 {
12981 echo "cat >conf$$subs.awk <<_ACEOF" &&
12982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12983 echo "_ACEOF"
12984 } >conf$$subs.sh ||
12985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12986 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
12987 ac_delim='%!_!# '
12988 for ac_last_try in false false false false false :; do
12989 . ./conf$$subs.sh ||
12990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12991
12992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
12993 if test $ac_delim_n = $ac_delim_num; then
12994 break
12995 elif $ac_last_try; then
12996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12997 else
12998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12999 fi
13000 done
13001 rm -f conf$$subs.sh
13002
13003 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13004 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13005 _ACEOF
13006 sed -n '
13007 h
13008 s/^/S["/; s/!.*/"]=/
13009 p
13010 g
13011 s/^[^!]*!//
13012 :repl
13013 t repl
13014 s/'"$ac_delim"'$//
13015 t delim
13016 :nl
13017 h
13018 s/\(.\{148\}\)..*/\1/
13019 t more1
13020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13021 p
13022 n
13023 b repl
13024 :more1
13025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13026 p
13027 g
13028 s/.\{148\}//
13029 t nl
13030 :delim
13031 h
13032 s/\(.\{148\}\)..*/\1/
13033 t more2
13034 s/["\\]/\\&/g; s/^/"/; s/$/"/
13035 p
13036 b
13037 :more2
13038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13039 p
13040 g
13041 s/.\{148\}//
13042 t delim
13043 ' <conf$$subs.awk | sed '
13044 /^[^""]/{
13045 N
13046 s/\n//
13047 }
13048 ' >>"$CONFIG_STATUS" || ac_write_fail=1
13049 rm -f conf$$subs.awk
13050 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13051 _ACAWK
13052 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13053 for (key in S) S_is_set[key] = 1
13054 FS = ""
13055
13056 }
13057 {
13058 line = $ 0
13059 nfields = split(line, field, "@")
13060 substed = 0
13061 len = length(field[1])
13062 for (i = 2; i < nfields; i++) {
13063 key = field[i]
13064 keylen = length(key)
13065 if (S_is_set[key]) {
13066 value = S[key]
13067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13068 len += length(value) + length(field[++i])
13069 substed = 1
13070 } else
13071 len += 1 + keylen
13072 }
13073
13074 print line
13075 }
13076
13077 _ACAWK
13078 _ACEOF
13079 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13082 else
13083 cat
13084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13086 _ACEOF
13087
13088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13090 # trailing colons and then remove the whole line if VPATH becomes empty
13091 # (actually we leave an empty line to preserve line numbers).
13092 if test "x$srcdir" = x.; then
13093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13094 h
13095 s///
13096 s/^/:/
13097 s/[ ]*$/:/
13098 s/:\$(srcdir):/:/g
13099 s/:\${srcdir}:/:/g
13100 s/:@srcdir@:/:/g
13101 s/^:*//
13102 s/:*$//
13103 x
13104 s/\(=[ ]*\).*/\1/
13105 G
13106 s/\n//
13107 s/^[^=]*=[ ]*$//
13108 }'
13109 fi
13110
13111 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13112 fi # test -n "$CONFIG_FILES"
13113
13114 # Set up the scripts for CONFIG_HEADERS section.
13115 # No need to generate them if there are no CONFIG_HEADERS.
13116 # This happens for instance with './config.status Makefile'.
13117 if test -n "$CONFIG_HEADERS"; then
13118 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13119 BEGIN {
13120 _ACEOF
13121
13122 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13123 # here-document in config.status, that substitutes the proper values into
13124 # config.h.in to produce config.h.
13125
13126 # Create a delimiter string that does not exist in confdefs.h, to ease
13127 # handling of long lines.
13128 ac_delim='%!_!# '
13129 for ac_last_try in false false :; do
13130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13131 if test -z "$ac_tt"; then
13132 break
13133 elif $ac_last_try; then
13134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13135 else
13136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13137 fi
13138 done
13139
13140 # For the awk script, D is an array of macro values keyed by name,
13141 # likewise P contains macro parameters if any. Preserve backslash
13142 # newline sequences.
13143
13144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13145 sed -n '
13146 s/.\{148\}/&'"$ac_delim"'/g
13147 t rset
13148 :rset
13149 s/^[ ]*#[ ]*define[ ][ ]*/ /
13150 t def
13151 d
13152 :def
13153 s/\\$//
13154 t bsnl
13155 s/["\\]/\\&/g
13156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13157 D["\1"]=" \3"/p
13158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13159 d
13160 :bsnl
13161 s/["\\]/\\&/g
13162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13163 D["\1"]=" \3\\\\\\n"\\/p
13164 t cont
13165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13166 t cont
13167 d
13168 :cont
13169 n
13170 s/.\{148\}/&'"$ac_delim"'/g
13171 t clear
13172 :clear
13173 s/\\$//
13174 t bsnlc
13175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13176 d
13177 :bsnlc
13178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13179 b cont
13180 ' <confdefs.h | sed '
13181 s/'"$ac_delim"'/"\\\
13182 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13183
13184 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13185 for (key in D) D_is_set[key] = 1
13186 FS = ""
13187 }
13188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13189 line = \$ 0
13190 split(line, arg, " ")
13191 if (arg[1] == "#") {
13192 defundef = arg[2]
13193 mac1 = arg[3]
13194 } else {
13195 defundef = substr(arg[1], 2)
13196 mac1 = arg[2]
13197 }
13198 split(mac1, mac2, "(") #)
13199 macro = mac2[1]
13200 prefix = substr(line, 1, index(line, defundef) - 1)
13201 if (D_is_set[macro]) {
13202 suffix = P[macro] D[macro]
13203 while (suffix ~ /[\t ]$/) {
13204 suffix = substr(suffix, 1, length(suffix) - 1)
13205 }
13206 # Preserve the white space surrounding the "#".
13207 print prefix "define", macro suffix
13208 next
13209 } else {
13210 # Replace #undef with comments. This is necessary, for example,
13211 # in the case of _POSIX_SOURCE, which is predefined and required
13212 # on some systems where configure will not decide to define it.
13213 if (defundef == "undef") {
13214 print "/*", prefix defundef, macro, "*/"
13215 next
13216 }
13217 }
13218 }
13219 { print }
13220 _ACAWK
13221 _ACEOF
13222 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13223 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13224 fi # test -n "$CONFIG_HEADERS"
13225
13226
13227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13228 shift
13229 for ac_tag
13230 do
13231 case $ac_tag in
13232 :[FHLC]) ac_mode=$ac_tag; continue;;
13233 esac
13234 case $ac_mode$ac_tag in
13235 :[FHL]*:*);;
13236 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13237 :[FH]-) ac_tag=-:-;;
13238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13239 esac
13240 ac_save_IFS=$IFS
13241 IFS=:
13242 set x $ac_tag
13243 IFS=$ac_save_IFS
13244 shift
13245 ac_file=$1
13246 shift
13247
13248 case $ac_mode in
13249 :L) ac_source=$1;;
13250 :[FH])
13251 ac_file_inputs=
13252 for ac_f
13253 do
13254 case $ac_f in
13255 -) ac_f="$ac_tmp/stdin";;
13256 *) # Look for the file first in the build tree, then in the source tree
13257 # (if the path is not absolute). The absolute path cannot be DOS-style,
13258 # because $ac_f cannot contain ':'.
13259 test -f "$ac_f" ||
13260 case $ac_f in
13261 [\\/$]*) false;;
13262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13263 esac ||
13264 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13265 esac
13266 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13267 as_fn_append ac_file_inputs " '$ac_f'"
13268 done
13269
13270 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13271 # use $as_me), people would be surprised to read:
13272 # /* config.h. Generated by config.status. */
13273 configure_input='Generated from '`
13274 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13275 `' by configure.'
13276 if test x"$ac_file" != x-; then
13277 configure_input="$ac_file. $configure_input"
13278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13279 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13280 fi
13281 # Neutralize special characters interpreted by sed in replacement strings.
13282 case $configure_input in #(
13283 *\&* | *\|* | *\\* )
13284 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13286 *) ac_sed_conf_input=$configure_input;;
13287 esac
13288
13289 case $ac_tag in
13290 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13292 esac
13293 ;;
13294 esac
13295
13296 ac_dir=`$as_dirname -- "$ac_file" ||
13297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298 X"$ac_file" : 'X\(//\)[^/]' \| \
13299 X"$ac_file" : 'X\(//\)$' \| \
13300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13301 printf '%s\n' X"$ac_file" |
13302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13303 s//\1/
13304 q
13305 }
13306 /^X\(\/\/\)[^/].*/{
13307 s//\1/
13308 q
13309 }
13310 /^X\(\/\/\)$/{
13311 s//\1/
13312 q
13313 }
13314 /^X\(\/\).*/{
13315 s//\1/
13316 q
13317 }
13318 s/.*/./; q'`
13319 as_dir="$ac_dir"; as_fn_mkdir_p
13320 ac_builddir=.
13321
13322 case "$ac_dir" in
13323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13324 *)
13325 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13326 # A ".." for each directory in $ac_dir_suffix.
13327 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13328 case $ac_top_builddir_sub in
13329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13331 esac ;;
13332 esac
13333 ac_abs_top_builddir=$ac_pwd
13334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13335 # for backward compatibility:
13336 ac_top_builddir=$ac_top_build_prefix
13337
13338 case $srcdir in
13339 .) # We are building in place.
13340 ac_srcdir=.
13341 ac_top_srcdir=$ac_top_builddir_sub
13342 ac_abs_top_srcdir=$ac_pwd ;;
13343 [\\/]* | ?:[\\/]* ) # Absolute name.
13344 ac_srcdir=$srcdir$ac_dir_suffix;
13345 ac_top_srcdir=$srcdir
13346 ac_abs_top_srcdir=$srcdir ;;
13347 *) # Relative name.
13348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13349 ac_top_srcdir=$ac_top_build_prefix$srcdir
13350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13351 esac
13352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13353
13354
13355 case $ac_mode in
13356 :F)
13357 #
13358 # CONFIG_FILE
13359 #
13360
13361 case $INSTALL in
13362 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13363 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13364 esac
13365 ac_MKDIR_P=$MKDIR_P
13366 case $MKDIR_P in
13367 [\\/$]* | ?:[\\/]* ) ;;
13368 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13369 esac
13370 _ACEOF
13371
13372 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13373 # If the template does not know about datarootdir, expand it.
13374 # FIXME: This hack should be removed a few years after 2.60.
13375 ac_datarootdir_hack=; ac_datarootdir_seen=
13376 ac_sed_dataroot='
13377 /datarootdir/ {
13378 p
13379 q
13380 }
13381 /@datadir@/p
13382 /@docdir@/p
13383 /@infodir@/p
13384 /@localedir@/p
13385 /@mandir@/p'
13386 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13387 *datarootdir*) ac_datarootdir_seen=yes;;
13388 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13390 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13391 _ACEOF
13392 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13393 ac_datarootdir_hack='
13394 s&@datadir@&$datadir&g
13395 s&@docdir@&$docdir&g
13396 s&@infodir@&$infodir&g
13397 s&@localedir@&$localedir&g
13398 s&@mandir@&$mandir&g
13399 s&\\\${datarootdir}&$datarootdir&g' ;;
13400 esac
13401 _ACEOF
13402
13403 # Neutralize VPATH when '$srcdir' = '.'.
13404 # Shell code in configure.ac might set extrasub.
13405 # FIXME: do we really want to maintain this feature?
13406 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13407 ac_sed_extra="$ac_vpsub
13408 $extrasub
13409 _ACEOF
13410 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13411 :t
13412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13413 s|@configure_input@|$ac_sed_conf_input|;t t
13414 s&@top_builddir@&$ac_top_builddir_sub&;t t
13415 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13416 s&@srcdir@&$ac_srcdir&;t t
13417 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13418 s&@top_srcdir@&$ac_top_srcdir&;t t
13419 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13420 s&@builddir@&$ac_builddir&;t t
13421 s&@abs_builddir@&$ac_abs_builddir&;t t
13422 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13423 s&@INSTALL@&$ac_INSTALL&;t t
13424 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13425 $ac_datarootdir_hack
13426 "
13427 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13428 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13429
13430 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13431 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13433 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13435 which seems to be undefined. Please make sure it is defined" >&5
13436 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13437 which seems to be undefined. Please make sure it is defined" >&2;}
13438
13439 rm -f "$ac_tmp/stdin"
13440 case $ac_file in
13441 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13442 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13443 esac \
13444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13445 ;;
13446 :H)
13447 #
13448 # CONFIG_HEADER
13449 #
13450 if test x"$ac_file" != x-; then
13451 {
13452 printf '%s\n' "/* $configure_input */" >&1 \
13453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13454 } >"$ac_tmp/config.h" \
13455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13456 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13458 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13459 else
13460 rm -f "$ac_file"
13461 mv "$ac_tmp/config.h" "$ac_file" \
13462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13463 fi
13464 else
13465 printf '%s\n' "/* $configure_input */" >&1 \
13466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13467 || as_fn_error $? "could not create -" "$LINENO" 5
13468 fi
13469 # Compute "$ac_file"'s index in $config_headers.
13470 _am_arg="$ac_file"
13471 _am_stamp_count=1
13472 for _am_header in $config_headers :; do
13473 case $_am_header in
13474 $_am_arg | $_am_arg:* )
13475 break ;;
13476 * )
13477 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13478 esac
13479 done
13480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482 X"$_am_arg" : 'X\(//\)[^/]' \| \
13483 X"$_am_arg" : 'X\(//\)$' \| \
13484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13485 printf '%s\n' X"$_am_arg" |
13486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13487 s//\1/
13488 q
13489 }
13490 /^X\(\/\/\)[^/].*/{
13491 s//\1/
13492 q
13493 }
13494 /^X\(\/\/\)$/{
13495 s//\1/
13496 q
13497 }
13498 /^X\(\/\).*/{
13499 s//\1/
13500 q
13501 }
13502 s/.*/./; q'`/stamp-h$_am_stamp_count
13503 ;;
13504
13505 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13506 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13507 ;;
13508 esac
13509
13510
13511 case $ac_file$ac_mode in
13512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13513 # Older Autoconf quotes --file arguments for eval, but not when files
13514 # are listed without --file. Let's play safe and only enable the eval
13515 # if we detect the quoting.
13516 # TODO: see whether this extra hack can be removed once we start
13517 # requiring Autoconf 2.70 or later.
13518 case $CONFIG_FILES in #(
13519 *\'*) :
13520 eval set x "$CONFIG_FILES" ;; #(
13521 *) :
13522 set x $CONFIG_FILES ;; #(
13523 *) :
13524 ;;
13525 esac
13526 shift
13527 # Used to flag and report bootstrapping failures.
13528 am_rc=0
13529 for am_mf
13530 do
13531 # Strip MF so we end up with the name of the file.
13532 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13533 # Check whether this is an Automake generated Makefile which includes
13534 # dependency-tracking related rules and includes.
13535 # Grep'ing the whole file directly is not great: AIX grep has a line
13536 # limit of 2048, but all sed's we know have understand at least 4000.
13537 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13538 || continue
13539 am_dirpart=`$as_dirname -- "$am_mf" ||
13540 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13541 X"$am_mf" : 'X\(//\)[^/]' \| \
13542 X"$am_mf" : 'X\(//\)$' \| \
13543 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13544 printf '%s\n' X"$am_mf" |
13545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13546 s//\1/
13547 q
13548 }
13549 /^X\(\/\/\)[^/].*/{
13550 s//\1/
13551 q
13552 }
13553 /^X\(\/\/\)$/{
13554 s//\1/
13555 q
13556 }
13557 /^X\(\/\).*/{
13558 s//\1/
13559 q
13560 }
13561 s/.*/./; q'`
13562 am_filepart=`$as_basename -- "$am_mf" ||
13563 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13564 X"$am_mf" : 'X\(//\)$' \| \
13565 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13566 printf '%s\n' X/"$am_mf" |
13567 sed '/^.*\/\([^/][^/]*\)\/*$/{
13568 s//\1/
13569 q
13570 }
13571 /^X\/\(\/\/\)$/{
13572 s//\1/
13573 q
13574 }
13575 /^X\/\(\/\).*/{
13576 s//\1/
13577 q
13578 }
13579 s/.*/./; q'`
13580 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13581 && sed -e '/# am--include-marker/d' "$am_filepart" \
13582 | $MAKE -f - am--depfiles" >&5
13583 (cd "$am_dirpart" \
13584 && sed -e '/# am--include-marker/d' "$am_filepart" \
13585 | $MAKE -f - am--depfiles) >&5 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } || am_rc=$?
13589 done
13590 if test $am_rc -ne 0; then
13591 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13592 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13593 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13594 for automatic dependency tracking. If GNU make was not used, consider
13595 re-running the configure script with MAKE=\"gmake\" (or whatever is
13596 necessary). You can also try re-running configure with the
13597 '--disable-dependency-tracking' option to at least be able to build
13598 the package (albeit without support for automatic dependency tracking).
13599 See 'config.log' for more details" "$LINENO" 5; }
13600 fi
13601 { am_dirpart=; unset am_dirpart;}
13602 { am_filepart=; unset am_filepart;}
13603 { am_mf=; unset am_mf;}
13604 { am_rc=; unset am_rc;}
13605 rm -f conftest-deps.mk
13606 }
13607 ;;
13608
13609 esac
13610 done # for ac_tag
13611
13612
13613 as_fn_exit 0
13614 _ACEOF
13615 ac_clean_CONFIG_STATUS=
13616
13617 test $ac_write_fail = 0 ||
13618 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13619
13620
13621 # configure is writing to config.log, and then calls config.status.
13622 # config.status does its own redirection, appending to config.log.
13623 # Unfortunately, on DOS this fails, as config.log is still kept open
13624 # by configure, so config.status won't be able to write to it; its
13625 # output is simply discarded. So we exec the FD to /dev/null,
13626 # effectively closing config.log, so it can be properly (re)opened and
13627 # appended to by config.status. When coming back to configure, we
13628 # need to make the FD available again.
13629 if test "$no_create" != yes; then
13630 ac_cs_success=:
13631 case $CONFIG_STATUS in #(
13632 -*) :
13633 ac_no_opts=-- ;; #(
13634 *) :
13635 ac_no_opts= ;;
13636 esac
13637 ac_config_status_args=
13638 test "$silent" = yes &&
13639 ac_config_status_args="$ac_config_status_args --quiet"
13640 exec 5>/dev/null
13641 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13642 ac_cs_success=false
13643 exec 5>>config.log
13644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13645 # would make configure fail if this is the last instruction.
13646 $ac_cs_success || as_fn_exit 1
13647 fi
13648 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13650 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13651 fi
13652
13653
13654