configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xlsfonts 1.0.8.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xlsfonts'
607 PACKAGE_TARNAME='xlsfonts'
608 PACKAGE_VERSION='1.0.8'
609 PACKAGE_STRING='xlsfonts 1.0.8'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 XLSFONTS_LIBS
651 XLSFONTS_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 CSCOPE
688 ETAGS
689 CTAGS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL
768 am__quote'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_dependency_tracking
773 enable_silent_rules
774 enable_selective_werror
775 enable_strict_compilation
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 XLSFONTS_CFLAGS
789 XLSFONTS_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: '$ac_useropt'"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: '$ac_useropt'"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -runstatedir | --runstatedir | --runstatedi | --runstated \
1080 | --runstate | --runstat | --runsta | --runst | --runs \
1081 | --run | --ru | --r)
1082 ac_prev=runstatedir ;;
1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085 | --run=* | --ru=* | --r=*)
1086 runstatedir=$ac_optarg ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: '$ac_option'
1184 Try '$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir runstatedir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: '$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 printf "%s\n" X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 'configure' configures xlsfonts 1.0.8 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print 'checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for '--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or '..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, 'make install' will install all the files in
1365 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than '$ac_default_prefix' using '--prefix',
1367 for instance '--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsfonts]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of xlsfonts 1.0.8:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-dependency-tracking
1418 do not reject slow dependency extractors
1419 --disable-dependency-tracking
1420 speeds up one-time build
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --disable-selective-werror
1424 Turn off selective compiler errors. (default:
1425 enabled)
1426 --enable-strict-compilation
1427 Enable all warnings from compiler and make them
1428 errors (default: disabled)
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 XLSFONTS_CFLAGS
1444 C compiler flags for XLSFONTS, overriding pkg-config
1445 XLSFONTS_LIBS
1446 linker flags for XLSFONTS, overriding pkg-config
1447
1448 Use these variables to override the choices made by 'configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for configure.gnu first; this name is used for a wrapper for
1498 # Metaconfig's "Configure" on case-insensitive file systems.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 xlsfonts configure 1.0.8
1516 generated by GNU Autoconf 2.72
1517
1518 Copyright (C) 2023 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest.beam
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 printf "%s\n" "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext
1555 then :
1556 ac_retval=0
1557 else case e in #(
1558 e) printf "%s\n" "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1 ;;
1562 esac
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists and can be compiled using the include files in
1572 # INCLUDES, setting the cache variable VAR accordingly.
1573 ac_fn_c_check_header_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 printf %s "checking for $2... " >&6; }
1578 if eval test \${$3+y}
1579 then :
1580 printf %s "(cached) " >&6
1581 else case e in #(
1582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1584 $4
1585 #include <$2>
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"
1588 then :
1589 eval "$3=yes"
1590 else case e in #(
1591 e) eval "$3=no" ;;
1592 esac
1593 fi
1594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1595 esac
1596 fi
1597 eval ac_res=\$$3
1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 printf "%s\n" "$ac_res" >&6; }
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601
1602 } # ac_fn_c_check_header_compile
1603
1604 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1605 # ------------------------------------------------------------------
1606 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1607 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1608 ac_fn_check_decl ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 as_decl_name=`echo $2|sed 's/ *(.*//'`
1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613 printf %s "checking whether $as_decl_name is declared... " >&6; }
1614 if eval test \${$3+y}
1615 then :
1616 printf %s "(cached) " >&6
1617 else case e in #(
1618 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1619 eval ac_save_FLAGS=\$$6
1620 as_fn_append $6 " $5"
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 int
1625 main (void)
1626 {
1627 #ifndef $as_decl_name
1628 #ifdef __cplusplus
1629 (void) $as_decl_use;
1630 #else
1631 (void) $as_decl_name;
1632 #endif
1633 #endif
1634
1635 ;
1636 return 0;
1637 }
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"
1640 then :
1641 eval "$3=yes"
1642 else case e in #(
1643 e) eval "$3=no" ;;
1644 esac
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1647 eval $6=\$ac_save_FLAGS
1648 ;;
1649 esac
1650 fi
1651 eval ac_res=\$$3
1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 printf "%s\n" "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_check_decl
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 printf "%s\n" "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }
1687 then :
1688 ac_retval=0
1689 else case e in #(
1690 e) printf "%s\n" "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1 ;;
1694 esac
1695 fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 printf %s "checking for $2... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else case e in #(
1718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722 #define $2 innocuous_$2
1723
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (void); below. */
1726
1727 #include <limits.h>
1728 #undef $2
1729
1730 /* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1733 #ifdef __cplusplus
1734 extern "C"
1735 #endif
1736 char $2 (void);
1737 /* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740 #if defined __stub_$2 || defined __stub___$2
1741 choke me
1742 #endif
1743
1744 int
1745 main (void)
1746 {
1747 return $2 ();
1748 ;
1749 return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_link "$LINENO"
1753 then :
1754 eval "$3=yes"
1755 else case e in #(
1756 e) eval "$3=no" ;;
1757 esac
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1760 conftest$ac_exeext conftest.$ac_ext ;;
1761 esac
1762 fi
1763 eval ac_res=\$$3
1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 printf "%s\n" "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768 } # ac_fn_c_check_func
1769 ac_configure_args_raw=
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 *\'*)
1774 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 esac
1776 as_fn_append ac_configure_args_raw " '$ac_arg'"
1777 done
1778
1779 case $ac_configure_args_raw in
1780 *$as_nl*)
1781 ac_safe_unquote= ;;
1782 *)
1783 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1784 ac_unsafe_a="$ac_unsafe_z#~"
1785 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1786 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1787 esac
1788
1789 cat >config.log <<_ACEOF
1790 This file contains any messages produced by compilers while
1791 running configure, to aid debugging if configure makes a mistake.
1792
1793 It was created by xlsfonts $as_me 1.0.8, which was
1794 generated by GNU Autoconf 2.72. Invocation command line was
1795
1796 $ $0$ac_configure_args_raw
1797
1798 _ACEOF
1799 exec 5>>config.log
1800 {
1801 cat <<_ASUNAME
1802 ## --------- ##
1803 ## Platform. ##
1804 ## --------- ##
1805
1806 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1807 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1808 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1809 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1810 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811
1812 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1813 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1814
1815 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1816 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1817 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1818 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1819 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1820 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1821 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1822
1823 _ASUNAME
1824
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828 IFS=$as_save_IFS
1829 case $as_dir in #(((
1830 '') as_dir=./ ;;
1831 */) ;;
1832 *) as_dir=$as_dir/ ;;
1833 esac
1834 printf "%s\n" "PATH: $as_dir"
1835 done
1836 IFS=$as_save_IFS
1837
1838 } >&5
1839
1840 cat >&5 <<_ACEOF
1841
1842
1843 ## ----------- ##
1844 ## Core tests. ##
1845 ## ----------- ##
1846
1847 _ACEOF
1848
1849
1850 # Keep a trace of the command line.
1851 # Strip out --no-create and --no-recursion so they do not pile up.
1852 # Strip out --silent because we don't want to record it for future runs.
1853 # Also quote any args containing shell meta-characters.
1854 # Make two passes to allow for proper duplicate-argument suppression.
1855 ac_configure_args=
1856 ac_configure_args0=
1857 ac_configure_args1=
1858 ac_must_keep_next=false
1859 for ac_pass in 1 2
1860 do
1861 for ac_arg
1862 do
1863 case $ac_arg in
1864 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1866 | -silent | --silent | --silen | --sile | --sil)
1867 continue ;;
1868 *\'*)
1869 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 esac
1871 case $ac_pass in
1872 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1873 2)
1874 as_fn_append ac_configure_args1 " '$ac_arg'"
1875 if test $ac_must_keep_next = true; then
1876 ac_must_keep_next=false # Got value, back to normal.
1877 else
1878 case $ac_arg in
1879 *=* | --config-cache | -C | -disable-* | --disable-* \
1880 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1881 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1882 | -with-* | --with-* | -without-* | --without-* | --x)
1883 case "$ac_configure_args0 " in
1884 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885 esac
1886 ;;
1887 -* ) ac_must_keep_next=true ;;
1888 esac
1889 fi
1890 as_fn_append ac_configure_args " '$ac_arg'"
1891 ;;
1892 esac
1893 done
1894 done
1895 { ac_configure_args0=; unset ac_configure_args0;}
1896 { ac_configure_args1=; unset ac_configure_args1;}
1897
1898 # When interrupted or exit'd, cleanup temporary files, and complete
1899 # config.log. We remove comments because anyway the quotes in there
1900 # would cause problems or look ugly.
1901 # WARNING: Use '\'' to represent an apostrophe within the trap.
1902 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1903 trap 'exit_status=$?
1904 # Sanitize IFS.
1905 IFS=" "" $as_nl"
1906 # Save into config.log some information that might help in debugging.
1907 {
1908 echo
1909
1910 printf "%s\n" "## ---------------- ##
1911 ## Cache variables. ##
1912 ## ---------------- ##"
1913 echo
1914 # The following way of writing the cache mishandles newlines in values,
1915 (
1916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in #(
1919 *${as_nl}*)
1920 case $ac_var in #(
1921 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1922 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1923 esac
1924 case $ac_var in #(
1925 _ | IFS | as_nl) ;; #(
1926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1927 *) { eval $ac_var=; unset $ac_var;} ;;
1928 esac ;;
1929 esac
1930 done
1931 (set) 2>&1 |
1932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1933 *${as_nl}ac_space=\ *)
1934 sed -n \
1935 "s/'\''/'\''\\\\'\'''\''/g;
1936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1937 ;; #(
1938 *)
1939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1940 ;;
1941 esac |
1942 sort
1943 )
1944 echo
1945
1946 printf "%s\n" "## ----------------- ##
1947 ## Output variables. ##
1948 ## ----------------- ##"
1949 echo
1950 for ac_var in $ac_subst_vars
1951 do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in
1954 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 esac
1956 printf "%s\n" "$ac_var='\''$ac_val'\''"
1957 done | sort
1958 echo
1959
1960 if test -n "$ac_subst_files"; then
1961 printf "%s\n" "## ------------------- ##
1962 ## File substitutions. ##
1963 ## ------------------- ##"
1964 echo
1965 for ac_var in $ac_subst_files
1966 do
1967 eval ac_val=\$$ac_var
1968 case $ac_val in
1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 esac
1971 printf "%s\n" "$ac_var='\''$ac_val'\''"
1972 done | sort
1973 echo
1974 fi
1975
1976 if test -s confdefs.h; then
1977 printf "%s\n" "## ----------- ##
1978 ## confdefs.h. ##
1979 ## ----------- ##"
1980 echo
1981 cat confdefs.h
1982 echo
1983 fi
1984 test "$ac_signal" != 0 &&
1985 printf "%s\n" "$as_me: caught signal $ac_signal"
1986 printf "%s\n" "$as_me: exit $exit_status"
1987 } >&5
1988 rm -f core *.core core.conftest.* &&
1989 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1990 exit $exit_status
1991 ' 0
1992 for ac_signal in 1 2 13 15; do
1993 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1994 done
1995 ac_signal=0
1996
1997 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1998 rm -f -r conftest* confdefs.h
1999
2000 printf "%s\n" "/* confdefs.h */" > confdefs.h
2001
2002 # Predefined preprocessor variables.
2003
2004 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2005
2006 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2007
2008 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2009
2010 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2011
2012 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2013
2014 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2015
2016
2017 # Let the site file select an alternate cache file if it wants to.
2018 # Prefer an explicitly selected file to automatically selected ones.
2019 if test -n "$CONFIG_SITE"; then
2020 ac_site_files="$CONFIG_SITE"
2021 elif test "x$prefix" != xNONE; then
2022 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2023 else
2024 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2025 fi
2026
2027 for ac_site_file in $ac_site_files
2028 do
2029 case $ac_site_file in #(
2030 */*) :
2031 ;; #(
2032 *) :
2033 ac_site_file=./$ac_site_file ;;
2034 esac
2035 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2037 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2038 sed 's/^/| /' "$ac_site_file" >&5
2039 . "$ac_site_file" \
2040 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2042 as_fn_error $? "failed to load site script $ac_site_file
2043 See 'config.log' for more details" "$LINENO" 5; }
2044 fi
2045 done
2046
2047 if test -r "$cache_file"; then
2048 # Some versions of bash will fail to source /dev/null (special files
2049 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2050 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2052 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2053 case $cache_file in
2054 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055 *) . "./$cache_file";;
2056 esac
2057 fi
2058 else
2059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2060 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2061 >$cache_file
2062 fi
2063
2064 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2065 # Test code for whether the C compiler supports C89 (global declarations)
2066 ac_c_conftest_c89_globals='
2067 /* Does the compiler advertise C89 conformance?
2068 Do not test the value of __STDC__, because some compilers set it to 0
2069 while being otherwise adequately conformant. */
2070 #if !defined __STDC__
2071 # error "Compiler does not advertise C89 conformance"
2072 #endif
2073
2074 #include <stddef.h>
2075 #include <stdarg.h>
2076 struct stat;
2077 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2078 struct buf { int x; };
2079 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2080 static char *e (char **p, int i)
2081 {
2082 return p[i];
2083 }
2084 static char *f (char * (*g) (char **, int), char **p, ...)
2085 {
2086 char *s;
2087 va_list v;
2088 va_start (v,p);
2089 s = g (p, va_arg (v,int));
2090 va_end (v);
2091 return s;
2092 }
2093
2094 /* C89 style stringification. */
2095 #define noexpand_stringify(a) #a
2096 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2097
2098 /* C89 style token pasting. Exercises some of the corner cases that
2099 e.g. old MSVC gets wrong, but not very hard. */
2100 #define noexpand_concat(a,b) a##b
2101 #define expand_concat(a,b) noexpand_concat(a,b)
2102 extern int vA;
2103 extern int vbee;
2104 #define aye A
2105 #define bee B
2106 int *pvA = &expand_concat(v,aye);
2107 int *pvbee = &noexpand_concat(v,bee);
2108
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not \xHH hex character constants.
2111 These do not provoke an error unfortunately, instead are silently treated
2112 as an "x". The following induces an error, until -std is added to get
2113 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2114 array size at least. It is necessary to write \x00 == 0 to get something
2115 that is true only with -std. */
2116 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2117
2118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2119 inside strings and character constants. */
2120 #define FOO(x) '\''x'\''
2121 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2122
2123 int test (int i, double x);
2124 struct s1 {int (*f) (int a);};
2125 struct s2 {int (*f) (double a);};
2126 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2127 int, int);'
2128
2129 # Test code for whether the C compiler supports C89 (body of main).
2130 ac_c_conftest_c89_main='
2131 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2132 '
2133
2134 # Test code for whether the C compiler supports C99 (global declarations)
2135 ac_c_conftest_c99_globals='
2136 /* Does the compiler advertise C99 conformance? */
2137 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2138 # error "Compiler does not advertise C99 conformance"
2139 #endif
2140
2141 // See if C++-style comments work.
2142
2143 #include <stdbool.h>
2144 extern int puts (const char *);
2145 extern int printf (const char *, ...);
2146 extern int dprintf (int, const char *, ...);
2147 extern void *malloc (size_t);
2148 extern void free (void *);
2149
2150 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2151 // dprintf is used instead of fprintf to avoid needing to declare
2152 // FILE and stderr.
2153 #define debug(...) dprintf (2, __VA_ARGS__)
2154 #define showlist(...) puts (#__VA_ARGS__)
2155 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2156 static void
2157 test_varargs_macros (void)
2158 {
2159 int x = 1234;
2160 int y = 5678;
2161 debug ("Flag");
2162 debug ("X = %d\n", x);
2163 showlist (The first, second, and third items.);
2164 report (x>y, "x is %d but y is %d", x, y);
2165 }
2166
2167 // Check long long types.
2168 #define BIG64 18446744073709551615ull
2169 #define BIG32 4294967295ul
2170 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2171 #if !BIG_OK
2172 #error "your preprocessor is broken"
2173 #endif
2174 #if BIG_OK
2175 #else
2176 #error "your preprocessor is broken"
2177 #endif
2178 static long long int bignum = -9223372036854775807LL;
2179 static unsigned long long int ubignum = BIG64;
2180
2181 struct incomplete_array
2182 {
2183 int datasize;
2184 double data[];
2185 };
2186
2187 struct named_init {
2188 int number;
2189 const wchar_t *name;
2190 double average;
2191 };
2192
2193 typedef const char *ccp;
2194
2195 static inline int
2196 test_restrict (ccp restrict text)
2197 {
2198 // Iterate through items via the restricted pointer.
2199 // Also check for declarations in for loops.
2200 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2201 continue;
2202 return 0;
2203 }
2204
2205 // Check varargs and va_copy.
2206 static bool
2207 test_varargs (const char *format, ...)
2208 {
2209 va_list args;
2210 va_start (args, format);
2211 va_list args_copy;
2212 va_copy (args_copy, args);
2213
2214 const char *str = "";
2215 int number = 0;
2216 float fnumber = 0;
2217
2218 while (*format)
2219 {
2220 switch (*format++)
2221 {
2222 case '\''s'\'': // string
2223 str = va_arg (args_copy, const char *);
2224 break;
2225 case '\''d'\'': // int
2226 number = va_arg (args_copy, int);
2227 break;
2228 case '\''f'\'': // float
2229 fnumber = va_arg (args_copy, double);
2230 break;
2231 default:
2232 break;
2233 }
2234 }
2235 va_end (args_copy);
2236 va_end (args);
2237
2238 return *str && number && fnumber;
2239 }
2240 '
2241
2242 # Test code for whether the C compiler supports C99 (body of main).
2243 ac_c_conftest_c99_main='
2244 // Check bool.
2245 _Bool success = false;
2246 success |= (argc != 0);
2247
2248 // Check restrict.
2249 if (test_restrict ("String literal") == 0)
2250 success = true;
2251 char *restrict newvar = "Another string";
2252
2253 // Check varargs.
2254 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2255 test_varargs_macros ();
2256
2257 // Check flexible array members.
2258 struct incomplete_array *ia =
2259 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2260 ia->datasize = 10;
2261 for (int i = 0; i < ia->datasize; ++i)
2262 ia->data[i] = i * 1.234;
2263 // Work around memory leak warnings.
2264 free (ia);
2265
2266 // Check named initializers.
2267 struct named_init ni = {
2268 .number = 34,
2269 .name = L"Test wide string",
2270 .average = 543.34343,
2271 };
2272
2273 ni.number = 58;
2274
2275 int dynamic_array[ni.number];
2276 dynamic_array[0] = argv[0][0];
2277 dynamic_array[ni.number - 1] = 543;
2278
2279 // work around unused variable warnings
2280 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2281 || dynamic_array[ni.number - 1] != 543);
2282 '
2283
2284 # Test code for whether the C compiler supports C11 (global declarations)
2285 ac_c_conftest_c11_globals='
2286 /* Does the compiler advertise C11 conformance? */
2287 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2288 # error "Compiler does not advertise C11 conformance"
2289 #endif
2290
2291 // Check _Alignas.
2292 char _Alignas (double) aligned_as_double;
2293 char _Alignas (0) no_special_alignment;
2294 extern char aligned_as_int;
2295 char _Alignas (0) _Alignas (int) aligned_as_int;
2296
2297 // Check _Alignof.
2298 enum
2299 {
2300 int_alignment = _Alignof (int),
2301 int_array_alignment = _Alignof (int[100]),
2302 char_alignment = _Alignof (char)
2303 };
2304 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2305
2306 // Check _Noreturn.
2307 int _Noreturn does_not_return (void) { for (;;) continue; }
2308
2309 // Check _Static_assert.
2310 struct test_static_assert
2311 {
2312 int x;
2313 _Static_assert (sizeof (int) <= sizeof (long int),
2314 "_Static_assert does not work in struct");
2315 long int y;
2316 };
2317
2318 // Check UTF-8 literals.
2319 #define u8 syntax error!
2320 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2321
2322 // Check duplicate typedefs.
2323 typedef long *long_ptr;
2324 typedef long int *long_ptr;
2325 typedef long_ptr long_ptr;
2326
2327 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2328 struct anonymous
2329 {
2330 union {
2331 struct { int i; int j; };
2332 struct { int k; long int l; } w;
2333 };
2334 int m;
2335 } v1;
2336 '
2337
2338 # Test code for whether the C compiler supports C11 (body of main).
2339 ac_c_conftest_c11_main='
2340 _Static_assert ((offsetof (struct anonymous, i)
2341 == offsetof (struct anonymous, w.k)),
2342 "Anonymous union alignment botch");
2343 v1.i = 2;
2344 v1.w.k = 5;
2345 ok |= v1.i != 5;
2346 '
2347
2348 # Test code for whether the C compiler supports C11 (complete).
2349 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2350 ${ac_c_conftest_c99_globals}
2351 ${ac_c_conftest_c11_globals}
2352
2353 int
2354 main (int argc, char **argv)
2355 {
2356 int ok = 0;
2357 ${ac_c_conftest_c89_main}
2358 ${ac_c_conftest_c99_main}
2359 ${ac_c_conftest_c11_main}
2360 return ok;
2361 }
2362 "
2363
2364 # Test code for whether the C compiler supports C99 (complete).
2365 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2366 ${ac_c_conftest_c99_globals}
2367
2368 int
2369 main (int argc, char **argv)
2370 {
2371 int ok = 0;
2372 ${ac_c_conftest_c89_main}
2373 ${ac_c_conftest_c99_main}
2374 return ok;
2375 }
2376 "
2377
2378 # Test code for whether the C compiler supports C89 (complete).
2379 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2380
2381 int
2382 main (int argc, char **argv)
2383 {
2384 int ok = 0;
2385 ${ac_c_conftest_c89_main}
2386 return ok;
2387 }
2388 "
2389
2390 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2391 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2392 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2393 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2394 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2395 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2396 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2397 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2398 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2399 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2400
2401 # Auxiliary files required by this configure script.
2402 ac_aux_files="config.guess config.sub missing install-sh compile"
2403
2404 # Locations in which to look for auxiliary files.
2405 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2406
2407 # Search for a directory containing all of the required auxiliary files,
2408 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2409 # If we don't find one directory that contains all the files we need,
2410 # we report the set of missing files from the *first* directory in
2411 # $ac_aux_dir_candidates and give up.
2412 ac_missing_aux_files=""
2413 ac_first_candidate=:
2414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 as_found=false
2417 for as_dir in $ac_aux_dir_candidates
2418 do
2419 IFS=$as_save_IFS
2420 case $as_dir in #(((
2421 '') as_dir=./ ;;
2422 */) ;;
2423 *) as_dir=$as_dir/ ;;
2424 esac
2425 as_found=:
2426
2427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2428 ac_aux_dir_found=yes
2429 ac_install_sh=
2430 for ac_aux in $ac_aux_files
2431 do
2432 # As a special case, if "install-sh" is required, that requirement
2433 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2434 # and $ac_install_sh is set appropriately for whichever one is found.
2435 if test x"$ac_aux" = x"install-sh"
2436 then
2437 if test -f "${as_dir}install-sh"; then
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2439 ac_install_sh="${as_dir}install-sh -c"
2440 elif test -f "${as_dir}install.sh"; then
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2442 ac_install_sh="${as_dir}install.sh -c"
2443 elif test -f "${as_dir}shtool"; then
2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2445 ac_install_sh="${as_dir}shtool install -c"
2446 else
2447 ac_aux_dir_found=no
2448 if $ac_first_candidate; then
2449 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2450 else
2451 break
2452 fi
2453 fi
2454 else
2455 if test -f "${as_dir}${ac_aux}"; then
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2457 else
2458 ac_aux_dir_found=no
2459 if $ac_first_candidate; then
2460 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2461 else
2462 break
2463 fi
2464 fi
2465 fi
2466 done
2467 if test "$ac_aux_dir_found" = yes; then
2468 ac_aux_dir="$as_dir"
2469 break
2470 fi
2471 ac_first_candidate=false
2472
2473 as_found=false
2474 done
2475 IFS=$as_save_IFS
2476 if $as_found
2477 then :
2478
2479 else case e in #(
2480 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2481 esac
2482 fi
2483
2484
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 if test -f "${ac_aux_dir}config.guess"; then
2490 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2491 fi
2492 if test -f "${ac_aux_dir}config.sub"; then
2493 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2494 fi
2495 if test -f "$ac_aux_dir/configure"; then
2496 ac_configure="$SHELL ${ac_aux_dir}configure"
2497 fi
2498
2499 # Check that the precious variables saved in the cache have kept the same
2500 # value.
2501 ac_cache_corrupted=false
2502 for ac_var in $ac_precious_vars; do
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
2507 case $ac_old_set,$ac_new_set in
2508 set,)
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2510 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,set)
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2514 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,);;
2517 *)
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2524 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2526 else
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2528 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2530 fi
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2532 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2534 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2535 fi;;
2536 esac
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2539 case $ac_new_val in
2540 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2542 esac
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546 esac
2547 fi
2548 done
2549 if $ac_cache_corrupted; then
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2551 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2554 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2555 and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569 ac_config_headers="$ac_config_headers config.h"
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582 # Expand $ac_aux_dir to an absolute path.
2583 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 printf %s "checking for $ac_word... " >&6; }
2595 if test ${ac_cv_prog_CC+y}
2596 then :
2597 printf %s "(cached) " >&6
2598 else case e in #(
2599 e) if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 case $as_dir in #(((
2607 '') as_dir=./ ;;
2608 */) ;;
2609 *) as_dir=$as_dir/ ;;
2610 esac
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi ;;
2622 esac
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 printf "%s\n" "$CC" >&6; }
2628 else
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 printf "%s\n" "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 if test -z "$ac_cv_prog_CC"; then
2636 ac_ct_CC=$CC
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638 set dummy gcc; ac_word=$2
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 printf %s "checking for $ac_word... " >&6; }
2641 if test ${ac_cv_prog_ac_ct_CC+y}
2642 then :
2643 printf %s "(cached) " >&6
2644 else case e in #(
2645 e) if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 case $as_dir in #(((
2653 '') as_dir=./ ;;
2654 */) ;;
2655 *) as_dir=$as_dir/ ;;
2656 esac
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CC="gcc"
2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi ;;
2668 esac
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2673 printf "%s\n" "$ac_ct_CC" >&6; }
2674 else
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 printf "%s\n" "no" >&6; }
2677 fi
2678
2679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688 CC=$ac_ct_CC
2689 fi
2690 else
2691 CC="$ac_cv_prog_CC"
2692 fi
2693
2694 if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}cc; ac_word=$2
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 printf %s "checking for $ac_word... " >&6; }
2700 if test ${ac_cv_prog_CC+y}
2701 then :
2702 printf %s "(cached) " >&6
2703 else case e in #(
2704 e) if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 case $as_dir in #(((
2712 '') as_dir=./ ;;
2713 */) ;;
2714 *) as_dir=$as_dir/ ;;
2715 esac
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_CC="${ac_tool_prefix}cc"
2719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi ;;
2727 esac
2728 fi
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 printf "%s\n" "$CC" >&6; }
2733 else
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 printf "%s\n" "no" >&6; }
2736 fi
2737
2738
2739 fi
2740 fi
2741 if test -z "$CC"; then
2742 # Extract the first word of "cc", so it can be a program name with args.
2743 set dummy cc; ac_word=$2
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 printf %s "checking for $ac_word... " >&6; }
2746 if test ${ac_cv_prog_CC+y}
2747 then :
2748 printf %s "(cached) " >&6
2749 else case e in #(
2750 e) if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 ac_prog_rejected=no
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 case $as_dir in #(((
2759 '') as_dir=./ ;;
2760 */) ;;
2761 *) as_dir=$as_dir/ ;;
2762 esac
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2765 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766 ac_prog_rejected=yes
2767 continue
2768 fi
2769 ac_cv_prog_CC="cc"
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 if test $ac_prog_rejected = yes; then
2778 # We found a bogon in the path, so make sure we never use it.
2779 set dummy $ac_cv_prog_CC
2780 shift
2781 if test $# != 0; then
2782 # We chose a different compiler from the bogus one.
2783 # However, it has the same basename, so the bogon will be chosen
2784 # first if we set CC to just the basename; use the full file name.
2785 shift
2786 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2787 fi
2788 fi
2789 fi ;;
2790 esac
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 printf "%s\n" "$CC" >&6; }
2796 else
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 printf "%s\n" "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in cl.exe
2806 do
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 printf %s "checking for $ac_word... " >&6; }
2811 if test ${ac_cv_prog_CC+y}
2812 then :
2813 printf %s "(cached) " >&6
2814 else case e in #(
2815 e) if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi ;;
2838 esac
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 printf "%s\n" "$CC" >&6; }
2844 else
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 printf "%s\n" "no" >&6; }
2847 fi
2848
2849
2850 test -n "$CC" && break
2851 done
2852 fi
2853 if test -z "$CC"; then
2854 ac_ct_CC=$CC
2855 for ac_prog in cl.exe
2856 do
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 printf %s "checking for $ac_word... " >&6; }
2861 if test ${ac_cv_prog_ac_ct_CC+y}
2862 then :
2863 printf %s "(cached) " >&6
2864 else case e in #(
2865 e) if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 case $as_dir in #(((
2873 '') as_dir=./ ;;
2874 */) ;;
2875 *) as_dir=$as_dir/ ;;
2876 esac
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_CC="$ac_prog"
2880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi ;;
2888 esac
2889 fi
2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891 if test -n "$ac_ct_CC"; then
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2893 printf "%s\n" "$ac_ct_CC" >&6; }
2894 else
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 printf "%s\n" "no" >&6; }
2897 fi
2898
2899
2900 test -n "$ac_ct_CC" && break
2901 done
2902
2903 if test "x$ac_ct_CC" = x; then
2904 CC=""
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 CC=$ac_ct_CC
2913 fi
2914 fi
2915
2916 fi
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}clang; ac_word=$2
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 printf %s "checking for $ac_word... " >&6; }
2923 if test ${ac_cv_prog_CC+y}
2924 then :
2925 printf %s "(cached) " >&6
2926 else case e in #(
2927 e) if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 case $as_dir in #(((
2935 '') as_dir=./ ;;
2936 */) ;;
2937 *) as_dir=$as_dir/ ;;
2938 esac
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="${ac_tool_prefix}clang"
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi ;;
2950 esac
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 printf "%s\n" "$CC" >&6; }
2956 else
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 printf "%s\n" "no" >&6; }
2959 fi
2960
2961
2962 fi
2963 if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "clang", so it can be a program name with args.
2966 set dummy clang; ac_word=$2
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 printf %s "checking for $ac_word... " >&6; }
2969 if test ${ac_cv_prog_ac_ct_CC+y}
2970 then :
2971 printf %s "(cached) " >&6
2972 else case e in #(
2973 e) if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 case $as_dir in #(((
2981 '') as_dir=./ ;;
2982 */) ;;
2983 *) as_dir=$as_dir/ ;;
2984 esac
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="clang"
2988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi ;;
2996 esac
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 printf "%s\n" "$ac_ct_CC" >&6; }
3002 else
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 printf "%s\n" "no" >&6; }
3005 fi
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 else
3019 CC="$ac_cv_prog_CC"
3020 fi
3021
3022 fi
3023
3024
3025 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3026 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3027 as_fn_error $? "no acceptable C compiler found in \$PATH
3028 See 'config.log' for more details" "$LINENO" 5; }
3029
3030 # Provide some information about the compiler.
3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3032 set X $ac_compile
3033 ac_compiler=$2
3034 for ac_option in --version -v -V -qversion -version; do
3035 { { ac_try="$ac_compiler $ac_option >&5"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 printf "%s\n" "$ac_try_echo"; } >&5
3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3043 ac_status=$?
3044 if test -s conftest.err; then
3045 sed '10a\
3046 ... rest of stderr output deleted ...
3047 10q' conftest.err >conftest.er1
3048 cat conftest.er1 >&5
3049 fi
3050 rm -f conftest.er1 conftest.err
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 done
3054
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3057
3058 int
3059 main (void)
3060 {
3061
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3070 # of exeext.
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3072 printf %s "checking whether the C compiler works... " >&6; }
3073 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3074
3075 # The possible output files:
3076 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077
3078 ac_rmfiles=
3079 for ac_file in $ac_files
3080 do
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 esac
3085 done
3086 rm -f $ac_rmfiles
3087
3088 if { { ac_try="$ac_link_default"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 printf "%s\n" "$ac_try_echo"; } >&5
3095 (eval "$ac_link_default") 2>&5
3096 ac_status=$?
3097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3099 then :
3100 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3101 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3103 # so that the user can short-circuit this test for compilers unknown to
3104 # Autoconf.
3105 for ac_file in $ac_files ''
3106 do
3107 test -f "$ac_file" || continue
3108 case $ac_file in
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110 ;;
3111 [ab].out )
3112 # We found the default executable, but exeext='' is most
3113 # certainly right.
3114 break;;
3115 *.* )
3116 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3117 then :; else
3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 fi
3120 # We set ac_cv_exeext here because the later test for it is not
3121 # safe: cross compilers may not add the suffix if given an '-o'
3122 # argument, so we may need to know it at that point already.
3123 # Even if this section looks crufty: it has the advantage of
3124 # actually working.
3125 break;;
3126 * )
3127 break;;
3128 esac
3129 done
3130 test "$ac_cv_exeext" = no && ac_cv_exeext=
3131
3132 else case e in #(
3133 e) ac_file='' ;;
3134 esac
3135 fi
3136 if test -z "$ac_file"
3137 then :
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 printf "%s\n" "no" >&6; }
3140 printf "%s\n" "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3144 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3145 as_fn_error 77 "C compiler cannot create executables
3146 See 'config.log' for more details" "$LINENO" 5; }
3147 else case e in #(
3148 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149 printf "%s\n" "yes" >&6; } ;;
3150 esac
3151 fi
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153 printf %s "checking for C compiler default output file name... " >&6; }
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 printf "%s\n" "$ac_file" >&6; }
3156 ac_exeext=$ac_cv_exeext
3157
3158 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161 printf %s "checking for suffix of executables... " >&6; }
3162 if { { ac_try="$ac_link"
3163 case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 printf "%s\n" "$ac_try_echo"; } >&5
3169 (eval "$ac_link") 2>&5
3170 ac_status=$?
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }
3173 then :
3174 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3175 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3176 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3177 # 'rm'.
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 break;;
3184 * ) break;;
3185 esac
3186 done
3187 else case e in #(
3188 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3189 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3191 See 'config.log' for more details" "$LINENO" 5; } ;;
3192 esac
3193 fi
3194 rm -f conftest conftest$ac_cv_exeext
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196 printf "%s\n" "$ac_cv_exeext" >&6; }
3197
3198 rm -f conftest.$ac_ext
3199 EXEEXT=$ac_cv_exeext
3200 ac_exeext=$EXEEXT
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <stdio.h>
3204 int
3205 main (void)
3206 {
3207 FILE *f = fopen ("conftest.out", "w");
3208 if (!f)
3209 return 1;
3210 return ferror (f) || fclose (f) != 0;
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 ac_clean_files="$ac_clean_files conftest.out"
3217 # Check that the compiler produces executables we can run. If not, either
3218 # the compiler is broken, or we cross compile.
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3220 printf %s "checking whether we are cross compiling... " >&6; }
3221 if test "$cross_compiling" != yes; then
3222 { { ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 printf "%s\n" "$ac_try_echo"; } >&5
3229 (eval "$ac_link") 2>&5
3230 ac_status=$?
3231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }
3233 if { ac_try='./conftest$ac_cv_exeext'
3234 { { case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 printf "%s\n" "$ac_try_echo"; } >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; }; then
3244 cross_compiling=no
3245 else
3246 if test "$cross_compiling" = maybe; then
3247 cross_compiling=yes
3248 else
3249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3250 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3251 as_fn_error 77 "cannot run C compiled programs.
3252 If you meant to cross compile, use '--host'.
3253 See 'config.log' for more details" "$LINENO" 5; }
3254 fi
3255 fi
3256 fi
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3258 printf "%s\n" "$cross_compiling" >&6; }
3259
3260 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3261 conftest.o conftest.obj conftest.out
3262 ac_clean_files=$ac_clean_files_save
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3264 printf %s "checking for suffix of object files... " >&6; }
3265 if test ${ac_cv_objext+y}
3266 then :
3267 printf %s "(cached) " >&6
3268 else case e in #(
3269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271
3272 int
3273 main (void)
3274 {
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.o conftest.obj
3281 if { { ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 printf "%s\n" "$ac_try_echo"; } >&5
3288 (eval "$ac_compile") 2>&5
3289 ac_status=$?
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }
3292 then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298 break;;
3299 esac
3300 done
3301 else case e in #(
3302 e) printf "%s\n" "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3306 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of object files: cannot compile
3308 See 'config.log' for more details" "$LINENO" 5; } ;;
3309 esac
3310 fi
3311 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3312 esac
3313 fi
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 printf "%s\n" "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3317 ac_objext=$OBJEXT
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3319 printf %s "checking whether the compiler supports GNU C... " >&6; }
3320 if test ${ac_cv_c_compiler_gnu+y}
3321 then :
3322 printf %s "(cached) " >&6
3323 else case e in #(
3324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326
3327 int
3328 main (void)
3329 {
3330 #ifndef __GNUC__
3331 choke me
3332 #endif
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"
3339 then :
3340 ac_compiler_gnu=yes
3341 else case e in #(
3342 e) ac_compiler_gnu=no ;;
3343 esac
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3347 ;;
3348 esac
3349 fi
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354 if test $ac_compiler_gnu = yes; then
3355 GCC=yes
3356 else
3357 GCC=
3358 fi
3359 ac_test_CFLAGS=${CFLAGS+y}
3360 ac_save_CFLAGS=$CFLAGS
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362 printf %s "checking whether $CC accepts -g... " >&6; }
3363 if test ${ac_cv_prog_cc_g+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else case e in #(
3367 e) ac_save_c_werror_flag=$ac_c_werror_flag
3368 ac_c_werror_flag=yes
3369 ac_cv_prog_cc_g=no
3370 CFLAGS="-g"
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main (void)
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 if ac_fn_c_try_compile "$LINENO"
3383 then :
3384 ac_cv_prog_cc_g=yes
3385 else case e in #(
3386 e) CFLAGS=""
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main (void)
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"
3399 then :
3400
3401 else case e in #(
3402 e) ac_c_werror_flag=$ac_save_c_werror_flag
3403 CFLAGS="-g"
3404 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 if ac_fn_c_try_compile "$LINENO"
3416 then :
3417 ac_cv_prog_cc_g=yes
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3420 esac
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3423 esac
3424 fi
3425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3427 esac
3428 fi
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3431 if test $ac_test_CFLAGS; then
3432 CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434 if test "$GCC" = yes; then
3435 CFLAGS="-g -O2"
3436 else
3437 CFLAGS="-g"
3438 fi
3439 else
3440 if test "$GCC" = yes; then
3441 CFLAGS="-O2"
3442 else
3443 CFLAGS=
3444 fi
3445 fi
3446 ac_prog_cc_stdc=no
3447 if test x$ac_prog_cc_stdc = xno
3448 then :
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3450 printf %s "checking for $CC option to enable C11 features... " >&6; }
3451 if test ${ac_cv_prog_cc_c11+y}
3452 then :
3453 printf %s "(cached) " >&6
3454 else case e in #(
3455 e) ac_cv_prog_cc_c11=no
3456 ac_save_CC=$CC
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 $ac_c_conftest_c11_program
3460 _ACEOF
3461 for ac_arg in '' -std=gnu11
3462 do
3463 CC="$ac_save_CC $ac_arg"
3464 if ac_fn_c_try_compile "$LINENO"
3465 then :
3466 ac_cv_prog_cc_c11=$ac_arg
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.beam
3469 test "x$ac_cv_prog_cc_c11" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC ;;
3473 esac
3474 fi
3475
3476 if test "x$ac_cv_prog_cc_c11" = xno
3477 then :
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3479 printf "%s\n" "unsupported" >&6; }
3480 else case e in #(
3481 e) if test "x$ac_cv_prog_cc_c11" = x
3482 then :
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484 printf "%s\n" "none needed" >&6; }
3485 else case e in #(
3486 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3487 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3488 CC="$CC $ac_cv_prog_cc_c11" ;;
3489 esac
3490 fi
3491 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3492 ac_prog_cc_stdc=c11 ;;
3493 esac
3494 fi
3495 fi
3496 if test x$ac_prog_cc_stdc = xno
3497 then :
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3499 printf %s "checking for $CC option to enable C99 features... " >&6; }
3500 if test ${ac_cv_prog_cc_c99+y}
3501 then :
3502 printf %s "(cached) " >&6
3503 else case e in #(
3504 e) ac_cv_prog_cc_c99=no
3505 ac_save_CC=$CC
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508 $ac_c_conftest_c99_program
3509 _ACEOF
3510 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3511 do
3512 CC="$ac_save_CC $ac_arg"
3513 if ac_fn_c_try_compile "$LINENO"
3514 then :
3515 ac_cv_prog_cc_c99=$ac_arg
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.beam
3518 test "x$ac_cv_prog_cc_c99" != "xno" && break
3519 done
3520 rm -f conftest.$ac_ext
3521 CC=$ac_save_CC ;;
3522 esac
3523 fi
3524
3525 if test "x$ac_cv_prog_cc_c99" = xno
3526 then :
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3528 printf "%s\n" "unsupported" >&6; }
3529 else case e in #(
3530 e) if test "x$ac_cv_prog_cc_c99" = x
3531 then :
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 printf "%s\n" "none needed" >&6; }
3534 else case e in #(
3535 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3536 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3537 CC="$CC $ac_cv_prog_cc_c99" ;;
3538 esac
3539 fi
3540 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3541 ac_prog_cc_stdc=c99 ;;
3542 esac
3543 fi
3544 fi
3545 if test x$ac_prog_cc_stdc = xno
3546 then :
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3548 printf %s "checking for $CC option to enable C89 features... " >&6; }
3549 if test ${ac_cv_prog_cc_c89+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else case e in #(
3553 e) ac_cv_prog_cc_c89=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 $ac_c_conftest_c89_program
3558 _ACEOF
3559 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560 do
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"
3563 then :
3564 ac_cv_prog_cc_c89=$ac_arg
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.beam
3567 test "x$ac_cv_prog_cc_c89" != "xno" && break
3568 done
3569 rm -f conftest.$ac_ext
3570 CC=$ac_save_CC ;;
3571 esac
3572 fi
3573
3574 if test "x$ac_cv_prog_cc_c89" = xno
3575 then :
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 printf "%s\n" "unsupported" >&6; }
3578 else case e in #(
3579 e) if test "x$ac_cv_prog_cc_c89" = x
3580 then :
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 printf "%s\n" "none needed" >&6; }
3583 else case e in #(
3584 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3585 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3586 CC="$CC $ac_cv_prog_cc_c89" ;;
3587 esac
3588 fi
3589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3590 ac_prog_cc_stdc=c89 ;;
3591 esac
3592 fi
3593 fi
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3608 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3609 if test ${am_cv_prog_cc_c_o+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else case e in #(
3613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main (void)
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 # Make sure it works both with $CC and with simple cc.
3625 # Following AC_PROG_CC_C_O, we do the test twice because some
3626 # compilers refuse to overwrite an existing .o file with -o,
3627 # though they will create one.
3628 am_cv_prog_cc_c_o=yes
3629 for am_i in 1 2; do
3630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } \
3635 && test -f conftest2.$ac_objext; then
3636 : OK
3637 else
3638 am_cv_prog_cc_c_o=no
3639 break
3640 fi
3641 done
3642 rm -f core conftest*
3643 unset am_i ;;
3644 esac
3645 fi
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3647 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3648 if test "$am_cv_prog_cc_c_o" != yes; then
3649 # Losing compiler, so override with the script.
3650 # FIXME: It is wrong to rewrite CC.
3651 # But if we don't then we get into trouble of one sort or another.
3652 # A longer-term fix would be to have automake use am__CC in this case,
3653 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3654 CC="$am_aux_dir/compile $CC"
3655 fi
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663
3664 ac_header= ac_cache=
3665 for ac_item in $ac_header_c_list
3666 do
3667 if test $ac_cache; then
3668 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3669 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3670 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3671 fi
3672 ac_header= ac_cache=
3673 elif test $ac_header; then
3674 ac_cache=$ac_item
3675 else
3676 ac_header=$ac_item
3677 fi
3678 done
3679
3680
3681
3682
3683
3684
3685
3686
3687 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3688 then :
3689
3690 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3691
3692 fi
3693
3694
3695
3696
3697
3698
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3700 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3701 if test ${ac_cv_safe_to_define___extensions__+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 # define __EXTENSIONS__ 1
3709 $ac_includes_default
3710 int
3711 main (void)
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"
3719 then :
3720 ac_cv_safe_to_define___extensions__=yes
3721 else case e in #(
3722 e) ac_cv_safe_to_define___extensions__=no ;;
3723 esac
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3726 esac
3727 fi
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3729 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3730
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3732 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3733 if test ${ac_cv_should_define__xopen_source+y}
3734 then :
3735 printf %s "(cached) " >&6
3736 else case e in #(
3737 e) ac_cv_should_define__xopen_source=no
3738 if test $ac_cv_header_wchar_h = yes
3739 then :
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 #include <wchar.h>
3744 mbstate_t x;
3745 int
3746 main (void)
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"
3754 then :
3755
3756 else case e in #(
3757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 #define _XOPEN_SOURCE 500
3761 #include <wchar.h>
3762 mbstate_t x;
3763 int
3764 main (void)
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"
3772 then :
3773 ac_cv_should_define__xopen_source=yes
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3776 esac
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3779 fi ;;
3780 esac
3781 fi
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3783 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3784
3785 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3786
3787 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3788
3789 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3790
3791 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3792
3793 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3794
3795 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3796
3797 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3798
3799 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3800
3801 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3802
3803 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3804
3805 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3806
3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3808
3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3810
3811 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3812
3813 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3814
3815 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3816
3817 if test $ac_cv_header_minix_config_h = yes
3818 then :
3819 MINIX=yes
3820 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3825
3826 else case e in #(
3827 e) MINIX= ;;
3828 esac
3829 fi
3830 if test $ac_cv_safe_to_define___extensions__ = yes
3831 then :
3832 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3833
3834 fi
3835 if test $ac_cv_should_define__xopen_source = yes
3836 then :
3837 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3838
3839 fi
3840
3841
3842 # Initialize Automake
3843 am__api_version='1.16'
3844
3845
3846 # Find a good install program. We prefer a C program (faster),
3847 # so one script is as good as another. But avoid the broken or
3848 # incompatible versions:
3849 # SysV /etc/install, /usr/sbin/install
3850 # SunOS /usr/etc/install
3851 # IRIX /sbin/install
3852 # AIX /bin/install
3853 # AmigaOS /C/install, which installs bootblocks on floppy discs
3854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3857 # OS/2's system install, which has a completely different semantic
3858 # ./install, which can be erroneously created by make from ./install.sh.
3859 # Reject install programs that cannot install multiple files.
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3861 printf %s "checking for a BSD-compatible install... " >&6; }
3862 if test -z "$INSTALL"; then
3863 if test ${ac_cv_path_install+y}
3864 then :
3865 printf %s "(cached) " >&6
3866 else case e in #(
3867 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 case $as_dir in #(((
3872 '') as_dir=./ ;;
3873 */) ;;
3874 *) as_dir=$as_dir/ ;;
3875 esac
3876 # Account for fact that we put trailing slashes in our PATH walk.
3877 case $as_dir in #((
3878 ./ | /[cC]/* | \
3879 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3880 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3881 /usr/ucb/* ) ;;
3882 *)
3883 # OSF1 and SCO ODT 3.0 have their own names for install.
3884 # Don't use installbsd from OSF since it installs stuff as root
3885 # by default.
3886 for ac_prog in ginstall scoinst install; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3889 if test $ac_prog = install &&
3890 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3891 # AIX install. It has an incompatible calling convention.
3892 :
3893 elif test $ac_prog = install &&
3894 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3895 # program-specific install script used by HP pwplus--don't use.
3896 :
3897 else
3898 rm -rf conftest.one conftest.two conftest.dir
3899 echo one > conftest.one
3900 echo two > conftest.two
3901 mkdir conftest.dir
3902 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3903 test -s conftest.one && test -s conftest.two &&
3904 test -s conftest.dir/conftest.one &&
3905 test -s conftest.dir/conftest.two
3906 then
3907 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3908 break 3
3909 fi
3910 fi
3911 fi
3912 done
3913 done
3914 ;;
3915 esac
3916
3917 done
3918 IFS=$as_save_IFS
3919
3920 rm -rf conftest.one conftest.two conftest.dir
3921 ;;
3922 esac
3923 fi
3924 if test ${ac_cv_path_install+y}; then
3925 INSTALL=$ac_cv_path_install
3926 else
3927 # As a last resort, use the slow shell script. Don't cache a
3928 # value for INSTALL within a source directory, because that will
3929 # break other packages using the cache if that directory is
3930 # removed, or if the value is a relative name.
3931 INSTALL=$ac_install_sh
3932 fi
3933 fi
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3935 printf "%s\n" "$INSTALL" >&6; }
3936
3937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3938 # It thinks the first close brace ends the variable substitution.
3939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3940
3941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3942
3943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3944
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3946 printf %s "checking whether build environment is sane... " >&6; }
3947 # Reject unsafe characters in $srcdir or the absolute working directory
3948 # name. Accept space and tab only in the latter.
3949 am_lf='
3950 '
3951 case `pwd` in
3952 *[\\\"\#\$\&\'\`$am_lf]*)
3953 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3954 esac
3955 case $srcdir in
3956 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3957 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3958 esac
3959
3960 # Do 'set' in a subshell so we don't clobber the current shell's
3961 # arguments. Must try -L first in case configure is actually a
3962 # symlink; some systems play weird games with the mod time of symlinks
3963 # (eg FreeBSD returns the mod time of the symlink's containing
3964 # directory).
3965 if (
3966 am_has_slept=no
3967 for am_try in 1 2; do
3968 echo "timestamp, slept: $am_has_slept" > conftest.file
3969 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3970 if test "$*" = "X"; then
3971 # -L didn't work.
3972 set X `ls -t "$srcdir/configure" conftest.file`
3973 fi
3974 if test "$*" != "X $srcdir/configure conftest.file" \
3975 && test "$*" != "X conftest.file $srcdir/configure"; then
3976
3977 # If neither matched, then we have a broken ls. This can happen
3978 # if, for instance, CONFIG_SHELL is bash and it inherits a
3979 # broken ls alias from the environment. This has actually
3980 # happened. Such a system could not be considered "sane".
3981 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3982 alias in your environment" "$LINENO" 5
3983 fi
3984 if test "$2" = conftest.file || test $am_try -eq 2; then
3985 break
3986 fi
3987 # Just in case.
3988 sleep 1
3989 am_has_slept=yes
3990 done
3991 test "$2" = conftest.file
3992 )
3993 then
3994 # Ok.
3995 :
3996 else
3997 as_fn_error $? "newly created file is older than distributed files!
3998 Check your system clock" "$LINENO" 5
3999 fi
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4001 printf "%s\n" "yes" >&6; }
4002 # If we didn't sleep, we still need to ensure time stamps of config.status and
4003 # generated files are strictly newer.
4004 am_sleep_pid=
4005 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4006 ( sleep 1 ) &
4007 am_sleep_pid=$!
4008 fi
4009
4010 rm -f conftest.file
4011
4012 test "$program_prefix" != NONE &&
4013 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4014 # Use a double $ so make ignores it.
4015 test "$program_suffix" != NONE &&
4016 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4017 # Double any \ or $.
4018 # By default was 's,x,x', remove it if useless.
4019 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4020 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4021
4022
4023 if test x"${MISSING+set}" != xset; then
4024 MISSING="\${SHELL} '$am_aux_dir/missing'"
4025 fi
4026 # Use eval to expand $SHELL
4027 if eval "$MISSING --is-lightweight"; then
4028 am_missing_run="$MISSING "
4029 else
4030 am_missing_run=
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4032 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4033 fi
4034
4035 if test x"${install_sh+set}" != xset; then
4036 case $am_aux_dir in
4037 *\ * | *\ *)
4038 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4039 *)
4040 install_sh="\${SHELL} $am_aux_dir/install-sh"
4041 esac
4042 fi
4043
4044 # Installed binaries are usually stripped using 'strip' when the user
4045 # run "make install-strip". However 'strip' might not be the right
4046 # tool to use in cross-compilation environments, therefore Automake
4047 # will honor the 'STRIP' environment variable to overrule this program.
4048 if test "$cross_compiling" != no; then
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}strip; ac_word=$2
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 printf %s "checking for $ac_word... " >&6; }
4054 if test ${ac_cv_prog_STRIP+y}
4055 then :
4056 printf %s "(cached) " >&6
4057 else case e in #(
4058 e) if test -n "$STRIP"; then
4059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064 IFS=$as_save_IFS
4065 case $as_dir in #(((
4066 '') as_dir=./ ;;
4067 */) ;;
4068 *) as_dir=$as_dir/ ;;
4069 esac
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi ;;
4081 esac
4082 fi
4083 STRIP=$ac_cv_prog_STRIP
4084 if test -n "$STRIP"; then
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4086 printf "%s\n" "$STRIP" >&6; }
4087 else
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 printf "%s\n" "no" >&6; }
4090 fi
4091
4092
4093 fi
4094 if test -z "$ac_cv_prog_STRIP"; then
4095 ac_ct_STRIP=$STRIP
4096 # Extract the first word of "strip", so it can be a program name with args.
4097 set dummy strip; ac_word=$2
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 printf %s "checking for $ac_word... " >&6; }
4100 if test ${ac_cv_prog_ac_ct_STRIP+y}
4101 then :
4102 printf %s "(cached) " >&6
4103 else case e in #(
4104 e) if test -n "$ac_ct_STRIP"; then
4105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 case $as_dir in #(((
4112 '') as_dir=./ ;;
4113 */) ;;
4114 *) as_dir=$as_dir/ ;;
4115 esac
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_ac_ct_STRIP="strip"
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi ;;
4127 esac
4128 fi
4129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4130 if test -n "$ac_ct_STRIP"; then
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4132 printf "%s\n" "$ac_ct_STRIP" >&6; }
4133 else
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 printf "%s\n" "no" >&6; }
4136 fi
4137
4138 if test "x$ac_ct_STRIP" = x; then
4139 STRIP=":"
4140 else
4141 case $cross_compiling:$ac_tool_warned in
4142 yes:)
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4144 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 STRIP=$ac_ct_STRIP
4148 fi
4149 else
4150 STRIP="$ac_cv_prog_STRIP"
4151 fi
4152
4153 fi
4154 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4155
4156
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4158 printf %s "checking for a race-free mkdir -p... " >&6; }
4159 if test -z "$MKDIR_P"; then
4160 if test ${ac_cv_path_mkdir+y}
4161 then :
4162 printf %s "(cached) " >&6
4163 else case e in #(
4164 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4166 do
4167 IFS=$as_save_IFS
4168 case $as_dir in #(((
4169 '') as_dir=./ ;;
4170 */) ;;
4171 *) as_dir=$as_dir/ ;;
4172 esac
4173 for ac_prog in mkdir gmkdir; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4176 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4177 'mkdir ('*'coreutils) '* | \
4178 *'BusyBox '* | \
4179 'mkdir (fileutils) '4.1*)
4180 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4181 break 3;;
4182 esac
4183 done
4184 done
4185 done
4186 IFS=$as_save_IFS
4187 ;;
4188 esac
4189 fi
4190
4191 test -d ./--version && rmdir ./--version
4192 if test ${ac_cv_path_mkdir+y}; then
4193 MKDIR_P="$ac_cv_path_mkdir -p"
4194 else
4195 # As a last resort, use plain mkdir -p,
4196 # in the hope it doesn't have the bugs of ancient mkdir.
4197 MKDIR_P='mkdir -p'
4198 fi
4199 fi
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4201 printf "%s\n" "$MKDIR_P" >&6; }
4202
4203 for ac_prog in gawk mawk nawk awk
4204 do
4205 # Extract the first word of "$ac_prog", so it can be a program name with args.
4206 set dummy $ac_prog; ac_word=$2
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 printf %s "checking for $ac_word... " >&6; }
4209 if test ${ac_cv_prog_AWK+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else case e in #(
4213 e) if test -n "$AWK"; then
4214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219 IFS=$as_save_IFS
4220 case $as_dir in #(((
4221 '') as_dir=./ ;;
4222 */) ;;
4223 *) as_dir=$as_dir/ ;;
4224 esac
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_AWK="$ac_prog"
4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235 fi ;;
4236 esac
4237 fi
4238 AWK=$ac_cv_prog_AWK
4239 if test -n "$AWK"; then
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4241 printf "%s\n" "$AWK" >&6; }
4242 else
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 printf "%s\n" "no" >&6; }
4245 fi
4246
4247
4248 test -n "$AWK" && break
4249 done
4250
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4252 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4253 set x ${MAKE-make}
4254 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4255 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else case e in #(
4259 e) cat >conftest.make <<\_ACEOF
4260 SHELL = /bin/sh
4261 all:
4262 @echo '@@@%%%=$(MAKE)=@@@%%%'
4263 _ACEOF
4264 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4266 *@@@%%%=?*=@@@%%%*)
4267 eval ac_cv_prog_make_${ac_make}_set=yes;;
4268 *)
4269 eval ac_cv_prog_make_${ac_make}_set=no;;
4270 esac
4271 rm -f conftest.make ;;
4272 esac
4273 fi
4274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276 printf "%s\n" "yes" >&6; }
4277 SET_MAKE=
4278 else
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 printf "%s\n" "no" >&6; }
4281 SET_MAKE="MAKE=${MAKE-make}"
4282 fi
4283
4284 rm -rf .tst 2>/dev/null
4285 mkdir .tst 2>/dev/null
4286 if test -d .tst; then
4287 am__leading_dot=.
4288 else
4289 am__leading_dot=_
4290 fi
4291 rmdir .tst 2>/dev/null
4292
4293 DEPDIR="${am__leading_dot}deps"
4294
4295 ac_config_commands="$ac_config_commands depfiles"
4296
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4298 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4299 cat > confinc.mk << 'END'
4300 am__doit:
4301 @echo this is the am__doit target >confinc.out
4302 .PHONY: am__doit
4303 END
4304 am__include="#"
4305 am__quote=
4306 # BSD make does it like this.
4307 echo '.include "confinc.mk" # ignored' > confmf.BSD
4308 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4309 echo 'include confinc.mk # ignored' > confmf.GNU
4310 _am_result=no
4311 for s in GNU BSD; do
4312 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4313 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }
4317 case $?:`cat confinc.out 2>/dev/null` in #(
4318 '0:this is the am__doit target') :
4319 case $s in #(
4320 BSD) :
4321 am__include='.include' am__quote='"' ;; #(
4322 *) :
4323 am__include='include' am__quote='' ;;
4324 esac ;; #(
4325 *) :
4326 ;;
4327 esac
4328 if test "$am__include" != "#"; then
4329 _am_result="yes ($s style)"
4330 break
4331 fi
4332 done
4333 rm -f confinc.* confmf.*
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4335 printf "%s\n" "${_am_result}" >&6; }
4336
4337 # Check whether --enable-dependency-tracking was given.
4338 if test ${enable_dependency_tracking+y}
4339 then :
4340 enableval=$enable_dependency_tracking;
4341 fi
4342
4343 if test "x$enable_dependency_tracking" != xno; then
4344 am_depcomp="$ac_aux_dir/depcomp"
4345 AMDEPBACKSLASH='\'
4346 am__nodep='_no'
4347 fi
4348 if test "x$enable_dependency_tracking" != xno; then
4349 AMDEP_TRUE=
4350 AMDEP_FALSE='#'
4351 else
4352 AMDEP_TRUE='#'
4353 AMDEP_FALSE=
4354 fi
4355
4356
4357 # Check whether --enable-silent-rules was given.
4358 if test ${enable_silent_rules+y}
4359 then :
4360 enableval=$enable_silent_rules;
4361 fi
4362
4363 case $enable_silent_rules in # (((
4364 yes) AM_DEFAULT_VERBOSITY=0;;
4365 no) AM_DEFAULT_VERBOSITY=1;;
4366 *) AM_DEFAULT_VERBOSITY=1;;
4367 esac
4368 am_make=${MAKE-make}
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4370 printf %s "checking whether $am_make supports nested variables... " >&6; }
4371 if test ${am_cv_make_support_nested_variables+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else case e in #(
4375 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4376 BAR0=false
4377 BAR1=true
4378 V=1
4379 am__doit:
4380 @$(TRUE)
4381 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4382 am_cv_make_support_nested_variables=yes
4383 else
4384 am_cv_make_support_nested_variables=no
4385 fi ;;
4386 esac
4387 fi
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4389 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4390 if test $am_cv_make_support_nested_variables = yes; then
4391 AM_V='$(V)'
4392 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4393 else
4394 AM_V=$AM_DEFAULT_VERBOSITY
4395 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4396 fi
4397 AM_BACKSLASH='\'
4398
4399 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4400 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4401 # is not polluted with repeated "-I."
4402 am__isrc=' -I$(srcdir)'
4403 # test to see if srcdir already configured
4404 if test -f $srcdir/config.status; then
4405 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4406 fi
4407 fi
4408
4409 # test whether we have cygpath
4410 if test -z "$CYGPATH_W"; then
4411 if (cygpath --version) >/dev/null 2>/dev/null; then
4412 CYGPATH_W='cygpath -w'
4413 else
4414 CYGPATH_W=echo
4415 fi
4416 fi
4417
4418
4419 # Define the identity of the package.
4420 PACKAGE='xlsfonts'
4421 VERSION='1.0.8'
4422
4423
4424 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4425
4426
4427 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4428
4429 # Some tools Automake needs.
4430
4431 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4432
4433
4434 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4435
4436
4437 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4438
4439
4440 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4441
4442
4443 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4444
4445 # For better backward compatibility. To be removed once Automake 1.9.x
4446 # dies out for good. For more background, see:
4447 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4448 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4449 mkdir_p='$(MKDIR_P)'
4450
4451 # We need awk for the "check" target (and possibly the TAP driver). The
4452 # system "awk" is bad on some platforms.
4453 # Always define AMTAR for backward compatibility. Yes, it's still used
4454 # in the wild :-( We should find a proper way to deprecate it ...
4455 AMTAR='$${TAR-tar}'
4456
4457
4458 # We'll loop over all known methods to create a tar archive until one works.
4459 _am_tools='gnutar pax cpio none'
4460
4461 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4462
4463
4464
4465
4466
4467 depcc="$CC" am_compiler_list=
4468
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4470 printf %s "checking dependency style of $depcc... " >&6; }
4471 if test ${am_cv_CC_dependencies_compiler_type+y}
4472 then :
4473 printf %s "(cached) " >&6
4474 else case e in #(
4475 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476 # We make a subdir and do the tests there. Otherwise we can end up
4477 # making bogus files that we don't know about and never remove. For
4478 # instance it was reported that on HP-UX the gcc test will end up
4479 # making a dummy file named 'D' -- because '-MD' means "put the output
4480 # in D".
4481 rm -rf conftest.dir
4482 mkdir conftest.dir
4483 # Copy depcomp to subdir because otherwise we won't find it if we're
4484 # using a relative directory.
4485 cp "$am_depcomp" conftest.dir
4486 cd conftest.dir
4487 # We will build objects and dependencies in a subdirectory because
4488 # it helps to detect inapplicable dependency modes. For instance
4489 # both Tru64's cc and ICC support -MD to output dependencies as a
4490 # side effect of compilation, but ICC will put the dependencies in
4491 # the current directory while Tru64 will put them in the object
4492 # directory.
4493 mkdir sub
4494
4495 am_cv_CC_dependencies_compiler_type=none
4496 if test "$am_compiler_list" = ""; then
4497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4498 fi
4499 am__universal=false
4500 case " $depcc " in #(
4501 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4502 esac
4503
4504 for depmode in $am_compiler_list; do
4505 # Setup a source with many dependencies, because some compilers
4506 # like to wrap large dependency lists on column 80 (with \), and
4507 # we should not choose a depcomp mode which is confused by this.
4508 #
4509 # We need to recreate these files for each test, as the compiler may
4510 # overwrite some of them when testing with obscure command lines.
4511 # This happens at least with the AIX C compiler.
4512 : > sub/conftest.c
4513 for i in 1 2 3 4 5 6; do
4514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4515 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4516 # Solaris 10 /bin/sh.
4517 echo '/* dummy */' > sub/conftst$i.h
4518 done
4519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4520
4521 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4522 # mode. It turns out that the SunPro C++ compiler does not properly
4523 # handle '-M -o', and we need to detect this. Also, some Intel
4524 # versions had trouble with output in subdirs.
4525 am__obj=sub/conftest.${OBJEXT-o}
4526 am__minus_obj="-o $am__obj"
4527 case $depmode in
4528 gcc)
4529 # This depmode causes a compiler race in universal mode.
4530 test "$am__universal" = false || continue
4531 ;;
4532 nosideeffect)
4533 # After this tag, mechanisms are not by side-effect, so they'll
4534 # only be used when explicitly requested.
4535 if test "x$enable_dependency_tracking" = xyes; then
4536 continue
4537 else
4538 break
4539 fi
4540 ;;
4541 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4542 # This compiler won't grok '-c -o', but also, the minuso test has
4543 # not run yet. These depmodes are late enough in the game, and
4544 # so weak that their functioning should not be impacted.
4545 am__obj=conftest.${OBJEXT-o}
4546 am__minus_obj=
4547 ;;
4548 none) break ;;
4549 esac
4550 if depmode=$depmode \
4551 source=sub/conftest.c object=$am__obj \
4552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4553 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4554 >/dev/null 2>conftest.err &&
4555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4559 # icc doesn't choke on unknown options, it will just issue warnings
4560 # or remarks (even with -Werror). So we grep stderr for any message
4561 # that says an option was ignored or not supported.
4562 # When given -MP, icc 7.0 and 7.1 complain thusly:
4563 # icc: Command line warning: ignoring option '-M'; no argument required
4564 # The diagnosis changed in icc 8.0:
4565 # icc: Command line remark: option '-MP' not supported
4566 if (grep 'ignoring option' conftest.err ||
4567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4568 am_cv_CC_dependencies_compiler_type=$depmode
4569 break
4570 fi
4571 fi
4572 done
4573
4574 cd ..
4575 rm -rf conftest.dir
4576 else
4577 am_cv_CC_dependencies_compiler_type=none
4578 fi
4579 ;;
4580 esac
4581 fi
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4585
4586 if
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCC_TRUE=
4590 am__fastdepCC_FALSE='#'
4591 else
4592 am__fastdepCC_TRUE='#'
4593 am__fastdepCC_FALSE=
4594 fi
4595
4596
4597 # Variables for tags utilities; see am/tags.am
4598 if test -z "$CTAGS"; then
4599 CTAGS=ctags
4600 fi
4601
4602 if test -z "$ETAGS"; then
4603 ETAGS=etags
4604 fi
4605
4606 if test -z "$CSCOPE"; then
4607 CSCOPE=cscope
4608 fi
4609
4610
4611
4612 # POSIX will say in a future version that running "rm -f" with no argument
4613 # is OK; and we want to be able to make that assumption in our Makefile
4614 # recipes. So use an aggressive probe to check that the usage we want is
4615 # actually supported "in the wild" to an acceptable degree.
4616 # See automake bug#10828.
4617 # To make any issue more visible, cause the running configure to be aborted
4618 # by default if the 'rm' program in use doesn't match our expectations; the
4619 # user can still override this though.
4620 if rm -f && rm -fr && rm -rf; then : OK; else
4621 cat >&2 <<'END'
4622 Oops!
4623
4624 Your 'rm' program seems unable to run without file operands specified
4625 on the command line, even when the '-f' option is present. This is contrary
4626 to the behaviour of most rm programs out there, and not conforming with
4627 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4628
4629 Please tell bug-automake@gnu.org about your system, including the value
4630 of your $PATH and any error possibly output before this message. This
4631 can help us improve future automake versions.
4632
4633 END
4634 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4635 echo 'Configuration will proceed anyway, since you have set the' >&2
4636 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4637 echo >&2
4638 else
4639 cat >&2 <<'END'
4640 Aborting the configuration process, to ensure you take notice of the issue.
4641
4642 You can download and install GNU coreutils to get an 'rm' implementation
4643 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4644
4645 If you want to complete the configuration process using your problematic
4646 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4647 to "yes", and re-run configure.
4648
4649 END
4650 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4651 fi
4652 fi
4653
4654
4655 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4668 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4669 if test ${ac_cv_c_undeclared_builtin_options+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else case e in #(
4673 e) ac_save_CFLAGS=$CFLAGS
4674 ac_cv_c_undeclared_builtin_options='cannot detect'
4675 for ac_arg in '' -fno-builtin; do
4676 CFLAGS="$ac_save_CFLAGS $ac_arg"
4677 # This test program should *not* compile successfully.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680
4681 int
4682 main (void)
4683 {
4684 (void) strchr;
4685 ;
4686 return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"
4690 then :
4691
4692 else case e in #(
4693 e) # This test program should compile successfully.
4694 # No library function is consistently available on
4695 # freestanding implementations, so test against a dummy
4696 # declaration. Include always-available headers on the
4697 # off chance that they somehow elicit warnings.
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <float.h>
4701 #include <limits.h>
4702 #include <stdarg.h>
4703 #include <stddef.h>
4704 extern void ac_decl (int, char *);
4705
4706 int
4707 main (void)
4708 {
4709 (void) ac_decl (0, (char *) 0);
4710 (void) ac_decl;
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"
4717 then :
4718 if test x"$ac_arg" = x
4719 then :
4720 ac_cv_c_undeclared_builtin_options='none needed'
4721 else case e in #(
4722 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4723 esac
4724 fi
4725 break
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4728 esac
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4731 done
4732 CFLAGS=$ac_save_CFLAGS
4733 ;;
4734 esac
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4737 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4738 case $ac_cv_c_undeclared_builtin_options in #(
4739 'cannot detect') :
4740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4741 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4742 as_fn_error $? "cannot make $CC report undeclared builtins
4743 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4744 'none needed') :
4745 ac_c_undeclared_builtin_options='' ;; #(
4746 *) :
4747 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4748 esac
4749
4750
4751
4752
4753
4754 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4755 if test "x$ac_cv_have_decl___clang__" = xyes
4756 then :
4757 CLANGCC="yes"
4758 else case e in #(
4759 e) CLANGCC="no" ;;
4760 esac
4761 fi
4762 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4763 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4764 then :
4765 INTELCC="yes"
4766 else case e in #(
4767 e) INTELCC="no" ;;
4768 esac
4769 fi
4770 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4771 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4772 then :
4773 SUNCC="yes"
4774 else case e in #(
4775 e) SUNCC="no" ;;
4776 esac
4777 fi
4778
4779
4780
4781
4782
4783
4784
4785
4786 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4787 if test -n "$ac_tool_prefix"; then
4788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4789 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 printf %s "checking for $ac_word... " >&6; }
4792 if test ${ac_cv_path_PKG_CONFIG+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else case e in #(
4796 e) case $PKG_CONFIG in
4797 [\\/]* | ?:[\\/]*)
4798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4799 ;;
4800 *)
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 case $as_dir in #(((
4806 '') as_dir=./ ;;
4807 */) ;;
4808 *) as_dir=$as_dir/ ;;
4809 esac
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4812 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 ;;
4821 esac ;;
4822 esac
4823 fi
4824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4825 if test -n "$PKG_CONFIG"; then
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4827 printf "%s\n" "$PKG_CONFIG" >&6; }
4828 else
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 printf "%s\n" "no" >&6; }
4831 fi
4832
4833
4834 fi
4835 if test -z "$ac_cv_path_PKG_CONFIG"; then
4836 ac_pt_PKG_CONFIG=$PKG_CONFIG
4837 # Extract the first word of "pkg-config", so it can be a program name with args.
4838 set dummy pkg-config; ac_word=$2
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 printf %s "checking for $ac_word... " >&6; }
4841 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else case e in #(
4845 e) case $ac_pt_PKG_CONFIG in
4846 [\\/]* | ?:[\\/]*)
4847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4848 ;;
4849 *)
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 case $as_dir in #(((
4855 '') as_dir=./ ;;
4856 */) ;;
4857 *) as_dir=$as_dir/ ;;
4858 esac
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4861 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869 ;;
4870 esac ;;
4871 esac
4872 fi
4873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4874 if test -n "$ac_pt_PKG_CONFIG"; then
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4876 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4877 else
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 printf "%s\n" "no" >&6; }
4880 fi
4881
4882 if test "x$ac_pt_PKG_CONFIG" = x; then
4883 PKG_CONFIG=""
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891 PKG_CONFIG=$ac_pt_PKG_CONFIG
4892 fi
4893 else
4894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4895 fi
4896
4897 fi
4898 if test -n "$PKG_CONFIG"; then
4899 _pkg_min_version=0.9.0
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4901 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 printf "%s\n" "yes" >&6; }
4905 else
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 printf "%s\n" "no" >&6; }
4908 PKG_CONFIG=""
4909 fi
4910 fi
4911
4912
4913 # Make sure we can run config.sub.
4914 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4915 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4918 printf %s "checking build system type... " >&6; }
4919 if test ${ac_cv_build+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) ac_build_alias=$build_alias
4924 test "x$ac_build_alias" = x &&
4925 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4926 test "x$ac_build_alias" = x &&
4927 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4928 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4929 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4930 ;;
4931 esac
4932 fi
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4934 printf "%s\n" "$ac_cv_build" >&6; }
4935 case $ac_cv_build in
4936 *-*-*) ;;
4937 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4938 esac
4939 build=$ac_cv_build
4940 ac_save_IFS=$IFS; IFS='-'
4941 set x $ac_cv_build
4942 shift
4943 build_cpu=$1
4944 build_vendor=$2
4945 shift; shift
4946 # Remember, the first character of IFS is used to create $*,
4947 # except with old shells:
4948 build_os=$*
4949 IFS=$ac_save_IFS
4950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4951
4952
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4954 printf %s "checking host system type... " >&6; }
4955 if test ${ac_cv_host+y}
4956 then :
4957 printf %s "(cached) " >&6
4958 else case e in #(
4959 e) if test "x$host_alias" = x; then
4960 ac_cv_host=$ac_cv_build
4961 else
4962 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4963 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4964 fi
4965 ;;
4966 esac
4967 fi
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4969 printf "%s\n" "$ac_cv_host" >&6; }
4970 case $ac_cv_host in
4971 *-*-*) ;;
4972 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4973 esac
4974 host=$ac_cv_host
4975 ac_save_IFS=$IFS; IFS='-'
4976 set x $ac_cv_host
4977 shift
4978 host_cpu=$1
4979 host_vendor=$2
4980 shift; shift
4981 # Remember, the first character of IFS is used to create $*,
4982 # except with old shells:
4983 host_os=$*
4984 IFS=$ac_save_IFS
4985 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4986
4987
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4989 printf %s "checking for a sed that does not truncate output... " >&6; }
4990 if test ${ac_cv_path_SED+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else case e in #(
4994 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4995 for ac_i in 1 2 3 4 5 6 7; do
4996 ac_script="$ac_script$as_nl$ac_script"
4997 done
4998 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4999 { ac_script=; unset ac_script;}
5000 if test -z "$SED"; then
5001 ac_path_SED_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 case $as_dir in #(((
5008 '') as_dir=./ ;;
5009 */) ;;
5010 *) as_dir=$as_dir/ ;;
5011 esac
5012 for ac_prog in sed gsed
5013 do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5016 as_fn_executable_p "$ac_path_SED" || continue
5017 # Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019 case `"$ac_path_SED" --version 2>&1` in #(
5020 *GNU*)
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022 #(
5023 *)
5024 ac_count=0
5025 printf %s 0123456789 >"conftest.in"
5026 while :
5027 do
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 printf "%s\n" '' >> "conftest.nl"
5032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034 as_fn_arith $ac_count + 1 && ac_count=$as_val
5035 if test $ac_count -gt ${ac_path_SED_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_SED="$ac_path_SED"
5038 ac_path_SED_max=$ac_count
5039 fi
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5042 done
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044 esac
5045
5046 $ac_path_SED_found && break 3
5047 done
5048 done
5049 done
5050 IFS=$as_save_IFS
5051 if test -z "$ac_cv_path_SED"; then
5052 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5053 fi
5054 else
5055 ac_cv_path_SED=$SED
5056 fi
5057 ;;
5058 esac
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5061 printf "%s\n" "$ac_cv_path_SED" >&6; }
5062 SED="$ac_cv_path_SED"
5063 rm -f conftest.sed
5064
5065
5066
5067
5068
5069
5070 # Check whether --enable-selective-werror was given.
5071 if test ${enable_selective_werror+y}
5072 then :
5073 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5074 else case e in #(
5075 e) SELECTIVE_WERROR=yes ;;
5076 esac
5077 fi
5078
5079
5080
5081
5082
5083 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5084 if test "x$SUNCC" = "xyes"; then
5085 BASE_CFLAGS="-v"
5086 else
5087 BASE_CFLAGS=""
5088 fi
5089
5090 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 xorg_testset_save_CFLAGS="$CFLAGS"
5105
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else case e in #(
5114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"
5119 then :
5120 xorg_cv_cc_flag_unknown_warning_option=yes
5121 else case e in #(
5122 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5123 esac
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5126 esac
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5131 CFLAGS="$xorg_testset_save_CFLAGS"
5132 fi
5133
5134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137 fi
5138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5142 then :
5143 printf %s "(cached) " >&6
5144 else case e in #(
5145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 int i;
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151 xorg_cv_cc_flag_unused_command_line_argument=yes
5152 else case e in #(
5153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5154 esac
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5157 esac
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5162 CFLAGS="$xorg_testset_save_CFLAGS"
5163 fi
5164
5165 found="no"
5166
5167 if test $found = "no" ; then
5168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 fi
5171
5172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5174 fi
5175
5176 CFLAGS="$CFLAGS -Wall"
5177
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5179 printf %s "checking if $CC supports -Wall... " >&6; }
5180 cacheid=xorg_cv_cc_flag__Wall
5181 if eval test \${$cacheid+y}
5182 then :
5183 printf %s "(cached) " >&6
5184 else case e in #(
5185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 int
5189 main (void)
5190 {
5191
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"
5197 then :
5198 eval $cacheid=yes
5199 else case e in #(
5200 e) eval $cacheid=no ;;
5201 esac
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5204 conftest$ac_exeext conftest.$ac_ext ;;
5205 esac
5206 fi
5207
5208
5209 CFLAGS="$xorg_testset_save_CFLAGS"
5210
5211 eval supported=\$$cacheid
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5213 printf "%s\n" "$supported" >&6; }
5214 if test "$supported" = "yes" ; then
5215 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5216 found="yes"
5217 fi
5218 fi
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234 xorg_testset_save_CFLAGS="$CFLAGS"
5235
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else case e in #(
5244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 int i;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"
5249 then :
5250 xorg_cv_cc_flag_unknown_warning_option=yes
5251 else case e in #(
5252 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5253 esac
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5256 esac
5257 fi
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5261 CFLAGS="$xorg_testset_save_CFLAGS"
5262 fi
5263
5264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5272 then :
5273 printf %s "(cached) " >&6
5274 else case e in #(
5275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"
5280 then :
5281 xorg_cv_cc_flag_unused_command_line_argument=yes
5282 else case e in #(
5283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5284 esac
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5287 esac
5288 fi
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5292 CFLAGS="$xorg_testset_save_CFLAGS"
5293 fi
5294
5295 found="no"
5296
5297 if test $found = "no" ; then
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 fi
5301
5302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304 fi
5305
5306 CFLAGS="$CFLAGS -Wpointer-arith"
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5309 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5310 cacheid=xorg_cv_cc_flag__Wpointer_arith
5311 if eval test \${$cacheid+y}
5312 then :
5313 printf %s "(cached) " >&6
5314 else case e in #(
5315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 int i;
5318 int
5319 main (void)
5320 {
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"
5327 then :
5328 eval $cacheid=yes
5329 else case e in #(
5330 e) eval $cacheid=no ;;
5331 esac
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5334 conftest$ac_exeext conftest.$ac_ext ;;
5335 esac
5336 fi
5337
5338
5339 CFLAGS="$xorg_testset_save_CFLAGS"
5340
5341 eval supported=\$$cacheid
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5343 printf "%s\n" "$supported" >&6; }
5344 if test "$supported" = "yes" ; then
5345 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5346 found="yes"
5347 fi
5348 fi
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 xorg_testset_save_CFLAGS="$CFLAGS"
5365
5366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5370 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5371 then :
5372 printf %s "(cached) " >&6
5373 else case e in #(
5374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 int i;
5377 _ACEOF
5378 if ac_fn_c_try_compile "$LINENO"
5379 then :
5380 xorg_cv_cc_flag_unknown_warning_option=yes
5381 else case e in #(
5382 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5383 esac
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5386 esac
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 fi
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else case e in #(
5405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"
5410 then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else case e in #(
5413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5414 esac
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5417 esac
5418 fi
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5422 CFLAGS="$xorg_testset_save_CFLAGS"
5423 fi
5424
5425 found="no"
5426
5427 if test $found = "no" ; then
5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 fi
5431
5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434 fi
5435
5436 CFLAGS="$CFLAGS -Wmissing-declarations"
5437
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5439 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5440 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5441 if eval test \${$cacheid+y}
5442 then :
5443 printf %s "(cached) " >&6
5444 else case e in #(
5445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 int i;
5448 int
5449 main (void)
5450 {
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"
5457 then :
5458 eval $cacheid=yes
5459 else case e in #(
5460 e) eval $cacheid=no ;;
5461 esac
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5464 conftest$ac_exeext conftest.$ac_ext ;;
5465 esac
5466 fi
5467
5468
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5470
5471 eval supported=\$$cacheid
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5473 printf "%s\n" "$supported" >&6; }
5474 if test "$supported" = "yes" ; then
5475 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5476 found="yes"
5477 fi
5478 fi
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 xorg_testset_save_CFLAGS="$CFLAGS"
5495
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5501 then :
5502 printf %s "(cached) " >&6
5503 else case e in #(
5504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 int i;
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"
5509 then :
5510 xorg_cv_cc_flag_unknown_warning_option=yes
5511 else case e in #(
5512 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5513 esac
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5516 esac
5517 fi
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5521 CFLAGS="$xorg_testset_save_CFLAGS"
5522 fi
5523
5524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527 fi
5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else case e in #(
5535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 int i;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"
5540 then :
5541 xorg_cv_cc_flag_unused_command_line_argument=yes
5542 else case e in #(
5543 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5544 esac
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5547 esac
5548 fi
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5550 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5552 CFLAGS="$xorg_testset_save_CFLAGS"
5553 fi
5554
5555 found="no"
5556
5557 if test $found = "no" ; then
5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560 fi
5561
5562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564 fi
5565
5566 CFLAGS="$CFLAGS -Wformat=2"
5567
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5569 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5570 cacheid=xorg_cv_cc_flag__Wformat_2
5571 if eval test \${$cacheid+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else case e in #(
5575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int i;
5578 int
5579 main (void)
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_link "$LINENO"
5587 then :
5588 eval $cacheid=yes
5589 else case e in #(
5590 e) eval $cacheid=no ;;
5591 esac
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5594 conftest$ac_exeext conftest.$ac_ext ;;
5595 esac
5596 fi
5597
5598
5599 CFLAGS="$xorg_testset_save_CFLAGS"
5600
5601 eval supported=\$$cacheid
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603 printf "%s\n" "$supported" >&6; }
5604 if test "$supported" = "yes" ; then
5605 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5606 found="yes"
5607 fi
5608 fi
5609
5610 if test $found = "no" ; then
5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613 fi
5614
5615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617 fi
5618
5619 CFLAGS="$CFLAGS -Wformat"
5620
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5622 printf %s "checking if $CC supports -Wformat... " >&6; }
5623 cacheid=xorg_cv_cc_flag__Wformat
5624 if eval test \${$cacheid+y}
5625 then :
5626 printf %s "(cached) " >&6
5627 else case e in #(
5628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 int i;
5631 int
5632 main (void)
5633 {
5634
5635 ;
5636 return 0;
5637 }
5638 _ACEOF
5639 if ac_fn_c_try_link "$LINENO"
5640 then :
5641 eval $cacheid=yes
5642 else case e in #(
5643 e) eval $cacheid=no ;;
5644 esac
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5647 conftest$ac_exeext conftest.$ac_ext ;;
5648 esac
5649 fi
5650
5651
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653
5654 eval supported=\$$cacheid
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5656 printf "%s\n" "$supported" >&6; }
5657 if test "$supported" = "yes" ; then
5658 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5659 found="yes"
5660 fi
5661 fi
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 xorg_testset_save_CFLAGS="$CFLAGS"
5680
5681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5684 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5685 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5686 then :
5687 printf %s "(cached) " >&6
5688 else case e in #(
5689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 int i;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"
5694 then :
5695 xorg_cv_cc_flag_unknown_warning_option=yes
5696 else case e in #(
5697 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5698 esac
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5701 esac
5702 fi
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5704 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5706 CFLAGS="$xorg_testset_save_CFLAGS"
5707 fi
5708
5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712 fi
5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5715 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5716 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else case e in #(
5720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int i;
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"
5725 then :
5726 xorg_cv_cc_flag_unused_command_line_argument=yes
5727 else case e in #(
5728 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5729 esac
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5732 esac
5733 fi
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5737 CFLAGS="$xorg_testset_save_CFLAGS"
5738 fi
5739
5740 found="no"
5741
5742 if test $found = "no" ; then
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 fi
5746
5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5749 fi
5750
5751 CFLAGS="$CFLAGS -Wstrict-prototypes"
5752
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5754 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5755 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5756 if eval test \${$cacheid+y}
5757 then :
5758 printf %s "(cached) " >&6
5759 else case e in #(
5760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 int
5764 main (void)
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"
5772 then :
5773 eval $cacheid=yes
5774 else case e in #(
5775 e) eval $cacheid=no ;;
5776 esac
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5779 conftest$ac_exeext conftest.$ac_ext ;;
5780 esac
5781 fi
5782
5783
5784 CFLAGS="$xorg_testset_save_CFLAGS"
5785
5786 eval supported=\$$cacheid
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5788 printf "%s\n" "$supported" >&6; }
5789 if test "$supported" = "yes" ; then
5790 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5791 found="yes"
5792 fi
5793 fi
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 xorg_testset_save_CFLAGS="$CFLAGS"
5810
5811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5815 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5816 then :
5817 printf %s "(cached) " >&6
5818 else case e in #(
5819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 int i;
5822 _ACEOF
5823 if ac_fn_c_try_compile "$LINENO"
5824 then :
5825 xorg_cv_cc_flag_unknown_warning_option=yes
5826 else case e in #(
5827 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5828 esac
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5831 esac
5832 fi
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5836 CFLAGS="$xorg_testset_save_CFLAGS"
5837 fi
5838
5839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5842 fi
5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5847 then :
5848 printf %s "(cached) " >&6
5849 else case e in #(
5850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"
5855 then :
5856 xorg_cv_cc_flag_unused_command_line_argument=yes
5857 else case e in #(
5858 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5859 esac
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5862 esac
5863 fi
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5867 CFLAGS="$xorg_testset_save_CFLAGS"
5868 fi
5869
5870 found="no"
5871
5872 if test $found = "no" ; then
5873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875 fi
5876
5877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879 fi
5880
5881 CFLAGS="$CFLAGS -Wmissing-prototypes"
5882
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5884 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5885 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5886 if eval test \${$cacheid+y}
5887 then :
5888 printf %s "(cached) " >&6
5889 else case e in #(
5890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 int i;
5893 int
5894 main (void)
5895 {
5896
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 if ac_fn_c_try_link "$LINENO"
5902 then :
5903 eval $cacheid=yes
5904 else case e in #(
5905 e) eval $cacheid=no ;;
5906 esac
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5909 conftest$ac_exeext conftest.$ac_ext ;;
5910 esac
5911 fi
5912
5913
5914 CFLAGS="$xorg_testset_save_CFLAGS"
5915
5916 eval supported=\$$cacheid
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5918 printf "%s\n" "$supported" >&6; }
5919 if test "$supported" = "yes" ; then
5920 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5921 found="yes"
5922 fi
5923 fi
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 xorg_testset_save_CFLAGS="$CFLAGS"
5940
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5945 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else case e in #(
5949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"
5954 then :
5955 xorg_cv_cc_flag_unknown_warning_option=yes
5956 else case e in #(
5957 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5958 esac
5959 fi
5960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5961 esac
5962 fi
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5966 CFLAGS="$xorg_testset_save_CFLAGS"
5967 fi
5968
5969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972 fi
5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5977 then :
5978 printf %s "(cached) " >&6
5979 else case e in #(
5980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 int i;
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"
5985 then :
5986 xorg_cv_cc_flag_unused_command_line_argument=yes
5987 else case e in #(
5988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5989 esac
5990 fi
5991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5992 esac
5993 fi
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5997 CFLAGS="$xorg_testset_save_CFLAGS"
5998 fi
5999
6000 found="no"
6001
6002 if test $found = "no" ; then
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 fi
6010
6011 CFLAGS="$CFLAGS -Wnested-externs"
6012
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6014 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6015 cacheid=xorg_cv_cc_flag__Wnested_externs
6016 if eval test \${$cacheid+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else case e in #(
6020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 int i;
6023 int
6024 main (void)
6025 {
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_link "$LINENO"
6032 then :
6033 eval $cacheid=yes
6034 else case e in #(
6035 e) eval $cacheid=no ;;
6036 esac
6037 fi
6038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6039 conftest$ac_exeext conftest.$ac_ext ;;
6040 esac
6041 fi
6042
6043
6044 CFLAGS="$xorg_testset_save_CFLAGS"
6045
6046 eval supported=\$$cacheid
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6048 printf "%s\n" "$supported" >&6; }
6049 if test "$supported" = "yes" ; then
6050 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6051 found="yes"
6052 fi
6053 fi
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 xorg_testset_save_CFLAGS="$CFLAGS"
6070
6071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6076 then :
6077 printf %s "(cached) " >&6
6078 else case e in #(
6079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 int i;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"
6084 then :
6085 xorg_cv_cc_flag_unknown_warning_option=yes
6086 else case e in #(
6087 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6088 esac
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6091 esac
6092 fi
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6096 CFLAGS="$xorg_testset_save_CFLAGS"
6097 fi
6098
6099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 fi
6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6107 then :
6108 printf %s "(cached) " >&6
6109 else case e in #(
6110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"
6115 then :
6116 xorg_cv_cc_flag_unused_command_line_argument=yes
6117 else case e in #(
6118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6119 esac
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6122 esac
6123 fi
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6125 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6127 CFLAGS="$xorg_testset_save_CFLAGS"
6128 fi
6129
6130 found="no"
6131
6132 if test $found = "no" ; then
6133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 fi
6136
6137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139 fi
6140
6141 CFLAGS="$CFLAGS -Wbad-function-cast"
6142
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6144 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6145 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6146 if eval test \${$cacheid+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else case e in #(
6150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 int i;
6153 int
6154 main (void)
6155 {
6156
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"
6162 then :
6163 eval $cacheid=yes
6164 else case e in #(
6165 e) eval $cacheid=no ;;
6166 esac
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6169 conftest$ac_exeext conftest.$ac_ext ;;
6170 esac
6171 fi
6172
6173
6174 CFLAGS="$xorg_testset_save_CFLAGS"
6175
6176 eval supported=\$$cacheid
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6178 printf "%s\n" "$supported" >&6; }
6179 if test "$supported" = "yes" ; then
6180 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6181 found="yes"
6182 fi
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 xorg_testset_save_CFLAGS="$CFLAGS"
6200
6201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6205 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6206 then :
6207 printf %s "(cached) " >&6
6208 else case e in #(
6209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"
6214 then :
6215 xorg_cv_cc_flag_unknown_warning_option=yes
6216 else case e in #(
6217 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6218 esac
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6221 esac
6222 fi
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6224 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227 fi
6228
6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232 fi
6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6235 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6236 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else case e in #(
6240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 int i;
6243 _ACEOF
6244 if ac_fn_c_try_compile "$LINENO"
6245 then :
6246 xorg_cv_cc_flag_unused_command_line_argument=yes
6247 else case e in #(
6248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6249 esac
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6252 esac
6253 fi
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6257 CFLAGS="$xorg_testset_save_CFLAGS"
6258 fi
6259
6260 found="no"
6261
6262 if test $found = "no" ; then
6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265 fi
6266
6267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6269 fi
6270
6271 CFLAGS="$CFLAGS -Wold-style-definition"
6272
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6274 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6275 cacheid=xorg_cv_cc_flag__Wold_style_definition
6276 if eval test \${$cacheid+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else case e in #(
6280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 int i;
6283 int
6284 main (void)
6285 {
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_link "$LINENO"
6292 then :
6293 eval $cacheid=yes
6294 else case e in #(
6295 e) eval $cacheid=no ;;
6296 esac
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6299 conftest$ac_exeext conftest.$ac_ext ;;
6300 esac
6301 fi
6302
6303
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306 eval supported=\$$cacheid
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308 printf "%s\n" "$supported" >&6; }
6309 if test "$supported" = "yes" ; then
6310 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6311 found="yes"
6312 fi
6313 fi
6314
6315 if test $found = "no" ; then
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 fi
6319
6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322 fi
6323
6324 CFLAGS="$CFLAGS -fd"
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6327 printf %s "checking if $CC supports -fd... " >&6; }
6328 cacheid=xorg_cv_cc_flag__fd
6329 if eval test \${$cacheid+y}
6330 then :
6331 printf %s "(cached) " >&6
6332 else case e in #(
6333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 int i;
6336 int
6337 main (void)
6338 {
6339
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_c_try_link "$LINENO"
6345 then :
6346 eval $cacheid=yes
6347 else case e in #(
6348 e) eval $cacheid=no ;;
6349 esac
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6352 conftest$ac_exeext conftest.$ac_ext ;;
6353 esac
6354 fi
6355
6356
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359 eval supported=\$$cacheid
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361 printf "%s\n" "$supported" >&6; }
6362 if test "$supported" = "yes" ; then
6363 BASE_CFLAGS="$BASE_CFLAGS -fd"
6364 found="yes"
6365 fi
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else case e in #(
6392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 int i;
6395 _ACEOF
6396 if ac_fn_c_try_compile "$LINENO"
6397 then :
6398 xorg_cv_cc_flag_unknown_warning_option=yes
6399 else case e in #(
6400 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6401 esac
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6404 esac
6405 fi
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6407 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6409 CFLAGS="$xorg_testset_save_CFLAGS"
6410 fi
6411
6412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 fi
6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6420 then :
6421 printf %s "(cached) " >&6
6422 else case e in #(
6423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 int i;
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"
6428 then :
6429 xorg_cv_cc_flag_unused_command_line_argument=yes
6430 else case e in #(
6431 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6432 esac
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6435 esac
6436 fi
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441 fi
6442
6443 found="no"
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6455
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6457 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6458 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6459 if eval test \${$cacheid+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else case e in #(
6463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 int i;
6466 int
6467 main (void)
6468 {
6469
6470 ;
6471 return 0;
6472 }
6473 _ACEOF
6474 if ac_fn_c_try_link "$LINENO"
6475 then :
6476 eval $cacheid=yes
6477 else case e in #(
6478 e) eval $cacheid=no ;;
6479 esac
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6482 conftest$ac_exeext conftest.$ac_ext ;;
6483 esac
6484 fi
6485
6486
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488
6489 eval supported=\$$cacheid
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491 printf "%s\n" "$supported" >&6; }
6492 if test "$supported" = "yes" ; then
6493 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6494 found="yes"
6495 fi
6496 fi
6497
6498
6499
6500
6501
6502 # This chunk adds additional warnings that could catch undesired effects.
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516 xorg_testset_save_CFLAGS="$CFLAGS"
6517
6518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6522 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6523 then :
6524 printf %s "(cached) " >&6
6525 else case e in #(
6526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 int i;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"
6531 then :
6532 xorg_cv_cc_flag_unknown_warning_option=yes
6533 else case e in #(
6534 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6535 esac
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6538 esac
6539 fi
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 fi
6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else case e in #(
6557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"
6562 then :
6563 xorg_cv_cc_flag_unused_command_line_argument=yes
6564 else case e in #(
6565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6566 esac
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6569 esac
6570 fi
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575 fi
6576
6577 found="no"
6578
6579 if test $found = "no" ; then
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 fi
6583
6584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586 fi
6587
6588 CFLAGS="$CFLAGS -Wunused"
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6591 printf %s "checking if $CC supports -Wunused... " >&6; }
6592 cacheid=xorg_cv_cc_flag__Wunused
6593 if eval test \${$cacheid+y}
6594 then :
6595 printf %s "(cached) " >&6
6596 else case e in #(
6597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 int i;
6600 int
6601 main (void)
6602 {
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"
6609 then :
6610 eval $cacheid=yes
6611 else case e in #(
6612 e) eval $cacheid=no ;;
6613 esac
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6616 conftest$ac_exeext conftest.$ac_ext ;;
6617 esac
6618 fi
6619
6620
6621 CFLAGS="$xorg_testset_save_CFLAGS"
6622
6623 eval supported=\$$cacheid
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6625 printf "%s\n" "$supported" >&6; }
6626 if test "$supported" = "yes" ; then
6627 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6628 found="yes"
6629 fi
6630 fi
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646 xorg_testset_save_CFLAGS="$CFLAGS"
6647
6648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6652 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else case e in #(
6656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"
6661 then :
6662 xorg_cv_cc_flag_unknown_warning_option=yes
6663 else case e in #(
6664 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6665 esac
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6668 esac
6669 fi
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6673 CFLAGS="$xorg_testset_save_CFLAGS"
6674 fi
6675
6676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 fi
6680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6683 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6684 then :
6685 printf %s "(cached) " >&6
6686 else case e in #(
6687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 int i;
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"
6692 then :
6693 xorg_cv_cc_flag_unused_command_line_argument=yes
6694 else case e in #(
6695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6696 esac
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6699 esac
6700 fi
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705 fi
6706
6707 found="no"
6708
6709 if test $found = "no" ; then
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713
6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716 fi
6717
6718 CFLAGS="$CFLAGS -Wuninitialized"
6719
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6721 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6722 cacheid=xorg_cv_cc_flag__Wuninitialized
6723 if eval test \${$cacheid+y}
6724 then :
6725 printf %s "(cached) " >&6
6726 else case e in #(
6727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 int i;
6730 int
6731 main (void)
6732 {
6733
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"
6739 then :
6740 eval $cacheid=yes
6741 else case e in #(
6742 e) eval $cacheid=no ;;
6743 esac
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6746 conftest$ac_exeext conftest.$ac_ext ;;
6747 esac
6748 fi
6749
6750
6751 CFLAGS="$xorg_testset_save_CFLAGS"
6752
6753 eval supported=\$$cacheid
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6755 printf "%s\n" "$supported" >&6; }
6756 if test "$supported" = "yes" ; then
6757 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6758 found="yes"
6759 fi
6760 fi
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776 xorg_testset_save_CFLAGS="$CFLAGS"
6777
6778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6782 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6783 then :
6784 printf %s "(cached) " >&6
6785 else case e in #(
6786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"
6791 then :
6792 xorg_cv_cc_flag_unknown_warning_option=yes
6793 else case e in #(
6794 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6795 esac
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6798 esac
6799 fi
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6801 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6803 CFLAGS="$xorg_testset_save_CFLAGS"
6804 fi
6805
6806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 fi
6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6812 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6813 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6814 then :
6815 printf %s "(cached) " >&6
6816 else case e in #(
6817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819 int i;
6820 _ACEOF
6821 if ac_fn_c_try_compile "$LINENO"
6822 then :
6823 xorg_cv_cc_flag_unused_command_line_argument=yes
6824 else case e in #(
6825 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6826 esac
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6829 esac
6830 fi
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6834 CFLAGS="$xorg_testset_save_CFLAGS"
6835 fi
6836
6837 found="no"
6838
6839 if test $found = "no" ; then
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846 fi
6847
6848 CFLAGS="$CFLAGS -Wshadow"
6849
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6851 printf %s "checking if $CC supports -Wshadow... " >&6; }
6852 cacheid=xorg_cv_cc_flag__Wshadow
6853 if eval test \${$cacheid+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else case e in #(
6857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 int i;
6860 int
6861 main (void)
6862 {
6863
6864 ;
6865 return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_link "$LINENO"
6869 then :
6870 eval $cacheid=yes
6871 else case e in #(
6872 e) eval $cacheid=no ;;
6873 esac
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6876 conftest$ac_exeext conftest.$ac_ext ;;
6877 esac
6878 fi
6879
6880
6881 CFLAGS="$xorg_testset_save_CFLAGS"
6882
6883 eval supported=\$$cacheid
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6885 printf "%s\n" "$supported" >&6; }
6886 if test "$supported" = "yes" ; then
6887 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6888 found="yes"
6889 fi
6890 fi
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 xorg_testset_save_CFLAGS="$CFLAGS"
6907
6908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6912 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6913 then :
6914 printf %s "(cached) " >&6
6915 else case e in #(
6916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 int i;
6919 _ACEOF
6920 if ac_fn_c_try_compile "$LINENO"
6921 then :
6922 xorg_cv_cc_flag_unknown_warning_option=yes
6923 else case e in #(
6924 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6925 esac
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6928 esac
6929 fi
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6933 CFLAGS="$xorg_testset_save_CFLAGS"
6934 fi
6935
6936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 fi
6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6944 then :
6945 printf %s "(cached) " >&6
6946 else case e in #(
6947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 int i;
6950 _ACEOF
6951 if ac_fn_c_try_compile "$LINENO"
6952 then :
6953 xorg_cv_cc_flag_unused_command_line_argument=yes
6954 else case e in #(
6955 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6956 esac
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6959 esac
6960 fi
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6964 CFLAGS="$xorg_testset_save_CFLAGS"
6965 fi
6966
6967 found="no"
6968
6969 if test $found = "no" ; then
6970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972 fi
6973
6974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976 fi
6977
6978 CFLAGS="$CFLAGS -Wmissing-noreturn"
6979
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6981 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6982 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6983 if eval test \${$cacheid+y}
6984 then :
6985 printf %s "(cached) " >&6
6986 else case e in #(
6987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 int
6991 main (void)
6992 {
6993
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_link "$LINENO"
6999 then :
7000 eval $cacheid=yes
7001 else case e in #(
7002 e) eval $cacheid=no ;;
7003 esac
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7006 conftest$ac_exeext conftest.$ac_ext ;;
7007 esac
7008 fi
7009
7010
7011 CFLAGS="$xorg_testset_save_CFLAGS"
7012
7013 eval supported=\$$cacheid
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7015 printf "%s\n" "$supported" >&6; }
7016 if test "$supported" = "yes" ; then
7017 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7018 found="yes"
7019 fi
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 xorg_testset_save_CFLAGS="$CFLAGS"
7037
7038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7042 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7043 then :
7044 printf %s "(cached) " >&6
7045 else case e in #(
7046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 int i;
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"
7051 then :
7052 xorg_cv_cc_flag_unknown_warning_option=yes
7053 else case e in #(
7054 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7055 esac
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7058 esac
7059 fi
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 fi
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7074 then :
7075 printf %s "(cached) " >&6
7076 else case e in #(
7077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"
7082 then :
7083 xorg_cv_cc_flag_unused_command_line_argument=yes
7084 else case e in #(
7085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7086 esac
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7089 esac
7090 fi
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7092 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7094 CFLAGS="$xorg_testset_save_CFLAGS"
7095 fi
7096
7097 found="no"
7098
7099 if test $found = "no" ; then
7100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106 fi
7107
7108 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7109
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7111 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7112 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7113 if eval test \${$cacheid+y}
7114 then :
7115 printf %s "(cached) " >&6
7116 else case e in #(
7117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 int
7121 main (void)
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_link "$LINENO"
7129 then :
7130 eval $cacheid=yes
7131 else case e in #(
7132 e) eval $cacheid=no ;;
7133 esac
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7136 conftest$ac_exeext conftest.$ac_ext ;;
7137 esac
7138 fi
7139
7140
7141 CFLAGS="$xorg_testset_save_CFLAGS"
7142
7143 eval supported=\$$cacheid
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7145 printf "%s\n" "$supported" >&6; }
7146 if test "$supported" = "yes" ; then
7147 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7148 found="yes"
7149 fi
7150 fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 xorg_testset_save_CFLAGS="$CFLAGS"
7167
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7172 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7173 then :
7174 printf %s "(cached) " >&6
7175 else case e in #(
7176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 int i;
7179 _ACEOF
7180 if ac_fn_c_try_compile "$LINENO"
7181 then :
7182 xorg_cv_cc_flag_unknown_warning_option=yes
7183 else case e in #(
7184 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7185 esac
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7188 esac
7189 fi
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7191 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7193 CFLAGS="$xorg_testset_save_CFLAGS"
7194 fi
7195
7196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199 fi
7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7202 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7203 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7204 then :
7205 printf %s "(cached) " >&6
7206 else case e in #(
7207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 int i;
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"
7212 then :
7213 xorg_cv_cc_flag_unused_command_line_argument=yes
7214 else case e in #(
7215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7216 esac
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7219 esac
7220 fi
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 found="no"
7228
7229 if test $found = "no" ; then
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 fi
7237
7238 CFLAGS="$CFLAGS -Wredundant-decls"
7239
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7241 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7242 cacheid=xorg_cv_cc_flag__Wredundant_decls
7243 if eval test \${$cacheid+y}
7244 then :
7245 printf %s "(cached) " >&6
7246 else case e in #(
7247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 int i;
7250 int
7251 main (void)
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"
7259 then :
7260 eval $cacheid=yes
7261 else case e in #(
7262 e) eval $cacheid=no ;;
7263 esac
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7266 conftest$ac_exeext conftest.$ac_ext ;;
7267 esac
7268 fi
7269
7270
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272
7273 eval supported=\$$cacheid
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7275 printf "%s\n" "$supported" >&6; }
7276 if test "$supported" = "yes" ; then
7277 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7278 found="yes"
7279 fi
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else case e in #(
7306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 int i;
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"
7311 then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else case e in #(
7314 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7315 esac
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7318 esac
7319 fi
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7323 CFLAGS="$xorg_testset_save_CFLAGS"
7324 fi
7325
7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329 fi
7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7334 then :
7335 printf %s "(cached) " >&6
7336 else case e in #(
7337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 int i;
7340 _ACEOF
7341 if ac_fn_c_try_compile "$LINENO"
7342 then :
7343 xorg_cv_cc_flag_unused_command_line_argument=yes
7344 else case e in #(
7345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7346 esac
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7349 esac
7350 fi
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7354 CFLAGS="$xorg_testset_save_CFLAGS"
7355 fi
7356
7357 found="no"
7358
7359 if test $found = "no" ; then
7360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7362 fi
7363
7364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366 fi
7367
7368 CFLAGS="$CFLAGS -Wlogical-op"
7369
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7371 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7372 cacheid=xorg_cv_cc_flag__Wlogical_op
7373 if eval test \${$cacheid+y}
7374 then :
7375 printf %s "(cached) " >&6
7376 else case e in #(
7377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 int i;
7380 int
7381 main (void)
7382 {
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"
7389 then :
7390 eval $cacheid=yes
7391 else case e in #(
7392 e) eval $cacheid=no ;;
7393 esac
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7396 conftest$ac_exeext conftest.$ac_ext ;;
7397 esac
7398 fi
7399
7400
7401 CFLAGS="$xorg_testset_save_CFLAGS"
7402
7403 eval supported=\$$cacheid
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7405 printf "%s\n" "$supported" >&6; }
7406 if test "$supported" = "yes" ; then
7407 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7408 found="yes"
7409 fi
7410 fi
7411
7412
7413
7414 # These are currently disabled because they are noisy. They will be enabled
7415 # in the future once the codebase is sufficiently modernized to silence
7416 # them. For now, I don't want them to drown out the other warnings.
7417 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7418 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7419 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7420
7421 # Turn some warnings into errors, so we don't accidentally get successful builds
7422 # when there are problems that should be fixed.
7423
7424 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 xorg_testset_save_CFLAGS="$CFLAGS"
7439
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7443 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7444 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7445 then :
7446 printf %s "(cached) " >&6
7447 else case e in #(
7448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 int i;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"
7453 then :
7454 xorg_cv_cc_flag_unknown_warning_option=yes
7455 else case e in #(
7456 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7457 esac
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7460 esac
7461 fi
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7465 CFLAGS="$xorg_testset_save_CFLAGS"
7466 fi
7467
7468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7471 fi
7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7476 then :
7477 printf %s "(cached) " >&6
7478 else case e in #(
7479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"
7484 then :
7485 xorg_cv_cc_flag_unused_command_line_argument=yes
7486 else case e in #(
7487 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7488 esac
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7491 esac
7492 fi
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7494 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7496 CFLAGS="$xorg_testset_save_CFLAGS"
7497 fi
7498
7499 found="no"
7500
7501 if test $found = "no" ; then
7502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7504 fi
7505
7506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508 fi
7509
7510 CFLAGS="$CFLAGS -Werror=implicit"
7511
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7513 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7514 cacheid=xorg_cv_cc_flag__Werror_implicit
7515 if eval test \${$cacheid+y}
7516 then :
7517 printf %s "(cached) " >&6
7518 else case e in #(
7519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 int i;
7522 int
7523 main (void)
7524 {
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"
7531 then :
7532 eval $cacheid=yes
7533 else case e in #(
7534 e) eval $cacheid=no ;;
7535 esac
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7538 conftest$ac_exeext conftest.$ac_ext ;;
7539 esac
7540 fi
7541
7542
7543 CFLAGS="$xorg_testset_save_CFLAGS"
7544
7545 eval supported=\$$cacheid
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547 printf "%s\n" "$supported" >&6; }
7548 if test "$supported" = "yes" ; then
7549 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7550 found="yes"
7551 fi
7552 fi
7553
7554 if test $found = "no" ; then
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 fi
7558
7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7561 fi
7562
7563 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7564
7565 { 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
7566 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7567 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7568 if eval test \${$cacheid+y}
7569 then :
7570 printf %s "(cached) " >&6
7571 else case e in #(
7572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 int i;
7575 int
7576 main (void)
7577 {
7578
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 if ac_fn_c_try_link "$LINENO"
7584 then :
7585 eval $cacheid=yes
7586 else case e in #(
7587 e) eval $cacheid=no ;;
7588 esac
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7591 conftest$ac_exeext conftest.$ac_ext ;;
7592 esac
7593 fi
7594
7595
7596 CFLAGS="$xorg_testset_save_CFLAGS"
7597
7598 eval supported=\$$cacheid
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7600 printf "%s\n" "$supported" >&6; }
7601 if test "$supported" = "yes" ; then
7602 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7603 found="yes"
7604 fi
7605 fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621 xorg_testset_save_CFLAGS="$CFLAGS"
7622
7623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7627 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7628 then :
7629 printf %s "(cached) " >&6
7630 else case e in #(
7631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"
7636 then :
7637 xorg_cv_cc_flag_unknown_warning_option=yes
7638 else case e in #(
7639 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7640 esac
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7643 esac
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649 fi
7650
7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 fi
7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else case e in #(
7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"
7667 then :
7668 xorg_cv_cc_flag_unused_command_line_argument=yes
7669 else case e in #(
7670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7671 esac
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7674 esac
7675 fi
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7679 CFLAGS="$xorg_testset_save_CFLAGS"
7680 fi
7681
7682 found="no"
7683
7684 if test $found = "no" ; then
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 fi
7688
7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7691 fi
7692
7693 CFLAGS="$CFLAGS -Werror=nonnull"
7694
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7696 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7697 cacheid=xorg_cv_cc_flag__Werror_nonnull
7698 if eval test \${$cacheid+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else case e in #(
7702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 int i;
7705 int
7706 main (void)
7707 {
7708
7709 ;
7710 return 0;
7711 }
7712 _ACEOF
7713 if ac_fn_c_try_link "$LINENO"
7714 then :
7715 eval $cacheid=yes
7716 else case e in #(
7717 e) eval $cacheid=no ;;
7718 esac
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7721 conftest$ac_exeext conftest.$ac_ext ;;
7722 esac
7723 fi
7724
7725
7726 CFLAGS="$xorg_testset_save_CFLAGS"
7727
7728 eval supported=\$$cacheid
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7730 printf "%s\n" "$supported" >&6; }
7731 if test "$supported" = "yes" ; then
7732 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7733 found="yes"
7734 fi
7735 fi
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 xorg_testset_save_CFLAGS="$CFLAGS"
7752
7753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7757 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else case e in #(
7761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 int i;
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"
7766 then :
7767 xorg_cv_cc_flag_unknown_warning_option=yes
7768 else case e in #(
7769 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7770 esac
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7773 esac
7774 fi
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7778 CFLAGS="$xorg_testset_save_CFLAGS"
7779 fi
7780
7781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 fi
7785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7789 then :
7790 printf %s "(cached) " >&6
7791 else case e in #(
7792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 int i;
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"
7797 then :
7798 xorg_cv_cc_flag_unused_command_line_argument=yes
7799 else case e in #(
7800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7801 esac
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7804 esac
7805 fi
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7807 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810 fi
7811
7812 found="no"
7813
7814 if test $found = "no" ; then
7815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817 fi
7818
7819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821 fi
7822
7823 CFLAGS="$CFLAGS -Werror=init-self"
7824
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7826 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7827 cacheid=xorg_cv_cc_flag__Werror_init_self
7828 if eval test \${$cacheid+y}
7829 then :
7830 printf %s "(cached) " >&6
7831 else case e in #(
7832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 int i;
7835 int
7836 main (void)
7837 {
7838
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_link "$LINENO"
7844 then :
7845 eval $cacheid=yes
7846 else case e in #(
7847 e) eval $cacheid=no ;;
7848 esac
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7851 conftest$ac_exeext conftest.$ac_ext ;;
7852 esac
7853 fi
7854
7855
7856 CFLAGS="$xorg_testset_save_CFLAGS"
7857
7858 eval supported=\$$cacheid
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7860 printf "%s\n" "$supported" >&6; }
7861 if test "$supported" = "yes" ; then
7862 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7863 found="yes"
7864 fi
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 xorg_testset_save_CFLAGS="$CFLAGS"
7882
7883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7888 then :
7889 printf %s "(cached) " >&6
7890 else case e in #(
7891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int i;
7894 _ACEOF
7895 if ac_fn_c_try_compile "$LINENO"
7896 then :
7897 xorg_cv_cc_flag_unknown_warning_option=yes
7898 else case e in #(
7899 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7900 esac
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7903 esac
7904 fi
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7908 CFLAGS="$xorg_testset_save_CFLAGS"
7909 fi
7910
7911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 fi
7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else case e in #(
7922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 int i;
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"
7927 then :
7928 xorg_cv_cc_flag_unused_command_line_argument=yes
7929 else case e in #(
7930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7931 esac
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7934 esac
7935 fi
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 found="no"
7943
7944 if test $found = "no" ; then
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 fi
7952
7953 CFLAGS="$CFLAGS -Werror=main"
7954
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7956 printf %s "checking if $CC supports -Werror=main... " >&6; }
7957 cacheid=xorg_cv_cc_flag__Werror_main
7958 if eval test \${$cacheid+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else case e in #(
7962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 int i;
7965 int
7966 main (void)
7967 {
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_link "$LINENO"
7974 then :
7975 eval $cacheid=yes
7976 else case e in #(
7977 e) eval $cacheid=no ;;
7978 esac
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7981 conftest$ac_exeext conftest.$ac_ext ;;
7982 esac
7983 fi
7984
7985
7986 CFLAGS="$xorg_testset_save_CFLAGS"
7987
7988 eval supported=\$$cacheid
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7990 printf "%s\n" "$supported" >&6; }
7991 if test "$supported" = "yes" ; then
7992 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7993 found="yes"
7994 fi
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 xorg_testset_save_CFLAGS="$CFLAGS"
8012
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8017 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8018 then :
8019 printf %s "(cached) " >&6
8020 else case e in #(
8021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 int i;
8024 _ACEOF
8025 if ac_fn_c_try_compile "$LINENO"
8026 then :
8027 xorg_cv_cc_flag_unknown_warning_option=yes
8028 else case e in #(
8029 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8030 esac
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8033 esac
8034 fi
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8036 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8038 CFLAGS="$xorg_testset_save_CFLAGS"
8039 fi
8040
8041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044 fi
8045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8049 then :
8050 printf %s "(cached) " >&6
8051 else case e in #(
8052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 int i;
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"
8057 then :
8058 xorg_cv_cc_flag_unused_command_line_argument=yes
8059 else case e in #(
8060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8061 esac
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8064 esac
8065 fi
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8069 CFLAGS="$xorg_testset_save_CFLAGS"
8070 fi
8071
8072 found="no"
8073
8074 if test $found = "no" ; then
8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077 fi
8078
8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081 fi
8082
8083 CFLAGS="$CFLAGS -Werror=missing-braces"
8084
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8086 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8087 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8088 if eval test \${$cacheid+y}
8089 then :
8090 printf %s "(cached) " >&6
8091 else case e in #(
8092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 int
8096 main (void)
8097 {
8098
8099 ;
8100 return 0;
8101 }
8102 _ACEOF
8103 if ac_fn_c_try_link "$LINENO"
8104 then :
8105 eval $cacheid=yes
8106 else case e in #(
8107 e) eval $cacheid=no ;;
8108 esac
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8111 conftest$ac_exeext conftest.$ac_ext ;;
8112 esac
8113 fi
8114
8115
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118 eval supported=\$$cacheid
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120 printf "%s\n" "$supported" >&6; }
8121 if test "$supported" = "yes" ; then
8122 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8123 found="yes"
8124 fi
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else case e in #(
8151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 int i;
8154 _ACEOF
8155 if ac_fn_c_try_compile "$LINENO"
8156 then :
8157 xorg_cv_cc_flag_unknown_warning_option=yes
8158 else case e in #(
8159 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8160 esac
8161 fi
8162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8163 esac
8164 fi
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8166 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8168 CFLAGS="$xorg_testset_save_CFLAGS"
8169 fi
8170
8171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174 fi
8175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8177 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8178 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8179 then :
8180 printf %s "(cached) " >&6
8181 else case e in #(
8182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"
8187 then :
8188 xorg_cv_cc_flag_unused_command_line_argument=yes
8189 else case e in #(
8190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8191 esac
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8194 esac
8195 fi
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8199 CFLAGS="$xorg_testset_save_CFLAGS"
8200 fi
8201
8202 found="no"
8203
8204 if test $found = "no" ; then
8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207 fi
8208
8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211 fi
8212
8213 CFLAGS="$CFLAGS -Werror=sequence-point"
8214
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8216 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8217 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8218 if eval test \${$cacheid+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else case e in #(
8222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int i;
8225 int
8226 main (void)
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"
8234 then :
8235 eval $cacheid=yes
8236 else case e in #(
8237 e) eval $cacheid=no ;;
8238 esac
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8241 conftest$ac_exeext conftest.$ac_ext ;;
8242 esac
8243 fi
8244
8245
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247
8248 eval supported=\$$cacheid
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8250 printf "%s\n" "$supported" >&6; }
8251 if test "$supported" = "yes" ; then
8252 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8253 found="yes"
8254 fi
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271 xorg_testset_save_CFLAGS="$CFLAGS"
8272
8273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8278 then :
8279 printf %s "(cached) " >&6
8280 else case e in #(
8281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 int i;
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"
8286 then :
8287 xorg_cv_cc_flag_unknown_warning_option=yes
8288 else case e in #(
8289 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8290 esac
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8293 esac
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 fi
8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else case e in #(
8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 int i;
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"
8317 then :
8318 xorg_cv_cc_flag_unused_command_line_argument=yes
8319 else case e in #(
8320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8321 esac
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8324 esac
8325 fi
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8329 CFLAGS="$xorg_testset_save_CFLAGS"
8330 fi
8331
8332 found="no"
8333
8334 if test $found = "no" ; then
8335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337 fi
8338
8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341 fi
8342
8343 CFLAGS="$CFLAGS -Werror=return-type"
8344
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8346 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8347 cacheid=xorg_cv_cc_flag__Werror_return_type
8348 if eval test \${$cacheid+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 int i;
8355 int
8356 main (void)
8357 {
8358
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_link "$LINENO"
8364 then :
8365 eval $cacheid=yes
8366 else case e in #(
8367 e) eval $cacheid=no ;;
8368 esac
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8371 conftest$ac_exeext conftest.$ac_ext ;;
8372 esac
8373 fi
8374
8375
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377
8378 eval supported=\$$cacheid
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8380 printf "%s\n" "$supported" >&6; }
8381 if test "$supported" = "yes" ; then
8382 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8383 found="yes"
8384 fi
8385 fi
8386
8387 if test $found = "no" ; then
8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390 fi
8391
8392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 fi
8395
8396 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8397
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8399 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8400 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8401 if eval test \${$cacheid+y}
8402 then :
8403 printf %s "(cached) " >&6
8404 else case e in #(
8405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 int i;
8408 int
8409 main (void)
8410 {
8411
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"
8417 then :
8418 eval $cacheid=yes
8419 else case e in #(
8420 e) eval $cacheid=no ;;
8421 esac
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8424 conftest$ac_exeext conftest.$ac_ext ;;
8425 esac
8426 fi
8427
8428
8429 CFLAGS="$xorg_testset_save_CFLAGS"
8430
8431 eval supported=\$$cacheid
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8433 printf "%s\n" "$supported" >&6; }
8434 if test "$supported" = "yes" ; then
8435 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8436 found="yes"
8437 fi
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 xorg_testset_save_CFLAGS="$CFLAGS"
8455
8456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8461 then :
8462 printf %s "(cached) " >&6
8463 else case e in #(
8464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"
8469 then :
8470 xorg_cv_cc_flag_unknown_warning_option=yes
8471 else case e in #(
8472 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8473 esac
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8476 esac
8477 fi
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8481 CFLAGS="$xorg_testset_save_CFLAGS"
8482 fi
8483
8484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8487 fi
8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8492 then :
8493 printf %s "(cached) " >&6
8494 else case e in #(
8495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 int i;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"
8500 then :
8501 xorg_cv_cc_flag_unused_command_line_argument=yes
8502 else case e in #(
8503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8504 esac
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8507 esac
8508 fi
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513 fi
8514
8515 found="no"
8516
8517 if test $found = "no" ; then
8518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8520 fi
8521
8522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8524 fi
8525
8526 CFLAGS="$CFLAGS -Werror=trigraphs"
8527
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8529 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8530 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8531 if eval test \${$cacheid+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 int
8539 main (void)
8540 {
8541
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"
8547 then :
8548 eval $cacheid=yes
8549 else case e in #(
8550 e) eval $cacheid=no ;;
8551 esac
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8554 conftest$ac_exeext conftest.$ac_ext ;;
8555 esac
8556 fi
8557
8558
8559 CFLAGS="$xorg_testset_save_CFLAGS"
8560
8561 eval supported=\$$cacheid
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8563 printf "%s\n" "$supported" >&6; }
8564 if test "$supported" = "yes" ; then
8565 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8566 found="yes"
8567 fi
8568 fi
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584 xorg_testset_save_CFLAGS="$CFLAGS"
8585
8586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8590 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8591 then :
8592 printf %s "(cached) " >&6
8593 else case e in #(
8594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"
8599 then :
8600 xorg_cv_cc_flag_unknown_warning_option=yes
8601 else case e in #(
8602 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8603 esac
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8606 esac
8607 fi
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8611 CFLAGS="$xorg_testset_save_CFLAGS"
8612 fi
8613
8614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 fi
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8622 then :
8623 printf %s "(cached) " >&6
8624 else case e in #(
8625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 int i;
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"
8630 then :
8631 xorg_cv_cc_flag_unused_command_line_argument=yes
8632 else case e in #(
8633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8634 esac
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8637 esac
8638 fi
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8642 CFLAGS="$xorg_testset_save_CFLAGS"
8643 fi
8644
8645 found="no"
8646
8647 if test $found = "no" ; then
8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650 fi
8651
8652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654 fi
8655
8656 CFLAGS="$CFLAGS -Werror=array-bounds"
8657
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8659 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8660 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8661 if eval test \${$cacheid+y}
8662 then :
8663 printf %s "(cached) " >&6
8664 else case e in #(
8665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 int i;
8668 int
8669 main (void)
8670 {
8671
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 if ac_fn_c_try_link "$LINENO"
8677 then :
8678 eval $cacheid=yes
8679 else case e in #(
8680 e) eval $cacheid=no ;;
8681 esac
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8684 conftest$ac_exeext conftest.$ac_ext ;;
8685 esac
8686 fi
8687
8688
8689 CFLAGS="$xorg_testset_save_CFLAGS"
8690
8691 eval supported=\$$cacheid
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8693 printf "%s\n" "$supported" >&6; }
8694 if test "$supported" = "yes" ; then
8695 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8696 found="yes"
8697 fi
8698 fi
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 xorg_testset_save_CFLAGS="$CFLAGS"
8715
8716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else case e in #(
8724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 int i;
8727 _ACEOF
8728 if ac_fn_c_try_compile "$LINENO"
8729 then :
8730 xorg_cv_cc_flag_unknown_warning_option=yes
8731 else case e in #(
8732 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8733 esac
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8736 esac
8737 fi
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747 fi
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else case e in #(
8755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"
8760 then :
8761 xorg_cv_cc_flag_unused_command_line_argument=yes
8762 else case e in #(
8763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8764 esac
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8767 esac
8768 fi
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773 fi
8774
8775 found="no"
8776
8777 if test $found = "no" ; then
8778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 fi
8781
8782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784 fi
8785
8786 CFLAGS="$CFLAGS -Werror=write-strings"
8787
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8789 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8790 cacheid=xorg_cv_cc_flag__Werror_write_strings
8791 if eval test \${$cacheid+y}
8792 then :
8793 printf %s "(cached) " >&6
8794 else case e in #(
8795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 int i;
8798 int
8799 main (void)
8800 {
8801
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 if ac_fn_c_try_link "$LINENO"
8807 then :
8808 eval $cacheid=yes
8809 else case e in #(
8810 e) eval $cacheid=no ;;
8811 esac
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8814 conftest$ac_exeext conftest.$ac_ext ;;
8815 esac
8816 fi
8817
8818
8819 CFLAGS="$xorg_testset_save_CFLAGS"
8820
8821 eval supported=\$$cacheid
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8823 printf "%s\n" "$supported" >&6; }
8824 if test "$supported" = "yes" ; then
8825 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8826 found="yes"
8827 fi
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 xorg_testset_save_CFLAGS="$CFLAGS"
8845
8846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8850 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8851 then :
8852 printf %s "(cached) " >&6
8853 else case e in #(
8854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 int i;
8857 _ACEOF
8858 if ac_fn_c_try_compile "$LINENO"
8859 then :
8860 xorg_cv_cc_flag_unknown_warning_option=yes
8861 else case e in #(
8862 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8863 esac
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8866 esac
8867 fi
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8871 CFLAGS="$xorg_testset_save_CFLAGS"
8872 fi
8873
8874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877 fi
8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8882 then :
8883 printf %s "(cached) " >&6
8884 else case e in #(
8885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 int i;
8888 _ACEOF
8889 if ac_fn_c_try_compile "$LINENO"
8890 then :
8891 xorg_cv_cc_flag_unused_command_line_argument=yes
8892 else case e in #(
8893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8894 esac
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8897 esac
8898 fi
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902 CFLAGS="$xorg_testset_save_CFLAGS"
8903 fi
8904
8905 found="no"
8906
8907 if test $found = "no" ; then
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 fi
8911
8912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914 fi
8915
8916 CFLAGS="$CFLAGS -Werror=address"
8917
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8919 printf %s "checking if $CC supports -Werror=address... " >&6; }
8920 cacheid=xorg_cv_cc_flag__Werror_address
8921 if eval test \${$cacheid+y}
8922 then :
8923 printf %s "(cached) " >&6
8924 else case e in #(
8925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 int
8929 main (void)
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"
8937 then :
8938 eval $cacheid=yes
8939 else case e in #(
8940 e) eval $cacheid=no ;;
8941 esac
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8944 conftest$ac_exeext conftest.$ac_ext ;;
8945 esac
8946 fi
8947
8948
8949 CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951 eval supported=\$$cacheid
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8953 printf "%s\n" "$supported" >&6; }
8954 if test "$supported" = "yes" ; then
8955 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8956 found="yes"
8957 fi
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974 xorg_testset_save_CFLAGS="$CFLAGS"
8975
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else case e in #(
8984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"
8989 then :
8990 xorg_cv_cc_flag_unknown_warning_option=yes
8991 else case e in #(
8992 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8993 esac
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8996 esac
8997 fi
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9001 CFLAGS="$xorg_testset_save_CFLAGS"
9002 fi
9003
9004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007 fi
9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9012 then :
9013 printf %s "(cached) " >&6
9014 else case e in #(
9015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 int i;
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"
9020 then :
9021 xorg_cv_cc_flag_unused_command_line_argument=yes
9022 else case e in #(
9023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9024 esac
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9027 esac
9028 fi
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9033 fi
9034
9035 found="no"
9036
9037 if test $found = "no" ; then
9038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040 fi
9041
9042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9044 fi
9045
9046 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9047
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9049 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9050 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9051 if eval test \${$cacheid+y}
9052 then :
9053 printf %s "(cached) " >&6
9054 else case e in #(
9055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 int i;
9058 int
9059 main (void)
9060 {
9061
9062 ;
9063 return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"
9067 then :
9068 eval $cacheid=yes
9069 else case e in #(
9070 e) eval $cacheid=no ;;
9071 esac
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9074 conftest$ac_exeext conftest.$ac_ext ;;
9075 esac
9076 fi
9077
9078
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9080
9081 eval supported=\$$cacheid
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083 printf "%s\n" "$supported" >&6; }
9084 if test "$supported" = "yes" ; then
9085 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9086 found="yes"
9087 fi
9088 fi
9089
9090 if test $found = "no" ; then
9091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093 fi
9094
9095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9097 fi
9098
9099 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9100
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9102 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9103 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9104 if eval test \${$cacheid+y}
9105 then :
9106 printf %s "(cached) " >&6
9107 else case e in #(
9108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int i;
9111 int
9112 main (void)
9113 {
9114
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"
9120 then :
9121 eval $cacheid=yes
9122 else case e in #(
9123 e) eval $cacheid=no ;;
9124 esac
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9127 conftest$ac_exeext conftest.$ac_ext ;;
9128 esac
9129 fi
9130
9131
9132 CFLAGS="$xorg_testset_save_CFLAGS"
9133
9134 eval supported=\$$cacheid
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9136 printf "%s\n" "$supported" >&6; }
9137 if test "$supported" = "yes" ; then
9138 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9139 found="yes"
9140 fi
9141 fi
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 xorg_testset_save_CFLAGS="$CFLAGS"
9158
9159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9164 then :
9165 printf %s "(cached) " >&6
9166 else case e in #(
9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 int i;
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"
9172 then :
9173 xorg_cv_cc_flag_unknown_warning_option=yes
9174 else case e in #(
9175 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9176 esac
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9179 esac
9180 fi
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9184 CFLAGS="$xorg_testset_save_CFLAGS"
9185 fi
9186
9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190 fi
9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9195 then :
9196 printf %s "(cached) " >&6
9197 else case e in #(
9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"
9203 then :
9204 xorg_cv_cc_flag_unused_command_line_argument=yes
9205 else case e in #(
9206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9207 esac
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9210 esac
9211 fi
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9215 CFLAGS="$xorg_testset_save_CFLAGS"
9216 fi
9217
9218 found="no"
9219
9220 if test $found = "no" ; then
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224
9225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227 fi
9228
9229 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9230
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9232 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9233 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9234 if eval test \${$cacheid+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else case e in #(
9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 int
9242 main (void)
9243 {
9244
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"
9250 then :
9251 eval $cacheid=yes
9252 else case e in #(
9253 e) eval $cacheid=no ;;
9254 esac
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9257 conftest$ac_exeext conftest.$ac_ext ;;
9258 esac
9259 fi
9260
9261
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264 eval supported=\$$cacheid
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266 printf "%s\n" "$supported" >&6; }
9267 if test "$supported" = "yes" ; then
9268 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9269 found="yes"
9270 fi
9271 fi
9272
9273 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9274 else
9275 { 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
9276 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;}
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 xorg_testset_save_CFLAGS="$CFLAGS"
9291
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9297 then :
9298 printf %s "(cached) " >&6
9299 else case e in #(
9300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int i;
9303 _ACEOF
9304 if ac_fn_c_try_compile "$LINENO"
9305 then :
9306 xorg_cv_cc_flag_unknown_warning_option=yes
9307 else case e in #(
9308 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9309 esac
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9312 esac
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else case e in #(
9331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 int i;
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"
9336 then :
9337 xorg_cv_cc_flag_unused_command_line_argument=yes
9338 else case e in #(
9339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9340 esac
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9343 esac
9344 fi
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9348 CFLAGS="$xorg_testset_save_CFLAGS"
9349 fi
9350
9351 found="no"
9352
9353 if test $found = "no" ; then
9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356 fi
9357
9358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360 fi
9361
9362 CFLAGS="$CFLAGS -Wimplicit"
9363
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9365 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9366 cacheid=xorg_cv_cc_flag__Wimplicit
9367 if eval test \${$cacheid+y}
9368 then :
9369 printf %s "(cached) " >&6
9370 else case e in #(
9371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 int i;
9374 int
9375 main (void)
9376 {
9377
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"
9383 then :
9384 eval $cacheid=yes
9385 else case e in #(
9386 e) eval $cacheid=no ;;
9387 esac
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9390 conftest$ac_exeext conftest.$ac_ext ;;
9391 esac
9392 fi
9393
9394
9395 CFLAGS="$xorg_testset_save_CFLAGS"
9396
9397 eval supported=\$$cacheid
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9399 printf "%s\n" "$supported" >&6; }
9400 if test "$supported" = "yes" ; then
9401 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9402 found="yes"
9403 fi
9404 fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420 xorg_testset_save_CFLAGS="$CFLAGS"
9421
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9427 then :
9428 printf %s "(cached) " >&6
9429 else case e in #(
9430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 int i;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"
9435 then :
9436 xorg_cv_cc_flag_unknown_warning_option=yes
9437 else case e in #(
9438 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9439 esac
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9442 esac
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9445 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9447 CFLAGS="$xorg_testset_save_CFLAGS"
9448 fi
9449
9450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453 fi
9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9458 then :
9459 printf %s "(cached) " >&6
9460 else case e in #(
9461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"
9466 then :
9467 xorg_cv_cc_flag_unused_command_line_argument=yes
9468 else case e in #(
9469 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9470 esac
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9473 esac
9474 fi
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479 fi
9480
9481 found="no"
9482
9483 if test $found = "no" ; then
9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 fi
9487
9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 fi
9491
9492 CFLAGS="$CFLAGS -Wnonnull"
9493
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9495 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9496 cacheid=xorg_cv_cc_flag__Wnonnull
9497 if eval test \${$cacheid+y}
9498 then :
9499 printf %s "(cached) " >&6
9500 else case e in #(
9501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int i;
9504 int
9505 main (void)
9506 {
9507
9508 ;
9509 return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"
9513 then :
9514 eval $cacheid=yes
9515 else case e in #(
9516 e) eval $cacheid=no ;;
9517 esac
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9520 conftest$ac_exeext conftest.$ac_ext ;;
9521 esac
9522 fi
9523
9524
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526
9527 eval supported=\$$cacheid
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9529 printf "%s\n" "$supported" >&6; }
9530 if test "$supported" = "yes" ; then
9531 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9532 found="yes"
9533 fi
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550 xorg_testset_save_CFLAGS="$CFLAGS"
9551
9552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9556 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else case e in #(
9560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"
9565 then :
9566 xorg_cv_cc_flag_unknown_warning_option=yes
9567 else case e in #(
9568 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9569 esac
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9572 esac
9573 fi
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9577 CFLAGS="$xorg_testset_save_CFLAGS"
9578 fi
9579
9580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 fi
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9588 then :
9589 printf %s "(cached) " >&6
9590 else case e in #(
9591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 int i;
9594 _ACEOF
9595 if ac_fn_c_try_compile "$LINENO"
9596 then :
9597 xorg_cv_cc_flag_unused_command_line_argument=yes
9598 else case e in #(
9599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9600 esac
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9603 esac
9604 fi
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9608 CFLAGS="$xorg_testset_save_CFLAGS"
9609 fi
9610
9611 found="no"
9612
9613 if test $found = "no" ; then
9614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616 fi
9617
9618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9620 fi
9621
9622 CFLAGS="$CFLAGS -Winit-self"
9623
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9625 printf %s "checking if $CC supports -Winit-self... " >&6; }
9626 cacheid=xorg_cv_cc_flag__Winit_self
9627 if eval test \${$cacheid+y}
9628 then :
9629 printf %s "(cached) " >&6
9630 else case e in #(
9631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 int i;
9634 int
9635 main (void)
9636 {
9637
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"
9643 then :
9644 eval $cacheid=yes
9645 else case e in #(
9646 e) eval $cacheid=no ;;
9647 esac
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9650 conftest$ac_exeext conftest.$ac_ext ;;
9651 esac
9652 fi
9653
9654
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656
9657 eval supported=\$$cacheid
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9659 printf "%s\n" "$supported" >&6; }
9660 if test "$supported" = "yes" ; then
9661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9662 found="yes"
9663 fi
9664 fi
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680 xorg_testset_save_CFLAGS="$CFLAGS"
9681
9682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9686 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9687 then :
9688 printf %s "(cached) " >&6
9689 else case e in #(
9690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int i;
9693 _ACEOF
9694 if ac_fn_c_try_compile "$LINENO"
9695 then :
9696 xorg_cv_cc_flag_unknown_warning_option=yes
9697 else case e in #(
9698 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9699 esac
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9702 esac
9703 fi
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9707 CFLAGS="$xorg_testset_save_CFLAGS"
9708 fi
9709
9710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713 fi
9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9718 then :
9719 printf %s "(cached) " >&6
9720 else case e in #(
9721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 int i;
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"
9726 then :
9727 xorg_cv_cc_flag_unused_command_line_argument=yes
9728 else case e in #(
9729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9730 esac
9731 fi
9732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9733 esac
9734 fi
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9738 CFLAGS="$xorg_testset_save_CFLAGS"
9739 fi
9740
9741 found="no"
9742
9743 if test $found = "no" ; then
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 fi
9747
9748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9750 fi
9751
9752 CFLAGS="$CFLAGS -Wmain"
9753
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9755 printf %s "checking if $CC supports -Wmain... " >&6; }
9756 cacheid=xorg_cv_cc_flag__Wmain
9757 if eval test \${$cacheid+y}
9758 then :
9759 printf %s "(cached) " >&6
9760 else case e in #(
9761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 int i;
9764 int
9765 main (void)
9766 {
9767
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"
9773 then :
9774 eval $cacheid=yes
9775 else case e in #(
9776 e) eval $cacheid=no ;;
9777 esac
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9780 conftest$ac_exeext conftest.$ac_ext ;;
9781 esac
9782 fi
9783
9784
9785 CFLAGS="$xorg_testset_save_CFLAGS"
9786
9787 eval supported=\$$cacheid
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9789 printf "%s\n" "$supported" >&6; }
9790 if test "$supported" = "yes" ; then
9791 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9792 found="yes"
9793 fi
9794 fi
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810 xorg_testset_save_CFLAGS="$CFLAGS"
9811
9812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9816 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9817 then :
9818 printf %s "(cached) " >&6
9819 else case e in #(
9820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 int i;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"
9825 then :
9826 xorg_cv_cc_flag_unknown_warning_option=yes
9827 else case e in #(
9828 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9829 esac
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9832 esac
9833 fi
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9837 CFLAGS="$xorg_testset_save_CFLAGS"
9838 fi
9839
9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843 fi
9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9848 then :
9849 printf %s "(cached) " >&6
9850 else case e in #(
9851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 _ACEOF
9855 if ac_fn_c_try_compile "$LINENO"
9856 then :
9857 xorg_cv_cc_flag_unused_command_line_argument=yes
9858 else case e in #(
9859 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9860 esac
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9863 esac
9864 fi
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9869 fi
9870
9871 found="no"
9872
9873 if test $found = "no" ; then
9874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876 fi
9877
9878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9880 fi
9881
9882 CFLAGS="$CFLAGS -Wmissing-braces"
9883
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9885 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9886 cacheid=xorg_cv_cc_flag__Wmissing_braces
9887 if eval test \${$cacheid+y}
9888 then :
9889 printf %s "(cached) " >&6
9890 else case e in #(
9891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 int i;
9894 int
9895 main (void)
9896 {
9897
9898 ;
9899 return 0;
9900 }
9901 _ACEOF
9902 if ac_fn_c_try_link "$LINENO"
9903 then :
9904 eval $cacheid=yes
9905 else case e in #(
9906 e) eval $cacheid=no ;;
9907 esac
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9910 conftest$ac_exeext conftest.$ac_ext ;;
9911 esac
9912 fi
9913
9914
9915 CFLAGS="$xorg_testset_save_CFLAGS"
9916
9917 eval supported=\$$cacheid
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9919 printf "%s\n" "$supported" >&6; }
9920 if test "$supported" = "yes" ; then
9921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9922 found="yes"
9923 fi
9924 fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940 xorg_testset_save_CFLAGS="$CFLAGS"
9941
9942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9946 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else case e in #(
9950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 _ACEOF
9954 if ac_fn_c_try_compile "$LINENO"
9955 then :
9956 xorg_cv_cc_flag_unknown_warning_option=yes
9957 else case e in #(
9958 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9959 esac
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9962 esac
9963 fi
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9965 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9967 CFLAGS="$xorg_testset_save_CFLAGS"
9968 fi
9969
9970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9973 fi
9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9977 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9978 then :
9979 printf %s "(cached) " >&6
9980 else case e in #(
9981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983 int i;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"
9986 then :
9987 xorg_cv_cc_flag_unused_command_line_argument=yes
9988 else case e in #(
9989 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9990 esac
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9993 esac
9994 fi
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9998 CFLAGS="$xorg_testset_save_CFLAGS"
9999 fi
10000
10001 found="no"
10002
10003 if test $found = "no" ; then
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 fi
10007
10008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010 fi
10011
10012 CFLAGS="$CFLAGS -Wsequence-point"
10013
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10015 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10016 cacheid=xorg_cv_cc_flag__Wsequence_point
10017 if eval test \${$cacheid+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else case e in #(
10021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 int i;
10024 int
10025 main (void)
10026 {
10027
10028 ;
10029 return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"
10033 then :
10034 eval $cacheid=yes
10035 else case e in #(
10036 e) eval $cacheid=no ;;
10037 esac
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10040 conftest$ac_exeext conftest.$ac_ext ;;
10041 esac
10042 fi
10043
10044
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046
10047 eval supported=\$$cacheid
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10049 printf "%s\n" "$supported" >&6; }
10050 if test "$supported" = "yes" ; then
10051 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10052 found="yes"
10053 fi
10054 fi
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070 xorg_testset_save_CFLAGS="$CFLAGS"
10071
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10075 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10076 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10077 then :
10078 printf %s "(cached) " >&6
10079 else case e in #(
10080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 int i;
10083 _ACEOF
10084 if ac_fn_c_try_compile "$LINENO"
10085 then :
10086 xorg_cv_cc_flag_unknown_warning_option=yes
10087 else case e in #(
10088 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10089 esac
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10092 esac
10093 fi
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10097 CFLAGS="$xorg_testset_save_CFLAGS"
10098 fi
10099
10100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10103 fi
10104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10108 then :
10109 printf %s "(cached) " >&6
10110 else case e in #(
10111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 int i;
10114 _ACEOF
10115 if ac_fn_c_try_compile "$LINENO"
10116 then :
10117 xorg_cv_cc_flag_unused_command_line_argument=yes
10118 else case e in #(
10119 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10120 esac
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10123 esac
10124 fi
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10126 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10128 CFLAGS="$xorg_testset_save_CFLAGS"
10129 fi
10130
10131 found="no"
10132
10133 if test $found = "no" ; then
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 fi
10137
10138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10140 fi
10141
10142 CFLAGS="$CFLAGS -Wreturn-type"
10143
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10145 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10146 cacheid=xorg_cv_cc_flag__Wreturn_type
10147 if eval test \${$cacheid+y}
10148 then :
10149 printf %s "(cached) " >&6
10150 else case e in #(
10151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 int i;
10154 int
10155 main (void)
10156 {
10157
10158 ;
10159 return 0;
10160 }
10161 _ACEOF
10162 if ac_fn_c_try_link "$LINENO"
10163 then :
10164 eval $cacheid=yes
10165 else case e in #(
10166 e) eval $cacheid=no ;;
10167 esac
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10170 conftest$ac_exeext conftest.$ac_ext ;;
10171 esac
10172 fi
10173
10174
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176
10177 eval supported=\$$cacheid
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10179 printf "%s\n" "$supported" >&6; }
10180 if test "$supported" = "yes" ; then
10181 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10182 found="yes"
10183 fi
10184 fi
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200 xorg_testset_save_CFLAGS="$CFLAGS"
10201
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10206 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10207 then :
10208 printf %s "(cached) " >&6
10209 else case e in #(
10210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 int i;
10213 _ACEOF
10214 if ac_fn_c_try_compile "$LINENO"
10215 then :
10216 xorg_cv_cc_flag_unknown_warning_option=yes
10217 else case e in #(
10218 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10219 esac
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10222 esac
10223 fi
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10227 CFLAGS="$xorg_testset_save_CFLAGS"
10228 fi
10229
10230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10233 fi
10234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10238 then :
10239 printf %s "(cached) " >&6
10240 else case e in #(
10241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int i;
10244 _ACEOF
10245 if ac_fn_c_try_compile "$LINENO"
10246 then :
10247 xorg_cv_cc_flag_unused_command_line_argument=yes
10248 else case e in #(
10249 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10250 esac
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10253 esac
10254 fi
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10258 CFLAGS="$xorg_testset_save_CFLAGS"
10259 fi
10260
10261 found="no"
10262
10263 if test $found = "no" ; then
10264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266 fi
10267
10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10270 fi
10271
10272 CFLAGS="$CFLAGS -Wtrigraphs"
10273
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10275 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10276 cacheid=xorg_cv_cc_flag__Wtrigraphs
10277 if eval test \${$cacheid+y}
10278 then :
10279 printf %s "(cached) " >&6
10280 else case e in #(
10281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 int i;
10284 int
10285 main (void)
10286 {
10287
10288 ;
10289 return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_link "$LINENO"
10293 then :
10294 eval $cacheid=yes
10295 else case e in #(
10296 e) eval $cacheid=no ;;
10297 esac
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10300 conftest$ac_exeext conftest.$ac_ext ;;
10301 esac
10302 fi
10303
10304
10305 CFLAGS="$xorg_testset_save_CFLAGS"
10306
10307 eval supported=\$$cacheid
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10309 printf "%s\n" "$supported" >&6; }
10310 if test "$supported" = "yes" ; then
10311 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10312 found="yes"
10313 fi
10314 fi
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330 xorg_testset_save_CFLAGS="$CFLAGS"
10331
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10336 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10337 then :
10338 printf %s "(cached) " >&6
10339 else case e in #(
10340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 int i;
10343 _ACEOF
10344 if ac_fn_c_try_compile "$LINENO"
10345 then :
10346 xorg_cv_cc_flag_unknown_warning_option=yes
10347 else case e in #(
10348 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10349 esac
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10352 esac
10353 fi
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10357 CFLAGS="$xorg_testset_save_CFLAGS"
10358 fi
10359
10360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10363 fi
10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10368 then :
10369 printf %s "(cached) " >&6
10370 else case e in #(
10371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10373 int i;
10374 _ACEOF
10375 if ac_fn_c_try_compile "$LINENO"
10376 then :
10377 xorg_cv_cc_flag_unused_command_line_argument=yes
10378 else case e in #(
10379 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10380 esac
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10383 esac
10384 fi
10385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10388 CFLAGS="$xorg_testset_save_CFLAGS"
10389 fi
10390
10391 found="no"
10392
10393 if test $found = "no" ; then
10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396 fi
10397
10398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10400 fi
10401
10402 CFLAGS="$CFLAGS -Warray-bounds"
10403
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10405 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10406 cacheid=xorg_cv_cc_flag__Warray_bounds
10407 if eval test \${$cacheid+y}
10408 then :
10409 printf %s "(cached) " >&6
10410 else case e in #(
10411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 int i;
10414 int
10415 main (void)
10416 {
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"
10423 then :
10424 eval $cacheid=yes
10425 else case e in #(
10426 e) eval $cacheid=no ;;
10427 esac
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10430 conftest$ac_exeext conftest.$ac_ext ;;
10431 esac
10432 fi
10433
10434
10435 CFLAGS="$xorg_testset_save_CFLAGS"
10436
10437 eval supported=\$$cacheid
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10439 printf "%s\n" "$supported" >&6; }
10440 if test "$supported" = "yes" ; then
10441 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10442 found="yes"
10443 fi
10444 fi
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460 xorg_testset_save_CFLAGS="$CFLAGS"
10461
10462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10466 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10467 then :
10468 printf %s "(cached) " >&6
10469 else case e in #(
10470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 int i;
10473 _ACEOF
10474 if ac_fn_c_try_compile "$LINENO"
10475 then :
10476 xorg_cv_cc_flag_unknown_warning_option=yes
10477 else case e in #(
10478 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10479 esac
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10482 esac
10483 fi
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10487 CFLAGS="$xorg_testset_save_CFLAGS"
10488 fi
10489
10490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493 fi
10494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10498 then :
10499 printf %s "(cached) " >&6
10500 else case e in #(
10501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 int i;
10504 _ACEOF
10505 if ac_fn_c_try_compile "$LINENO"
10506 then :
10507 xorg_cv_cc_flag_unused_command_line_argument=yes
10508 else case e in #(
10509 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10510 esac
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10513 esac
10514 fi
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10518 CFLAGS="$xorg_testset_save_CFLAGS"
10519 fi
10520
10521 found="no"
10522
10523 if test $found = "no" ; then
10524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526 fi
10527
10528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530 fi
10531
10532 CFLAGS="$CFLAGS -Wwrite-strings"
10533
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10535 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10536 cacheid=xorg_cv_cc_flag__Wwrite_strings
10537 if eval test \${$cacheid+y}
10538 then :
10539 printf %s "(cached) " >&6
10540 else case e in #(
10541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543 int i;
10544 int
10545 main (void)
10546 {
10547
10548 ;
10549 return 0;
10550 }
10551 _ACEOF
10552 if ac_fn_c_try_link "$LINENO"
10553 then :
10554 eval $cacheid=yes
10555 else case e in #(
10556 e) eval $cacheid=no ;;
10557 esac
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10560 conftest$ac_exeext conftest.$ac_ext ;;
10561 esac
10562 fi
10563
10564
10565 CFLAGS="$xorg_testset_save_CFLAGS"
10566
10567 eval supported=\$$cacheid
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10569 printf "%s\n" "$supported" >&6; }
10570 if test "$supported" = "yes" ; then
10571 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10572 found="yes"
10573 fi
10574 fi
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590 xorg_testset_save_CFLAGS="$CFLAGS"
10591
10592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10597 then :
10598 printf %s "(cached) " >&6
10599 else case e in #(
10600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 int i;
10603 _ACEOF
10604 if ac_fn_c_try_compile "$LINENO"
10605 then :
10606 xorg_cv_cc_flag_unknown_warning_option=yes
10607 else case e in #(
10608 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10609 esac
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10612 esac
10613 fi
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10615 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10617 CFLAGS="$xorg_testset_save_CFLAGS"
10618 fi
10619
10620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10623 fi
10624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10626 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10627 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10628 then :
10629 printf %s "(cached) " >&6
10630 else case e in #(
10631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 int i;
10634 _ACEOF
10635 if ac_fn_c_try_compile "$LINENO"
10636 then :
10637 xorg_cv_cc_flag_unused_command_line_argument=yes
10638 else case e in #(
10639 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10640 esac
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10643 esac
10644 fi
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10648 CFLAGS="$xorg_testset_save_CFLAGS"
10649 fi
10650
10651 found="no"
10652
10653 if test $found = "no" ; then
10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656 fi
10657
10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10660 fi
10661
10662 CFLAGS="$CFLAGS -Waddress"
10663
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10665 printf %s "checking if $CC supports -Waddress... " >&6; }
10666 cacheid=xorg_cv_cc_flag__Waddress
10667 if eval test \${$cacheid+y}
10668 then :
10669 printf %s "(cached) " >&6
10670 else case e in #(
10671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 int i;
10674 int
10675 main (void)
10676 {
10677
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"
10683 then :
10684 eval $cacheid=yes
10685 else case e in #(
10686 e) eval $cacheid=no ;;
10687 esac
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10690 conftest$ac_exeext conftest.$ac_ext ;;
10691 esac
10692 fi
10693
10694
10695 CFLAGS="$xorg_testset_save_CFLAGS"
10696
10697 eval supported=\$$cacheid
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10699 printf "%s\n" "$supported" >&6; }
10700 if test "$supported" = "yes" ; then
10701 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10702 found="yes"
10703 fi
10704 fi
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 xorg_testset_save_CFLAGS="$CFLAGS"
10721
10722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10725 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10726 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10727 then :
10728 printf %s "(cached) " >&6
10729 else case e in #(
10730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 int i;
10733 _ACEOF
10734 if ac_fn_c_try_compile "$LINENO"
10735 then :
10736 xorg_cv_cc_flag_unknown_warning_option=yes
10737 else case e in #(
10738 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10739 esac
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10742 esac
10743 fi
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10745 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10747 CFLAGS="$xorg_testset_save_CFLAGS"
10748 fi
10749
10750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10753 fi
10754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10756 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10757 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10758 then :
10759 printf %s "(cached) " >&6
10760 else case e in #(
10761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763 int i;
10764 _ACEOF
10765 if ac_fn_c_try_compile "$LINENO"
10766 then :
10767 xorg_cv_cc_flag_unused_command_line_argument=yes
10768 else case e in #(
10769 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10770 esac
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10773 esac
10774 fi
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10778 CFLAGS="$xorg_testset_save_CFLAGS"
10779 fi
10780
10781 found="no"
10782
10783 if test $found = "no" ; then
10784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10786 fi
10787
10788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10790 fi
10791
10792 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10793
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10795 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10796 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10797 if eval test \${$cacheid+y}
10798 then :
10799 printf %s "(cached) " >&6
10800 else case e in #(
10801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 int i;
10804 int
10805 main (void)
10806 {
10807
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_link "$LINENO"
10813 then :
10814 eval $cacheid=yes
10815 else case e in #(
10816 e) eval $cacheid=no ;;
10817 esac
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10820 conftest$ac_exeext conftest.$ac_ext ;;
10821 esac
10822 fi
10823
10824
10825 CFLAGS="$xorg_testset_save_CFLAGS"
10826
10827 eval supported=\$$cacheid
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10829 printf "%s\n" "$supported" >&6; }
10830 if test "$supported" = "yes" ; then
10831 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10832 found="yes"
10833 fi
10834 fi
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850 xorg_testset_save_CFLAGS="$CFLAGS"
10851
10852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10856 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10857 then :
10858 printf %s "(cached) " >&6
10859 else case e in #(
10860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 int i;
10863 _ACEOF
10864 if ac_fn_c_try_compile "$LINENO"
10865 then :
10866 xorg_cv_cc_flag_unknown_warning_option=yes
10867 else case e in #(
10868 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10869 esac
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10872 esac
10873 fi
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10877 CFLAGS="$xorg_testset_save_CFLAGS"
10878 fi
10879
10880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10883 fi
10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10888 then :
10889 printf %s "(cached) " >&6
10890 else case e in #(
10891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 int i;
10894 _ACEOF
10895 if ac_fn_c_try_compile "$LINENO"
10896 then :
10897 xorg_cv_cc_flag_unused_command_line_argument=yes
10898 else case e in #(
10899 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10900 esac
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10903 esac
10904 fi
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10908 CFLAGS="$xorg_testset_save_CFLAGS"
10909 fi
10910
10911 found="no"
10912
10913 if test $found = "no" ; then
10914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10916 fi
10917
10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10920 fi
10921
10922 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10923
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10925 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10926 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10927 if eval test \${$cacheid+y}
10928 then :
10929 printf %s "(cached) " >&6
10930 else case e in #(
10931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 int i;
10934 int
10935 main (void)
10936 {
10937
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"
10943 then :
10944 eval $cacheid=yes
10945 else case e in #(
10946 e) eval $cacheid=no ;;
10947 esac
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10950 conftest$ac_exeext conftest.$ac_ext ;;
10951 esac
10952 fi
10953
10954
10955 CFLAGS="$xorg_testset_save_CFLAGS"
10956
10957 eval supported=\$$cacheid
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10959 printf "%s\n" "$supported" >&6; }
10960 if test "$supported" = "yes" ; then
10961 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10962 found="yes"
10963 fi
10964 fi
10965
10966
10967 fi
10968
10969
10970
10971
10972
10973
10974
10975 CWARNFLAGS="$BASE_CFLAGS"
10976 if test "x$GCC" = xyes ; then
10977 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10978 fi
10979
10980
10981
10982
10983
10984
10985
10986
10987 # Check whether --enable-strict-compilation was given.
10988 if test ${enable_strict_compilation+y}
10989 then :
10990 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10991 else case e in #(
10992 e) STRICT_COMPILE=no ;;
10993 esac
10994 fi
10995
10996
10997
10998
10999
11000
11001 STRICT_CFLAGS=""
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015 xorg_testset_save_CFLAGS="$CFLAGS"
11016
11017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11022 then :
11023 printf %s "(cached) " >&6
11024 else case e in #(
11025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 int i;
11028 _ACEOF
11029 if ac_fn_c_try_compile "$LINENO"
11030 then :
11031 xorg_cv_cc_flag_unknown_warning_option=yes
11032 else case e in #(
11033 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11034 esac
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11037 esac
11038 fi
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11042 CFLAGS="$xorg_testset_save_CFLAGS"
11043 fi
11044
11045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11048 fi
11049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11053 then :
11054 printf %s "(cached) " >&6
11055 else case e in #(
11056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058 int i;
11059 _ACEOF
11060 if ac_fn_c_try_compile "$LINENO"
11061 then :
11062 xorg_cv_cc_flag_unused_command_line_argument=yes
11063 else case e in #(
11064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11065 esac
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11068 esac
11069 fi
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11073 CFLAGS="$xorg_testset_save_CFLAGS"
11074 fi
11075
11076 found="no"
11077
11078 if test $found = "no" ; then
11079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11081 fi
11082
11083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11085 fi
11086
11087 CFLAGS="$CFLAGS -pedantic"
11088
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11090 printf %s "checking if $CC supports -pedantic... " >&6; }
11091 cacheid=xorg_cv_cc_flag__pedantic
11092 if eval test \${$cacheid+y}
11093 then :
11094 printf %s "(cached) " >&6
11095 else case e in #(
11096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098 int i;
11099 int
11100 main (void)
11101 {
11102
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 if ac_fn_c_try_link "$LINENO"
11108 then :
11109 eval $cacheid=yes
11110 else case e in #(
11111 e) eval $cacheid=no ;;
11112 esac
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11115 conftest$ac_exeext conftest.$ac_ext ;;
11116 esac
11117 fi
11118
11119
11120 CFLAGS="$xorg_testset_save_CFLAGS"
11121
11122 eval supported=\$$cacheid
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11124 printf "%s\n" "$supported" >&6; }
11125 if test "$supported" = "yes" ; then
11126 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11127 found="yes"
11128 fi
11129 fi
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145 xorg_testset_save_CFLAGS="$CFLAGS"
11146
11147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11151 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11152 then :
11153 printf %s "(cached) " >&6
11154 else case e in #(
11155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 int i;
11158 _ACEOF
11159 if ac_fn_c_try_compile "$LINENO"
11160 then :
11161 xorg_cv_cc_flag_unknown_warning_option=yes
11162 else case e in #(
11163 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11164 esac
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11167 esac
11168 fi
11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11172 CFLAGS="$xorg_testset_save_CFLAGS"
11173 fi
11174
11175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11178 fi
11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11183 then :
11184 printf %s "(cached) " >&6
11185 else case e in #(
11186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 int i;
11189 _ACEOF
11190 if ac_fn_c_try_compile "$LINENO"
11191 then :
11192 xorg_cv_cc_flag_unused_command_line_argument=yes
11193 else case e in #(
11194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11195 esac
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11198 esac
11199 fi
11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11203 CFLAGS="$xorg_testset_save_CFLAGS"
11204 fi
11205
11206 found="no"
11207
11208 if test $found = "no" ; then
11209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11211 fi
11212
11213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11215 fi
11216
11217 CFLAGS="$CFLAGS -Werror"
11218
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11220 printf %s "checking if $CC supports -Werror... " >&6; }
11221 cacheid=xorg_cv_cc_flag__Werror
11222 if eval test \${$cacheid+y}
11223 then :
11224 printf %s "(cached) " >&6
11225 else case e in #(
11226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 int i;
11229 int
11230 main (void)
11231 {
11232
11233 ;
11234 return 0;
11235 }
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"
11238 then :
11239 eval $cacheid=yes
11240 else case e in #(
11241 e) eval $cacheid=no ;;
11242 esac
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11245 conftest$ac_exeext conftest.$ac_ext ;;
11246 esac
11247 fi
11248
11249
11250 CFLAGS="$xorg_testset_save_CFLAGS"
11251
11252 eval supported=\$$cacheid
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11254 printf "%s\n" "$supported" >&6; }
11255 if test "$supported" = "yes" ; then
11256 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11257 found="yes"
11258 fi
11259 fi
11260
11261 if test $found = "no" ; then
11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11264 fi
11265
11266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11268 fi
11269
11270 CFLAGS="$CFLAGS -errwarn"
11271
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11273 printf %s "checking if $CC supports -errwarn... " >&6; }
11274 cacheid=xorg_cv_cc_flag__errwarn
11275 if eval test \${$cacheid+y}
11276 then :
11277 printf %s "(cached) " >&6
11278 else case e in #(
11279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 int i;
11282 int
11283 main (void)
11284 {
11285
11286 ;
11287 return 0;
11288 }
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"
11291 then :
11292 eval $cacheid=yes
11293 else case e in #(
11294 e) eval $cacheid=no ;;
11295 esac
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11298 conftest$ac_exeext conftest.$ac_ext ;;
11299 esac
11300 fi
11301
11302
11303 CFLAGS="$xorg_testset_save_CFLAGS"
11304
11305 eval supported=\$$cacheid
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11307 printf "%s\n" "$supported" >&6; }
11308 if test "$supported" = "yes" ; then
11309 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11310 found="yes"
11311 fi
11312 fi
11313
11314
11315
11316 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11317 # activate it with -Werror, so we add it here explicitly.
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331 xorg_testset_save_CFLAGS="$CFLAGS"
11332
11333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11338 then :
11339 printf %s "(cached) " >&6
11340 else case e in #(
11341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 int i;
11344 _ACEOF
11345 if ac_fn_c_try_compile "$LINENO"
11346 then :
11347 xorg_cv_cc_flag_unknown_warning_option=yes
11348 else case e in #(
11349 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11350 esac
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11353 esac
11354 fi
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11358 CFLAGS="$xorg_testset_save_CFLAGS"
11359 fi
11360
11361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11364 fi
11365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11369 then :
11370 printf %s "(cached) " >&6
11371 else case e in #(
11372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 int i;
11375 _ACEOF
11376 if ac_fn_c_try_compile "$LINENO"
11377 then :
11378 xorg_cv_cc_flag_unused_command_line_argument=yes
11379 else case e in #(
11380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11381 esac
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11384 esac
11385 fi
11386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11389 CFLAGS="$xorg_testset_save_CFLAGS"
11390 fi
11391
11392 found="no"
11393
11394 if test $found = "no" ; then
11395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11397 fi
11398
11399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11401 fi
11402
11403 CFLAGS="$CFLAGS -Werror=attributes"
11404
11405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11406 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11407 cacheid=xorg_cv_cc_flag__Werror_attributes
11408 if eval test \${$cacheid+y}
11409 then :
11410 printf %s "(cached) " >&6
11411 else case e in #(
11412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 int i;
11415 int
11416 main (void)
11417 {
11418
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"
11424 then :
11425 eval $cacheid=yes
11426 else case e in #(
11427 e) eval $cacheid=no ;;
11428 esac
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11431 conftest$ac_exeext conftest.$ac_ext ;;
11432 esac
11433 fi
11434
11435
11436 CFLAGS="$xorg_testset_save_CFLAGS"
11437
11438 eval supported=\$$cacheid
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11440 printf "%s\n" "$supported" >&6; }
11441 if test "$supported" = "yes" ; then
11442 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11443 found="yes"
11444 fi
11445 fi
11446
11447
11448
11449 if test "x$STRICT_COMPILE" = "xyes"; then
11450 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11451 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11452 fi
11453
11454
11455
11456
11457
11458
11459
11460
11461 cat >>confdefs.h <<_ACEOF
11462 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11463 _ACEOF
11464
11465 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11466 if test "x$PVM" = "x"; then
11467 PVM="0"
11468 fi
11469
11470 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11471
11472 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11473 if test "x$PVP" = "x"; then
11474 PVP="0"
11475 fi
11476
11477 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11478
11479
11480
11481 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11482 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11483 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11484 touch \$(top_srcdir)/ChangeLog; \
11485 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11486
11487
11488
11489
11490 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11491 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11492 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11493 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11494 touch \$(top_srcdir)/INSTALL; \
11495 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11496
11497
11498
11499
11500
11501
11502 case $host_os in
11503 solaris*)
11504 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11505 # check for a man page file found in later versions that use
11506 # traditional section numbers instead
11507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11508 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11509 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11510 then :
11511 printf %s "(cached) " >&6
11512 else case e in #(
11513 e) test "$cross_compiling" = yes &&
11514 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11515 if test -r "/usr/share/man/man7/attributes.7"; then
11516 ac_cv_file__usr_share_man_man7_attributes_7=yes
11517 else
11518 ac_cv_file__usr_share_man_man7_attributes_7=no
11519 fi ;;
11520 esac
11521 fi
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11523 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11524 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11525 then :
11526 SYSV_MAN_SECTIONS=false
11527 else case e in #(
11528 e) SYSV_MAN_SECTIONS=true ;;
11529 esac
11530 fi
11531
11532 ;;
11533 *) SYSV_MAN_SECTIONS=false ;;
11534 esac
11535
11536 if test x$APP_MAN_SUFFIX = x ; then
11537 APP_MAN_SUFFIX=1
11538 fi
11539 if test x$APP_MAN_DIR = x ; then
11540 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11541 fi
11542
11543 if test x$LIB_MAN_SUFFIX = x ; then
11544 LIB_MAN_SUFFIX=3
11545 fi
11546 if test x$LIB_MAN_DIR = x ; then
11547 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11548 fi
11549
11550 if test x$FILE_MAN_SUFFIX = x ; then
11551 case $SYSV_MAN_SECTIONS in
11552 true) FILE_MAN_SUFFIX=4 ;;
11553 *) FILE_MAN_SUFFIX=5 ;;
11554 esac
11555 fi
11556 if test x$FILE_MAN_DIR = x ; then
11557 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11558 fi
11559
11560 if test x$MISC_MAN_SUFFIX = x ; then
11561 case $SYSV_MAN_SECTIONS in
11562 true) MISC_MAN_SUFFIX=5 ;;
11563 *) MISC_MAN_SUFFIX=7 ;;
11564 esac
11565 fi
11566 if test x$MISC_MAN_DIR = x ; then
11567 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11568 fi
11569
11570 if test x$DRIVER_MAN_SUFFIX = x ; then
11571 case $SYSV_MAN_SECTIONS in
11572 true) DRIVER_MAN_SUFFIX=7 ;;
11573 *) DRIVER_MAN_SUFFIX=4 ;;
11574 esac
11575 fi
11576 if test x$DRIVER_MAN_DIR = x ; then
11577 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11578 fi
11579
11580 if test x$ADMIN_MAN_SUFFIX = x ; then
11581 case $SYSV_MAN_SECTIONS in
11582 true) ADMIN_MAN_SUFFIX=1m ;;
11583 *) ADMIN_MAN_SUFFIX=8 ;;
11584 esac
11585 fi
11586 if test x$ADMIN_MAN_DIR = x ; then
11587 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11588 fi
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604 XORG_MAN_PAGE="X Version 11"
11605
11606 MAN_SUBSTS="\
11607 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11608 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11609 -e 's|__xservername__|Xorg|g' \
11610 -e 's|__xconfigfile__|xorg.conf|g' \
11611 -e 's|__projectroot__|\$(prefix)|g' \
11612 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11613 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11614 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11615 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11616 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11617 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11618 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11619
11620
11621
11622 # Check whether --enable-silent-rules was given.
11623 if test ${enable_silent_rules+y}
11624 then :
11625 enableval=$enable_silent_rules;
11626 fi
11627
11628 case $enable_silent_rules in # (((
11629 yes) AM_DEFAULT_VERBOSITY=0;;
11630 no) AM_DEFAULT_VERBOSITY=1;;
11631 *) AM_DEFAULT_VERBOSITY=0;;
11632 esac
11633 am_make=${MAKE-make}
11634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11635 printf %s "checking whether $am_make supports nested variables... " >&6; }
11636 if test ${am_cv_make_support_nested_variables+y}
11637 then :
11638 printf %s "(cached) " >&6
11639 else case e in #(
11640 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11641 BAR0=false
11642 BAR1=true
11643 V=1
11644 am__doit:
11645 @$(TRUE)
11646 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11647 am_cv_make_support_nested_variables=yes
11648 else
11649 am_cv_make_support_nested_variables=no
11650 fi ;;
11651 esac
11652 fi
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11654 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11655 if test $am_cv_make_support_nested_variables = yes; then
11656 AM_V='$(V)'
11657 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11658 else
11659 AM_V=$AM_DEFAULT_VERBOSITY
11660 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11661 fi
11662 AM_BACKSLASH='\'
11663
11664
11665
11666
11667 # Checks for pkg-config packages
11668
11669 pkg_failed=no
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLSFONTS" >&5
11671 printf %s "checking for XLSFONTS... " >&6; }
11672
11673 if test -n "$XLSFONTS_CFLAGS"; then
11674 pkg_cv_XLSFONTS_CFLAGS="$XLSFONTS_CFLAGS"
11675 elif test -n "$PKG_CONFIG"; then
11676 if test -n "$PKG_CONFIG" && \
11677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11678 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11679 ac_status=$?
11680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; }; then
11682 pkg_cv_XLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11683 test "x$?" != "x0" && pkg_failed=yes
11684 else
11685 pkg_failed=yes
11686 fi
11687 else
11688 pkg_failed=untried
11689 fi
11690 if test -n "$XLSFONTS_LIBS"; then
11691 pkg_cv_XLSFONTS_LIBS="$XLSFONTS_LIBS"
11692 elif test -n "$PKG_CONFIG"; then
11693 if test -n "$PKG_CONFIG" && \
11694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11695 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11696 ac_status=$?
11697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; }; then
11699 pkg_cv_XLSFONTS_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11700 test "x$?" != "x0" && pkg_failed=yes
11701 else
11702 pkg_failed=yes
11703 fi
11704 else
11705 pkg_failed=untried
11706 fi
11707
11708
11709
11710 if test $pkg_failed = yes; then
11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 printf "%s\n" "no" >&6; }
11713
11714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11715 _pkg_short_errors_supported=yes
11716 else
11717 _pkg_short_errors_supported=no
11718 fi
11719 if test $_pkg_short_errors_supported = yes; then
11720 XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11721 else
11722 XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11723 fi
11724 # Put the nasty error message in config.log where it belongs
11725 echo "$XLSFONTS_PKG_ERRORS" >&5
11726
11727 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11728
11729 $XLSFONTS_PKG_ERRORS
11730
11731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11732 installed software in a non-standard prefix.
11733
11734 Alternatively, you may set the environment variables XLSFONTS_CFLAGS
11735 and XLSFONTS_LIBS to avoid the need to call pkg-config.
11736 See the pkg-config man page for more details." "$LINENO" 5
11737 elif test $pkg_failed = untried; then
11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 printf "%s\n" "no" >&6; }
11740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11741 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11742 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11743 is in your PATH or set the PKG_CONFIG environment variable to the full
11744 path to pkg-config.
11745
11746 Alternatively, you may set the environment variables XLSFONTS_CFLAGS
11747 and XLSFONTS_LIBS to avoid the need to call pkg-config.
11748 See the pkg-config man page for more details.
11749
11750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11751 See 'config.log' for more details" "$LINENO" 5; }
11752 else
11753 XLSFONTS_CFLAGS=$pkg_cv_XLSFONTS_CFLAGS
11754 XLSFONTS_LIBS=$pkg_cv_XLSFONTS_LIBS
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 printf "%s\n" "yes" >&6; }
11757
11758 fi
11759
11760 # Checks for library functions
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing reallocarray" >&5
11762 printf %s "checking for library containing reallocarray... " >&6; }
11763 if test ${ac_cv_search_reallocarray+y}
11764 then :
11765 printf %s "(cached) " >&6
11766 else case e in #(
11767 e) ac_func_search_save_LIBS=$LIBS
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770
11771 /* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply.
11774 The 'extern "C"' is for builds by C++ compilers;
11775 although this is not generally supported in C code supporting it here
11776 has little cost and some practical benefit (sr 110532). */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char reallocarray (void);
11781 int
11782 main (void)
11783 {
11784 return reallocarray ();
11785 ;
11786 return 0;
11787 }
11788 _ACEOF
11789 for ac_lib in '' bsd
11790 do
11791 if test -z "$ac_lib"; then
11792 ac_res="none required"
11793 else
11794 ac_res=-l$ac_lib
11795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11796 fi
11797 if ac_fn_c_try_link "$LINENO"
11798 then :
11799 ac_cv_search_reallocarray=$ac_res
11800 fi
11801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11802 conftest$ac_exeext
11803 if test ${ac_cv_search_reallocarray+y}
11804 then :
11805 break
11806 fi
11807 done
11808 if test ${ac_cv_search_reallocarray+y}
11809 then :
11810
11811 else case e in #(
11812 e) ac_cv_search_reallocarray=no ;;
11813 esac
11814 fi
11815 rm conftest.$ac_ext
11816 LIBS=$ac_func_search_save_LIBS ;;
11817 esac
11818 fi
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_reallocarray" >&5
11820 printf "%s\n" "$ac_cv_search_reallocarray" >&6; }
11821 ac_res=$ac_cv_search_reallocarray
11822 if test "$ac_res" != no
11823 then :
11824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11825
11826 fi
11827
11828 if test "x$ac_cv_search_reallocarray" = "x-lbsd"
11829 then :
11830 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default"
11831 if test "x$ac_cv_header_bsd_stdlib_h" = xyes
11832 then :
11833 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h
11834
11835 fi
11836
11837 fi
11838 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11839 if test "x$ac_cv_func_reallocarray" = xyes
11840 then :
11841 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11842
11843 fi
11844
11845
11846 ac_config_files="$ac_config_files Makefile man/Makefile"
11847
11848 cat >confcache <<\_ACEOF
11849 # This file is a shell script that caches the results of configure
11850 # tests run on this system so they can be shared between configure
11851 # scripts and configure runs, see configure's option --config-cache.
11852 # It is not useful on other systems. If it contains results you don't
11853 # want to keep, you may remove or edit it.
11854 #
11855 # config.status only pays attention to the cache file if you give it
11856 # the --recheck option to rerun configure.
11857 #
11858 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11859 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11860 # following values.
11861
11862 _ACEOF
11863
11864 # The following way of writing the cache mishandles newlines in values,
11865 # but we know of no workaround that is simple, portable, and efficient.
11866 # So, we kill variables containing newlines.
11867 # Ultrix sh set writes to stderr and can't be redirected directly,
11868 # and sets the high bit in the cache file unless we assign to the vars.
11869 (
11870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11871 eval ac_val=\$$ac_var
11872 case $ac_val in #(
11873 *${as_nl}*)
11874 case $ac_var in #(
11875 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11876 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11877 esac
11878 case $ac_var in #(
11879 _ | IFS | as_nl) ;; #(
11880 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11881 *) { eval $ac_var=; unset $ac_var;} ;;
11882 esac ;;
11883 esac
11884 done
11885
11886 (set) 2>&1 |
11887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11888 *${as_nl}ac_space=\ *)
11889 # 'set' does not quote correctly, so add quotes: double-quote
11890 # substitution turns \\\\ into \\, and sed turns \\ into \.
11891 sed -n \
11892 "s/'/'\\\\''/g;
11893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11894 ;; #(
11895 *)
11896 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11898 ;;
11899 esac |
11900 sort
11901 ) |
11902 sed '
11903 /^ac_cv_env_/b end
11904 t clear
11905 :clear
11906 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11907 t end
11908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11909 :end' >>confcache
11910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11911 if test -w "$cache_file"; then
11912 if test "x$cache_file" != "x/dev/null"; then
11913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11914 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11915 if test ! -f "$cache_file" || test -h "$cache_file"; then
11916 cat confcache >"$cache_file"
11917 else
11918 case $cache_file in #(
11919 */* | ?:*)
11920 mv -f confcache "$cache_file"$$ &&
11921 mv -f "$cache_file"$$ "$cache_file" ;; #(
11922 *)
11923 mv -f confcache "$cache_file" ;;
11924 esac
11925 fi
11926 fi
11927 else
11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11929 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11930 fi
11931 fi
11932 rm -f confcache
11933
11934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11935 # Let make expand exec_prefix.
11936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11937
11938 DEFS=-DHAVE_CONFIG_H
11939
11940 ac_libobjs=
11941 ac_ltlibobjs=
11942 U=
11943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11944 # 1. Remove the extension, and $U if already installed.
11945 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11946 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11948 # will be set to the directory where LIBOBJS objects are built.
11949 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11950 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11951 done
11952 LIBOBJS=$ac_libobjs
11953
11954 LTLIBOBJS=$ac_ltlibobjs
11955
11956
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11958 printf %s "checking that generated files are newer than configure... " >&6; }
11959 if test -n "$am_sleep_pid"; then
11960 # Hide warnings about reused PIDs.
11961 wait $am_sleep_pid 2>/dev/null
11962 fi
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11964 printf "%s\n" "done" >&6; }
11965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11966 as_fn_error $? "conditional \"AMDEP\" was never defined.
11967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11968 fi
11969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11972 fi
11973 if test -n "$EXEEXT"; then
11974 am__EXEEXT_TRUE=
11975 am__EXEEXT_FALSE='#'
11976 else
11977 am__EXEEXT_TRUE='#'
11978 am__EXEEXT_FALSE=
11979 fi
11980
11981
11982 : "${CONFIG_STATUS=./config.status}"
11983 ac_write_fail=0
11984 ac_clean_files_save=$ac_clean_files
11985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11987 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11988 as_write_fail=0
11989 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11990 #! $SHELL
11991 # Generated by $as_me.
11992 # Run this file to recreate the current configuration.
11993 # Compiler output produced by configure, useful for debugging
11994 # configure, is in config.log if it exists.
11995
11996 debug=false
11997 ac_cs_recheck=false
11998 ac_cs_silent=false
11999
12000 SHELL=\${CONFIG_SHELL-$SHELL}
12001 export SHELL
12002 _ASEOF
12003 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12004 ## -------------------- ##
12005 ## M4sh Initialization. ##
12006 ## -------------------- ##
12007
12008 # Be more Bourne compatible
12009 DUALCASE=1; export DUALCASE # for MKS sh
12010 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12011 then :
12012 emulate sh
12013 NULLCMD=:
12014 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12015 # is contrary to our usage. Disable this feature.
12016 alias -g '${1+"$@"}'='"$@"'
12017 setopt NO_GLOB_SUBST
12018 else case e in #(
12019 e) case `(set -o) 2>/dev/null` in #(
12020 *posix*) :
12021 set -o posix ;; #(
12022 *) :
12023 ;;
12024 esac ;;
12025 esac
12026 fi
12027
12028
12029
12030 # Reset variables that may have inherited troublesome values from
12031 # the environment.
12032
12033 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12034 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12035 # side effect of setting IFS to empty, thus disabling word splitting.)
12036 # Quoting is to prevent editors from complaining about space-tab.
12037 as_nl='
12038 '
12039 export as_nl
12040 IFS=" "" $as_nl"
12041
12042 PS1='$ '
12043 PS2='> '
12044 PS4='+ '
12045
12046 # Ensure predictable behavior from utilities with locale-dependent output.
12047 LC_ALL=C
12048 export LC_ALL
12049 LANGUAGE=C
12050 export LANGUAGE
12051
12052 # We cannot yet rely on "unset" to work, but we need these variables
12053 # to be unset--not just set to an empty or harmless value--now, to
12054 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12055 # also avoids known problems related to "unset" and subshell syntax
12056 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12057 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12058 do eval test \${$as_var+y} \
12059 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12060 done
12061
12062 # Ensure that fds 0, 1, and 2 are open.
12063 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12064 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12065 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12066
12067 # The user is always right.
12068 if ${PATH_SEPARATOR+false} :; then
12069 PATH_SEPARATOR=:
12070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12072 PATH_SEPARATOR=';'
12073 }
12074 fi
12075
12076
12077 # Find who we are. Look in the path if we contain no directory separator.
12078 as_myself=
12079 case $0 in #((
12080 *[\\/]* ) as_myself=$0 ;;
12081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084 IFS=$as_save_IFS
12085 case $as_dir in #(((
12086 '') as_dir=./ ;;
12087 */) ;;
12088 *) as_dir=$as_dir/ ;;
12089 esac
12090 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12091 done
12092 IFS=$as_save_IFS
12093
12094 ;;
12095 esac
12096 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12097 # in which case we are not to be found in the path.
12098 if test "x$as_myself" = x; then
12099 as_myself=$0
12100 fi
12101 if test ! -f "$as_myself"; then
12102 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12103 exit 1
12104 fi
12105
12106
12107
12108 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12109 # ----------------------------------------
12110 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12111 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12112 # script with STATUS, using 1 if that was 0.
12113 as_fn_error ()
12114 {
12115 as_status=$1; test $as_status -eq 0 && as_status=1
12116 if test "$4"; then
12117 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12119 fi
12120 printf "%s\n" "$as_me: error: $2" >&2
12121 as_fn_exit $as_status
12122 } # as_fn_error
12123
12124
12125 # as_fn_set_status STATUS
12126 # -----------------------
12127 # Set $? to STATUS, without forking.
12128 as_fn_set_status ()
12129 {
12130 return $1
12131 } # as_fn_set_status
12132
12133 # as_fn_exit STATUS
12134 # -----------------
12135 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12136 as_fn_exit ()
12137 {
12138 set +e
12139 as_fn_set_status $1
12140 exit $1
12141 } # as_fn_exit
12142
12143 # as_fn_unset VAR
12144 # ---------------
12145 # Portably unset VAR.
12146 as_fn_unset ()
12147 {
12148 { eval $1=; unset $1;}
12149 }
12150 as_unset=as_fn_unset
12151
12152 # as_fn_append VAR VALUE
12153 # ----------------------
12154 # Append the text in VALUE to the end of the definition contained in VAR. Take
12155 # advantage of any shell optimizations that allow amortized linear growth over
12156 # repeated appends, instead of the typical quadratic growth present in naive
12157 # implementations.
12158 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12159 then :
12160 eval 'as_fn_append ()
12161 {
12162 eval $1+=\$2
12163 }'
12164 else case e in #(
12165 e) as_fn_append ()
12166 {
12167 eval $1=\$$1\$2
12168 } ;;
12169 esac
12170 fi # as_fn_append
12171
12172 # as_fn_arith ARG...
12173 # ------------------
12174 # Perform arithmetic evaluation on the ARGs, and store the result in the
12175 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12176 # must be portable across $(()) and expr.
12177 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12178 then :
12179 eval 'as_fn_arith ()
12180 {
12181 as_val=$(( $* ))
12182 }'
12183 else case e in #(
12184 e) as_fn_arith ()
12185 {
12186 as_val=`expr "$@" || test $? -eq 1`
12187 } ;;
12188 esac
12189 fi # as_fn_arith
12190
12191
12192 if expr a : '\(a\)' >/dev/null 2>&1 &&
12193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12194 as_expr=expr
12195 else
12196 as_expr=false
12197 fi
12198
12199 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12200 as_basename=basename
12201 else
12202 as_basename=false
12203 fi
12204
12205 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12206 as_dirname=dirname
12207 else
12208 as_dirname=false
12209 fi
12210
12211 as_me=`$as_basename -- "$0" ||
12212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12213 X"$0" : 'X\(//\)$' \| \
12214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12215 printf "%s\n" X/"$0" |
12216 sed '/^.*\/\([^/][^/]*\)\/*$/{
12217 s//\1/
12218 q
12219 }
12220 /^X\/\(\/\/\)$/{
12221 s//\1/
12222 q
12223 }
12224 /^X\/\(\/\).*/{
12225 s//\1/
12226 q
12227 }
12228 s/.*/./; q'`
12229
12230 # Avoid depending upon Character Ranges.
12231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12234 as_cr_digits='0123456789'
12235 as_cr_alnum=$as_cr_Letters$as_cr_digits
12236
12237
12238 # Determine whether it's possible to make 'echo' print without a newline.
12239 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12240 # for compatibility with existing Makefiles.
12241 ECHO_C= ECHO_N= ECHO_T=
12242 case `echo -n x` in #(((((
12243 -n*)
12244 case `echo 'xy\c'` in
12245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12246 xy) ECHO_C='\c';;
12247 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12248 ECHO_T=' ';;
12249 esac;;
12250 *)
12251 ECHO_N='-n';;
12252 esac
12253
12254 # For backward compatibility with old third-party macros, we provide
12255 # the shell variables $as_echo and $as_echo_n. New code should use
12256 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12257 as_echo='printf %s\n'
12258 as_echo_n='printf %s'
12259
12260 rm -f conf$$ conf$$.exe conf$$.file
12261 if test -d conf$$.dir; then
12262 rm -f conf$$.dir/conf$$.file
12263 else
12264 rm -f conf$$.dir
12265 mkdir conf$$.dir 2>/dev/null
12266 fi
12267 if (echo >conf$$.file) 2>/dev/null; then
12268 if ln -s conf$$.file conf$$ 2>/dev/null; then
12269 as_ln_s='ln -s'
12270 # ... but there are two gotchas:
12271 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12272 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12273 # In both cases, we have to default to 'cp -pR'.
12274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12275 as_ln_s='cp -pR'
12276 elif ln conf$$.file conf$$ 2>/dev/null; then
12277 as_ln_s=ln
12278 else
12279 as_ln_s='cp -pR'
12280 fi
12281 else
12282 as_ln_s='cp -pR'
12283 fi
12284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12285 rmdir conf$$.dir 2>/dev/null
12286
12287
12288 # as_fn_mkdir_p
12289 # -------------
12290 # Create "$as_dir" as a directory, including parents if necessary.
12291 as_fn_mkdir_p ()
12292 {
12293
12294 case $as_dir in #(
12295 -*) as_dir=./$as_dir;;
12296 esac
12297 test -d "$as_dir" || eval $as_mkdir_p || {
12298 as_dirs=
12299 while :; do
12300 case $as_dir in #(
12301 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12302 *) as_qdir=$as_dir;;
12303 esac
12304 as_dirs="'$as_qdir' $as_dirs"
12305 as_dir=`$as_dirname -- "$as_dir" ||
12306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12307 X"$as_dir" : 'X\(//\)[^/]' \| \
12308 X"$as_dir" : 'X\(//\)$' \| \
12309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12310 printf "%s\n" X"$as_dir" |
12311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12312 s//\1/
12313 q
12314 }
12315 /^X\(\/\/\)[^/].*/{
12316 s//\1/
12317 q
12318 }
12319 /^X\(\/\/\)$/{
12320 s//\1/
12321 q
12322 }
12323 /^X\(\/\).*/{
12324 s//\1/
12325 q
12326 }
12327 s/.*/./; q'`
12328 test -d "$as_dir" && break
12329 done
12330 test -z "$as_dirs" || eval "mkdir $as_dirs"
12331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12332
12333
12334 } # as_fn_mkdir_p
12335 if mkdir -p . 2>/dev/null; then
12336 as_mkdir_p='mkdir -p "$as_dir"'
12337 else
12338 test -d ./-p && rmdir ./-p
12339 as_mkdir_p=false
12340 fi
12341
12342
12343 # as_fn_executable_p FILE
12344 # -----------------------
12345 # Test if FILE is an executable regular file.
12346 as_fn_executable_p ()
12347 {
12348 test -f "$1" && test -x "$1"
12349 } # as_fn_executable_p
12350 as_test_x='test -x'
12351 as_executable_p=as_fn_executable_p
12352
12353 # Sed expression to map a string onto a valid CPP name.
12354 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12355 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12356
12357 # Sed expression to map a string onto a valid variable name.
12358 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12359 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12360
12361
12362 exec 6>&1
12363 ## ----------------------------------- ##
12364 ## Main body of $CONFIG_STATUS script. ##
12365 ## ----------------------------------- ##
12366 _ASEOF
12367 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12368
12369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12370 # Save the log message, to keep $0 and so on meaningful, and to
12371 # report actual input values of CONFIG_FILES etc. instead of their
12372 # values after options handling.
12373 ac_log="
12374 This file was extended by xlsfonts $as_me 1.0.8, which was
12375 generated by GNU Autoconf 2.72. Invocation command line was
12376
12377 CONFIG_FILES = $CONFIG_FILES
12378 CONFIG_HEADERS = $CONFIG_HEADERS
12379 CONFIG_LINKS = $CONFIG_LINKS
12380 CONFIG_COMMANDS = $CONFIG_COMMANDS
12381 $ $0 $@
12382
12383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12384 "
12385
12386 _ACEOF
12387
12388 case $ac_config_files in *"
12389 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12390 esac
12391
12392 case $ac_config_headers in *"
12393 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12394 esac
12395
12396
12397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12398 # Files that config.status was made for.
12399 config_files="$ac_config_files"
12400 config_headers="$ac_config_headers"
12401 config_commands="$ac_config_commands"
12402
12403 _ACEOF
12404
12405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12406 ac_cs_usage="\
12407 '$as_me' instantiates files and other configuration actions
12408 from templates according to the current configuration. Unless the files
12409 and actions are specified as TAGs, all are instantiated by default.
12410
12411 Usage: $0 [OPTION]... [TAG]...
12412
12413 -h, --help print this help, then exit
12414 -V, --version print version number and configuration settings, then exit
12415 --config print configuration, then exit
12416 -q, --quiet, --silent
12417 do not print progress messages
12418 -d, --debug don't remove temporary files
12419 --recheck update $as_me by reconfiguring in the same conditions
12420 --file=FILE[:TEMPLATE]
12421 instantiate the configuration file FILE
12422 --header=FILE[:TEMPLATE]
12423 instantiate the configuration header FILE
12424
12425 Configuration files:
12426 $config_files
12427
12428 Configuration headers:
12429 $config_headers
12430
12431 Configuration commands:
12432 $config_commands
12433
12434 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>."
12435
12436 _ACEOF
12437 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12438 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12440 ac_cs_config='$ac_cs_config_escaped'
12441 ac_cs_version="\\
12442 xlsfonts config.status 1.0.8
12443 configured by $0, generated by GNU Autoconf 2.72,
12444 with options \\"\$ac_cs_config\\"
12445
12446 Copyright (C) 2023 Free Software Foundation, Inc.
12447 This config.status script is free software; the Free Software Foundation
12448 gives unlimited permission to copy, distribute and modify it."
12449
12450 ac_pwd='$ac_pwd'
12451 srcdir='$srcdir'
12452 INSTALL='$INSTALL'
12453 MKDIR_P='$MKDIR_P'
12454 AWK='$AWK'
12455 test -n "\$AWK" || AWK=awk
12456 _ACEOF
12457
12458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12459 # The default lists apply if the user does not specify any file.
12460 ac_need_defaults=:
12461 while test $# != 0
12462 do
12463 case $1 in
12464 --*=?*)
12465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12467 ac_shift=:
12468 ;;
12469 --*=)
12470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12471 ac_optarg=
12472 ac_shift=:
12473 ;;
12474 *)
12475 ac_option=$1
12476 ac_optarg=$2
12477 ac_shift=shift
12478 ;;
12479 esac
12480
12481 case $ac_option in
12482 # Handling of the options.
12483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12484 ac_cs_recheck=: ;;
12485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12486 printf "%s\n" "$ac_cs_version"; exit ;;
12487 --config | --confi | --conf | --con | --co | --c )
12488 printf "%s\n" "$ac_cs_config"; exit ;;
12489 --debug | --debu | --deb | --de | --d | -d )
12490 debug=: ;;
12491 --file | --fil | --fi | --f )
12492 $ac_shift
12493 case $ac_optarg in
12494 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12495 '') as_fn_error $? "missing file argument" ;;
12496 esac
12497 as_fn_append CONFIG_FILES " '$ac_optarg'"
12498 ac_need_defaults=false;;
12499 --header | --heade | --head | --hea )
12500 $ac_shift
12501 case $ac_optarg in
12502 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12503 esac
12504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12505 ac_need_defaults=false;;
12506 --he | --h)
12507 # Conflict between --help and --header
12508 as_fn_error $? "ambiguous option: '$1'
12509 Try '$0 --help' for more information.";;
12510 --help | --hel | -h )
12511 printf "%s\n" "$ac_cs_usage"; exit ;;
12512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12514 ac_cs_silent=: ;;
12515
12516 # This is an error.
12517 -*) as_fn_error $? "unrecognized option: '$1'
12518 Try '$0 --help' for more information." ;;
12519
12520 *) as_fn_append ac_config_targets " $1"
12521 ac_need_defaults=false ;;
12522
12523 esac
12524 shift
12525 done
12526
12527 ac_configure_extra_args=
12528
12529 if $ac_cs_silent; then
12530 exec 6>/dev/null
12531 ac_configure_extra_args="$ac_configure_extra_args --silent"
12532 fi
12533
12534 _ACEOF
12535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12536 if \$ac_cs_recheck; then
12537 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12538 shift
12539 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12540 CONFIG_SHELL='$SHELL'
12541 export CONFIG_SHELL
12542 exec "\$@"
12543 fi
12544
12545 _ACEOF
12546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12547 exec 5>>config.log
12548 {
12549 echo
12550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12551 ## Running $as_me. ##
12552 _ASBOX
12553 printf "%s\n" "$ac_log"
12554 } >&5
12555
12556 _ACEOF
12557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12558 #
12559 # INIT-COMMANDS
12560 #
12561 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12562
12563 _ACEOF
12564
12565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12566
12567 # Handling of arguments.
12568 for ac_config_target in $ac_config_targets
12569 do
12570 case $ac_config_target in
12571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12572 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12574 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12575
12576 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12577 esac
12578 done
12579
12580
12581 # If the user did not use the arguments to specify the items to instantiate,
12582 # then the envvar interface is used. Set only those that are not.
12583 # We use the long form for the default assignment because of an extremely
12584 # bizarre bug on SunOS 4.1.3.
12585 if $ac_need_defaults; then
12586 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12587 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12588 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12589 fi
12590
12591 # Have a temporary directory for convenience. Make it in the build tree
12592 # simply because there is no reason against having it here, and in addition,
12593 # creating and moving files from /tmp can sometimes cause problems.
12594 # Hook for its removal unless debugging.
12595 # Note that there is a small window in which the directory will not be cleaned:
12596 # after its creation but before its name has been assigned to '$tmp'.
12597 $debug ||
12598 {
12599 tmp= ac_tmp=
12600 trap 'exit_status=$?
12601 : "${ac_tmp:=$tmp}"
12602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12603 ' 0
12604 trap 'as_fn_exit 1' 1 2 13 15
12605 }
12606 # Create a (secure) tmp directory for tmp files.
12607
12608 {
12609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12610 test -d "$tmp"
12611 } ||
12612 {
12613 tmp=./conf$$-$RANDOM
12614 (umask 077 && mkdir "$tmp")
12615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12616 ac_tmp=$tmp
12617
12618 # Set up the scripts for CONFIG_FILES section.
12619 # No need to generate them if there are no CONFIG_FILES.
12620 # This happens for instance with './config.status config.h'.
12621 if test -n "$CONFIG_FILES"; then
12622
12623
12624 ac_cr=`echo X | tr X '\015'`
12625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12626 # But we know of no other shell where ac_cr would be empty at this
12627 # point, so we can use a bashism as a fallback.
12628 if test "x$ac_cr" = x; then
12629 eval ac_cr=\$\'\\r\'
12630 fi
12631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12633 ac_cs_awk_cr='\\r'
12634 else
12635 ac_cs_awk_cr=$ac_cr
12636 fi
12637
12638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12639 _ACEOF
12640
12641
12642 {
12643 echo "cat >conf$$subs.awk <<_ACEOF" &&
12644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12645 echo "_ACEOF"
12646 } >conf$$subs.sh ||
12647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12649 ac_delim='%!_!# '
12650 for ac_last_try in false false false false false :; do
12651 . ./conf$$subs.sh ||
12652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12653
12654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12655 if test $ac_delim_n = $ac_delim_num; then
12656 break
12657 elif $ac_last_try; then
12658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12659 else
12660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12661 fi
12662 done
12663 rm -f conf$$subs.sh
12664
12665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12666 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12667 _ACEOF
12668 sed -n '
12669 h
12670 s/^/S["/; s/!.*/"]=/
12671 p
12672 g
12673 s/^[^!]*!//
12674 :repl
12675 t repl
12676 s/'"$ac_delim"'$//
12677 t delim
12678 :nl
12679 h
12680 s/\(.\{148\}\)..*/\1/
12681 t more1
12682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12683 p
12684 n
12685 b repl
12686 :more1
12687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12688 p
12689 g
12690 s/.\{148\}//
12691 t nl
12692 :delim
12693 h
12694 s/\(.\{148\}\)..*/\1/
12695 t more2
12696 s/["\\]/\\&/g; s/^/"/; s/$/"/
12697 p
12698 b
12699 :more2
12700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12701 p
12702 g
12703 s/.\{148\}//
12704 t delim
12705 ' <conf$$subs.awk | sed '
12706 /^[^""]/{
12707 N
12708 s/\n//
12709 }
12710 ' >>$CONFIG_STATUS || ac_write_fail=1
12711 rm -f conf$$subs.awk
12712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12713 _ACAWK
12714 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12715 for (key in S) S_is_set[key] = 1
12716 FS = ""
12717
12718 }
12719 {
12720 line = $ 0
12721 nfields = split(line, field, "@")
12722 substed = 0
12723 len = length(field[1])
12724 for (i = 2; i < nfields; i++) {
12725 key = field[i]
12726 keylen = length(key)
12727 if (S_is_set[key]) {
12728 value = S[key]
12729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12730 len += length(value) + length(field[++i])
12731 substed = 1
12732 } else
12733 len += 1 + keylen
12734 }
12735
12736 print line
12737 }
12738
12739 _ACAWK
12740 _ACEOF
12741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12744 else
12745 cat
12746 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12748 _ACEOF
12749
12750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12752 # trailing colons and then remove the whole line if VPATH becomes empty
12753 # (actually we leave an empty line to preserve line numbers).
12754 if test "x$srcdir" = x.; then
12755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12756 h
12757 s///
12758 s/^/:/
12759 s/[ ]*$/:/
12760 s/:\$(srcdir):/:/g
12761 s/:\${srcdir}:/:/g
12762 s/:@srcdir@:/:/g
12763 s/^:*//
12764 s/:*$//
12765 x
12766 s/\(=[ ]*\).*/\1/
12767 G
12768 s/\n//
12769 s/^[^=]*=[ ]*$//
12770 }'
12771 fi
12772
12773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12774 fi # test -n "$CONFIG_FILES"
12775
12776 # Set up the scripts for CONFIG_HEADERS section.
12777 # No need to generate them if there are no CONFIG_HEADERS.
12778 # This happens for instance with './config.status Makefile'.
12779 if test -n "$CONFIG_HEADERS"; then
12780 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12781 BEGIN {
12782 _ACEOF
12783
12784 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12785 # here-document in config.status, that substitutes the proper values into
12786 # config.h.in to produce config.h.
12787
12788 # Create a delimiter string that does not exist in confdefs.h, to ease
12789 # handling of long lines.
12790 ac_delim='%!_!# '
12791 for ac_last_try in false false :; do
12792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12793 if test -z "$ac_tt"; then
12794 break
12795 elif $ac_last_try; then
12796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12797 else
12798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12799 fi
12800 done
12801
12802 # For the awk script, D is an array of macro values keyed by name,
12803 # likewise P contains macro parameters if any. Preserve backslash
12804 # newline sequences.
12805
12806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12807 sed -n '
12808 s/.\{148\}/&'"$ac_delim"'/g
12809 t rset
12810 :rset
12811 s/^[ ]*#[ ]*define[ ][ ]*/ /
12812 t def
12813 d
12814 :def
12815 s/\\$//
12816 t bsnl
12817 s/["\\]/\\&/g
12818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12819 D["\1"]=" \3"/p
12820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12821 d
12822 :bsnl
12823 s/["\\]/\\&/g
12824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12825 D["\1"]=" \3\\\\\\n"\\/p
12826 t cont
12827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12828 t cont
12829 d
12830 :cont
12831 n
12832 s/.\{148\}/&'"$ac_delim"'/g
12833 t clear
12834 :clear
12835 s/\\$//
12836 t bsnlc
12837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12838 d
12839 :bsnlc
12840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12841 b cont
12842 ' <confdefs.h | sed '
12843 s/'"$ac_delim"'/"\\\
12844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12845
12846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12847 for (key in D) D_is_set[key] = 1
12848 FS = ""
12849 }
12850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12851 line = \$ 0
12852 split(line, arg, " ")
12853 if (arg[1] == "#") {
12854 defundef = arg[2]
12855 mac1 = arg[3]
12856 } else {
12857 defundef = substr(arg[1], 2)
12858 mac1 = arg[2]
12859 }
12860 split(mac1, mac2, "(") #)
12861 macro = mac2[1]
12862 prefix = substr(line, 1, index(line, defundef) - 1)
12863 if (D_is_set[macro]) {
12864 # Preserve the white space surrounding the "#".
12865 print prefix "define", macro P[macro] D[macro]
12866 next
12867 } else {
12868 # Replace #undef with comments. This is necessary, for example,
12869 # in the case of _POSIX_SOURCE, which is predefined and required
12870 # on some systems where configure will not decide to define it.
12871 if (defundef == "undef") {
12872 print "/*", prefix defundef, macro, "*/"
12873 next
12874 }
12875 }
12876 }
12877 { print }
12878 _ACAWK
12879 _ACEOF
12880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12882 fi # test -n "$CONFIG_HEADERS"
12883
12884
12885 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12886 shift
12887 for ac_tag
12888 do
12889 case $ac_tag in
12890 :[FHLC]) ac_mode=$ac_tag; continue;;
12891 esac
12892 case $ac_mode$ac_tag in
12893 :[FHL]*:*);;
12894 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12895 :[FH]-) ac_tag=-:-;;
12896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12897 esac
12898 ac_save_IFS=$IFS
12899 IFS=:
12900 set x $ac_tag
12901 IFS=$ac_save_IFS
12902 shift
12903 ac_file=$1
12904 shift
12905
12906 case $ac_mode in
12907 :L) ac_source=$1;;
12908 :[FH])
12909 ac_file_inputs=
12910 for ac_f
12911 do
12912 case $ac_f in
12913 -) ac_f="$ac_tmp/stdin";;
12914 *) # Look for the file first in the build tree, then in the source tree
12915 # (if the path is not absolute). The absolute path cannot be DOS-style,
12916 # because $ac_f cannot contain ':'.
12917 test -f "$ac_f" ||
12918 case $ac_f in
12919 [\\/$]*) false;;
12920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12921 esac ||
12922 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12923 esac
12924 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12925 as_fn_append ac_file_inputs " '$ac_f'"
12926 done
12927
12928 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12929 # use $as_me), people would be surprised to read:
12930 # /* config.h. Generated by config.status. */
12931 configure_input='Generated from '`
12932 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12933 `' by configure.'
12934 if test x"$ac_file" != x-; then
12935 configure_input="$ac_file. $configure_input"
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12937 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12938 fi
12939 # Neutralize special characters interpreted by sed in replacement strings.
12940 case $configure_input in #(
12941 *\&* | *\|* | *\\* )
12942 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12944 *) ac_sed_conf_input=$configure_input;;
12945 esac
12946
12947 case $ac_tag in
12948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12950 esac
12951 ;;
12952 esac
12953
12954 ac_dir=`$as_dirname -- "$ac_file" ||
12955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12956 X"$ac_file" : 'X\(//\)[^/]' \| \
12957 X"$ac_file" : 'X\(//\)$' \| \
12958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12959 printf "%s\n" X"$ac_file" |
12960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12961 s//\1/
12962 q
12963 }
12964 /^X\(\/\/\)[^/].*/{
12965 s//\1/
12966 q
12967 }
12968 /^X\(\/\/\)$/{
12969 s//\1/
12970 q
12971 }
12972 /^X\(\/\).*/{
12973 s//\1/
12974 q
12975 }
12976 s/.*/./; q'`
12977 as_dir="$ac_dir"; as_fn_mkdir_p
12978 ac_builddir=.
12979
12980 case "$ac_dir" in
12981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12982 *)
12983 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12984 # A ".." for each directory in $ac_dir_suffix.
12985 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12986 case $ac_top_builddir_sub in
12987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12989 esac ;;
12990 esac
12991 ac_abs_top_builddir=$ac_pwd
12992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12993 # for backward compatibility:
12994 ac_top_builddir=$ac_top_build_prefix
12995
12996 case $srcdir in
12997 .) # We are building in place.
12998 ac_srcdir=.
12999 ac_top_srcdir=$ac_top_builddir_sub
13000 ac_abs_top_srcdir=$ac_pwd ;;
13001 [\\/]* | ?:[\\/]* ) # Absolute name.
13002 ac_srcdir=$srcdir$ac_dir_suffix;
13003 ac_top_srcdir=$srcdir
13004 ac_abs_top_srcdir=$srcdir ;;
13005 *) # Relative name.
13006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13007 ac_top_srcdir=$ac_top_build_prefix$srcdir
13008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13009 esac
13010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13011
13012
13013 case $ac_mode in
13014 :F)
13015 #
13016 # CONFIG_FILE
13017 #
13018
13019 case $INSTALL in
13020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13022 esac
13023 ac_MKDIR_P=$MKDIR_P
13024 case $MKDIR_P in
13025 [\\/$]* | ?:[\\/]* ) ;;
13026 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13027 esac
13028 _ACEOF
13029
13030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031 # If the template does not know about datarootdir, expand it.
13032 # FIXME: This hack should be removed a few years after 2.60.
13033 ac_datarootdir_hack=; ac_datarootdir_seen=
13034 ac_sed_dataroot='
13035 /datarootdir/ {
13036 p
13037 q
13038 }
13039 /@datadir@/p
13040 /@docdir@/p
13041 /@infodir@/p
13042 /@localedir@/p
13043 /@mandir@/p'
13044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13045 *datarootdir*) ac_datarootdir_seen=yes;;
13046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13048 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13049 _ACEOF
13050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13051 ac_datarootdir_hack='
13052 s&@datadir@&$datadir&g
13053 s&@docdir@&$docdir&g
13054 s&@infodir@&$infodir&g
13055 s&@localedir@&$localedir&g
13056 s&@mandir@&$mandir&g
13057 s&\\\${datarootdir}&$datarootdir&g' ;;
13058 esac
13059 _ACEOF
13060
13061 # Neutralize VPATH when '$srcdir' = '.'.
13062 # Shell code in configure.ac might set extrasub.
13063 # FIXME: do we really want to maintain this feature?
13064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13065 ac_sed_extra="$ac_vpsub
13066 $extrasub
13067 _ACEOF
13068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13069 :t
13070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13071 s|@configure_input@|$ac_sed_conf_input|;t t
13072 s&@top_builddir@&$ac_top_builddir_sub&;t t
13073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13074 s&@srcdir@&$ac_srcdir&;t t
13075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13076 s&@top_srcdir@&$ac_top_srcdir&;t t
13077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13078 s&@builddir@&$ac_builddir&;t t
13079 s&@abs_builddir@&$ac_abs_builddir&;t t
13080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13081 s&@INSTALL@&$ac_INSTALL&;t t
13082 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13083 $ac_datarootdir_hack
13084 "
13085 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13086 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13087
13088 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13089 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13090 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13091 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13093 which seems to be undefined. Please make sure it is defined" >&5
13094 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13095 which seems to be undefined. Please make sure it is defined" >&2;}
13096
13097 rm -f "$ac_tmp/stdin"
13098 case $ac_file in
13099 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13100 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13101 esac \
13102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13103 ;;
13104 :H)
13105 #
13106 # CONFIG_HEADER
13107 #
13108 if test x"$ac_file" != x-; then
13109 {
13110 printf "%s\n" "/* $configure_input */" >&1 \
13111 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13112 } >"$ac_tmp/config.h" \
13113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13114 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13116 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13117 else
13118 rm -f "$ac_file"
13119 mv "$ac_tmp/config.h" "$ac_file" \
13120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13121 fi
13122 else
13123 printf "%s\n" "/* $configure_input */" >&1 \
13124 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13125 || as_fn_error $? "could not create -" "$LINENO" 5
13126 fi
13127 # Compute "$ac_file"'s index in $config_headers.
13128 _am_arg="$ac_file"
13129 _am_stamp_count=1
13130 for _am_header in $config_headers :; do
13131 case $_am_header in
13132 $_am_arg | $_am_arg:* )
13133 break ;;
13134 * )
13135 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13136 esac
13137 done
13138 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13139 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13140 X"$_am_arg" : 'X\(//\)[^/]' \| \
13141 X"$_am_arg" : 'X\(//\)$' \| \
13142 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13143 printf "%s\n" X"$_am_arg" |
13144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13145 s//\1/
13146 q
13147 }
13148 /^X\(\/\/\)[^/].*/{
13149 s//\1/
13150 q
13151 }
13152 /^X\(\/\/\)$/{
13153 s//\1/
13154 q
13155 }
13156 /^X\(\/\).*/{
13157 s//\1/
13158 q
13159 }
13160 s/.*/./; q'`/stamp-h$_am_stamp_count
13161 ;;
13162
13163 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13164 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13165 ;;
13166 esac
13167
13168
13169 case $ac_file$ac_mode in
13170 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13171 # Older Autoconf quotes --file arguments for eval, but not when files
13172 # are listed without --file. Let's play safe and only enable the eval
13173 # if we detect the quoting.
13174 # TODO: see whether this extra hack can be removed once we start
13175 # requiring Autoconf 2.70 or later.
13176 case $CONFIG_FILES in #(
13177 *\'*) :
13178 eval set x "$CONFIG_FILES" ;; #(
13179 *) :
13180 set x $CONFIG_FILES ;; #(
13181 *) :
13182 ;;
13183 esac
13184 shift
13185 # Used to flag and report bootstrapping failures.
13186 am_rc=0
13187 for am_mf
13188 do
13189 # Strip MF so we end up with the name of the file.
13190 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13191 # Check whether this is an Automake generated Makefile which includes
13192 # dependency-tracking related rules and includes.
13193 # Grep'ing the whole file directly is not great: AIX grep has a line
13194 # limit of 2048, but all sed's we know have understand at least 4000.
13195 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13196 || continue
13197 am_dirpart=`$as_dirname -- "$am_mf" ||
13198 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$am_mf" : 'X\(//\)[^/]' \| \
13200 X"$am_mf" : 'X\(//\)$' \| \
13201 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13202 printf "%s\n" X"$am_mf" |
13203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13204 s//\1/
13205 q
13206 }
13207 /^X\(\/\/\)[^/].*/{
13208 s//\1/
13209 q
13210 }
13211 /^X\(\/\/\)$/{
13212 s//\1/
13213 q
13214 }
13215 /^X\(\/\).*/{
13216 s//\1/
13217 q
13218 }
13219 s/.*/./; q'`
13220 am_filepart=`$as_basename -- "$am_mf" ||
13221 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13222 X"$am_mf" : 'X\(//\)$' \| \
13223 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13224 printf "%s\n" X/"$am_mf" |
13225 sed '/^.*\/\([^/][^/]*\)\/*$/{
13226 s//\1/
13227 q
13228 }
13229 /^X\/\(\/\/\)$/{
13230 s//\1/
13231 q
13232 }
13233 /^X\/\(\/\).*/{
13234 s//\1/
13235 q
13236 }
13237 s/.*/./; q'`
13238 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13239 && sed -e '/# am--include-marker/d' "$am_filepart" \
13240 | $MAKE -f - am--depfiles" >&5
13241 (cd "$am_dirpart" \
13242 && sed -e '/# am--include-marker/d' "$am_filepart" \
13243 | $MAKE -f - am--depfiles) >&5 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } || am_rc=$?
13247 done
13248 if test $am_rc -ne 0; then
13249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13250 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13251 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13252 for automatic dependency tracking. If GNU make was not used, consider
13253 re-running the configure script with MAKE=\"gmake\" (or whatever is
13254 necessary). You can also try re-running configure with the
13255 '--disable-dependency-tracking' option to at least be able to build
13256 the package (albeit without support for automatic dependency tracking).
13257 See 'config.log' for more details" "$LINENO" 5; }
13258 fi
13259 { am_dirpart=; unset am_dirpart;}
13260 { am_filepart=; unset am_filepart;}
13261 { am_mf=; unset am_mf;}
13262 { am_rc=; unset am_rc;}
13263 rm -f conftest-deps.mk
13264 }
13265 ;;
13266
13267 esac
13268 done # for ac_tag
13269
13270
13271 as_fn_exit 0
13272 _ACEOF
13273 ac_clean_files=$ac_clean_files_save
13274
13275 test $ac_write_fail = 0 ||
13276 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13277
13278
13279 # configure is writing to config.log, and then calls config.status.
13280 # config.status does its own redirection, appending to config.log.
13281 # Unfortunately, on DOS this fails, as config.log is still kept open
13282 # by configure, so config.status won't be able to write to it; its
13283 # output is simply discarded. So we exec the FD to /dev/null,
13284 # effectively closing config.log, so it can be properly (re)opened and
13285 # appended to by config.status. When coming back to configure, we
13286 # need to make the FD available again.
13287 if test "$no_create" != yes; then
13288 ac_cs_success=:
13289 ac_config_status_args=
13290 test "$silent" = yes &&
13291 ac_config_status_args="$ac_config_status_args --quiet"
13292 exec 5>/dev/null
13293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13294 exec 5>>config.log
13295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13296 # would make configure fail if this is the last instruction.
13297 $ac_cs_success || as_fn_exit 1
13298 fi
13299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13301 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13302 fi
13303
13304
13305