configure revision 1.1.1.13 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for mkfontscale 1.2.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/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/mkfontscale/-/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='mkfontscale'
607 PACKAGE_TARNAME='mkfontscale'
608 PACKAGE_VERSION='1.2.3'
609 PACKAGE_STRING='mkfontscale 1.2.3'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 LINT_FALSE
652 LINT_TRUE
653 LINT_FLAGS
654 LINT
655 X11_LIBS
656 X11_CFLAGS
657 ZLIB_LIBS
658 ZLIB_CFLAGS
659 MKFONTSCALE_LIBS
660 MKFONTSCALE_CFLAGS
661 MAN_SUBSTS
662 XORG_MAN_PAGE
663 ADMIN_MAN_DIR
664 DRIVER_MAN_DIR
665 MISC_MAN_DIR
666 FILE_MAN_DIR
667 LIB_MAN_DIR
668 APP_MAN_DIR
669 ADMIN_MAN_SUFFIX
670 DRIVER_MAN_SUFFIX
671 MISC_MAN_SUFFIX
672 FILE_MAN_SUFFIX
673 LIB_MAN_SUFFIX
674 APP_MAN_SUFFIX
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 CSCOPE
697 ETAGS
698 CTAGS
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__include
707 DEPDIR
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 runstatedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL
777 am__quote'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_dependency_tracking
782 enable_silent_rules
783 enable_selective_werror
784 enable_strict_compilation
785 with_bzip2
786 enable_largefile
787 with_lint
788 enable_year2038
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 PKG_CONFIG
799 PKG_CONFIG_PATH
800 PKG_CONFIG_LIBDIR
801 MKFONTSCALE_CFLAGS
802 MKFONTSCALE_LIBS
803 ZLIB_CFLAGS
804 ZLIB_LIBS
805 X11_CFLAGS
806 X11_LIBS
807 LINT
808 LINT_FLAGS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: '$ac_useropt'"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: '$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -runstatedir | --runstatedir | --runstatedi | --runstated \
1099 | --runstate | --runstat | --runsta | --runst | --runs \
1100 | --run | --ru | --r)
1101 ac_prev=runstatedir ;;
1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104 | --run=* | --ru=* | --r=*)
1105 runstatedir=$ac_optarg ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: '$ac_useropt'"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: '$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: '$ac_option'
1203 Try '$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir runstatedir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: '$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 printf "%s\n" X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 'configure' configures mkfontscale 1.2.3 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print 'checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for '--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or '..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, 'make install' will install all the files in
1384 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than '$ac_default_prefix' using '--prefix',
1386 for instance '--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1412
1413 cat <<\_ACEOF
1414
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of mkfontscale 1.2.3:";;
1429 esac
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --disable-selective-werror
1443 Turn off selective compiler errors. (default:
1444 enabled)
1445 --enable-strict-compilation
1446 Enable all warnings from compiler and make them
1447 errors (default: disabled)
1448 --disable-largefile omit support for large files
1449 --enable-year2038 support timestamps after 2038
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-bzip2 Support bzip2 compressed bitmap fonts
1455 --with-lint Use a lint-style source code checker (default:
1456 disabled)
1457
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 PKG_CONFIG path to pkg-config utility
1467 PKG_CONFIG_PATH
1468 directories to add to pkg-config's search path
1469 PKG_CONFIG_LIBDIR
1470 path overriding pkg-config's built-in search path
1471 MKFONTSCALE_CFLAGS
1472 C compiler flags for MKFONTSCALE, overriding pkg-config
1473 MKFONTSCALE_LIBS
1474 linker flags for MKFONTSCALE, overriding pkg-config
1475 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1476 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1477 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1478 X11_LIBS linker flags for X11, overriding pkg-config
1479 LINT Path to a lint-style command
1480 LINT_FLAGS Flags for the lint-style command
1481
1482 Use these variables to override the choices made by 'configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues>.
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1497
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *)
1501 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1513
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for configure.gnu first; this name is used for a wrapper for
1532 # Metaconfig's "Configure" on case-insensitive file systems.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 mkfontscale configure 1.2.3
1550 generated by GNU Autoconf 2.72
1551
1552 Copyright (C) 2023 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest.beam
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 printf "%s\n" "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext
1589 then :
1590 ac_retval=0
1591 else case e in #(
1592 e) printf "%s\n" "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1 ;;
1596 esac
1597 fi
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_compile
1602
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 printf %s "checking for $2... " >&6; }
1612 if eval test \${$3+y}
1613 then :
1614 printf %s "(cached) " >&6
1615 else case e in #(
1616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"
1622 then :
1623 eval "$3=yes"
1624 else case e in #(
1625 e) eval "$3=no" ;;
1626 esac
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1629 esac
1630 fi
1631 eval ac_res=\$$3
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 printf "%s\n" "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1639 # ------------------------------------------------------------------
1640 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1641 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1642 ac_fn_check_decl ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 as_decl_name=`echo $2|sed 's/ *(.*//'`
1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1647 printf %s "checking whether $as_decl_name is declared... " >&6; }
1648 if eval test \${$3+y}
1649 then :
1650 printf %s "(cached) " >&6
1651 else case e in #(
1652 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1653 eval ac_save_FLAGS=\$$6
1654 as_fn_append $6 " $5"
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 int
1659 main (void)
1660 {
1661 #ifndef $as_decl_name
1662 #ifdef __cplusplus
1663 (void) $as_decl_use;
1664 #else
1665 (void) $as_decl_name;
1666 #endif
1667 #endif
1668
1669 ;
1670 return 0;
1671 }
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"
1674 then :
1675 eval "$3=yes"
1676 else case e in #(
1677 e) eval "$3=no" ;;
1678 esac
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681 eval $6=\$ac_save_FLAGS
1682 ;;
1683 esac
1684 fi
1685 eval ac_res=\$$3
1686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 printf "%s\n" "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_check_decl
1691
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest$ac_exeext
1720 }
1721 then :
1722 ac_retval=0
1723 else case e in #(
1724 e) printf "%s\n" "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1 ;;
1728 esac
1729 fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_link
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 printf %s "checking for $2... " >&6; }
1748 if eval test \${$3+y}
1749 then :
1750 printf %s "(cached) " >&6
1751 else case e in #(
1752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756 #define $2 innocuous_$2
1757
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (void); below. */
1760
1761 #include <limits.h>
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 (void);
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main (void)
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"
1787 then :
1788 eval "$3=yes"
1789 else case e in #(
1790 e) eval "$3=no" ;;
1791 esac
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794 conftest$ac_exeext conftest.$ac_ext ;;
1795 esac
1796 fi
1797 eval ac_res=\$$3
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 printf "%s\n" "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_func
1803 ac_configure_args_raw=
1804 for ac_arg
1805 do
1806 case $ac_arg in
1807 *\'*)
1808 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 esac
1810 as_fn_append ac_configure_args_raw " '$ac_arg'"
1811 done
1812
1813 case $ac_configure_args_raw in
1814 *$as_nl*)
1815 ac_safe_unquote= ;;
1816 *)
1817 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1818 ac_unsafe_a="$ac_unsafe_z#~"
1819 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1820 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1821 esac
1822
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by mkfontscale $as_me 1.2.3, which was
1828 generated by GNU Autoconf 2.72. Invocation command line was
1829
1830 $ $0$ac_configure_args_raw
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 case $as_dir in #(((
1864 '') as_dir=./ ;;
1865 */) ;;
1866 *) as_dir=$as_dir/ ;;
1867 esac
1868 printf "%s\n" "PATH: $as_dir"
1869 done
1870 IFS=$as_save_IFS
1871
1872 } >&5
1873
1874 cat >&5 <<_ACEOF
1875
1876
1877 ## ----------- ##
1878 ## Core tests. ##
1879 ## ----------- ##
1880
1881 _ACEOF
1882
1883
1884 # Keep a trace of the command line.
1885 # Strip out --no-create and --no-recursion so they do not pile up.
1886 # Strip out --silent because we don't want to record it for future runs.
1887 # Also quote any args containing shell meta-characters.
1888 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_configure_args=
1890 ac_configure_args0=
1891 ac_configure_args1=
1892 ac_must_keep_next=false
1893 for ac_pass in 1 2
1894 do
1895 for ac_arg
1896 do
1897 case $ac_arg in
1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1901 continue ;;
1902 *\'*)
1903 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 case $ac_pass in
1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907 2)
1908 as_fn_append ac_configure_args1 " '$ac_arg'"
1909 if test $ac_must_keep_next = true; then
1910 ac_must_keep_next=false # Got value, back to normal.
1911 else
1912 case $ac_arg in
1913 *=* | --config-cache | -C | -disable-* | --disable-* \
1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916 | -with-* | --with-* | -without-* | --without-* | --x)
1917 case "$ac_configure_args0 " in
1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919 esac
1920 ;;
1921 -* ) ac_must_keep_next=true ;;
1922 esac
1923 fi
1924 as_fn_append ac_configure_args " '$ac_arg'"
1925 ;;
1926 esac
1927 done
1928 done
1929 { ac_configure_args0=; unset ac_configure_args0;}
1930 { ac_configure_args1=; unset ac_configure_args1;}
1931
1932 # When interrupted or exit'd, cleanup temporary files, and complete
1933 # config.log. We remove comments because anyway the quotes in there
1934 # would cause problems or look ugly.
1935 # WARNING: Use '\'' to represent an apostrophe within the trap.
1936 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937 trap 'exit_status=$?
1938 # Sanitize IFS.
1939 IFS=" "" $as_nl"
1940 # Save into config.log some information that might help in debugging.
1941 {
1942 echo
1943
1944 printf "%s\n" "## ---------------- ##
1945 ## Cache variables. ##
1946 ## ---------------- ##"
1947 echo
1948 # The following way of writing the cache mishandles newlines in values,
1949 (
1950 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in #(
1953 *${as_nl}*)
1954 case $ac_var in #(
1955 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1956 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1957 esac
1958 case $ac_var in #(
1959 _ | IFS | as_nl) ;; #(
1960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1961 *) { eval $ac_var=; unset $ac_var;} ;;
1962 esac ;;
1963 esac
1964 done
1965 (set) 2>&1 |
1966 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1967 *${as_nl}ac_space=\ *)
1968 sed -n \
1969 "s/'\''/'\''\\\\'\'''\''/g;
1970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1971 ;; #(
1972 *)
1973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1974 ;;
1975 esac |
1976 sort
1977 )
1978 echo
1979
1980 printf "%s\n" "## ----------------- ##
1981 ## Output variables. ##
1982 ## ----------------- ##"
1983 echo
1984 for ac_var in $ac_subst_vars
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 printf "%s\n" "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993
1994 if test -n "$ac_subst_files"; then
1995 printf "%s\n" "## ------------------- ##
1996 ## File substitutions. ##
1997 ## ------------------- ##"
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 printf "%s\n" "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 printf "%s\n" "## ----------- ##
2012 ## confdefs.h. ##
2013 ## ----------- ##"
2014 echo
2015 cat confdefs.h
2016 echo
2017 fi
2018 test "$ac_signal" != 0 &&
2019 printf "%s\n" "$as_me: caught signal $ac_signal"
2020 printf "%s\n" "$as_me: exit $exit_status"
2021 } >&5
2022 rm -f core *.core core.conftest.* &&
2023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2024 exit $exit_status
2025 ' 0
2026 for ac_signal in 1 2 13 15; do
2027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2028 done
2029 ac_signal=0
2030
2031 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2032 rm -f -r conftest* confdefs.h
2033
2034 printf "%s\n" "/* confdefs.h */" > confdefs.h
2035
2036 # Predefined preprocessor variables.
2037
2038 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2049
2050
2051 # Let the site file select an alternate cache file if it wants to.
2052 # Prefer an explicitly selected file to automatically selected ones.
2053 if test -n "$CONFIG_SITE"; then
2054 ac_site_files="$CONFIG_SITE"
2055 elif test "x$prefix" != xNONE; then
2056 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2057 else
2058 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2059 fi
2060
2061 for ac_site_file in $ac_site_files
2062 do
2063 case $ac_site_file in #(
2064 */*) :
2065 ;; #(
2066 *) :
2067 ac_site_file=./$ac_site_file ;;
2068 esac
2069 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2072 sed 's/^/| /' "$ac_site_file" >&5
2073 . "$ac_site_file" \
2074 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2076 as_fn_error $? "failed to load site script $ac_site_file
2077 See 'config.log' for more details" "$LINENO" 5; }
2078 fi
2079 done
2080
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special files
2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2087 case $cache_file in
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2090 esac
2091 fi
2092 else
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096 fi
2097
2098 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2099 # Test code for whether the C compiler supports C89 (global declarations)
2100 ac_c_conftest_c89_globals='
2101 /* Does the compiler advertise C89 conformance?
2102 Do not test the value of __STDC__, because some compilers set it to 0
2103 while being otherwise adequately conformant. */
2104 #if !defined __STDC__
2105 # error "Compiler does not advertise C89 conformance"
2106 #endif
2107
2108 #include <stddef.h>
2109 #include <stdarg.h>
2110 struct stat;
2111 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2112 struct buf { int x; };
2113 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (char **p, int i)
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* C89 style stringification. */
2129 #define noexpand_stringify(a) #a
2130 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132 /* C89 style token pasting. Exercises some of the corner cases that
2133 e.g. old MSVC gets wrong, but not very hard. */
2134 #define noexpand_concat(a,b) a##b
2135 #define expand_concat(a,b) noexpand_concat(a,b)
2136 extern int vA;
2137 extern int vbee;
2138 #define aye A
2139 #define bee B
2140 int *pvA = &expand_concat(v,aye);
2141 int *pvbee = &noexpand_concat(v,bee);
2142
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not \xHH hex character constants.
2145 These do not provoke an error unfortunately, instead are silently treated
2146 as an "x". The following induces an error, until -std is added to get
2147 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2148 array size at least. It is necessary to write \x00 == 0 to get something
2149 that is true only with -std. */
2150 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153 inside strings and character constants. */
2154 #define FOO(x) '\''x'\''
2155 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161 int, int);'
2162
2163 # Test code for whether the C compiler supports C89 (body of main).
2164 ac_c_conftest_c89_main='
2165 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166 '
2167
2168 # Test code for whether the C compiler supports C99 (global declarations)
2169 ac_c_conftest_c99_globals='
2170 /* Does the compiler advertise C99 conformance? */
2171 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172 # error "Compiler does not advertise C99 conformance"
2173 #endif
2174
2175 // See if C++-style comments work.
2176
2177 #include <stdbool.h>
2178 extern int puts (const char *);
2179 extern int printf (const char *, ...);
2180 extern int dprintf (int, const char *, ...);
2181 extern void *malloc (size_t);
2182 extern void free (void *);
2183
2184 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2185 // dprintf is used instead of fprintf to avoid needing to declare
2186 // FILE and stderr.
2187 #define debug(...) dprintf (2, __VA_ARGS__)
2188 #define showlist(...) puts (#__VA_ARGS__)
2189 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2190 static void
2191 test_varargs_macros (void)
2192 {
2193 int x = 1234;
2194 int y = 5678;
2195 debug ("Flag");
2196 debug ("X = %d\n", x);
2197 showlist (The first, second, and third items.);
2198 report (x>y, "x is %d but y is %d", x, y);
2199 }
2200
2201 // Check long long types.
2202 #define BIG64 18446744073709551615ull
2203 #define BIG32 4294967295ul
2204 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2205 #if !BIG_OK
2206 #error "your preprocessor is broken"
2207 #endif
2208 #if BIG_OK
2209 #else
2210 #error "your preprocessor is broken"
2211 #endif
2212 static long long int bignum = -9223372036854775807LL;
2213 static unsigned long long int ubignum = BIG64;
2214
2215 struct incomplete_array
2216 {
2217 int datasize;
2218 double data[];
2219 };
2220
2221 struct named_init {
2222 int number;
2223 const wchar_t *name;
2224 double average;
2225 };
2226
2227 typedef const char *ccp;
2228
2229 static inline int
2230 test_restrict (ccp restrict text)
2231 {
2232 // Iterate through items via the restricted pointer.
2233 // Also check for declarations in for loops.
2234 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235 continue;
2236 return 0;
2237 }
2238
2239 // Check varargs and va_copy.
2240 static bool
2241 test_varargs (const char *format, ...)
2242 {
2243 va_list args;
2244 va_start (args, format);
2245 va_list args_copy;
2246 va_copy (args_copy, args);
2247
2248 const char *str = "";
2249 int number = 0;
2250 float fnumber = 0;
2251
2252 while (*format)
2253 {
2254 switch (*format++)
2255 {
2256 case '\''s'\'': // string
2257 str = va_arg (args_copy, const char *);
2258 break;
2259 case '\''d'\'': // int
2260 number = va_arg (args_copy, int);
2261 break;
2262 case '\''f'\'': // float
2263 fnumber = va_arg (args_copy, double);
2264 break;
2265 default:
2266 break;
2267 }
2268 }
2269 va_end (args_copy);
2270 va_end (args);
2271
2272 return *str && number && fnumber;
2273 }
2274 '
2275
2276 # Test code for whether the C compiler supports C99 (body of main).
2277 ac_c_conftest_c99_main='
2278 // Check bool.
2279 _Bool success = false;
2280 success |= (argc != 0);
2281
2282 // Check restrict.
2283 if (test_restrict ("String literal") == 0)
2284 success = true;
2285 char *restrict newvar = "Another string";
2286
2287 // Check varargs.
2288 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289 test_varargs_macros ();
2290
2291 // Check flexible array members.
2292 struct incomplete_array *ia =
2293 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294 ia->datasize = 10;
2295 for (int i = 0; i < ia->datasize; ++i)
2296 ia->data[i] = i * 1.234;
2297 // Work around memory leak warnings.
2298 free (ia);
2299
2300 // Check named initializers.
2301 struct named_init ni = {
2302 .number = 34,
2303 .name = L"Test wide string",
2304 .average = 543.34343,
2305 };
2306
2307 ni.number = 58;
2308
2309 int dynamic_array[ni.number];
2310 dynamic_array[0] = argv[0][0];
2311 dynamic_array[ni.number - 1] = 543;
2312
2313 // work around unused variable warnings
2314 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315 || dynamic_array[ni.number - 1] != 543);
2316 '
2317
2318 # Test code for whether the C compiler supports C11 (global declarations)
2319 ac_c_conftest_c11_globals='
2320 /* Does the compiler advertise C11 conformance? */
2321 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322 # error "Compiler does not advertise C11 conformance"
2323 #endif
2324
2325 // Check _Alignas.
2326 char _Alignas (double) aligned_as_double;
2327 char _Alignas (0) no_special_alignment;
2328 extern char aligned_as_int;
2329 char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331 // Check _Alignof.
2332 enum
2333 {
2334 int_alignment = _Alignof (int),
2335 int_array_alignment = _Alignof (int[100]),
2336 char_alignment = _Alignof (char)
2337 };
2338 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340 // Check _Noreturn.
2341 int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343 // Check _Static_assert.
2344 struct test_static_assert
2345 {
2346 int x;
2347 _Static_assert (sizeof (int) <= sizeof (long int),
2348 "_Static_assert does not work in struct");
2349 long int y;
2350 };
2351
2352 // Check UTF-8 literals.
2353 #define u8 syntax error!
2354 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356 // Check duplicate typedefs.
2357 typedef long *long_ptr;
2358 typedef long int *long_ptr;
2359 typedef long_ptr long_ptr;
2360
2361 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362 struct anonymous
2363 {
2364 union {
2365 struct { int i; int j; };
2366 struct { int k; long int l; } w;
2367 };
2368 int m;
2369 } v1;
2370 '
2371
2372 # Test code for whether the C compiler supports C11 (body of main).
2373 ac_c_conftest_c11_main='
2374 _Static_assert ((offsetof (struct anonymous, i)
2375 == offsetof (struct anonymous, w.k)),
2376 "Anonymous union alignment botch");
2377 v1.i = 2;
2378 v1.w.k = 5;
2379 ok |= v1.i != 5;
2380 '
2381
2382 # Test code for whether the C compiler supports C11 (complete).
2383 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384 ${ac_c_conftest_c99_globals}
2385 ${ac_c_conftest_c11_globals}
2386
2387 int
2388 main (int argc, char **argv)
2389 {
2390 int ok = 0;
2391 ${ac_c_conftest_c89_main}
2392 ${ac_c_conftest_c99_main}
2393 ${ac_c_conftest_c11_main}
2394 return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C99 (complete).
2399 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400 ${ac_c_conftest_c99_globals}
2401
2402 int
2403 main (int argc, char **argv)
2404 {
2405 int ok = 0;
2406 ${ac_c_conftest_c89_main}
2407 ${ac_c_conftest_c99_main}
2408 return ok;
2409 }
2410 "
2411
2412 # Test code for whether the C compiler supports C89 (complete).
2413 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 return ok;
2421 }
2422 "
2423
2424 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2425 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2426 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2427 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2428 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2429 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2430 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2431 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2432 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2433 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2434
2435 # Auxiliary files required by this configure script.
2436 ac_aux_files="config.guess config.sub missing install-sh compile"
2437
2438 # Locations in which to look for auxiliary files.
2439 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2440
2441 # Search for a directory containing all of the required auxiliary files,
2442 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2443 # If we don't find one directory that contains all the files we need,
2444 # we report the set of missing files from the *first* directory in
2445 # $ac_aux_dir_candidates and give up.
2446 ac_missing_aux_files=""
2447 ac_first_candidate=:
2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 as_found=false
2451 for as_dir in $ac_aux_dir_candidates
2452 do
2453 IFS=$as_save_IFS
2454 case $as_dir in #(((
2455 '') as_dir=./ ;;
2456 */) ;;
2457 *) as_dir=$as_dir/ ;;
2458 esac
2459 as_found=:
2460
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2462 ac_aux_dir_found=yes
2463 ac_install_sh=
2464 for ac_aux in $ac_aux_files
2465 do
2466 # As a special case, if "install-sh" is required, that requirement
2467 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2468 # and $ac_install_sh is set appropriately for whichever one is found.
2469 if test x"$ac_aux" = x"install-sh"
2470 then
2471 if test -f "${as_dir}install-sh"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2473 ac_install_sh="${as_dir}install-sh -c"
2474 elif test -f "${as_dir}install.sh"; then
2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2476 ac_install_sh="${as_dir}install.sh -c"
2477 elif test -f "${as_dir}shtool"; then
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2479 ac_install_sh="${as_dir}shtool install -c"
2480 else
2481 ac_aux_dir_found=no
2482 if $ac_first_candidate; then
2483 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2484 else
2485 break
2486 fi
2487 fi
2488 else
2489 if test -f "${as_dir}${ac_aux}"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2491 else
2492 ac_aux_dir_found=no
2493 if $ac_first_candidate; then
2494 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2495 else
2496 break
2497 fi
2498 fi
2499 fi
2500 done
2501 if test "$ac_aux_dir_found" = yes; then
2502 ac_aux_dir="$as_dir"
2503 break
2504 fi
2505 ac_first_candidate=false
2506
2507 as_found=false
2508 done
2509 IFS=$as_save_IFS
2510 if $as_found
2511 then :
2512
2513 else case e in #(
2514 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2515 esac
2516 fi
2517
2518
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 if test -f "${ac_aux_dir}config.guess"; then
2524 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2525 fi
2526 if test -f "${ac_aux_dir}config.sub"; then
2527 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2528 fi
2529 if test -f "$ac_aux_dir/configure"; then
2530 ac_configure="$SHELL ${ac_aux_dir}configure"
2531 fi
2532
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2544 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2548 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2558 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2562 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2564 fi
2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2566 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2568 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2581 fi
2582 done
2583 if $ac_cache_corrupted; then
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2585 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2589 and start over" "$LINENO" 5
2590 fi
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603 ac_config_headers="$ac_config_headers config.h"
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616 # Expand $ac_aux_dir to an absolute path.
2617 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2618
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 printf %s "checking for $ac_word... " >&6; }
2629 if test ${ac_cv_prog_CC+y}
2630 then :
2631 printf %s "(cached) " >&6
2632 else case e in #(
2633 e) if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 case $as_dir in #(((
2641 '') as_dir=./ ;;
2642 */) ;;
2643 *) as_dir=$as_dir/ ;;
2644 esac
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi ;;
2656 esac
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 printf "%s\n" "$CC" >&6; }
2662 else
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 printf "%s\n" "no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$ac_cv_prog_CC"; then
2670 ac_ct_CC=$CC
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc; ac_word=$2
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 printf %s "checking for $ac_word... " >&6; }
2675 if test ${ac_cv_prog_ac_ct_CC+y}
2676 then :
2677 printf %s "(cached) " >&6
2678 else case e in #(
2679 e) if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 case $as_dir in #(((
2687 '') as_dir=./ ;;
2688 */) ;;
2689 *) as_dir=$as_dir/ ;;
2690 esac
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CC="gcc"
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi ;;
2702 esac
2703 fi
2704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705 if test -n "$ac_ct_CC"; then
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2707 printf "%s\n" "$ac_ct_CC" >&6; }
2708 else
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 printf "%s\n" "no" >&6; }
2711 fi
2712
2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 CC=$ac_ct_CC
2723 fi
2724 else
2725 CC="$ac_cv_prog_CC"
2726 fi
2727
2728 if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2731 set dummy ${ac_tool_prefix}cc; ac_word=$2
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 printf %s "checking for $ac_word... " >&6; }
2734 if test ${ac_cv_prog_CC+y}
2735 then :
2736 printf %s "(cached) " >&6
2737 else case e in #(
2738 e) if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 case $as_dir in #(((
2746 '') as_dir=./ ;;
2747 */) ;;
2748 *) as_dir=$as_dir/ ;;
2749 esac
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_CC="${ac_tool_prefix}cc"
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi ;;
2761 esac
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 printf "%s\n" "$CC" >&6; }
2767 else
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 printf "%s\n" "no" >&6; }
2770 fi
2771
2772
2773 fi
2774 fi
2775 if test -z "$CC"; then
2776 # Extract the first word of "cc", so it can be a program name with args.
2777 set dummy cc; ac_word=$2
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 printf %s "checking for $ac_word... " >&6; }
2780 if test ${ac_cv_prog_CC+y}
2781 then :
2782 printf %s "(cached) " >&6
2783 else case e in #(
2784 e) if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 case $as_dir in #(((
2793 '') as_dir=./ ;;
2794 */) ;;
2795 *) as_dir=$as_dir/ ;;
2796 esac
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2799 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2800 ac_prog_rejected=yes
2801 continue
2802 fi
2803 ac_cv_prog_CC="cc"
2804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 if test $ac_prog_rejected = yes; then
2812 # We found a bogon in the path, so make sure we never use it.
2813 set dummy $ac_cv_prog_CC
2814 shift
2815 if test $# != 0; then
2816 # We chose a different compiler from the bogus one.
2817 # However, it has the same basename, so the bogon will be chosen
2818 # first if we set CC to just the basename; use the full file name.
2819 shift
2820 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2821 fi
2822 fi
2823 fi ;;
2824 esac
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 printf "%s\n" "$CC" >&6; }
2830 else
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 printf "%s\n" "no" >&6; }
2833 fi
2834
2835
2836 fi
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in cl.exe
2840 do
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 printf %s "checking for $ac_word... " >&6; }
2845 if test ${ac_cv_prog_CC+y}
2846 then :
2847 printf %s "(cached) " >&6
2848 else case e in #(
2849 e) if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 case $as_dir in #(((
2857 '') as_dir=./ ;;
2858 */) ;;
2859 *) as_dir=$as_dir/ ;;
2860 esac
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi ;;
2872 esac
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 printf "%s\n" "$CC" >&6; }
2878 else
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 printf "%s\n" "no" >&6; }
2881 fi
2882
2883
2884 test -n "$CC" && break
2885 done
2886 fi
2887 if test -z "$CC"; then
2888 ac_ct_CC=$CC
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy $ac_prog; ac_word=$2
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 printf %s "checking for $ac_word... " >&6; }
2895 if test ${ac_cv_prog_ac_ct_CC+y}
2896 then :
2897 printf %s "(cached) " >&6
2898 else case e in #(
2899 e) if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 case $as_dir in #(((
2907 '') as_dir=./ ;;
2908 */) ;;
2909 *) as_dir=$as_dir/ ;;
2910 esac
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC="$ac_prog"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi ;;
2922 esac
2923 fi
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2927 printf "%s\n" "$ac_ct_CC" >&6; }
2928 else
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 printf "%s\n" "no" >&6; }
2931 fi
2932
2933
2934 test -n "$ac_ct_CC" && break
2935 done
2936
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946 CC=$ac_ct_CC
2947 fi
2948 fi
2949
2950 fi
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}clang; ac_word=$2
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 printf %s "checking for $ac_word... " >&6; }
2957 if test ${ac_cv_prog_CC+y}
2958 then :
2959 printf %s "(cached) " >&6
2960 else case e in #(
2961 e) if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 case $as_dir in #(((
2969 '') as_dir=./ ;;
2970 */) ;;
2971 *) as_dir=$as_dir/ ;;
2972 esac
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="${ac_tool_prefix}clang"
2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi ;;
2984 esac
2985 fi
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 printf "%s\n" "$CC" >&6; }
2990 else
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2993 fi
2994
2995
2996 fi
2997 if test -z "$ac_cv_prog_CC"; then
2998 ac_ct_CC=$CC
2999 # Extract the first word of "clang", so it can be a program name with args.
3000 set dummy clang; ac_word=$2
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 printf %s "checking for $ac_word... " >&6; }
3003 if test ${ac_cv_prog_ac_ct_CC+y}
3004 then :
3005 printf %s "(cached) " >&6
3006 else case e in #(
3007 e) if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 case $as_dir in #(((
3015 '') as_dir=./ ;;
3016 */) ;;
3017 *) as_dir=$as_dir/ ;;
3018 esac
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC="clang"
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi ;;
3030 esac
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 printf "%s\n" "$ac_ct_CC" >&6; }
3036 else
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 printf "%s\n" "no" >&6; }
3039 fi
3040
3041 if test "x$ac_ct_CC" = x; then
3042 CC=""
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050 CC=$ac_ct_CC
3051 fi
3052 else
3053 CC="$ac_cv_prog_CC"
3054 fi
3055
3056 fi
3057
3058
3059 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3060 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3061 as_fn_error $? "no acceptable C compiler found in \$PATH
3062 See 'config.log' for more details" "$LINENO" 5; }
3063
3064 # Provide some information about the compiler.
3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3066 set X $ac_compile
3067 ac_compiler=$2
3068 for ac_option in --version -v -V -qversion -version; do
3069 { { ac_try="$ac_compiler $ac_option >&5"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 printf "%s\n" "$ac_try_echo"; } >&5
3076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077 ac_status=$?
3078 if test -s conftest.err; then
3079 sed '10a\
3080 ... rest of stderr output deleted ...
3081 10q' conftest.err >conftest.er1
3082 cat conftest.er1 >&5
3083 fi
3084 rm -f conftest.er1 conftest.err
3085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }
3087 done
3088
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3091
3092 int
3093 main (void)
3094 {
3095
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 ac_clean_files_save=$ac_clean_files
3101 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3102 # Try to create an executable without -o first, disregard a.out.
3103 # It will help us diagnose broken compilers, and finding out an intuition
3104 # of exeext.
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3106 printf %s "checking whether the C compiler works... " >&6; }
3107 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3108
3109 # The possible output files:
3110 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3111
3112 ac_rmfiles=
3113 for ac_file in $ac_files
3114 do
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118 esac
3119 done
3120 rm -f $ac_rmfiles
3121
3122 if { { ac_try="$ac_link_default"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 printf "%s\n" "$ac_try_echo"; } >&5
3129 (eval "$ac_link_default") 2>&5
3130 ac_status=$?
3131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }
3133 then :
3134 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3135 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3138 # Autoconf.
3139 for ac_file in $ac_files ''
3140 do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3144 ;;
3145 [ab].out )
3146 # We found the default executable, but exeext='' is most
3147 # certainly right.
3148 break;;
3149 *.* )
3150 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3151 then :; else
3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 fi
3154 # We set ac_cv_exeext here because the later test for it is not
3155 # safe: cross compilers may not add the suffix if given an '-o'
3156 # argument, so we may need to know it at that point already.
3157 # Even if this section looks crufty: it has the advantage of
3158 # actually working.
3159 break;;
3160 * )
3161 break;;
3162 esac
3163 done
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165
3166 else case e in #(
3167 e) ac_file='' ;;
3168 esac
3169 fi
3170 if test -z "$ac_file"
3171 then :
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 printf "%s\n" "no" >&6; }
3174 printf "%s\n" "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3178 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3179 as_fn_error 77 "C compiler cannot create executables
3180 See 'config.log' for more details" "$LINENO" 5; }
3181 else case e in #(
3182 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3183 printf "%s\n" "yes" >&6; } ;;
3184 esac
3185 fi
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 printf %s "checking for C compiler default output file name... " >&6; }
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3189 printf "%s\n" "$ac_file" >&6; }
3190 ac_exeext=$ac_cv_exeext
3191
3192 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3193 ac_clean_files=$ac_clean_files_save
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3195 printf %s "checking for suffix of executables... " >&6; }
3196 if { { ac_try="$ac_link"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 printf "%s\n" "$ac_try_echo"; } >&5
3203 (eval "$ac_link") 2>&5
3204 ac_status=$?
3205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 then :
3208 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3209 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3210 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3211 # 'rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 break;;
3218 * ) break;;
3219 esac
3220 done
3221 else case e in #(
3222 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3223 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3225 See 'config.log' for more details" "$LINENO" 5; } ;;
3226 esac
3227 fi
3228 rm -f conftest conftest$ac_cv_exeext
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230 printf "%s\n" "$ac_cv_exeext" >&6; }
3231
3232 rm -f conftest.$ac_ext
3233 EXEEXT=$ac_cv_exeext
3234 ac_exeext=$EXEEXT
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237 #include <stdio.h>
3238 int
3239 main (void)
3240 {
3241 FILE *f = fopen ("conftest.out", "w");
3242 if (!f)
3243 return 1;
3244 return ferror (f) || fclose (f) != 0;
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 ac_clean_files="$ac_clean_files conftest.out"
3251 # Check that the compiler produces executables we can run. If not, either
3252 # the compiler is broken, or we cross compile.
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3254 printf %s "checking whether we are cross compiling... " >&6; }
3255 if test "$cross_compiling" != yes; then
3256 { { ac_try="$ac_link"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 printf "%s\n" "$ac_try_echo"; } >&5
3263 (eval "$ac_link") 2>&5
3264 ac_status=$?
3265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267 if { ac_try='./conftest$ac_cv_exeext'
3268 { { case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 printf "%s\n" "$ac_try_echo"; } >&5
3274 (eval "$ac_try") 2>&5
3275 ac_status=$?
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; }; then
3278 cross_compiling=no
3279 else
3280 if test "$cross_compiling" = maybe; then
3281 cross_compiling=yes
3282 else
3283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3284 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3285 as_fn_error 77 "cannot run C compiled programs.
3286 If you meant to cross compile, use '--host'.
3287 See 'config.log' for more details" "$LINENO" 5; }
3288 fi
3289 fi
3290 fi
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3292 printf "%s\n" "$cross_compiling" >&6; }
3293
3294 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3295 conftest.o conftest.obj conftest.out
3296 ac_clean_files=$ac_clean_files_save
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3298 printf %s "checking for suffix of object files... " >&6; }
3299 if test ${ac_cv_objext+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else case e in #(
3303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main (void)
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.o conftest.obj
3315 if { { ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 printf "%s\n" "$ac_try_echo"; } >&5
3322 (eval "$ac_compile") 2>&5
3323 ac_status=$?
3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334 done
3335 else case e in #(
3336 e) printf "%s\n" "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3340 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of object files: cannot compile
3342 See 'config.log' for more details" "$LINENO" 5; } ;;
3343 esac
3344 fi
3345 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3346 esac
3347 fi
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3349 printf "%s\n" "$ac_cv_objext" >&6; }
3350 OBJEXT=$ac_cv_objext
3351 ac_objext=$OBJEXT
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3353 printf %s "checking whether the compiler supports GNU C... " >&6; }
3354 if test ${ac_cv_c_compiler_gnu+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else case e in #(
3358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main (void)
3363 {
3364 #ifndef __GNUC__
3365 choke me
3366 #endif
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"
3373 then :
3374 ac_compiler_gnu=yes
3375 else case e in #(
3376 e) ac_compiler_gnu=no ;;
3377 esac
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381 ;;
3382 esac
3383 fi
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387
3388 if test $ac_compiler_gnu = yes; then
3389 GCC=yes
3390 else
3391 GCC=
3392 fi
3393 ac_test_CFLAGS=${CFLAGS+y}
3394 ac_save_CFLAGS=$CFLAGS
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3396 printf %s "checking whether $CC accepts -g... " >&6; }
3397 if test ${ac_cv_prog_cc_g+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else case e in #(
3401 e) ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main (void)
3410 {
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"
3417 then :
3418 ac_cv_prog_cc_g=yes
3419 else case e in #(
3420 e) CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main (void)
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"
3433 then :
3434
3435 else case e in #(
3436 e) ac_c_werror_flag=$ac_save_c_werror_flag
3437 CFLAGS="-g"
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main (void)
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"
3450 then :
3451 ac_cv_prog_cc_g=yes
3452 fi
3453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3454 esac
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3457 esac
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3460 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3461 esac
3462 fi
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3465 if test $ac_test_CFLAGS; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473 else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479 fi
3480 ac_prog_cc_stdc=no
3481 if test x$ac_prog_cc_stdc = xno
3482 then :
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3484 printf %s "checking for $CC option to enable C11 features... " >&6; }
3485 if test ${ac_cv_prog_cc_c11+y}
3486 then :
3487 printf %s "(cached) " >&6
3488 else case e in #(
3489 e) ac_cv_prog_cc_c11=no
3490 ac_save_CC=$CC
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493 $ac_c_conftest_c11_program
3494 _ACEOF
3495 for ac_arg in '' -std=gnu11
3496 do
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"
3499 then :
3500 ac_cv_prog_cc_c11=$ac_arg
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.beam
3503 test "x$ac_cv_prog_cc_c11" != "xno" && break
3504 done
3505 rm -f conftest.$ac_ext
3506 CC=$ac_save_CC ;;
3507 esac
3508 fi
3509
3510 if test "x$ac_cv_prog_cc_c11" = xno
3511 then :
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513 printf "%s\n" "unsupported" >&6; }
3514 else case e in #(
3515 e) if test "x$ac_cv_prog_cc_c11" = x
3516 then :
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3518 printf "%s\n" "none needed" >&6; }
3519 else case e in #(
3520 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3521 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3522 CC="$CC $ac_cv_prog_cc_c11" ;;
3523 esac
3524 fi
3525 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3526 ac_prog_cc_stdc=c11 ;;
3527 esac
3528 fi
3529 fi
3530 if test x$ac_prog_cc_stdc = xno
3531 then :
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3533 printf %s "checking for $CC option to enable C99 features... " >&6; }
3534 if test ${ac_cv_prog_cc_c99+y}
3535 then :
3536 printf %s "(cached) " >&6
3537 else case e in #(
3538 e) ac_cv_prog_cc_c99=no
3539 ac_save_CC=$CC
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 $ac_c_conftest_c99_program
3543 _ACEOF
3544 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3545 do
3546 CC="$ac_save_CC $ac_arg"
3547 if ac_fn_c_try_compile "$LINENO"
3548 then :
3549 ac_cv_prog_cc_c99=$ac_arg
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.beam
3552 test "x$ac_cv_prog_cc_c99" != "xno" && break
3553 done
3554 rm -f conftest.$ac_ext
3555 CC=$ac_save_CC ;;
3556 esac
3557 fi
3558
3559 if test "x$ac_cv_prog_cc_c99" = xno
3560 then :
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3562 printf "%s\n" "unsupported" >&6; }
3563 else case e in #(
3564 e) if test "x$ac_cv_prog_cc_c99" = x
3565 then :
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 printf "%s\n" "none needed" >&6; }
3568 else case e in #(
3569 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3570 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3571 CC="$CC $ac_cv_prog_cc_c99" ;;
3572 esac
3573 fi
3574 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3575 ac_prog_cc_stdc=c99 ;;
3576 esac
3577 fi
3578 fi
3579 if test x$ac_prog_cc_stdc = xno
3580 then :
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3582 printf %s "checking for $CC option to enable C89 features... " >&6; }
3583 if test ${ac_cv_prog_cc_c89+y}
3584 then :
3585 printf %s "(cached) " >&6
3586 else case e in #(
3587 e) ac_cv_prog_cc_c89=no
3588 ac_save_CC=$CC
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591 $ac_c_conftest_c89_program
3592 _ACEOF
3593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 do
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"
3597 then :
3598 ac_cv_prog_cc_c89=$ac_arg
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.beam
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 done
3603 rm -f conftest.$ac_ext
3604 CC=$ac_save_CC ;;
3605 esac
3606 fi
3607
3608 if test "x$ac_cv_prog_cc_c89" = xno
3609 then :
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611 printf "%s\n" "unsupported" >&6; }
3612 else case e in #(
3613 e) if test "x$ac_cv_prog_cc_c89" = x
3614 then :
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616 printf "%s\n" "none needed" >&6; }
3617 else case e in #(
3618 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3620 CC="$CC $ac_cv_prog_cc_c89" ;;
3621 esac
3622 fi
3623 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3624 ac_prog_cc_stdc=c89 ;;
3625 esac
3626 fi
3627 fi
3628
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3642 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3643 if test ${am_cv_prog_cc_c_o+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main (void)
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 # Make sure it works both with $CC and with simple cc.
3659 # Following AC_PROG_CC_C_O, we do the test twice because some
3660 # compilers refuse to overwrite an existing .o file with -o,
3661 # though they will create one.
3662 am_cv_prog_cc_c_o=yes
3663 for am_i in 1 2; do
3664 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3665 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } \
3669 && test -f conftest2.$ac_objext; then
3670 : OK
3671 else
3672 am_cv_prog_cc_c_o=no
3673 break
3674 fi
3675 done
3676 rm -f core conftest*
3677 unset am_i ;;
3678 esac
3679 fi
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3681 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3682 if test "$am_cv_prog_cc_c_o" != yes; then
3683 # Losing compiler, so override with the script.
3684 # FIXME: It is wrong to rewrite CC.
3685 # But if we don't then we get into trouble of one sort or another.
3686 # A longer-term fix would be to have automake use am__CC in this case,
3687 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3688 CC="$am_aux_dir/compile $CC"
3689 fi
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696
3697
3698 ac_header= ac_cache=
3699 for ac_item in $ac_header_c_list
3700 do
3701 if test $ac_cache; then
3702 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3703 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3704 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3705 fi
3706 ac_header= ac_cache=
3707 elif test $ac_header; then
3708 ac_cache=$ac_item
3709 else
3710 ac_header=$ac_item
3711 fi
3712 done
3713
3714
3715
3716
3717
3718
3719
3720
3721 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3722 then :
3723
3724 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3725
3726 fi
3727
3728
3729
3730
3731
3732
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3734 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3735 if test ${ac_cv_safe_to_define___extensions__+y}
3736 then :
3737 printf %s "(cached) " >&6
3738 else case e in #(
3739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 # define __EXTENSIONS__ 1
3743 $ac_includes_default
3744 int
3745 main (void)
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"
3753 then :
3754 ac_cv_safe_to_define___extensions__=yes
3755 else case e in #(
3756 e) ac_cv_safe_to_define___extensions__=no ;;
3757 esac
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3760 esac
3761 fi
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3763 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3764
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3766 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3767 if test ${ac_cv_should_define__xopen_source+y}
3768 then :
3769 printf %s "(cached) " >&6
3770 else case e in #(
3771 e) ac_cv_should_define__xopen_source=no
3772 if test $ac_cv_header_wchar_h = yes
3773 then :
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 #include <wchar.h>
3778 mbstate_t x;
3779 int
3780 main (void)
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"
3788 then :
3789
3790 else case e in #(
3791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 #define _XOPEN_SOURCE 500
3795 #include <wchar.h>
3796 mbstate_t x;
3797 int
3798 main (void)
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"
3806 then :
3807 ac_cv_should_define__xopen_source=yes
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3810 esac
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3813 fi ;;
3814 esac
3815 fi
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3817 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3818
3819 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3820
3821 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3822
3823 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3824
3825 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3826
3827 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3828
3829 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3830
3831 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3832
3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3834
3835 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3836
3837 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3838
3839 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3840
3841 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3842
3843 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3844
3845 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3846
3847 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3848
3849 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3850
3851 if test $ac_cv_header_minix_config_h = yes
3852 then :
3853 MINIX=yes
3854 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3855
3856 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3857
3858 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3859
3860 else case e in #(
3861 e) MINIX= ;;
3862 esac
3863 fi
3864 if test $ac_cv_safe_to_define___extensions__ = yes
3865 then :
3866 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3867
3868 fi
3869 if test $ac_cv_should_define__xopen_source = yes
3870 then :
3871 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3872
3873 fi
3874
3875
3876 # Initialize Automake
3877 am__api_version='1.16'
3878
3879
3880 # Find a good install program. We prefer a C program (faster),
3881 # so one script is as good as another. But avoid the broken or
3882 # incompatible versions:
3883 # SysV /etc/install, /usr/sbin/install
3884 # SunOS /usr/etc/install
3885 # IRIX /sbin/install
3886 # AIX /bin/install
3887 # AmigaOS /C/install, which installs bootblocks on floppy discs
3888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891 # OS/2's system install, which has a completely different semantic
3892 # ./install, which can be erroneously created by make from ./install.sh.
3893 # Reject install programs that cannot install multiple files.
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3895 printf %s "checking for a BSD-compatible install... " >&6; }
3896 if test -z "$INSTALL"; then
3897 if test ${ac_cv_path_install+y}
3898 then :
3899 printf %s "(cached) " >&6
3900 else case e in #(
3901 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 case $as_dir in #(((
3906 '') as_dir=./ ;;
3907 */) ;;
3908 *) as_dir=$as_dir/ ;;
3909 esac
3910 # Account for fact that we put trailing slashes in our PATH walk.
3911 case $as_dir in #((
3912 ./ | /[cC]/* | \
3913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3914 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3915 /usr/ucb/* ) ;;
3916 *)
3917 # OSF1 and SCO ODT 3.0 have their own names for install.
3918 # Don't use installbsd from OSF since it installs stuff as root
3919 # by default.
3920 for ac_prog in ginstall scoinst install; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3923 if test $ac_prog = install &&
3924 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925 # AIX install. It has an incompatible calling convention.
3926 :
3927 elif test $ac_prog = install &&
3928 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # program-specific install script used by HP pwplus--don't use.
3930 :
3931 else
3932 rm -rf conftest.one conftest.two conftest.dir
3933 echo one > conftest.one
3934 echo two > conftest.two
3935 mkdir conftest.dir
3936 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3937 test -s conftest.one && test -s conftest.two &&
3938 test -s conftest.dir/conftest.one &&
3939 test -s conftest.dir/conftest.two
3940 then
3941 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3942 break 3
3943 fi
3944 fi
3945 fi
3946 done
3947 done
3948 ;;
3949 esac
3950
3951 done
3952 IFS=$as_save_IFS
3953
3954 rm -rf conftest.one conftest.two conftest.dir
3955 ;;
3956 esac
3957 fi
3958 if test ${ac_cv_path_install+y}; then
3959 INSTALL=$ac_cv_path_install
3960 else
3961 # As a last resort, use the slow shell script. Don't cache a
3962 # value for INSTALL within a source directory, because that will
3963 # break other packages using the cache if that directory is
3964 # removed, or if the value is a relative name.
3965 INSTALL=$ac_install_sh
3966 fi
3967 fi
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3969 printf "%s\n" "$INSTALL" >&6; }
3970
3971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3972 # It thinks the first close brace ends the variable substitution.
3973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3974
3975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3976
3977 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3978
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3980 printf %s "checking whether build environment is sane... " >&6; }
3981 # Reject unsafe characters in $srcdir or the absolute working directory
3982 # name. Accept space and tab only in the latter.
3983 am_lf='
3984 '
3985 case `pwd` in
3986 *[\\\"\#\$\&\'\`$am_lf]*)
3987 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3988 esac
3989 case $srcdir in
3990 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3991 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3992 esac
3993
3994 # Do 'set' in a subshell so we don't clobber the current shell's
3995 # arguments. Must try -L first in case configure is actually a
3996 # symlink; some systems play weird games with the mod time of symlinks
3997 # (eg FreeBSD returns the mod time of the symlink's containing
3998 # directory).
3999 if (
4000 am_has_slept=no
4001 for am_try in 1 2; do
4002 echo "timestamp, slept: $am_has_slept" > conftest.file
4003 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4004 if test "$*" = "X"; then
4005 # -L didn't work.
4006 set X `ls -t "$srcdir/configure" conftest.file`
4007 fi
4008 if test "$*" != "X $srcdir/configure conftest.file" \
4009 && test "$*" != "X conftest.file $srcdir/configure"; then
4010
4011 # If neither matched, then we have a broken ls. This can happen
4012 # if, for instance, CONFIG_SHELL is bash and it inherits a
4013 # broken ls alias from the environment. This has actually
4014 # happened. Such a system could not be considered "sane".
4015 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4016 alias in your environment" "$LINENO" 5
4017 fi
4018 if test "$2" = conftest.file || test $am_try -eq 2; then
4019 break
4020 fi
4021 # Just in case.
4022 sleep 1
4023 am_has_slept=yes
4024 done
4025 test "$2" = conftest.file
4026 )
4027 then
4028 # Ok.
4029 :
4030 else
4031 as_fn_error $? "newly created file is older than distributed files!
4032 Check your system clock" "$LINENO" 5
4033 fi
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035 printf "%s\n" "yes" >&6; }
4036 # If we didn't sleep, we still need to ensure time stamps of config.status and
4037 # generated files are strictly newer.
4038 am_sleep_pid=
4039 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4040 ( sleep 1 ) &
4041 am_sleep_pid=$!
4042 fi
4043
4044 rm -f conftest.file
4045
4046 test "$program_prefix" != NONE &&
4047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4048 # Use a double $ so make ignores it.
4049 test "$program_suffix" != NONE &&
4050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4051 # Double any \ or $.
4052 # By default was 's,x,x', remove it if useless.
4053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4054 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4055
4056
4057 if test x"${MISSING+set}" != xset; then
4058 MISSING="\${SHELL} '$am_aux_dir/missing'"
4059 fi
4060 # Use eval to expand $SHELL
4061 if eval "$MISSING --is-lightweight"; then
4062 am_missing_run="$MISSING "
4063 else
4064 am_missing_run=
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4066 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4067 fi
4068
4069 if test x"${install_sh+set}" != xset; then
4070 case $am_aux_dir in
4071 *\ * | *\ *)
4072 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4073 *)
4074 install_sh="\${SHELL} $am_aux_dir/install-sh"
4075 esac
4076 fi
4077
4078 # Installed binaries are usually stripped using 'strip' when the user
4079 # run "make install-strip". However 'strip' might not be the right
4080 # tool to use in cross-compilation environments, therefore Automake
4081 # will honor the 'STRIP' environment variable to overrule this program.
4082 if test "$cross_compiling" != no; then
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}strip; ac_word=$2
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 printf %s "checking for $ac_word... " >&6; }
4088 if test ${ac_cv_prog_STRIP+y}
4089 then :
4090 printf %s "(cached) " >&6
4091 else case e in #(
4092 e) if test -n "$STRIP"; then
4093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 case $as_dir in #(((
4100 '') as_dir=./ ;;
4101 */) ;;
4102 *) as_dir=$as_dir/ ;;
4103 esac
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi ;;
4115 esac
4116 fi
4117 STRIP=$ac_cv_prog_STRIP
4118 if test -n "$STRIP"; then
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4120 printf "%s\n" "$STRIP" >&6; }
4121 else
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 printf "%s\n" "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 if test -z "$ac_cv_prog_STRIP"; then
4129 ac_ct_STRIP=$STRIP
4130 # Extract the first word of "strip", so it can be a program name with args.
4131 set dummy strip; ac_word=$2
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 printf %s "checking for $ac_word... " >&6; }
4134 if test ${ac_cv_prog_ac_ct_STRIP+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else case e in #(
4138 e) if test -n "$ac_ct_STRIP"; then
4139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 case $as_dir in #(((
4146 '') as_dir=./ ;;
4147 */) ;;
4148 *) as_dir=$as_dir/ ;;
4149 esac
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_ac_ct_STRIP="strip"
4153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 fi ;;
4161 esac
4162 fi
4163 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4164 if test -n "$ac_ct_STRIP"; then
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4166 printf "%s\n" "$ac_ct_STRIP" >&6; }
4167 else
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 printf "%s\n" "no" >&6; }
4170 fi
4171
4172 if test "x$ac_ct_STRIP" = x; then
4173 STRIP=":"
4174 else
4175 case $cross_compiling:$ac_tool_warned in
4176 yes:)
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4179 ac_tool_warned=yes ;;
4180 esac
4181 STRIP=$ac_ct_STRIP
4182 fi
4183 else
4184 STRIP="$ac_cv_prog_STRIP"
4185 fi
4186
4187 fi
4188 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4189
4190
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4192 printf %s "checking for a race-free mkdir -p... " >&6; }
4193 if test -z "$MKDIR_P"; then
4194 if test ${ac_cv_path_mkdir+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else case e in #(
4198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4200 do
4201 IFS=$as_save_IFS
4202 case $as_dir in #(((
4203 '') as_dir=./ ;;
4204 */) ;;
4205 *) as_dir=$as_dir/ ;;
4206 esac
4207 for ac_prog in mkdir gmkdir; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4210 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4211 'mkdir ('*'coreutils) '* | \
4212 *'BusyBox '* | \
4213 'mkdir (fileutils) '4.1*)
4214 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4215 break 3;;
4216 esac
4217 done
4218 done
4219 done
4220 IFS=$as_save_IFS
4221 ;;
4222 esac
4223 fi
4224
4225 test -d ./--version && rmdir ./--version
4226 if test ${ac_cv_path_mkdir+y}; then
4227 MKDIR_P="$ac_cv_path_mkdir -p"
4228 else
4229 # As a last resort, use plain mkdir -p,
4230 # in the hope it doesn't have the bugs of ancient mkdir.
4231 MKDIR_P='mkdir -p'
4232 fi
4233 fi
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4235 printf "%s\n" "$MKDIR_P" >&6; }
4236
4237 for ac_prog in gawk mawk nawk awk
4238 do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 printf %s "checking for $ac_word... " >&6; }
4243 if test ${ac_cv_prog_AWK+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else case e in #(
4247 e) if test -n "$AWK"; then
4248 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 case $as_dir in #(((
4255 '') as_dir=./ ;;
4256 */) ;;
4257 *) as_dir=$as_dir/ ;;
4258 esac
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_AWK="$ac_prog"
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi ;;
4270 esac
4271 fi
4272 AWK=$ac_cv_prog_AWK
4273 if test -n "$AWK"; then
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4275 printf "%s\n" "$AWK" >&6; }
4276 else
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 printf "%s\n" "no" >&6; }
4279 fi
4280
4281
4282 test -n "$AWK" && break
4283 done
4284
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4286 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4287 set x ${MAKE-make}
4288 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4289 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else case e in #(
4293 e) cat >conftest.make <<\_ACEOF
4294 SHELL = /bin/sh
4295 all:
4296 @echo '@@@%%%=$(MAKE)=@@@%%%'
4297 _ACEOF
4298 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4299 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4300 *@@@%%%=?*=@@@%%%*)
4301 eval ac_cv_prog_make_${ac_make}_set=yes;;
4302 *)
4303 eval ac_cv_prog_make_${ac_make}_set=no;;
4304 esac
4305 rm -f conftest.make ;;
4306 esac
4307 fi
4308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310 printf "%s\n" "yes" >&6; }
4311 SET_MAKE=
4312 else
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 printf "%s\n" "no" >&6; }
4315 SET_MAKE="MAKE=${MAKE-make}"
4316 fi
4317
4318 rm -rf .tst 2>/dev/null
4319 mkdir .tst 2>/dev/null
4320 if test -d .tst; then
4321 am__leading_dot=.
4322 else
4323 am__leading_dot=_
4324 fi
4325 rmdir .tst 2>/dev/null
4326
4327 DEPDIR="${am__leading_dot}deps"
4328
4329 ac_config_commands="$ac_config_commands depfiles"
4330
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4332 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4333 cat > confinc.mk << 'END'
4334 am__doit:
4335 @echo this is the am__doit target >confinc.out
4336 .PHONY: am__doit
4337 END
4338 am__include="#"
4339 am__quote=
4340 # BSD make does it like this.
4341 echo '.include "confinc.mk" # ignored' > confmf.BSD
4342 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4343 echo 'include confinc.mk # ignored' > confmf.GNU
4344 _am_result=no
4345 for s in GNU BSD; do
4346 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4347 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }
4351 case $?:`cat confinc.out 2>/dev/null` in #(
4352 '0:this is the am__doit target') :
4353 case $s in #(
4354 BSD) :
4355 am__include='.include' am__quote='"' ;; #(
4356 *) :
4357 am__include='include' am__quote='' ;;
4358 esac ;; #(
4359 *) :
4360 ;;
4361 esac
4362 if test "$am__include" != "#"; then
4363 _am_result="yes ($s style)"
4364 break
4365 fi
4366 done
4367 rm -f confinc.* confmf.*
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4369 printf "%s\n" "${_am_result}" >&6; }
4370
4371 # Check whether --enable-dependency-tracking was given.
4372 if test ${enable_dependency_tracking+y}
4373 then :
4374 enableval=$enable_dependency_tracking;
4375 fi
4376
4377 if test "x$enable_dependency_tracking" != xno; then
4378 am_depcomp="$ac_aux_dir/depcomp"
4379 AMDEPBACKSLASH='\'
4380 am__nodep='_no'
4381 fi
4382 if test "x$enable_dependency_tracking" != xno; then
4383 AMDEP_TRUE=
4384 AMDEP_FALSE='#'
4385 else
4386 AMDEP_TRUE='#'
4387 AMDEP_FALSE=
4388 fi
4389
4390
4391 # Check whether --enable-silent-rules was given.
4392 if test ${enable_silent_rules+y}
4393 then :
4394 enableval=$enable_silent_rules;
4395 fi
4396
4397 case $enable_silent_rules in # (((
4398 yes) AM_DEFAULT_VERBOSITY=0;;
4399 no) AM_DEFAULT_VERBOSITY=1;;
4400 *) AM_DEFAULT_VERBOSITY=1;;
4401 esac
4402 am_make=${MAKE-make}
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4404 printf %s "checking whether $am_make supports nested variables... " >&6; }
4405 if test ${am_cv_make_support_nested_variables+y}
4406 then :
4407 printf %s "(cached) " >&6
4408 else case e in #(
4409 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4410 BAR0=false
4411 BAR1=true
4412 V=1
4413 am__doit:
4414 @$(TRUE)
4415 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4416 am_cv_make_support_nested_variables=yes
4417 else
4418 am_cv_make_support_nested_variables=no
4419 fi ;;
4420 esac
4421 fi
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4423 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4424 if test $am_cv_make_support_nested_variables = yes; then
4425 AM_V='$(V)'
4426 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4427 else
4428 AM_V=$AM_DEFAULT_VERBOSITY
4429 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4430 fi
4431 AM_BACKSLASH='\'
4432
4433 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4435 # is not polluted with repeated "-I."
4436 am__isrc=' -I$(srcdir)'
4437 # test to see if srcdir already configured
4438 if test -f $srcdir/config.status; then
4439 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4440 fi
4441 fi
4442
4443 # test whether we have cygpath
4444 if test -z "$CYGPATH_W"; then
4445 if (cygpath --version) >/dev/null 2>/dev/null; then
4446 CYGPATH_W='cygpath -w'
4447 else
4448 CYGPATH_W=echo
4449 fi
4450 fi
4451
4452
4453 # Define the identity of the package.
4454 PACKAGE='mkfontscale'
4455 VERSION='1.2.3'
4456
4457
4458 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4459
4460
4461 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4462
4463 # Some tools Automake needs.
4464
4465 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4466
4467
4468 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4469
4470
4471 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4472
4473
4474 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4475
4476
4477 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4478
4479 # For better backward compatibility. To be removed once Automake 1.9.x
4480 # dies out for good. For more background, see:
4481 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4482 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4483 mkdir_p='$(MKDIR_P)'
4484
4485 # We need awk for the "check" target (and possibly the TAP driver). The
4486 # system "awk" is bad on some platforms.
4487 # Always define AMTAR for backward compatibility. Yes, it's still used
4488 # in the wild :-( We should find a proper way to deprecate it ...
4489 AMTAR='$${TAR-tar}'
4490
4491
4492 # We'll loop over all known methods to create a tar archive until one works.
4493 _am_tools='gnutar pax cpio none'
4494
4495 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4496
4497
4498
4499
4500
4501 depcc="$CC" am_compiler_list=
4502
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4504 printf %s "checking dependency style of $depcc... " >&6; }
4505 if test ${am_cv_CC_dependencies_compiler_type+y}
4506 then :
4507 printf %s "(cached) " >&6
4508 else case e in #(
4509 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4510 # We make a subdir and do the tests there. Otherwise we can end up
4511 # making bogus files that we don't know about and never remove. For
4512 # instance it was reported that on HP-UX the gcc test will end up
4513 # making a dummy file named 'D' -- because '-MD' means "put the output
4514 # in D".
4515 rm -rf conftest.dir
4516 mkdir conftest.dir
4517 # Copy depcomp to subdir because otherwise we won't find it if we're
4518 # using a relative directory.
4519 cp "$am_depcomp" conftest.dir
4520 cd conftest.dir
4521 # We will build objects and dependencies in a subdirectory because
4522 # it helps to detect inapplicable dependency modes. For instance
4523 # both Tru64's cc and ICC support -MD to output dependencies as a
4524 # side effect of compilation, but ICC will put the dependencies in
4525 # the current directory while Tru64 will put them in the object
4526 # directory.
4527 mkdir sub
4528
4529 am_cv_CC_dependencies_compiler_type=none
4530 if test "$am_compiler_list" = ""; then
4531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4532 fi
4533 am__universal=false
4534 case " $depcc " in #(
4535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4536 esac
4537
4538 for depmode in $am_compiler_list; do
4539 # Setup a source with many dependencies, because some compilers
4540 # like to wrap large dependency lists on column 80 (with \), and
4541 # we should not choose a depcomp mode which is confused by this.
4542 #
4543 # We need to recreate these files for each test, as the compiler may
4544 # overwrite some of them when testing with obscure command lines.
4545 # This happens at least with the AIX C compiler.
4546 : > sub/conftest.c
4547 for i in 1 2 3 4 5 6; do
4548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4549 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4550 # Solaris 10 /bin/sh.
4551 echo '/* dummy */' > sub/conftst$i.h
4552 done
4553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4554
4555 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4556 # mode. It turns out that the SunPro C++ compiler does not properly
4557 # handle '-M -o', and we need to detect this. Also, some Intel
4558 # versions had trouble with output in subdirs.
4559 am__obj=sub/conftest.${OBJEXT-o}
4560 am__minus_obj="-o $am__obj"
4561 case $depmode in
4562 gcc)
4563 # This depmode causes a compiler race in universal mode.
4564 test "$am__universal" = false || continue
4565 ;;
4566 nosideeffect)
4567 # After this tag, mechanisms are not by side-effect, so they'll
4568 # only be used when explicitly requested.
4569 if test "x$enable_dependency_tracking" = xyes; then
4570 continue
4571 else
4572 break
4573 fi
4574 ;;
4575 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4576 # This compiler won't grok '-c -o', but also, the minuso test has
4577 # not run yet. These depmodes are late enough in the game, and
4578 # so weak that their functioning should not be impacted.
4579 am__obj=conftest.${OBJEXT-o}
4580 am__minus_obj=
4581 ;;
4582 none) break ;;
4583 esac
4584 if depmode=$depmode \
4585 source=sub/conftest.c object=$am__obj \
4586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4588 >/dev/null 2>conftest.err &&
4589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4593 # icc doesn't choke on unknown options, it will just issue warnings
4594 # or remarks (even with -Werror). So we grep stderr for any message
4595 # that says an option was ignored or not supported.
4596 # When given -MP, icc 7.0 and 7.1 complain thusly:
4597 # icc: Command line warning: ignoring option '-M'; no argument required
4598 # The diagnosis changed in icc 8.0:
4599 # icc: Command line remark: option '-MP' not supported
4600 if (grep 'ignoring option' conftest.err ||
4601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4602 am_cv_CC_dependencies_compiler_type=$depmode
4603 break
4604 fi
4605 fi
4606 done
4607
4608 cd ..
4609 rm -rf conftest.dir
4610 else
4611 am_cv_CC_dependencies_compiler_type=none
4612 fi
4613 ;;
4614 esac
4615 fi
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4617 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4619
4620 if
4621 test "x$enable_dependency_tracking" != xno \
4622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4623 am__fastdepCC_TRUE=
4624 am__fastdepCC_FALSE='#'
4625 else
4626 am__fastdepCC_TRUE='#'
4627 am__fastdepCC_FALSE=
4628 fi
4629
4630
4631 # Variables for tags utilities; see am/tags.am
4632 if test -z "$CTAGS"; then
4633 CTAGS=ctags
4634 fi
4635
4636 if test -z "$ETAGS"; then
4637 ETAGS=etags
4638 fi
4639
4640 if test -z "$CSCOPE"; then
4641 CSCOPE=cscope
4642 fi
4643
4644
4645
4646 # POSIX will say in a future version that running "rm -f" with no argument
4647 # is OK; and we want to be able to make that assumption in our Makefile
4648 # recipes. So use an aggressive probe to check that the usage we want is
4649 # actually supported "in the wild" to an acceptable degree.
4650 # See automake bug#10828.
4651 # To make any issue more visible, cause the running configure to be aborted
4652 # by default if the 'rm' program in use doesn't match our expectations; the
4653 # user can still override this though.
4654 if rm -f && rm -fr && rm -rf; then : OK; else
4655 cat >&2 <<'END'
4656 Oops!
4657
4658 Your 'rm' program seems unable to run without file operands specified
4659 on the command line, even when the '-f' option is present. This is contrary
4660 to the behaviour of most rm programs out there, and not conforming with
4661 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4662
4663 Please tell bug-automake@gnu.org about your system, including the value
4664 of your $PATH and any error possibly output before this message. This
4665 can help us improve future automake versions.
4666
4667 END
4668 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4669 echo 'Configuration will proceed anyway, since you have set the' >&2
4670 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4671 echo >&2
4672 else
4673 cat >&2 <<'END'
4674 Aborting the configuration process, to ensure you take notice of the issue.
4675
4676 You can download and install GNU coreutils to get an 'rm' implementation
4677 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4678
4679 If you want to complete the configuration process using your problematic
4680 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4681 to "yes", and re-run configure.
4682
4683 END
4684 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4685 fi
4686 fi
4687
4688
4689 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4702 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4703 if test ${ac_cv_c_undeclared_builtin_options+y}
4704 then :
4705 printf %s "(cached) " >&6
4706 else case e in #(
4707 e) ac_save_CFLAGS=$CFLAGS
4708 ac_cv_c_undeclared_builtin_options='cannot detect'
4709 for ac_arg in '' -fno-builtin; do
4710 CFLAGS="$ac_save_CFLAGS $ac_arg"
4711 # This test program should *not* compile successfully.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main (void)
4717 {
4718 (void) strchr;
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"
4724 then :
4725
4726 else case e in #(
4727 e) # This test program should compile successfully.
4728 # No library function is consistently available on
4729 # freestanding implementations, so test against a dummy
4730 # declaration. Include always-available headers on the
4731 # off chance that they somehow elicit warnings.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <float.h>
4735 #include <limits.h>
4736 #include <stdarg.h>
4737 #include <stddef.h>
4738 extern void ac_decl (int, char *);
4739
4740 int
4741 main (void)
4742 {
4743 (void) ac_decl (0, (char *) 0);
4744 (void) ac_decl;
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"
4751 then :
4752 if test x"$ac_arg" = x
4753 then :
4754 ac_cv_c_undeclared_builtin_options='none needed'
4755 else case e in #(
4756 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4757 esac
4758 fi
4759 break
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4762 esac
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4765 done
4766 CFLAGS=$ac_save_CFLAGS
4767 ;;
4768 esac
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4771 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4772 case $ac_cv_c_undeclared_builtin_options in #(
4773 'cannot detect') :
4774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4775 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4776 as_fn_error $? "cannot make $CC report undeclared builtins
4777 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4778 'none needed') :
4779 ac_c_undeclared_builtin_options='' ;; #(
4780 *) :
4781 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4782 esac
4783
4784
4785
4786
4787
4788 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4789 if test "x$ac_cv_have_decl___clang__" = xyes
4790 then :
4791 CLANGCC="yes"
4792 else case e in #(
4793 e) CLANGCC="no" ;;
4794 esac
4795 fi
4796 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4797 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4798 then :
4799 INTELCC="yes"
4800 else case e in #(
4801 e) INTELCC="no" ;;
4802 esac
4803 fi
4804 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4805 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4806 then :
4807 SUNCC="yes"
4808 else case e in #(
4809 e) SUNCC="no" ;;
4810 esac
4811 fi
4812
4813
4814
4815
4816
4817
4818
4819
4820 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 printf %s "checking for $ac_word... " >&6; }
4826 if test ${ac_cv_path_PKG_CONFIG+y}
4827 then :
4828 printf %s "(cached) " >&6
4829 else case e in #(
4830 e) case $PKG_CONFIG in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 case $as_dir in #(((
4840 '') as_dir=./ ;;
4841 */) ;;
4842 *) as_dir=$as_dir/ ;;
4843 esac
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4846 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 ;;
4855 esac ;;
4856 esac
4857 fi
4858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4859 if test -n "$PKG_CONFIG"; then
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4861 printf "%s\n" "$PKG_CONFIG" >&6; }
4862 else
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 printf "%s\n" "no" >&6; }
4865 fi
4866
4867
4868 fi
4869 if test -z "$ac_cv_path_PKG_CONFIG"; then
4870 ac_pt_PKG_CONFIG=$PKG_CONFIG
4871 # Extract the first word of "pkg-config", so it can be a program name with args.
4872 set dummy pkg-config; ac_word=$2
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 printf %s "checking for $ac_word... " >&6; }
4875 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else case e in #(
4879 e) case $ac_pt_PKG_CONFIG in
4880 [\\/]* | ?:[\\/]*)
4881 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4882 ;;
4883 *)
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 case $as_dir in #(((
4889 '') as_dir=./ ;;
4890 */) ;;
4891 *) as_dir=$as_dir/ ;;
4892 esac
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4895 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 ;;
4904 esac ;;
4905 esac
4906 fi
4907 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4908 if test -n "$ac_pt_PKG_CONFIG"; then
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4910 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4911 else
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 printf "%s\n" "no" >&6; }
4914 fi
4915
4916 if test "x$ac_pt_PKG_CONFIG" = x; then
4917 PKG_CONFIG=""
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920 yes:)
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4924 esac
4925 PKG_CONFIG=$ac_pt_PKG_CONFIG
4926 fi
4927 else
4928 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4929 fi
4930
4931 fi
4932 if test -n "$PKG_CONFIG"; then
4933 _pkg_min_version=0.9.0
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4935 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4936 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938 printf "%s\n" "yes" >&6; }
4939 else
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 printf "%s\n" "no" >&6; }
4942 PKG_CONFIG=""
4943 fi
4944 fi
4945
4946
4947 # Make sure we can run config.sub.
4948 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4949 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4950
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4952 printf %s "checking build system type... " >&6; }
4953 if test ${ac_cv_build+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else case e in #(
4957 e) ac_build_alias=$build_alias
4958 test "x$ac_build_alias" = x &&
4959 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4960 test "x$ac_build_alias" = x &&
4961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4963 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4964 ;;
4965 esac
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4968 printf "%s\n" "$ac_cv_build" >&6; }
4969 case $ac_cv_build in
4970 *-*-*) ;;
4971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4972 esac
4973 build=$ac_cv_build
4974 ac_save_IFS=$IFS; IFS='-'
4975 set x $ac_cv_build
4976 shift
4977 build_cpu=$1
4978 build_vendor=$2
4979 shift; shift
4980 # Remember, the first character of IFS is used to create $*,
4981 # except with old shells:
4982 build_os=$*
4983 IFS=$ac_save_IFS
4984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4985
4986
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4988 printf %s "checking host system type... " >&6; }
4989 if test ${ac_cv_host+y}
4990 then :
4991 printf %s "(cached) " >&6
4992 else case e in #(
4993 e) if test "x$host_alias" = x; then
4994 ac_cv_host=$ac_cv_build
4995 else
4996 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4997 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4998 fi
4999 ;;
5000 esac
5001 fi
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5003 printf "%s\n" "$ac_cv_host" >&6; }
5004 case $ac_cv_host in
5005 *-*-*) ;;
5006 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5007 esac
5008 host=$ac_cv_host
5009 ac_save_IFS=$IFS; IFS='-'
5010 set x $ac_cv_host
5011 shift
5012 host_cpu=$1
5013 host_vendor=$2
5014 shift; shift
5015 # Remember, the first character of IFS is used to create $*,
5016 # except with old shells:
5017 host_os=$*
5018 IFS=$ac_save_IFS
5019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5020
5021
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5023 printf %s "checking for a sed that does not truncate output... " >&6; }
5024 if test ${ac_cv_path_SED+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else case e in #(
5028 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5029 for ac_i in 1 2 3 4 5 6 7; do
5030 ac_script="$ac_script$as_nl$ac_script"
5031 done
5032 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5033 { ac_script=; unset ac_script;}
5034 if test -z "$SED"; then
5035 ac_path_SED_found=false
5036 # Loop through the user's path and test for each of PROGNAME-LIST
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 case $as_dir in #(((
5042 '') as_dir=./ ;;
5043 */) ;;
5044 *) as_dir=$as_dir/ ;;
5045 esac
5046 for ac_prog in sed gsed
5047 do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_SED" || continue
5051 # Check for GNU ac_path_SED and select it if it is found.
5052 # Check for GNU $ac_path_SED
5053 case `"$ac_path_SED" --version 2>&1` in #(
5054 *GNU*)
5055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5056 #(
5057 *)
5058 ac_count=0
5059 printf %s 0123456789 >"conftest.in"
5060 while :
5061 do
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 printf "%s\n" '' >> "conftest.nl"
5066 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068 as_fn_arith $ac_count + 1 && ac_count=$as_val
5069 if test $ac_count -gt ${ac_path_SED_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_SED="$ac_path_SED"
5072 ac_path_SED_max=$ac_count
5073 fi
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5076 done
5077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078 esac
5079
5080 $ac_path_SED_found && break 3
5081 done
5082 done
5083 done
5084 IFS=$as_save_IFS
5085 if test -z "$ac_cv_path_SED"; then
5086 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5087 fi
5088 else
5089 ac_cv_path_SED=$SED
5090 fi
5091 ;;
5092 esac
5093 fi
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5095 printf "%s\n" "$ac_cv_path_SED" >&6; }
5096 SED="$ac_cv_path_SED"
5097 rm -f conftest.sed
5098
5099
5100
5101
5102
5103
5104 # Check whether --enable-selective-werror was given.
5105 if test ${enable_selective_werror+y}
5106 then :
5107 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5108 else case e in #(
5109 e) SELECTIVE_WERROR=yes ;;
5110 esac
5111 fi
5112
5113
5114
5115
5116
5117 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5118 if test "x$SUNCC" = "xyes"; then
5119 BASE_CFLAGS="-v"
5120 else
5121 BASE_CFLAGS=""
5122 fi
5123
5124 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 xorg_testset_save_CFLAGS="$CFLAGS"
5139
5140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5145 then :
5146 printf %s "(cached) " >&6
5147 else case e in #(
5148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 int i;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"
5153 then :
5154 xorg_cv_cc_flag_unknown_warning_option=yes
5155 else case e in #(
5156 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5157 esac
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5160 esac
5161 fi
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5165 CFLAGS="$xorg_testset_save_CFLAGS"
5166 fi
5167
5168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171 fi
5172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else case e in #(
5179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 int i;
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"
5184 then :
5185 xorg_cv_cc_flag_unused_command_line_argument=yes
5186 else case e in #(
5187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5188 esac
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5191 esac
5192 fi
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5196 CFLAGS="$xorg_testset_save_CFLAGS"
5197 fi
5198
5199 found="no"
5200
5201 if test $found = "no" ; then
5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204 fi
5205
5206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 fi
5209
5210 CFLAGS="$CFLAGS -Wall"
5211
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5213 printf %s "checking if $CC supports -Wall... " >&6; }
5214 cacheid=xorg_cv_cc_flag__Wall
5215 if eval test \${$cacheid+y}
5216 then :
5217 printf %s "(cached) " >&6
5218 else case e in #(
5219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 int
5223 main (void)
5224 {
5225
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_link "$LINENO"
5231 then :
5232 eval $cacheid=yes
5233 else case e in #(
5234 e) eval $cacheid=no ;;
5235 esac
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5238 conftest$ac_exeext conftest.$ac_ext ;;
5239 esac
5240 fi
5241
5242
5243 CFLAGS="$xorg_testset_save_CFLAGS"
5244
5245 eval supported=\$$cacheid
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5247 printf "%s\n" "$supported" >&6; }
5248 if test "$supported" = "yes" ; then
5249 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5250 found="yes"
5251 fi
5252 fi
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 xorg_testset_save_CFLAGS="$CFLAGS"
5269
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else case e in #(
5278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 int i;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"
5283 then :
5284 xorg_cv_cc_flag_unknown_warning_option=yes
5285 else case e in #(
5286 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5287 esac
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5290 esac
5291 fi
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5295 CFLAGS="$xorg_testset_save_CFLAGS"
5296 fi
5297
5298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301 fi
5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else case e in #(
5309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 int i;
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"
5314 then :
5315 xorg_cv_cc_flag_unused_command_line_argument=yes
5316 else case e in #(
5317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5318 esac
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5321 esac
5322 fi
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5324 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5326 CFLAGS="$xorg_testset_save_CFLAGS"
5327 fi
5328
5329 found="no"
5330
5331 if test $found = "no" ; then
5332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334 fi
5335
5336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338 fi
5339
5340 CFLAGS="$CFLAGS -Wpointer-arith"
5341
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5343 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5344 cacheid=xorg_cv_cc_flag__Wpointer_arith
5345 if eval test \${$cacheid+y}
5346 then :
5347 printf %s "(cached) " >&6
5348 else case e in #(
5349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 int i;
5352 int
5353 main (void)
5354 {
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 if ac_fn_c_try_link "$LINENO"
5361 then :
5362 eval $cacheid=yes
5363 else case e in #(
5364 e) eval $cacheid=no ;;
5365 esac
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5368 conftest$ac_exeext conftest.$ac_ext ;;
5369 esac
5370 fi
5371
5372
5373 CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375 eval supported=\$$cacheid
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377 printf "%s\n" "$supported" >&6; }
5378 if test "$supported" = "yes" ; then
5379 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5380 found="yes"
5381 fi
5382 fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 xorg_testset_save_CFLAGS="$CFLAGS"
5399
5400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5405 then :
5406 printf %s "(cached) " >&6
5407 else case e in #(
5408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 int i;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"
5413 then :
5414 xorg_cv_cc_flag_unknown_warning_option=yes
5415 else case e in #(
5416 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5417 esac
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5420 esac
5421 fi
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426 fi
5427
5428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431 fi
5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else case e in #(
5439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 int i;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"
5444 then :
5445 xorg_cv_cc_flag_unused_command_line_argument=yes
5446 else case e in #(
5447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5448 esac
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5451 esac
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456 CFLAGS="$xorg_testset_save_CFLAGS"
5457 fi
5458
5459 found="no"
5460
5461 if test $found = "no" ; then
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465
5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 fi
5469
5470 CFLAGS="$CFLAGS -Wmissing-declarations"
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5473 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5474 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5475 if eval test \${$cacheid+y}
5476 then :
5477 printf %s "(cached) " >&6
5478 else case e in #(
5479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 int i;
5482 int
5483 main (void)
5484 {
5485
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 if ac_fn_c_try_link "$LINENO"
5491 then :
5492 eval $cacheid=yes
5493 else case e in #(
5494 e) eval $cacheid=no ;;
5495 esac
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5498 conftest$ac_exeext conftest.$ac_ext ;;
5499 esac
5500 fi
5501
5502
5503 CFLAGS="$xorg_testset_save_CFLAGS"
5504
5505 eval supported=\$$cacheid
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5507 printf "%s\n" "$supported" >&6; }
5508 if test "$supported" = "yes" ; then
5509 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5510 found="yes"
5511 fi
5512 fi
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 xorg_testset_save_CFLAGS="$CFLAGS"
5529
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5534 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5535 then :
5536 printf %s "(cached) " >&6
5537 else case e in #(
5538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 int i;
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"
5543 then :
5544 xorg_cv_cc_flag_unknown_warning_option=yes
5545 else case e in #(
5546 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5547 esac
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5550 esac
5551 fi
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"
5574 then :
5575 xorg_cv_cc_flag_unused_command_line_argument=yes
5576 else case e in #(
5577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5578 esac
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5581 esac
5582 fi
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5587 fi
5588
5589 found="no"
5590
5591 if test $found = "no" ; then
5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594 fi
5595
5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5598 fi
5599
5600 CFLAGS="$CFLAGS -Wformat=2"
5601
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5603 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5604 cacheid=xorg_cv_cc_flag__Wformat_2
5605 if eval test \${$cacheid+y}
5606 then :
5607 printf %s "(cached) " >&6
5608 else case e in #(
5609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 int i;
5612 int
5613 main (void)
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_link "$LINENO"
5621 then :
5622 eval $cacheid=yes
5623 else case e in #(
5624 e) eval $cacheid=no ;;
5625 esac
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5628 conftest$ac_exeext conftest.$ac_ext ;;
5629 esac
5630 fi
5631
5632
5633 CFLAGS="$xorg_testset_save_CFLAGS"
5634
5635 eval supported=\$$cacheid
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5637 printf "%s\n" "$supported" >&6; }
5638 if test "$supported" = "yes" ; then
5639 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5640 found="yes"
5641 fi
5642 fi
5643
5644 if test $found = "no" ; then
5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647 fi
5648
5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5651 fi
5652
5653 CFLAGS="$CFLAGS -Wformat"
5654
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5656 printf %s "checking if $CC supports -Wformat... " >&6; }
5657 cacheid=xorg_cv_cc_flag__Wformat
5658 if eval test \${$cacheid+y}
5659 then :
5660 printf %s "(cached) " >&6
5661 else case e in #(
5662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 int i;
5665 int
5666 main (void)
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_link "$LINENO"
5674 then :
5675 eval $cacheid=yes
5676 else case e in #(
5677 e) eval $cacheid=no ;;
5678 esac
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5681 conftest$ac_exeext conftest.$ac_ext ;;
5682 esac
5683 fi
5684
5685
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687
5688 eval supported=\$$cacheid
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5690 printf "%s\n" "$supported" >&6; }
5691 if test "$supported" = "yes" ; then
5692 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5693 found="yes"
5694 fi
5695 fi
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 xorg_testset_save_CFLAGS="$CFLAGS"
5714
5715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5718 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5719 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else case e in #(
5723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 int i;
5726 _ACEOF
5727 if ac_fn_c_try_compile "$LINENO"
5728 then :
5729 xorg_cv_cc_flag_unknown_warning_option=yes
5730 else case e in #(
5731 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5732 esac
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5735 esac
5736 fi
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5738 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5740 CFLAGS="$xorg_testset_save_CFLAGS"
5741 fi
5742
5743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746 fi
5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5749 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5750 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5751 then :
5752 printf %s "(cached) " >&6
5753 else case e in #(
5754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"
5759 then :
5760 xorg_cv_cc_flag_unused_command_line_argument=yes
5761 else case e in #(
5762 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5763 esac
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5766 esac
5767 fi
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5771 CFLAGS="$xorg_testset_save_CFLAGS"
5772 fi
5773
5774 found="no"
5775
5776 if test $found = "no" ; then
5777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779 fi
5780
5781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783 fi
5784
5785 CFLAGS="$CFLAGS -Wstrict-prototypes"
5786
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5788 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5789 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5790 if eval test \${$cacheid+y}
5791 then :
5792 printf %s "(cached) " >&6
5793 else case e in #(
5794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int i;
5797 int
5798 main (void)
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"
5806 then :
5807 eval $cacheid=yes
5808 else case e in #(
5809 e) eval $cacheid=no ;;
5810 esac
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5813 conftest$ac_exeext conftest.$ac_ext ;;
5814 esac
5815 fi
5816
5817
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820 eval supported=\$$cacheid
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 printf "%s\n" "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5825 found="yes"
5826 fi
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else case e in #(
5853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"
5858 then :
5859 xorg_cv_cc_flag_unknown_warning_option=yes
5860 else case e in #(
5861 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5862 esac
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5865 esac
5866 fi
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5870 CFLAGS="$xorg_testset_save_CFLAGS"
5871 fi
5872
5873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 fi
5877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else case e in #(
5884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 int i;
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"
5889 then :
5890 xorg_cv_cc_flag_unused_command_line_argument=yes
5891 else case e in #(
5892 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5893 esac
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5896 esac
5897 fi
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5901 CFLAGS="$xorg_testset_save_CFLAGS"
5902 fi
5903
5904 found="no"
5905
5906 if test $found = "no" ; then
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 fi
5910
5911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913 fi
5914
5915 CFLAGS="$CFLAGS -Wmissing-prototypes"
5916
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5918 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5919 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5920 if eval test \${$cacheid+y}
5921 then :
5922 printf %s "(cached) " >&6
5923 else case e in #(
5924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 int i;
5927 int
5928 main (void)
5929 {
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_link "$LINENO"
5936 then :
5937 eval $cacheid=yes
5938 else case e in #(
5939 e) eval $cacheid=no ;;
5940 esac
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5943 conftest$ac_exeext conftest.$ac_ext ;;
5944 esac
5945 fi
5946
5947
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949
5950 eval supported=\$$cacheid
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5952 printf "%s\n" "$supported" >&6; }
5953 if test "$supported" = "yes" ; then
5954 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5955 found="yes"
5956 fi
5957 fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else case e in #(
5983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int i;
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"
5988 then :
5989 xorg_cv_cc_flag_unknown_warning_option=yes
5990 else case e in #(
5991 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5992 esac
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5995 esac
5996 fi
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5998 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6000 CFLAGS="$xorg_testset_save_CFLAGS"
6001 fi
6002
6003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006 fi
6007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6011 then :
6012 printf %s "(cached) " >&6
6013 else case e in #(
6014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 int i;
6017 _ACEOF
6018 if ac_fn_c_try_compile "$LINENO"
6019 then :
6020 xorg_cv_cc_flag_unused_command_line_argument=yes
6021 else case e in #(
6022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6023 esac
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6026 esac
6027 fi
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6032 fi
6033
6034 found="no"
6035
6036 if test $found = "no" ; then
6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 fi
6040
6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043 fi
6044
6045 CFLAGS="$CFLAGS -Wnested-externs"
6046
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6048 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6049 cacheid=xorg_cv_cc_flag__Wnested_externs
6050 if eval test \${$cacheid+y}
6051 then :
6052 printf %s "(cached) " >&6
6053 else case e in #(
6054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 int i;
6057 int
6058 main (void)
6059 {
6060
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 if ac_fn_c_try_link "$LINENO"
6066 then :
6067 eval $cacheid=yes
6068 else case e in #(
6069 e) eval $cacheid=no ;;
6070 esac
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6073 conftest$ac_exeext conftest.$ac_ext ;;
6074 esac
6075 fi
6076
6077
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6079
6080 eval supported=\$$cacheid
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6082 printf "%s\n" "$supported" >&6; }
6083 if test "$supported" = "yes" ; then
6084 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6085 found="yes"
6086 fi
6087 fi
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 xorg_testset_save_CFLAGS="$CFLAGS"
6104
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6109 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"
6118 then :
6119 xorg_cv_cc_flag_unknown_warning_option=yes
6120 else case e in #(
6121 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6122 esac
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6125 esac
6126 fi
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else case e in #(
6144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int i;
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"
6149 then :
6150 xorg_cv_cc_flag_unused_command_line_argument=yes
6151 else case e in #(
6152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6153 esac
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6156 esac
6157 fi
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6161 CFLAGS="$xorg_testset_save_CFLAGS"
6162 fi
6163
6164 found="no"
6165
6166 if test $found = "no" ; then
6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 fi
6170
6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173 fi
6174
6175 CFLAGS="$CFLAGS -Wbad-function-cast"
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6178 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6179 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6180 if eval test \${$cacheid+y}
6181 then :
6182 printf %s "(cached) " >&6
6183 else case e in #(
6184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 int
6188 main (void)
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"
6196 then :
6197 eval $cacheid=yes
6198 else case e in #(
6199 e) eval $cacheid=no ;;
6200 esac
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6203 conftest$ac_exeext conftest.$ac_ext ;;
6204 esac
6205 fi
6206
6207
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6209
6210 eval supported=\$$cacheid
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6212 printf "%s\n" "$supported" >&6; }
6213 if test "$supported" = "yes" ; then
6214 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6215 found="yes"
6216 fi
6217 fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else case e in #(
6243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 int i;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 xorg_cv_cc_flag_unknown_warning_option=yes
6250 else case e in #(
6251 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6252 esac
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6255 esac
6256 fi
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6260 CFLAGS="$xorg_testset_save_CFLAGS"
6261 fi
6262
6263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 fi
6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6271 then :
6272 printf %s "(cached) " >&6
6273 else case e in #(
6274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 int i;
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"
6279 then :
6280 xorg_cv_cc_flag_unused_command_line_argument=yes
6281 else case e in #(
6282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6283 esac
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6286 esac
6287 fi
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6289 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6292 fi
6293
6294 found="no"
6295
6296 if test $found = "no" ; then
6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299 fi
6300
6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303 fi
6304
6305 CFLAGS="$CFLAGS -Wold-style-definition"
6306
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6308 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6309 cacheid=xorg_cv_cc_flag__Wold_style_definition
6310 if eval test \${$cacheid+y}
6311 then :
6312 printf %s "(cached) " >&6
6313 else case e in #(
6314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 int i;
6317 int
6318 main (void)
6319 {
6320
6321 ;
6322 return 0;
6323 }
6324 _ACEOF
6325 if ac_fn_c_try_link "$LINENO"
6326 then :
6327 eval $cacheid=yes
6328 else case e in #(
6329 e) eval $cacheid=no ;;
6330 esac
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6333 conftest$ac_exeext conftest.$ac_ext ;;
6334 esac
6335 fi
6336
6337
6338 CFLAGS="$xorg_testset_save_CFLAGS"
6339
6340 eval supported=\$$cacheid
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6342 printf "%s\n" "$supported" >&6; }
6343 if test "$supported" = "yes" ; then
6344 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6345 found="yes"
6346 fi
6347 fi
6348
6349 if test $found = "no" ; then
6350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352 fi
6353
6354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356 fi
6357
6358 CFLAGS="$CFLAGS -fd"
6359
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6361 printf %s "checking if $CC supports -fd... " >&6; }
6362 cacheid=xorg_cv_cc_flag__fd
6363 if eval test \${$cacheid+y}
6364 then :
6365 printf %s "(cached) " >&6
6366 else case e in #(
6367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 int i;
6370 int
6371 main (void)
6372 {
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_link "$LINENO"
6379 then :
6380 eval $cacheid=yes
6381 else case e in #(
6382 e) eval $cacheid=no ;;
6383 esac
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6386 conftest$ac_exeext conftest.$ac_ext ;;
6387 esac
6388 fi
6389
6390
6391 CFLAGS="$xorg_testset_save_CFLAGS"
6392
6393 eval supported=\$$cacheid
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6395 printf "%s\n" "$supported" >&6; }
6396 if test "$supported" = "yes" ; then
6397 BASE_CFLAGS="$BASE_CFLAGS -fd"
6398 found="yes"
6399 fi
6400 fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 xorg_testset_save_CFLAGS="$CFLAGS"
6417
6418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6422 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else case e in #(
6426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"
6431 then :
6432 xorg_cv_cc_flag_unknown_warning_option=yes
6433 else case e in #(
6434 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6435 esac
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6438 esac
6439 fi
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6443 CFLAGS="$xorg_testset_save_CFLAGS"
6444 fi
6445
6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449 fi
6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6454 then :
6455 printf %s "(cached) " >&6
6456 else case e in #(
6457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"
6462 then :
6463 xorg_cv_cc_flag_unused_command_line_argument=yes
6464 else case e in #(
6465 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6466 esac
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6469 esac
6470 fi
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475 fi
6476
6477 found="no"
6478
6479 if test $found = "no" ; then
6480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486 fi
6487
6488 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6489
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6491 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6492 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6493 if eval test \${$cacheid+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else case e in #(
6497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 int i;
6500 int
6501 main (void)
6502 {
6503
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_link "$LINENO"
6509 then :
6510 eval $cacheid=yes
6511 else case e in #(
6512 e) eval $cacheid=no ;;
6513 esac
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6516 conftest$ac_exeext conftest.$ac_ext ;;
6517 esac
6518 fi
6519
6520
6521 CFLAGS="$xorg_testset_save_CFLAGS"
6522
6523 eval supported=\$$cacheid
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6525 printf "%s\n" "$supported" >&6; }
6526 if test "$supported" = "yes" ; then
6527 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6528 found="yes"
6529 fi
6530 fi
6531
6532
6533
6534
6535
6536 # This chunk adds additional warnings that could catch undesired effects.
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6557 then :
6558 printf %s "(cached) " >&6
6559 else case e in #(
6560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 int i;
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"
6565 then :
6566 xorg_cv_cc_flag_unknown_warning_option=yes
6567 else case e in #(
6568 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6569 esac
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6572 esac
6573 fi
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6588 then :
6589 printf %s "(cached) " >&6
6590 else case e in #(
6591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 int i;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"
6596 then :
6597 xorg_cv_cc_flag_unused_command_line_argument=yes
6598 else case e in #(
6599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6600 esac
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6603 esac
6604 fi
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6608 CFLAGS="$xorg_testset_save_CFLAGS"
6609 fi
6610
6611 found="no"
6612
6613 if test $found = "no" ; then
6614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616 fi
6617
6618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 fi
6621
6622 CFLAGS="$CFLAGS -Wunused"
6623
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6625 printf %s "checking if $CC supports -Wunused... " >&6; }
6626 cacheid=xorg_cv_cc_flag__Wunused
6627 if eval test \${$cacheid+y}
6628 then :
6629 printf %s "(cached) " >&6
6630 else case e in #(
6631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 int i;
6634 int
6635 main (void)
6636 {
6637
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_link "$LINENO"
6643 then :
6644 eval $cacheid=yes
6645 else case e in #(
6646 e) eval $cacheid=no ;;
6647 esac
6648 fi
6649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6650 conftest$ac_exeext conftest.$ac_ext ;;
6651 esac
6652 fi
6653
6654
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657 eval supported=\$$cacheid
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659 printf "%s\n" "$supported" >&6; }
6660 if test "$supported" = "yes" ; then
6661 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6662 found="yes"
6663 fi
6664 fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 xorg_testset_save_CFLAGS="$CFLAGS"
6681
6682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6686 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6687 then :
6688 printf %s "(cached) " >&6
6689 else case e in #(
6690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"
6695 then :
6696 xorg_cv_cc_flag_unknown_warning_option=yes
6697 else case e in #(
6698 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6699 esac
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6702 esac
6703 fi
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6707 CFLAGS="$xorg_testset_save_CFLAGS"
6708 fi
6709
6710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713 fi
6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6718 then :
6719 printf %s "(cached) " >&6
6720 else case e in #(
6721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 int i;
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"
6726 then :
6727 xorg_cv_cc_flag_unused_command_line_argument=yes
6728 else case e in #(
6729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6730 esac
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6733 esac
6734 fi
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739 fi
6740
6741 found="no"
6742
6743 if test $found = "no" ; then
6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747
6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 fi
6751
6752 CFLAGS="$CFLAGS -Wuninitialized"
6753
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6755 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6756 cacheid=xorg_cv_cc_flag__Wuninitialized
6757 if eval test \${$cacheid+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else case e in #(
6761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 int
6765 main (void)
6766 {
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"
6773 then :
6774 eval $cacheid=yes
6775 else case e in #(
6776 e) eval $cacheid=no ;;
6777 esac
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780 conftest$ac_exeext conftest.$ac_ext ;;
6781 esac
6782 fi
6783
6784
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786
6787 eval supported=\$$cacheid
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6789 printf "%s\n" "$supported" >&6; }
6790 if test "$supported" = "yes" ; then
6791 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6792 found="yes"
6793 fi
6794 fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810 xorg_testset_save_CFLAGS="$CFLAGS"
6811
6812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6816 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else case e in #(
6820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"
6825 then :
6826 xorg_cv_cc_flag_unknown_warning_option=yes
6827 else case e in #(
6828 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6829 esac
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6832 esac
6833 fi
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838 fi
6839
6840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843 fi
6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6848 then :
6849 printf %s "(cached) " >&6
6850 else case e in #(
6851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 int i;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"
6856 then :
6857 xorg_cv_cc_flag_unused_command_line_argument=yes
6858 else case e in #(
6859 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6860 esac
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6863 esac
6864 fi
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6868 CFLAGS="$xorg_testset_save_CFLAGS"
6869 fi
6870
6871 found="no"
6872
6873 if test $found = "no" ; then
6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876 fi
6877
6878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880 fi
6881
6882 CFLAGS="$CFLAGS -Wshadow"
6883
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6885 printf %s "checking if $CC supports -Wshadow... " >&6; }
6886 cacheid=xorg_cv_cc_flag__Wshadow
6887 if eval test \${$cacheid+y}
6888 then :
6889 printf %s "(cached) " >&6
6890 else case e in #(
6891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 int i;
6894 int
6895 main (void)
6896 {
6897
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"
6903 then :
6904 eval $cacheid=yes
6905 else case e in #(
6906 e) eval $cacheid=no ;;
6907 esac
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6910 conftest$ac_exeext conftest.$ac_ext ;;
6911 esac
6912 fi
6913
6914
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916
6917 eval supported=\$$cacheid
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6919 printf "%s\n" "$supported" >&6; }
6920 if test "$supported" = "yes" ; then
6921 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6922 found="yes"
6923 fi
6924 fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 xorg_testset_save_CFLAGS="$CFLAGS"
6941
6942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6946 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else case e in #(
6950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 int i;
6953 _ACEOF
6954 if ac_fn_c_try_compile "$LINENO"
6955 then :
6956 xorg_cv_cc_flag_unknown_warning_option=yes
6957 else case e in #(
6958 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6959 esac
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6962 esac
6963 fi
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6965 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6967 CFLAGS="$xorg_testset_save_CFLAGS"
6968 fi
6969
6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 fi
6974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6977 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6978 then :
6979 printf %s "(cached) " >&6
6980 else case e in #(
6981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 int i;
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"
6986 then :
6987 xorg_cv_cc_flag_unused_command_line_argument=yes
6988 else case e in #(
6989 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6990 esac
6991 fi
6992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6993 esac
6994 fi
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6998 CFLAGS="$xorg_testset_save_CFLAGS"
6999 fi
7000
7001 found="no"
7002
7003 if test $found = "no" ; then
7004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006 fi
7007
7008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010 fi
7011
7012 CFLAGS="$CFLAGS -Wmissing-noreturn"
7013
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7015 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7016 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7017 if eval test \${$cacheid+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else case e in #(
7021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 int i;
7024 int
7025 main (void)
7026 {
7027
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"
7033 then :
7034 eval $cacheid=yes
7035 else case e in #(
7036 e) eval $cacheid=no ;;
7037 esac
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7040 conftest$ac_exeext conftest.$ac_ext ;;
7041 esac
7042 fi
7043
7044
7045 CFLAGS="$xorg_testset_save_CFLAGS"
7046
7047 eval supported=\$$cacheid
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7049 printf "%s\n" "$supported" >&6; }
7050 if test "$supported" = "yes" ; then
7051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7052 found="yes"
7053 fi
7054 fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 xorg_testset_save_CFLAGS="$CFLAGS"
7071
7072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7075 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7076 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7077 then :
7078 printf %s "(cached) " >&6
7079 else case e in #(
7080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 int i;
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"
7085 then :
7086 xorg_cv_cc_flag_unknown_warning_option=yes
7087 else case e in #(
7088 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7089 esac
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7092 esac
7093 fi
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7097 CFLAGS="$xorg_testset_save_CFLAGS"
7098 fi
7099
7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 fi
7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7108 then :
7109 printf %s "(cached) " >&6
7110 else case e in #(
7111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 int i;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"
7116 then :
7117 xorg_cv_cc_flag_unused_command_line_argument=yes
7118 else case e in #(
7119 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7120 esac
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7123 esac
7124 fi
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7126 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7128 CFLAGS="$xorg_testset_save_CFLAGS"
7129 fi
7130
7131 found="no"
7132
7133 if test $found = "no" ; then
7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 fi
7137
7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140 fi
7141
7142 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7143
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7145 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7146 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7147 if eval test \${$cacheid+y}
7148 then :
7149 printf %s "(cached) " >&6
7150 else case e in #(
7151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 int i;
7154 int
7155 main (void)
7156 {
7157
7158 ;
7159 return 0;
7160 }
7161 _ACEOF
7162 if ac_fn_c_try_link "$LINENO"
7163 then :
7164 eval $cacheid=yes
7165 else case e in #(
7166 e) eval $cacheid=no ;;
7167 esac
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7170 conftest$ac_exeext conftest.$ac_ext ;;
7171 esac
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 printf "%s\n" "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7182 found="yes"
7183 fi
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7207 then :
7208 printf %s "(cached) " >&6
7209 else case e in #(
7210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"
7215 then :
7216 xorg_cv_cc_flag_unknown_warning_option=yes
7217 else case e in #(
7218 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7219 esac
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7222 esac
7223 fi
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7227 CFLAGS="$xorg_testset_save_CFLAGS"
7228 fi
7229
7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233 fi
7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else case e in #(
7241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"
7246 then :
7247 xorg_cv_cc_flag_unused_command_line_argument=yes
7248 else case e in #(
7249 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7250 esac
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7253 esac
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 found="no"
7262
7263 if test $found = "no" ; then
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 fi
7271
7272 CFLAGS="$CFLAGS -Wredundant-decls"
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7275 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7276 cacheid=xorg_cv_cc_flag__Wredundant_decls
7277 if eval test \${$cacheid+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else case e in #(
7281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 int
7285 main (void)
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_link "$LINENO"
7293 then :
7294 eval $cacheid=yes
7295 else case e in #(
7296 e) eval $cacheid=no ;;
7297 esac
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7300 conftest$ac_exeext conftest.$ac_ext ;;
7301 esac
7302 fi
7303
7304
7305 CFLAGS="$xorg_testset_save_CFLAGS"
7306
7307 eval supported=\$$cacheid
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7309 printf "%s\n" "$supported" >&6; }
7310 if test "$supported" = "yes" ; then
7311 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7312 found="yes"
7313 fi
7314 fi
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330 xorg_testset_save_CFLAGS="$CFLAGS"
7331
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7336 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7337 then :
7338 printf %s "(cached) " >&6
7339 else case e in #(
7340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 int i;
7343 _ACEOF
7344 if ac_fn_c_try_compile "$LINENO"
7345 then :
7346 xorg_cv_cc_flag_unknown_warning_option=yes
7347 else case e in #(
7348 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7349 esac
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7352 esac
7353 fi
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357 CFLAGS="$xorg_testset_save_CFLAGS"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7368 then :
7369 printf %s "(cached) " >&6
7370 else case e in #(
7371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 int i;
7374 _ACEOF
7375 if ac_fn_c_try_compile "$LINENO"
7376 then :
7377 xorg_cv_cc_flag_unused_command_line_argument=yes
7378 else case e in #(
7379 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7380 esac
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7383 esac
7384 fi
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388 CFLAGS="$xorg_testset_save_CFLAGS"
7389 fi
7390
7391 found="no"
7392
7393 if test $found = "no" ; then
7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400 fi
7401
7402 CFLAGS="$CFLAGS -Wlogical-op"
7403
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7405 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7406 cacheid=xorg_cv_cc_flag__Wlogical_op
7407 if eval test \${$cacheid+y}
7408 then :
7409 printf %s "(cached) " >&6
7410 else case e in #(
7411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 int
7415 main (void)
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"
7423 then :
7424 eval $cacheid=yes
7425 else case e in #(
7426 e) eval $cacheid=no ;;
7427 esac
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7430 conftest$ac_exeext conftest.$ac_ext ;;
7431 esac
7432 fi
7433
7434
7435 CFLAGS="$xorg_testset_save_CFLAGS"
7436
7437 eval supported=\$$cacheid
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7439 printf "%s\n" "$supported" >&6; }
7440 if test "$supported" = "yes" ; then
7441 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7442 found="yes"
7443 fi
7444 fi
7445
7446
7447
7448 # These are currently disabled because they are noisy. They will be enabled
7449 # in the future once the codebase is sufficiently modernized to silence
7450 # them. For now, I don't want them to drown out the other warnings.
7451 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7452 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7453 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7454
7455 # Turn some warnings into errors, so we don't accidentally get successful builds
7456 # when there are problems that should be fixed.
7457
7458 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 xorg_testset_save_CFLAGS="$CFLAGS"
7473
7474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7478 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7479 then :
7480 printf %s "(cached) " >&6
7481 else case e in #(
7482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 int i;
7485 _ACEOF
7486 if ac_fn_c_try_compile "$LINENO"
7487 then :
7488 xorg_cv_cc_flag_unknown_warning_option=yes
7489 else case e in #(
7490 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7491 esac
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7494 esac
7495 fi
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7499 CFLAGS="$xorg_testset_save_CFLAGS"
7500 fi
7501
7502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505 fi
7506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7510 then :
7511 printf %s "(cached) " >&6
7512 else case e in #(
7513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"
7518 then :
7519 xorg_cv_cc_flag_unused_command_line_argument=yes
7520 else case e in #(
7521 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7522 esac
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7525 esac
7526 fi
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7531 fi
7532
7533 found="no"
7534
7535 if test $found = "no" ; then
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 fi
7539
7540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542 fi
7543
7544 CFLAGS="$CFLAGS -Werror=implicit"
7545
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7547 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7548 cacheid=xorg_cv_cc_flag__Werror_implicit
7549 if eval test \${$cacheid+y}
7550 then :
7551 printf %s "(cached) " >&6
7552 else case e in #(
7553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 int i;
7556 int
7557 main (void)
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"
7565 then :
7566 eval $cacheid=yes
7567 else case e in #(
7568 e) eval $cacheid=no ;;
7569 esac
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7572 conftest$ac_exeext conftest.$ac_ext ;;
7573 esac
7574 fi
7575
7576
7577 CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579 eval supported=\$$cacheid
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581 printf "%s\n" "$supported" >&6; }
7582 if test "$supported" = "yes" ; then
7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7584 found="yes"
7585 fi
7586 fi
7587
7588 if test $found = "no" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592
7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595 fi
7596
7597 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7598
7599 { 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
7600 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7601 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7602 if eval test \${$cacheid+y}
7603 then :
7604 printf %s "(cached) " >&6
7605 else case e in #(
7606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 int
7610 main (void)
7611 {
7612
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_c_try_link "$LINENO"
7618 then :
7619 eval $cacheid=yes
7620 else case e in #(
7621 e) eval $cacheid=no ;;
7622 esac
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7625 conftest$ac_exeext conftest.$ac_ext ;;
7626 esac
7627 fi
7628
7629
7630 CFLAGS="$xorg_testset_save_CFLAGS"
7631
7632 eval supported=\$$cacheid
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7634 printf "%s\n" "$supported" >&6; }
7635 if test "$supported" = "yes" ; then
7636 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7637 found="yes"
7638 fi
7639 fi
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655 xorg_testset_save_CFLAGS="$CFLAGS"
7656
7657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7661 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7662 then :
7663 printf %s "(cached) " >&6
7664 else case e in #(
7665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 int i;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"
7670 then :
7671 xorg_cv_cc_flag_unknown_warning_option=yes
7672 else case e in #(
7673 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7674 esac
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7677 esac
7678 fi
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682 CFLAGS="$xorg_testset_save_CFLAGS"
7683 fi
7684
7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 fi
7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7693 then :
7694 printf %s "(cached) " >&6
7695 else case e in #(
7696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 int i;
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"
7701 then :
7702 xorg_cv_cc_flag_unused_command_line_argument=yes
7703 else case e in #(
7704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7705 esac
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7708 esac
7709 fi
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7714 fi
7715
7716 found="no"
7717
7718 if test $found = "no" ; then
7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721 fi
7722
7723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725 fi
7726
7727 CFLAGS="$CFLAGS -Werror=nonnull"
7728
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7730 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7731 cacheid=xorg_cv_cc_flag__Werror_nonnull
7732 if eval test \${$cacheid+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else case e in #(
7736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 int
7740 main (void)
7741 {
7742
7743 ;
7744 return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"
7748 then :
7749 eval $cacheid=yes
7750 else case e in #(
7751 e) eval $cacheid=no ;;
7752 esac
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7755 conftest$ac_exeext conftest.$ac_ext ;;
7756 esac
7757 fi
7758
7759
7760 CFLAGS="$xorg_testset_save_CFLAGS"
7761
7762 eval supported=\$$cacheid
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7764 printf "%s\n" "$supported" >&6; }
7765 if test "$supported" = "yes" ; then
7766 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7767 found="yes"
7768 fi
7769 fi
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 xorg_testset_save_CFLAGS="$CFLAGS"
7786
7787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7791 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7792 then :
7793 printf %s "(cached) " >&6
7794 else case e in #(
7795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 int i;
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"
7800 then :
7801 xorg_cv_cc_flag_unknown_warning_option=yes
7802 else case e in #(
7803 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7804 esac
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7807 esac
7808 fi
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7812 CFLAGS="$xorg_testset_save_CFLAGS"
7813 fi
7814
7815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818 fi
7819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7823 then :
7824 printf %s "(cached) " >&6
7825 else case e in #(
7826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"
7831 then :
7832 xorg_cv_cc_flag_unused_command_line_argument=yes
7833 else case e in #(
7834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7835 esac
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7838 esac
7839 fi
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7841 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7843 CFLAGS="$xorg_testset_save_CFLAGS"
7844 fi
7845
7846 found="no"
7847
7848 if test $found = "no" ; then
7849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851 fi
7852
7853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855 fi
7856
7857 CFLAGS="$CFLAGS -Werror=init-self"
7858
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7860 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7861 cacheid=xorg_cv_cc_flag__Werror_init_self
7862 if eval test \${$cacheid+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else case e in #(
7866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 int i;
7869 int
7870 main (void)
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"
7878 then :
7879 eval $cacheid=yes
7880 else case e in #(
7881 e) eval $cacheid=no ;;
7882 esac
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7885 conftest$ac_exeext conftest.$ac_ext ;;
7886 esac
7887 fi
7888
7889
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891
7892 eval supported=\$$cacheid
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894 printf "%s\n" "$supported" >&6; }
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7897 found="yes"
7898 fi
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 xorg_testset_save_CFLAGS="$CFLAGS"
7916
7917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7922 then :
7923 printf %s "(cached) " >&6
7924 else case e in #(
7925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"
7930 then :
7931 xorg_cv_cc_flag_unknown_warning_option=yes
7932 else case e in #(
7933 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7934 esac
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7937 esac
7938 fi
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942 CFLAGS="$xorg_testset_save_CFLAGS"
7943 fi
7944
7945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948 fi
7949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7953 then :
7954 printf %s "(cached) " >&6
7955 else case e in #(
7956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 int i;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"
7961 then :
7962 xorg_cv_cc_flag_unused_command_line_argument=yes
7963 else case e in #(
7964 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7965 esac
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7968 esac
7969 fi
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974 fi
7975
7976 found="no"
7977
7978 if test $found = "no" ; then
7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985 fi
7986
7987 CFLAGS="$CFLAGS -Werror=main"
7988
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7990 printf %s "checking if $CC supports -Werror=main... " >&6; }
7991 cacheid=xorg_cv_cc_flag__Werror_main
7992 if eval test \${$cacheid+y}
7993 then :
7994 printf %s "(cached) " >&6
7995 else case e in #(
7996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 int i;
7999 int
8000 main (void)
8001 {
8002
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"
8008 then :
8009 eval $cacheid=yes
8010 else case e in #(
8011 e) eval $cacheid=no ;;
8012 esac
8013 fi
8014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8015 conftest$ac_exeext conftest.$ac_ext ;;
8016 esac
8017 fi
8018
8019
8020 CFLAGS="$xorg_testset_save_CFLAGS"
8021
8022 eval supported=\$$cacheid
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8024 printf "%s\n" "$supported" >&6; }
8025 if test "$supported" = "yes" ; then
8026 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8027 found="yes"
8028 fi
8029 fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 xorg_testset_save_CFLAGS="$CFLAGS"
8046
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8050 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8051 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8052 then :
8053 printf %s "(cached) " >&6
8054 else case e in #(
8055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"
8060 then :
8061 xorg_cv_cc_flag_unknown_warning_option=yes
8062 else case e in #(
8063 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8064 esac
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8067 esac
8068 fi
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8070 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073 fi
8074
8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078 fi
8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8081 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8082 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else case e in #(
8086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 int i;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"
8091 then :
8092 xorg_cv_cc_flag_unused_command_line_argument=yes
8093 else case e in #(
8094 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8095 esac
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8098 esac
8099 fi
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8101 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 found="no"
8107
8108 if test $found = "no" ; then
8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111 fi
8112
8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115 fi
8116
8117 CFLAGS="$CFLAGS -Werror=missing-braces"
8118
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8120 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8121 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8122 if eval test \${$cacheid+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else case e in #(
8126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 int i;
8129 int
8130 main (void)
8131 {
8132
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"
8138 then :
8139 eval $cacheid=yes
8140 else case e in #(
8141 e) eval $cacheid=no ;;
8142 esac
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8145 conftest$ac_exeext conftest.$ac_ext ;;
8146 esac
8147 fi
8148
8149
8150 CFLAGS="$xorg_testset_save_CFLAGS"
8151
8152 eval supported=\$$cacheid
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8154 printf "%s\n" "$supported" >&6; }
8155 if test "$supported" = "yes" ; then
8156 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8157 found="yes"
8158 fi
8159 fi
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 xorg_testset_save_CFLAGS="$CFLAGS"
8176
8177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8180 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8181 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8182 then :
8183 printf %s "(cached) " >&6
8184 else case e in #(
8185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 int i;
8188 _ACEOF
8189 if ac_fn_c_try_compile "$LINENO"
8190 then :
8191 xorg_cv_cc_flag_unknown_warning_option=yes
8192 else case e in #(
8193 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8194 esac
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8197 esac
8198 fi
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8200 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8202 CFLAGS="$xorg_testset_save_CFLAGS"
8203 fi
8204
8205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208 fi
8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8211 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8212 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8213 then :
8214 printf %s "(cached) " >&6
8215 else case e in #(
8216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int i;
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"
8221 then :
8222 xorg_cv_cc_flag_unused_command_line_argument=yes
8223 else case e in #(
8224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8225 esac
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8228 esac
8229 fi
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8231 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8233 CFLAGS="$xorg_testset_save_CFLAGS"
8234 fi
8235
8236 found="no"
8237
8238 if test $found = "no" ; then
8239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241 fi
8242
8243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8245 fi
8246
8247 CFLAGS="$CFLAGS -Werror=sequence-point"
8248
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8250 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8251 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8252 if eval test \${$cacheid+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else case e in #(
8256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 int i;
8259 int
8260 main (void)
8261 {
8262
8263 ;
8264 return 0;
8265 }
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"
8268 then :
8269 eval $cacheid=yes
8270 else case e in #(
8271 e) eval $cacheid=no ;;
8272 esac
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8275 conftest$ac_exeext conftest.$ac_ext ;;
8276 esac
8277 fi
8278
8279
8280 CFLAGS="$xorg_testset_save_CFLAGS"
8281
8282 eval supported=\$$cacheid
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8284 printf "%s\n" "$supported" >&6; }
8285 if test "$supported" = "yes" ; then
8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8287 found="yes"
8288 fi
8289 fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 xorg_testset_save_CFLAGS="$CFLAGS"
8306
8307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else case e in #(
8315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 int i;
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"
8320 then :
8321 xorg_cv_cc_flag_unknown_warning_option=yes
8322 else case e in #(
8323 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8324 esac
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8327 esac
8328 fi
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332 CFLAGS="$xorg_testset_save_CFLAGS"
8333 fi
8334
8335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338 fi
8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else case e in #(
8346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 _ACEOF
8350 if ac_fn_c_try_compile "$LINENO"
8351 then :
8352 xorg_cv_cc_flag_unused_command_line_argument=yes
8353 else case e in #(
8354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8355 esac
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8358 esac
8359 fi
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364 fi
8365
8366 found="no"
8367
8368 if test $found = "no" ; then
8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375 fi
8376
8377 CFLAGS="$CFLAGS -Werror=return-type"
8378
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8380 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8381 cacheid=xorg_cv_cc_flag__Werror_return_type
8382 if eval test \${$cacheid+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else case e in #(
8386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 int i;
8389 int
8390 main (void)
8391 {
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"
8398 then :
8399 eval $cacheid=yes
8400 else case e in #(
8401 e) eval $cacheid=no ;;
8402 esac
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8405 conftest$ac_exeext conftest.$ac_ext ;;
8406 esac
8407 fi
8408
8409
8410 CFLAGS="$xorg_testset_save_CFLAGS"
8411
8412 eval supported=\$$cacheid
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8414 printf "%s\n" "$supported" >&6; }
8415 if test "$supported" = "yes" ; then
8416 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8417 found="yes"
8418 fi
8419 fi
8420
8421 if test $found = "no" ; then
8422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424 fi
8425
8426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428 fi
8429
8430 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8431
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8433 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8434 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8435 if eval test \${$cacheid+y}
8436 then :
8437 printf %s "(cached) " >&6
8438 else case e in #(
8439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 int i;
8442 int
8443 main (void)
8444 {
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"
8451 then :
8452 eval $cacheid=yes
8453 else case e in #(
8454 e) eval $cacheid=no ;;
8455 esac
8456 fi
8457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8458 conftest$ac_exeext conftest.$ac_ext ;;
8459 esac
8460 fi
8461
8462
8463 CFLAGS="$xorg_testset_save_CFLAGS"
8464
8465 eval supported=\$$cacheid
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8467 printf "%s\n" "$supported" >&6; }
8468 if test "$supported" = "yes" ; then
8469 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8470 found="yes"
8471 fi
8472 fi
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 xorg_testset_save_CFLAGS="$CFLAGS"
8489
8490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8495 then :
8496 printf %s "(cached) " >&6
8497 else case e in #(
8498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 int i;
8501 _ACEOF
8502 if ac_fn_c_try_compile "$LINENO"
8503 then :
8504 xorg_cv_cc_flag_unknown_warning_option=yes
8505 else case e in #(
8506 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8507 esac
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8510 esac
8511 fi
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8515 CFLAGS="$xorg_testset_save_CFLAGS"
8516 fi
8517
8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8526 then :
8527 printf %s "(cached) " >&6
8528 else case e in #(
8529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 int i;
8532 _ACEOF
8533 if ac_fn_c_try_compile "$LINENO"
8534 then :
8535 xorg_cv_cc_flag_unused_command_line_argument=yes
8536 else case e in #(
8537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8538 esac
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8541 esac
8542 fi
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547 fi
8548
8549 found="no"
8550
8551 if test $found = "no" ; then
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 fi
8555
8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 fi
8559
8560 CFLAGS="$CFLAGS -Werror=trigraphs"
8561
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8563 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8564 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8565 if eval test \${$cacheid+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else case e in #(
8569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 int
8573 main (void)
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"
8581 then :
8582 eval $cacheid=yes
8583 else case e in #(
8584 e) eval $cacheid=no ;;
8585 esac
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8588 conftest$ac_exeext conftest.$ac_ext ;;
8589 esac
8590 fi
8591
8592
8593 CFLAGS="$xorg_testset_save_CFLAGS"
8594
8595 eval supported=\$$cacheid
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8597 printf "%s\n" "$supported" >&6; }
8598 if test "$supported" = "yes" ; then
8599 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8600 found="yes"
8601 fi
8602 fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618 xorg_testset_save_CFLAGS="$CFLAGS"
8619
8620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8625 then :
8626 printf %s "(cached) " >&6
8627 else case e in #(
8628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 int i;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"
8633 then :
8634 xorg_cv_cc_flag_unknown_warning_option=yes
8635 else case e in #(
8636 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8637 esac
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8640 esac
8641 fi
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646 fi
8647
8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651 fi
8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8656 then :
8657 printf %s "(cached) " >&6
8658 else case e in #(
8659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 int i;
8662 _ACEOF
8663 if ac_fn_c_try_compile "$LINENO"
8664 then :
8665 xorg_cv_cc_flag_unused_command_line_argument=yes
8666 else case e in #(
8667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8668 esac
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8671 esac
8672 fi
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8676 CFLAGS="$xorg_testset_save_CFLAGS"
8677 fi
8678
8679 found="no"
8680
8681 if test $found = "no" ; then
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 fi
8685
8686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688 fi
8689
8690 CFLAGS="$CFLAGS -Werror=array-bounds"
8691
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8693 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8694 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8695 if eval test \${$cacheid+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else case e in #(
8699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 int i;
8702 int
8703 main (void)
8704 {
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"
8711 then :
8712 eval $cacheid=yes
8713 else case e in #(
8714 e) eval $cacheid=no ;;
8715 esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8718 conftest$ac_exeext conftest.$ac_ext ;;
8719 esac
8720 fi
8721
8722
8723 CFLAGS="$xorg_testset_save_CFLAGS"
8724
8725 eval supported=\$$cacheid
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8727 printf "%s\n" "$supported" >&6; }
8728 if test "$supported" = "yes" ; then
8729 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8730 found="yes"
8731 fi
8732 fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 xorg_testset_save_CFLAGS="$CFLAGS"
8749
8750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8755 then :
8756 printf %s "(cached) " >&6
8757 else case e in #(
8758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"
8763 then :
8764 xorg_cv_cc_flag_unknown_warning_option=yes
8765 else case e in #(
8766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8767 esac
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8770 esac
8771 fi
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 fi
8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8786 then :
8787 printf %s "(cached) " >&6
8788 else case e in #(
8789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"
8794 then :
8795 xorg_cv_cc_flag_unused_command_line_argument=yes
8796 else case e in #(
8797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8798 esac
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8801 esac
8802 fi
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8806 CFLAGS="$xorg_testset_save_CFLAGS"
8807 fi
8808
8809 found="no"
8810
8811 if test $found = "no" ; then
8812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814 fi
8815
8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8818 fi
8819
8820 CFLAGS="$CFLAGS -Werror=write-strings"
8821
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8823 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8824 cacheid=xorg_cv_cc_flag__Werror_write_strings
8825 if eval test \${$cacheid+y}
8826 then :
8827 printf %s "(cached) " >&6
8828 else case e in #(
8829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 int i;
8832 int
8833 main (void)
8834 {
8835
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_c_try_link "$LINENO"
8841 then :
8842 eval $cacheid=yes
8843 else case e in #(
8844 e) eval $cacheid=no ;;
8845 esac
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8848 conftest$ac_exeext conftest.$ac_ext ;;
8849 esac
8850 fi
8851
8852
8853 CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855 eval supported=\$$cacheid
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857 printf "%s\n" "$supported" >&6; }
8858 if test "$supported" = "yes" ; then
8859 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8860 found="yes"
8861 fi
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878 xorg_testset_save_CFLAGS="$CFLAGS"
8879
8880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8885 then :
8886 printf %s "(cached) " >&6
8887 else case e in #(
8888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 int i;
8891 _ACEOF
8892 if ac_fn_c_try_compile "$LINENO"
8893 then :
8894 xorg_cv_cc_flag_unknown_warning_option=yes
8895 else case e in #(
8896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8897 esac
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8900 esac
8901 fi
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906 fi
8907
8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 fi
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else case e in #(
8919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 int i;
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"
8924 then :
8925 xorg_cv_cc_flag_unused_command_line_argument=yes
8926 else case e in #(
8927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8928 esac
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8931 esac
8932 fi
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8936 CFLAGS="$xorg_testset_save_CFLAGS"
8937 fi
8938
8939 found="no"
8940
8941 if test $found = "no" ; then
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 fi
8945
8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948 fi
8949
8950 CFLAGS="$CFLAGS -Werror=address"
8951
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8953 printf %s "checking if $CC supports -Werror=address... " >&6; }
8954 cacheid=xorg_cv_cc_flag__Werror_address
8955 if eval test \${$cacheid+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else case e in #(
8959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 int i;
8962 int
8963 main (void)
8964 {
8965
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 if ac_fn_c_try_link "$LINENO"
8971 then :
8972 eval $cacheid=yes
8973 else case e in #(
8974 e) eval $cacheid=no ;;
8975 esac
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8978 conftest$ac_exeext conftest.$ac_ext ;;
8979 esac
8980 fi
8981
8982
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984
8985 eval supported=\$$cacheid
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8987 printf "%s\n" "$supported" >&6; }
8988 if test "$supported" = "yes" ; then
8989 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8990 found="yes"
8991 fi
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008 xorg_testset_save_CFLAGS="$CFLAGS"
9009
9010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9015 then :
9016 printf %s "(cached) " >&6
9017 else case e in #(
9018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 int i;
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"
9023 then :
9024 xorg_cv_cc_flag_unknown_warning_option=yes
9025 else case e in #(
9026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9027 esac
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9030 esac
9031 fi
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9035 CFLAGS="$xorg_testset_save_CFLAGS"
9036 fi
9037
9038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 fi
9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9046 then :
9047 printf %s "(cached) " >&6
9048 else case e in #(
9049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 int i;
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"
9054 then :
9055 xorg_cv_cc_flag_unused_command_line_argument=yes
9056 else case e in #(
9057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9058 esac
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9061 esac
9062 fi
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9066 CFLAGS="$xorg_testset_save_CFLAGS"
9067 fi
9068
9069 found="no"
9070
9071 if test $found = "no" ; then
9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074 fi
9075
9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078 fi
9079
9080 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9081
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9083 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9084 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9085 if eval test \${$cacheid+y}
9086 then :
9087 printf %s "(cached) " >&6
9088 else case e in #(
9089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 int i;
9092 int
9093 main (void)
9094 {
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"
9101 then :
9102 eval $cacheid=yes
9103 else case e in #(
9104 e) eval $cacheid=no ;;
9105 esac
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9108 conftest$ac_exeext conftest.$ac_ext ;;
9109 esac
9110 fi
9111
9112
9113 CFLAGS="$xorg_testset_save_CFLAGS"
9114
9115 eval supported=\$$cacheid
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9117 printf "%s\n" "$supported" >&6; }
9118 if test "$supported" = "yes" ; then
9119 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9120 found="yes"
9121 fi
9122 fi
9123
9124 if test $found = "no" ; then
9125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9127 fi
9128
9129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131 fi
9132
9133 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9134
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9136 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9137 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9138 if eval test \${$cacheid+y}
9139 then :
9140 printf %s "(cached) " >&6
9141 else case e in #(
9142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 int
9146 main (void)
9147 {
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"
9154 then :
9155 eval $cacheid=yes
9156 else case e in #(
9157 e) eval $cacheid=no ;;
9158 esac
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9161 conftest$ac_exeext conftest.$ac_ext ;;
9162 esac
9163 fi
9164
9165
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168 eval supported=\$$cacheid
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170 printf "%s\n" "$supported" >&6; }
9171 if test "$supported" = "yes" ; then
9172 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9173 found="yes"
9174 fi
9175 fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9198 then :
9199 printf %s "(cached) " >&6
9200 else case e in #(
9201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 int i;
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"
9206 then :
9207 xorg_cv_cc_flag_unknown_warning_option=yes
9208 else case e in #(
9209 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9210 esac
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9213 esac
9214 fi
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9218 CFLAGS="$xorg_testset_save_CFLAGS"
9219 fi
9220
9221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 fi
9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9229 then :
9230 printf %s "(cached) " >&6
9231 else case e in #(
9232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int i;
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"
9237 then :
9238 xorg_cv_cc_flag_unused_command_line_argument=yes
9239 else case e in #(
9240 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9241 esac
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9244 esac
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249 CFLAGS="$xorg_testset_save_CFLAGS"
9250 fi
9251
9252 found="no"
9253
9254 if test $found = "no" ; then
9255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257 fi
9258
9259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 fi
9262
9263 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9264
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9266 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9267 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9268 if eval test \${$cacheid+y}
9269 then :
9270 printf %s "(cached) " >&6
9271 else case e in #(
9272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 int i;
9275 int
9276 main (void)
9277 {
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"
9284 then :
9285 eval $cacheid=yes
9286 else case e in #(
9287 e) eval $cacheid=no ;;
9288 esac
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9291 conftest$ac_exeext conftest.$ac_ext ;;
9292 esac
9293 fi
9294
9295
9296 CFLAGS="$xorg_testset_save_CFLAGS"
9297
9298 eval supported=\$$cacheid
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9300 printf "%s\n" "$supported" >&6; }
9301 if test "$supported" = "yes" ; then
9302 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9303 found="yes"
9304 fi
9305 fi
9306
9307 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9308 else
9309 { 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
9310 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;}
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else case e in #(
9334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 int i;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"
9339 then :
9340 xorg_cv_cc_flag_unknown_warning_option=yes
9341 else case e in #(
9342 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9343 esac
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9346 esac
9347 fi
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351 CFLAGS="$xorg_testset_save_CFLAGS"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 fi
9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9362 then :
9363 printf %s "(cached) " >&6
9364 else case e in #(
9365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 int i;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"
9370 then :
9371 xorg_cv_cc_flag_unused_command_line_argument=yes
9372 else case e in #(
9373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9374 esac
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9377 esac
9378 fi
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9382 CFLAGS="$xorg_testset_save_CFLAGS"
9383 fi
9384
9385 found="no"
9386
9387 if test $found = "no" ; then
9388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390 fi
9391
9392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394 fi
9395
9396 CFLAGS="$CFLAGS -Wimplicit"
9397
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9399 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9400 cacheid=xorg_cv_cc_flag__Wimplicit
9401 if eval test \${$cacheid+y}
9402 then :
9403 printf %s "(cached) " >&6
9404 else case e in #(
9405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 int
9409 main (void)
9410 {
9411
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 if ac_fn_c_try_link "$LINENO"
9417 then :
9418 eval $cacheid=yes
9419 else case e in #(
9420 e) eval $cacheid=no ;;
9421 esac
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9424 conftest$ac_exeext conftest.$ac_ext ;;
9425 esac
9426 fi
9427
9428
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430
9431 eval supported=\$$cacheid
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9433 printf "%s\n" "$supported" >&6; }
9434 if test "$supported" = "yes" ; then
9435 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9436 found="yes"
9437 fi
9438 fi
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 xorg_testset_save_CFLAGS="$CFLAGS"
9455
9456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9461 then :
9462 printf %s "(cached) " >&6
9463 else case e in #(
9464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 int i;
9467 _ACEOF
9468 if ac_fn_c_try_compile "$LINENO"
9469 then :
9470 xorg_cv_cc_flag_unknown_warning_option=yes
9471 else case e in #(
9472 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9473 esac
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9476 esac
9477 fi
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482 fi
9483
9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487 fi
9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9492 then :
9493 printf %s "(cached) " >&6
9494 else case e in #(
9495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 int i;
9498 _ACEOF
9499 if ac_fn_c_try_compile "$LINENO"
9500 then :
9501 xorg_cv_cc_flag_unused_command_line_argument=yes
9502 else case e in #(
9503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9504 esac
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9507 esac
9508 fi
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9512 CFLAGS="$xorg_testset_save_CFLAGS"
9513 fi
9514
9515 found="no"
9516
9517 if test $found = "no" ; then
9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9520 fi
9521
9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524 fi
9525
9526 CFLAGS="$CFLAGS -Wnonnull"
9527
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9529 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9530 cacheid=xorg_cv_cc_flag__Wnonnull
9531 if eval test \${$cacheid+y}
9532 then :
9533 printf %s "(cached) " >&6
9534 else case e in #(
9535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 int i;
9538 int
9539 main (void)
9540 {
9541
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"
9547 then :
9548 eval $cacheid=yes
9549 else case e in #(
9550 e) eval $cacheid=no ;;
9551 esac
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554 conftest$ac_exeext conftest.$ac_ext ;;
9555 esac
9556 fi
9557
9558
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561 eval supported=\$$cacheid
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 printf "%s\n" "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9566 found="yes"
9567 fi
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9591 then :
9592 printf %s "(cached) " >&6
9593 else case e in #(
9594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 int i;
9597 _ACEOF
9598 if ac_fn_c_try_compile "$LINENO"
9599 then :
9600 xorg_cv_cc_flag_unknown_warning_option=yes
9601 else case e in #(
9602 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9603 esac
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9606 esac
9607 fi
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9611 CFLAGS="$xorg_testset_save_CFLAGS"
9612 fi
9613
9614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617 fi
9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9622 then :
9623 printf %s "(cached) " >&6
9624 else case e in #(
9625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 int i;
9628 _ACEOF
9629 if ac_fn_c_try_compile "$LINENO"
9630 then :
9631 xorg_cv_cc_flag_unused_command_line_argument=yes
9632 else case e in #(
9633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9634 esac
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9637 esac
9638 fi
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9643 fi
9644
9645 found="no"
9646
9647 if test $found = "no" ; then
9648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 fi
9651
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 fi
9655
9656 CFLAGS="$CFLAGS -Winit-self"
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9659 printf %s "checking if $CC supports -Winit-self... " >&6; }
9660 cacheid=xorg_cv_cc_flag__Winit_self
9661 if eval test \${$cacheid+y}
9662 then :
9663 printf %s "(cached) " >&6
9664 else case e in #(
9665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 int i;
9668 int
9669 main (void)
9670 {
9671
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"
9677 then :
9678 eval $cacheid=yes
9679 else case e in #(
9680 e) eval $cacheid=no ;;
9681 esac
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9684 conftest$ac_exeext conftest.$ac_ext ;;
9685 esac
9686 fi
9687
9688
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690
9691 eval supported=\$$cacheid
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9693 printf "%s\n" "$supported" >&6; }
9694 if test "$supported" = "yes" ; then
9695 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9696 found="yes"
9697 fi
9698 fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714 xorg_testset_save_CFLAGS="$CFLAGS"
9715
9716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9721 then :
9722 printf %s "(cached) " >&6
9723 else case e in #(
9724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 int i;
9727 _ACEOF
9728 if ac_fn_c_try_compile "$LINENO"
9729 then :
9730 xorg_cv_cc_flag_unknown_warning_option=yes
9731 else case e in #(
9732 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9733 esac
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9736 esac
9737 fi
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742 fi
9743
9744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747 fi
9748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9752 then :
9753 printf %s "(cached) " >&6
9754 else case e in #(
9755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 int i;
9758 _ACEOF
9759 if ac_fn_c_try_compile "$LINENO"
9760 then :
9761 xorg_cv_cc_flag_unused_command_line_argument=yes
9762 else case e in #(
9763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9764 esac
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9767 esac
9768 fi
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9772 CFLAGS="$xorg_testset_save_CFLAGS"
9773 fi
9774
9775 found="no"
9776
9777 if test $found = "no" ; then
9778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9780 fi
9781
9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784 fi
9785
9786 CFLAGS="$CFLAGS -Wmain"
9787
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9789 printf %s "checking if $CC supports -Wmain... " >&6; }
9790 cacheid=xorg_cv_cc_flag__Wmain
9791 if eval test \${$cacheid+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else case e in #(
9795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 int
9799 main (void)
9800 {
9801
9802 ;
9803 return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_link "$LINENO"
9807 then :
9808 eval $cacheid=yes
9809 else case e in #(
9810 e) eval $cacheid=no ;;
9811 esac
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9814 conftest$ac_exeext conftest.$ac_ext ;;
9815 esac
9816 fi
9817
9818
9819 CFLAGS="$xorg_testset_save_CFLAGS"
9820
9821 eval supported=\$$cacheid
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9823 printf "%s\n" "$supported" >&6; }
9824 if test "$supported" = "yes" ; then
9825 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9826 found="yes"
9827 fi
9828 fi
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844 xorg_testset_save_CFLAGS="$CFLAGS"
9845
9846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9850 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9851 then :
9852 printf %s "(cached) " >&6
9853 else case e in #(
9854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 int i;
9857 _ACEOF
9858 if ac_fn_c_try_compile "$LINENO"
9859 then :
9860 xorg_cv_cc_flag_unknown_warning_option=yes
9861 else case e in #(
9862 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9863 esac
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9866 esac
9867 fi
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9871 CFLAGS="$xorg_testset_save_CFLAGS"
9872 fi
9873
9874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877 fi
9878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9882 then :
9883 printf %s "(cached) " >&6
9884 else case e in #(
9885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887 int i;
9888 _ACEOF
9889 if ac_fn_c_try_compile "$LINENO"
9890 then :
9891 xorg_cv_cc_flag_unused_command_line_argument=yes
9892 else case e in #(
9893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9894 esac
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9897 esac
9898 fi
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9902 CFLAGS="$xorg_testset_save_CFLAGS"
9903 fi
9904
9905 found="no"
9906
9907 if test $found = "no" ; then
9908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910 fi
9911
9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914 fi
9915
9916 CFLAGS="$CFLAGS -Wmissing-braces"
9917
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9919 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9920 cacheid=xorg_cv_cc_flag__Wmissing_braces
9921 if eval test \${$cacheid+y}
9922 then :
9923 printf %s "(cached) " >&6
9924 else case e in #(
9925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int i;
9928 int
9929 main (void)
9930 {
9931
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"
9937 then :
9938 eval $cacheid=yes
9939 else case e in #(
9940 e) eval $cacheid=no ;;
9941 esac
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9944 conftest$ac_exeext conftest.$ac_ext ;;
9945 esac
9946 fi
9947
9948
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951 eval supported=\$$cacheid
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953 printf "%s\n" "$supported" >&6; }
9954 if test "$supported" = "yes" ; then
9955 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9956 found="yes"
9957 fi
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9981 then :
9982 printf %s "(cached) " >&6
9983 else case e in #(
9984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 int i;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"
9989 then :
9990 xorg_cv_cc_flag_unknown_warning_option=yes
9991 else case e in #(
9992 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9993 esac
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9996 esac
9997 fi
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 fi
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10012 then :
10013 printf %s "(cached) " >&6
10014 else case e in #(
10015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 int i;
10018 _ACEOF
10019 if ac_fn_c_try_compile "$LINENO"
10020 then :
10021 xorg_cv_cc_flag_unused_command_line_argument=yes
10022 else case e in #(
10023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10024 esac
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10027 esac
10028 fi
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10032 CFLAGS="$xorg_testset_save_CFLAGS"
10033 fi
10034
10035 found="no"
10036
10037 if test $found = "no" ; then
10038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040 fi
10041
10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044 fi
10045
10046 CFLAGS="$CFLAGS -Wsequence-point"
10047
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10049 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10050 cacheid=xorg_cv_cc_flag__Wsequence_point
10051 if eval test \${$cacheid+y}
10052 then :
10053 printf %s "(cached) " >&6
10054 else case e in #(
10055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 int i;
10058 int
10059 main (void)
10060 {
10061
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 if ac_fn_c_try_link "$LINENO"
10067 then :
10068 eval $cacheid=yes
10069 else case e in #(
10070 e) eval $cacheid=no ;;
10071 esac
10072 fi
10073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10074 conftest$ac_exeext conftest.$ac_ext ;;
10075 esac
10076 fi
10077
10078
10079 CFLAGS="$xorg_testset_save_CFLAGS"
10080
10081 eval supported=\$$cacheid
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10083 printf "%s\n" "$supported" >&6; }
10084 if test "$supported" = "yes" ; then
10085 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10086 found="yes"
10087 fi
10088 fi
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 xorg_testset_save_CFLAGS="$CFLAGS"
10105
10106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10111 then :
10112 printf %s "(cached) " >&6
10113 else case e in #(
10114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 int i;
10117 _ACEOF
10118 if ac_fn_c_try_compile "$LINENO"
10119 then :
10120 xorg_cv_cc_flag_unknown_warning_option=yes
10121 else case e in #(
10122 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10123 esac
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10126 esac
10127 fi
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137 fi
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else case e in #(
10145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"
10150 then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else case e in #(
10153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10154 esac
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10157 esac
10158 fi
10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10162 CFLAGS="$xorg_testset_save_CFLAGS"
10163 fi
10164
10165 found="no"
10166
10167 if test $found = "no" ; then
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174 fi
10175
10176 CFLAGS="$CFLAGS -Wreturn-type"
10177
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10179 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10180 cacheid=xorg_cv_cc_flag__Wreturn_type
10181 if eval test \${$cacheid+y}
10182 then :
10183 printf %s "(cached) " >&6
10184 else case e in #(
10185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 int i;
10188 int
10189 main (void)
10190 {
10191
10192 ;
10193 return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"
10197 then :
10198 eval $cacheid=yes
10199 else case e in #(
10200 e) eval $cacheid=no ;;
10201 esac
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10204 conftest$ac_exeext conftest.$ac_ext ;;
10205 esac
10206 fi
10207
10208
10209 CFLAGS="$xorg_testset_save_CFLAGS"
10210
10211 eval supported=\$$cacheid
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10213 printf "%s\n" "$supported" >&6; }
10214 if test "$supported" = "yes" ; then
10215 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10216 found="yes"
10217 fi
10218 fi
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 xorg_testset_save_CFLAGS="$CFLAGS"
10235
10236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10241 then :
10242 printf %s "(cached) " >&6
10243 else case e in #(
10244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 int i;
10247 _ACEOF
10248 if ac_fn_c_try_compile "$LINENO"
10249 then :
10250 xorg_cv_cc_flag_unknown_warning_option=yes
10251 else case e in #(
10252 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10253 esac
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10256 esac
10257 fi
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262 fi
10263
10264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267 fi
10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10272 then :
10273 printf %s "(cached) " >&6
10274 else case e in #(
10275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 int i;
10278 _ACEOF
10279 if ac_fn_c_try_compile "$LINENO"
10280 then :
10281 xorg_cv_cc_flag_unused_command_line_argument=yes
10282 else case e in #(
10283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10284 esac
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10287 esac
10288 fi
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10292 CFLAGS="$xorg_testset_save_CFLAGS"
10293 fi
10294
10295 found="no"
10296
10297 if test $found = "no" ; then
10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300 fi
10301
10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304 fi
10305
10306 CFLAGS="$CFLAGS -Wtrigraphs"
10307
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10309 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10310 cacheid=xorg_cv_cc_flag__Wtrigraphs
10311 if eval test \${$cacheid+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else case e in #(
10315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 int i;
10318 int
10319 main (void)
10320 {
10321
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"
10327 then :
10328 eval $cacheid=yes
10329 else case e in #(
10330 e) eval $cacheid=no ;;
10331 esac
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10334 conftest$ac_exeext conftest.$ac_ext ;;
10335 esac
10336 fi
10337
10338
10339 CFLAGS="$xorg_testset_save_CFLAGS"
10340
10341 eval supported=\$$cacheid
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10343 printf "%s\n" "$supported" >&6; }
10344 if test "$supported" = "yes" ; then
10345 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10346 found="yes"
10347 fi
10348 fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364 xorg_testset_save_CFLAGS="$CFLAGS"
10365
10366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10370 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10371 then :
10372 printf %s "(cached) " >&6
10373 else case e in #(
10374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"
10379 then :
10380 xorg_cv_cc_flag_unknown_warning_option=yes
10381 else case e in #(
10382 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10383 esac
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10386 esac
10387 fi
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10391 CFLAGS="$xorg_testset_save_CFLAGS"
10392 fi
10393
10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397 fi
10398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10402 then :
10403 printf %s "(cached) " >&6
10404 else case e in #(
10405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 int i;
10408 _ACEOF
10409 if ac_fn_c_try_compile "$LINENO"
10410 then :
10411 xorg_cv_cc_flag_unused_command_line_argument=yes
10412 else case e in #(
10413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10414 esac
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10417 esac
10418 fi
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10422 CFLAGS="$xorg_testset_save_CFLAGS"
10423 fi
10424
10425 found="no"
10426
10427 if test $found = "no" ; then
10428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430 fi
10431
10432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434 fi
10435
10436 CFLAGS="$CFLAGS -Warray-bounds"
10437
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10439 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10440 cacheid=xorg_cv_cc_flag__Warray_bounds
10441 if eval test \${$cacheid+y}
10442 then :
10443 printf %s "(cached) " >&6
10444 else case e in #(
10445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int i;
10448 int
10449 main (void)
10450 {
10451
10452 ;
10453 return 0;
10454 }
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"
10457 then :
10458 eval $cacheid=yes
10459 else case e in #(
10460 e) eval $cacheid=no ;;
10461 esac
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464 conftest$ac_exeext conftest.$ac_ext ;;
10465 esac
10466 fi
10467
10468
10469 CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471 eval supported=\$$cacheid
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473 printf "%s\n" "$supported" >&6; }
10474 if test "$supported" = "yes" ; then
10475 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10476 found="yes"
10477 fi
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494 xorg_testset_save_CFLAGS="$CFLAGS"
10495
10496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else case e in #(
10504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int i;
10507 _ACEOF
10508 if ac_fn_c_try_compile "$LINENO"
10509 then :
10510 xorg_cv_cc_flag_unknown_warning_option=yes
10511 else case e in #(
10512 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10513 esac
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10516 esac
10517 fi
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10521 CFLAGS="$xorg_testset_save_CFLAGS"
10522 fi
10523
10524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527 fi
10528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10532 then :
10533 printf %s "(cached) " >&6
10534 else case e in #(
10535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 int i;
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"
10540 then :
10541 xorg_cv_cc_flag_unused_command_line_argument=yes
10542 else case e in #(
10543 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10544 esac
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10547 esac
10548 fi
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10550 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10552 CFLAGS="$xorg_testset_save_CFLAGS"
10553 fi
10554
10555 found="no"
10556
10557 if test $found = "no" ; then
10558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560 fi
10561
10562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10564 fi
10565
10566 CFLAGS="$CFLAGS -Wwrite-strings"
10567
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10569 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10570 cacheid=xorg_cv_cc_flag__Wwrite_strings
10571 if eval test \${$cacheid+y}
10572 then :
10573 printf %s "(cached) " >&6
10574 else case e in #(
10575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 int i;
10578 int
10579 main (void)
10580 {
10581
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"
10587 then :
10588 eval $cacheid=yes
10589 else case e in #(
10590 e) eval $cacheid=no ;;
10591 esac
10592 fi
10593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10594 conftest$ac_exeext conftest.$ac_ext ;;
10595 esac
10596 fi
10597
10598
10599 CFLAGS="$xorg_testset_save_CFLAGS"
10600
10601 eval supported=\$$cacheid
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10603 printf "%s\n" "$supported" >&6; }
10604 if test "$supported" = "yes" ; then
10605 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10606 found="yes"
10607 fi
10608 fi
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624 xorg_testset_save_CFLAGS="$CFLAGS"
10625
10626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10631 then :
10632 printf %s "(cached) " >&6
10633 else case e in #(
10634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 int i;
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"
10639 then :
10640 xorg_cv_cc_flag_unknown_warning_option=yes
10641 else case e in #(
10642 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10643 esac
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10646 esac
10647 fi
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10651 CFLAGS="$xorg_testset_save_CFLAGS"
10652 fi
10653
10654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657 fi
10658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else case e in #(
10665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 int i;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"
10670 then :
10671 xorg_cv_cc_flag_unused_command_line_argument=yes
10672 else case e in #(
10673 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10674 esac
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10677 esac
10678 fi
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10682 CFLAGS="$xorg_testset_save_CFLAGS"
10683 fi
10684
10685 found="no"
10686
10687 if test $found = "no" ; then
10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10690 fi
10691
10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694 fi
10695
10696 CFLAGS="$CFLAGS -Waddress"
10697
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10699 printf %s "checking if $CC supports -Waddress... " >&6; }
10700 cacheid=xorg_cv_cc_flag__Waddress
10701 if eval test \${$cacheid+y}
10702 then :
10703 printf %s "(cached) " >&6
10704 else case e in #(
10705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 int i;
10708 int
10709 main (void)
10710 {
10711
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"
10717 then :
10718 eval $cacheid=yes
10719 else case e in #(
10720 e) eval $cacheid=no ;;
10721 esac
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10724 conftest$ac_exeext conftest.$ac_ext ;;
10725 esac
10726 fi
10727
10728
10729 CFLAGS="$xorg_testset_save_CFLAGS"
10730
10731 eval supported=\$$cacheid
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10733 printf "%s\n" "$supported" >&6; }
10734 if test "$supported" = "yes" ; then
10735 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10736 found="yes"
10737 fi
10738 fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754 xorg_testset_save_CFLAGS="$CFLAGS"
10755
10756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10761 then :
10762 printf %s "(cached) " >&6
10763 else case e in #(
10764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 int i;
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"
10769 then :
10770 xorg_cv_cc_flag_unknown_warning_option=yes
10771 else case e in #(
10772 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10773 esac
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10776 esac
10777 fi
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10781 CFLAGS="$xorg_testset_save_CFLAGS"
10782 fi
10783
10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787 fi
10788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10792 then :
10793 printf %s "(cached) " >&6
10794 else case e in #(
10795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 int i;
10798 _ACEOF
10799 if ac_fn_c_try_compile "$LINENO"
10800 then :
10801 xorg_cv_cc_flag_unused_command_line_argument=yes
10802 else case e in #(
10803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10804 esac
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10807 esac
10808 fi
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10812 CFLAGS="$xorg_testset_save_CFLAGS"
10813 fi
10814
10815 found="no"
10816
10817 if test $found = "no" ; then
10818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10820 fi
10821
10822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10824 fi
10825
10826 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10827
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10829 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10830 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10831 if eval test \${$cacheid+y}
10832 then :
10833 printf %s "(cached) " >&6
10834 else case e in #(
10835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 int i;
10838 int
10839 main (void)
10840 {
10841
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"
10847 then :
10848 eval $cacheid=yes
10849 else case e in #(
10850 e) eval $cacheid=no ;;
10851 esac
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10854 conftest$ac_exeext conftest.$ac_ext ;;
10855 esac
10856 fi
10857
10858
10859 CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861 eval supported=\$$cacheid
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863 printf "%s\n" "$supported" >&6; }
10864 if test "$supported" = "yes" ; then
10865 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10866 found="yes"
10867 fi
10868 fi
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884 xorg_testset_save_CFLAGS="$CFLAGS"
10885
10886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10890 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10891 then :
10892 printf %s "(cached) " >&6
10893 else case e in #(
10894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 int i;
10897 _ACEOF
10898 if ac_fn_c_try_compile "$LINENO"
10899 then :
10900 xorg_cv_cc_flag_unknown_warning_option=yes
10901 else case e in #(
10902 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10903 esac
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10906 esac
10907 fi
10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10911 CFLAGS="$xorg_testset_save_CFLAGS"
10912 fi
10913
10914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10917 fi
10918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10922 then :
10923 printf %s "(cached) " >&6
10924 else case e in #(
10925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10927 int i;
10928 _ACEOF
10929 if ac_fn_c_try_compile "$LINENO"
10930 then :
10931 xorg_cv_cc_flag_unused_command_line_argument=yes
10932 else case e in #(
10933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10934 esac
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10937 esac
10938 fi
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10942 CFLAGS="$xorg_testset_save_CFLAGS"
10943 fi
10944
10945 found="no"
10946
10947 if test $found = "no" ; then
10948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10950 fi
10951
10952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10954 fi
10955
10956 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10957
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10959 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10960 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10961 if eval test \${$cacheid+y}
10962 then :
10963 printf %s "(cached) " >&6
10964 else case e in #(
10965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967 int i;
10968 int
10969 main (void)
10970 {
10971
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"
10977 then :
10978 eval $cacheid=yes
10979 else case e in #(
10980 e) eval $cacheid=no ;;
10981 esac
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10984 conftest$ac_exeext conftest.$ac_ext ;;
10985 esac
10986 fi
10987
10988
10989 CFLAGS="$xorg_testset_save_CFLAGS"
10990
10991 eval supported=\$$cacheid
10992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10993 printf "%s\n" "$supported" >&6; }
10994 if test "$supported" = "yes" ; then
10995 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10996 found="yes"
10997 fi
10998 fi
10999
11000
11001 fi
11002
11003
11004
11005
11006
11007
11008
11009 CWARNFLAGS="$BASE_CFLAGS"
11010 if test "x$GCC" = xyes ; then
11011 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11012 fi
11013
11014
11015
11016
11017
11018
11019
11020
11021 # Check whether --enable-strict-compilation was given.
11022 if test ${enable_strict_compilation+y}
11023 then :
11024 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11025 else case e in #(
11026 e) STRICT_COMPILE=no ;;
11027 esac
11028 fi
11029
11030
11031
11032
11033
11034
11035 STRICT_CFLAGS=""
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049 xorg_testset_save_CFLAGS="$CFLAGS"
11050
11051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11056 then :
11057 printf %s "(cached) " >&6
11058 else case e in #(
11059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 int i;
11062 _ACEOF
11063 if ac_fn_c_try_compile "$LINENO"
11064 then :
11065 xorg_cv_cc_flag_unknown_warning_option=yes
11066 else case e in #(
11067 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11068 esac
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11071 esac
11072 fi
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11076 CFLAGS="$xorg_testset_save_CFLAGS"
11077 fi
11078
11079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11082 fi
11083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11087 then :
11088 printf %s "(cached) " >&6
11089 else case e in #(
11090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 int i;
11093 _ACEOF
11094 if ac_fn_c_try_compile "$LINENO"
11095 then :
11096 xorg_cv_cc_flag_unused_command_line_argument=yes
11097 else case e in #(
11098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11099 esac
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11102 esac
11103 fi
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11107 CFLAGS="$xorg_testset_save_CFLAGS"
11108 fi
11109
11110 found="no"
11111
11112 if test $found = "no" ; then
11113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11115 fi
11116
11117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11119 fi
11120
11121 CFLAGS="$CFLAGS -pedantic"
11122
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11124 printf %s "checking if $CC supports -pedantic... " >&6; }
11125 cacheid=xorg_cv_cc_flag__pedantic
11126 if eval test \${$cacheid+y}
11127 then :
11128 printf %s "(cached) " >&6
11129 else case e in #(
11130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132 int i;
11133 int
11134 main (void)
11135 {
11136
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"
11142 then :
11143 eval $cacheid=yes
11144 else case e in #(
11145 e) eval $cacheid=no ;;
11146 esac
11147 fi
11148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11149 conftest$ac_exeext conftest.$ac_ext ;;
11150 esac
11151 fi
11152
11153
11154 CFLAGS="$xorg_testset_save_CFLAGS"
11155
11156 eval supported=\$$cacheid
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11158 printf "%s\n" "$supported" >&6; }
11159 if test "$supported" = "yes" ; then
11160 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11161 found="yes"
11162 fi
11163 fi
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179 xorg_testset_save_CFLAGS="$CFLAGS"
11180
11181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11186 then :
11187 printf %s "(cached) " >&6
11188 else case e in #(
11189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191 int i;
11192 _ACEOF
11193 if ac_fn_c_try_compile "$LINENO"
11194 then :
11195 xorg_cv_cc_flag_unknown_warning_option=yes
11196 else case e in #(
11197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11198 esac
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11201 esac
11202 fi
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11206 CFLAGS="$xorg_testset_save_CFLAGS"
11207 fi
11208
11209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11212 fi
11213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11217 then :
11218 printf %s "(cached) " >&6
11219 else case e in #(
11220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 int i;
11223 _ACEOF
11224 if ac_fn_c_try_compile "$LINENO"
11225 then :
11226 xorg_cv_cc_flag_unused_command_line_argument=yes
11227 else case e in #(
11228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11229 esac
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11232 esac
11233 fi
11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11237 CFLAGS="$xorg_testset_save_CFLAGS"
11238 fi
11239
11240 found="no"
11241
11242 if test $found = "no" ; then
11243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11245 fi
11246
11247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11249 fi
11250
11251 CFLAGS="$CFLAGS -Werror"
11252
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11254 printf %s "checking if $CC supports -Werror... " >&6; }
11255 cacheid=xorg_cv_cc_flag__Werror
11256 if eval test \${$cacheid+y}
11257 then :
11258 printf %s "(cached) " >&6
11259 else case e in #(
11260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 int i;
11263 int
11264 main (void)
11265 {
11266
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"
11272 then :
11273 eval $cacheid=yes
11274 else case e in #(
11275 e) eval $cacheid=no ;;
11276 esac
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279 conftest$ac_exeext conftest.$ac_ext ;;
11280 esac
11281 fi
11282
11283
11284 CFLAGS="$xorg_testset_save_CFLAGS"
11285
11286 eval supported=\$$cacheid
11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11288 printf "%s\n" "$supported" >&6; }
11289 if test "$supported" = "yes" ; then
11290 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11291 found="yes"
11292 fi
11293 fi
11294
11295 if test $found = "no" ; then
11296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11298 fi
11299
11300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11302 fi
11303
11304 CFLAGS="$CFLAGS -errwarn"
11305
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11307 printf %s "checking if $CC supports -errwarn... " >&6; }
11308 cacheid=xorg_cv_cc_flag__errwarn
11309 if eval test \${$cacheid+y}
11310 then :
11311 printf %s "(cached) " >&6
11312 else case e in #(
11313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 int i;
11316 int
11317 main (void)
11318 {
11319
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"
11325 then :
11326 eval $cacheid=yes
11327 else case e in #(
11328 e) eval $cacheid=no ;;
11329 esac
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11332 conftest$ac_exeext conftest.$ac_ext ;;
11333 esac
11334 fi
11335
11336
11337 CFLAGS="$xorg_testset_save_CFLAGS"
11338
11339 eval supported=\$$cacheid
11340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11341 printf "%s\n" "$supported" >&6; }
11342 if test "$supported" = "yes" ; then
11343 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11344 found="yes"
11345 fi
11346 fi
11347
11348
11349
11350 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11351 # activate it with -Werror, so we add it here explicitly.
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 xorg_testset_save_CFLAGS="$CFLAGS"
11366
11367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11372 then :
11373 printf %s "(cached) " >&6
11374 else case e in #(
11375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377 int i;
11378 _ACEOF
11379 if ac_fn_c_try_compile "$LINENO"
11380 then :
11381 xorg_cv_cc_flag_unknown_warning_option=yes
11382 else case e in #(
11383 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11384 esac
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11387 esac
11388 fi
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11390 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11392 CFLAGS="$xorg_testset_save_CFLAGS"
11393 fi
11394
11395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11398 fi
11399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11403 then :
11404 printf %s "(cached) " >&6
11405 else case e in #(
11406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 int i;
11409 _ACEOF
11410 if ac_fn_c_try_compile "$LINENO"
11411 then :
11412 xorg_cv_cc_flag_unused_command_line_argument=yes
11413 else case e in #(
11414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11415 esac
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11418 esac
11419 fi
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11423 CFLAGS="$xorg_testset_save_CFLAGS"
11424 fi
11425
11426 found="no"
11427
11428 if test $found = "no" ; then
11429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11431 fi
11432
11433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11435 fi
11436
11437 CFLAGS="$CFLAGS -Werror=attributes"
11438
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11440 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11441 cacheid=xorg_cv_cc_flag__Werror_attributes
11442 if eval test \${$cacheid+y}
11443 then :
11444 printf %s "(cached) " >&6
11445 else case e in #(
11446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448 int i;
11449 int
11450 main (void)
11451 {
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"
11458 then :
11459 eval $cacheid=yes
11460 else case e in #(
11461 e) eval $cacheid=no ;;
11462 esac
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11465 conftest$ac_exeext conftest.$ac_ext ;;
11466 esac
11467 fi
11468
11469
11470 CFLAGS="$xorg_testset_save_CFLAGS"
11471
11472 eval supported=\$$cacheid
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11474 printf "%s\n" "$supported" >&6; }
11475 if test "$supported" = "yes" ; then
11476 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11477 found="yes"
11478 fi
11479 fi
11480
11481
11482
11483 if test "x$STRICT_COMPILE" = "xyes"; then
11484 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11485 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11486 fi
11487
11488
11489
11490
11491
11492
11493
11494
11495 cat >>confdefs.h <<_ACEOF
11496 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11497 _ACEOF
11498
11499 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11500 if test "x$PVM" = "x"; then
11501 PVM="0"
11502 fi
11503
11504 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11505
11506 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11507 if test "x$PVP" = "x"; then
11508 PVP="0"
11509 fi
11510
11511 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11512
11513
11514
11515 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11516 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11517 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11518 touch \$(top_srcdir)/ChangeLog; \
11519 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11520
11521
11522
11523
11524 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11525 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11526 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11527 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11528 touch \$(top_srcdir)/INSTALL; \
11529 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11530
11531
11532
11533
11534
11535
11536 case $host_os in
11537 solaris*)
11538 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11539 # check for a man page file found in later versions that use
11540 # traditional section numbers instead
11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11542 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11543 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11544 then :
11545 printf %s "(cached) " >&6
11546 else case e in #(
11547 e) test "$cross_compiling" = yes &&
11548 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11549 if test -r "/usr/share/man/man7/attributes.7"; then
11550 ac_cv_file__usr_share_man_man7_attributes_7=yes
11551 else
11552 ac_cv_file__usr_share_man_man7_attributes_7=no
11553 fi ;;
11554 esac
11555 fi
11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11557 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11558 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11559 then :
11560 SYSV_MAN_SECTIONS=false
11561 else case e in #(
11562 e) SYSV_MAN_SECTIONS=true ;;
11563 esac
11564 fi
11565
11566 ;;
11567 *) SYSV_MAN_SECTIONS=false ;;
11568 esac
11569
11570 if test x$APP_MAN_SUFFIX = x ; then
11571 APP_MAN_SUFFIX=1
11572 fi
11573 if test x$APP_MAN_DIR = x ; then
11574 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11575 fi
11576
11577 if test x$LIB_MAN_SUFFIX = x ; then
11578 LIB_MAN_SUFFIX=3
11579 fi
11580 if test x$LIB_MAN_DIR = x ; then
11581 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11582 fi
11583
11584 if test x$FILE_MAN_SUFFIX = x ; then
11585 case $SYSV_MAN_SECTIONS in
11586 true) FILE_MAN_SUFFIX=4 ;;
11587 *) FILE_MAN_SUFFIX=5 ;;
11588 esac
11589 fi
11590 if test x$FILE_MAN_DIR = x ; then
11591 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11592 fi
11593
11594 if test x$MISC_MAN_SUFFIX = x ; then
11595 case $SYSV_MAN_SECTIONS in
11596 true) MISC_MAN_SUFFIX=5 ;;
11597 *) MISC_MAN_SUFFIX=7 ;;
11598 esac
11599 fi
11600 if test x$MISC_MAN_DIR = x ; then
11601 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11602 fi
11603
11604 if test x$DRIVER_MAN_SUFFIX = x ; then
11605 case $SYSV_MAN_SECTIONS in
11606 true) DRIVER_MAN_SUFFIX=7 ;;
11607 *) DRIVER_MAN_SUFFIX=4 ;;
11608 esac
11609 fi
11610 if test x$DRIVER_MAN_DIR = x ; then
11611 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11612 fi
11613
11614 if test x$ADMIN_MAN_SUFFIX = x ; then
11615 case $SYSV_MAN_SECTIONS in
11616 true) ADMIN_MAN_SUFFIX=1m ;;
11617 *) ADMIN_MAN_SUFFIX=8 ;;
11618 esac
11619 fi
11620 if test x$ADMIN_MAN_DIR = x ; then
11621 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11622 fi
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 XORG_MAN_PAGE="X Version 11"
11639
11640 MAN_SUBSTS="\
11641 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11642 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11643 -e 's|__xservername__|Xorg|g' \
11644 -e 's|__xconfigfile__|xorg.conf|g' \
11645 -e 's|__projectroot__|\$(prefix)|g' \
11646 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11647 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11648 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11649 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11650 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11651 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11652 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11653
11654
11655
11656 # Check whether --enable-silent-rules was given.
11657 if test ${enable_silent_rules+y}
11658 then :
11659 enableval=$enable_silent_rules;
11660 fi
11661
11662 case $enable_silent_rules in # (((
11663 yes) AM_DEFAULT_VERBOSITY=0;;
11664 no) AM_DEFAULT_VERBOSITY=1;;
11665 *) AM_DEFAULT_VERBOSITY=0;;
11666 esac
11667 am_make=${MAKE-make}
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11669 printf %s "checking whether $am_make supports nested variables... " >&6; }
11670 if test ${am_cv_make_support_nested_variables+y}
11671 then :
11672 printf %s "(cached) " >&6
11673 else case e in #(
11674 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11675 BAR0=false
11676 BAR1=true
11677 V=1
11678 am__doit:
11679 @$(TRUE)
11680 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11681 am_cv_make_support_nested_variables=yes
11682 else
11683 am_cv_make_support_nested_variables=no
11684 fi ;;
11685 esac
11686 fi
11687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11688 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11689 if test $am_cv_make_support_nested_variables = yes; then
11690 AM_V='$(V)'
11691 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11692 else
11693 AM_V=$AM_DEFAULT_VERBOSITY
11694 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11695 fi
11696 AM_BACKSLASH='\'
11697
11698
11699
11700
11701
11702 # Check whether --with-bzip2 was given.
11703 if test ${with_bzip2+y}
11704 then :
11705 withval=$with_bzip2;
11706 else case e in #(
11707 e) with_bzip2=no ;;
11708 esac
11709 fi
11710
11711 if test "x$with_bzip2" = xyes; then
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
11713 printf %s "checking for BZ2_bzopen in -lbz2... " >&6; }
11714 if test ${ac_cv_lib_bz2_BZ2_bzopen+y}
11715 then :
11716 printf %s "(cached) " >&6
11717 else case e in #(
11718 e) ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-lbz2 $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply.
11726 The 'extern "C"' is for builds by C++ compilers;
11727 although this is not generally supported in C code supporting it here
11728 has little cost and some practical benefit (sr 110532). */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char BZ2_bzopen (void);
11733 int
11734 main (void)
11735 {
11736 return BZ2_bzopen ();
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_c_try_link "$LINENO"
11742 then :
11743 ac_cv_lib_bz2_BZ2_bzopen=yes
11744 else case e in #(
11745 e) ac_cv_lib_bz2_BZ2_bzopen=no ;;
11746 esac
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LIBS=$ac_check_lib_save_LIBS ;;
11751 esac
11752 fi
11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
11754 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
11755 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes
11756 then :
11757 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
11758
11759 LIBS="-lbz2 $LIBS"
11760
11761 else case e in #(
11762 e) as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 ;;
11763 esac
11764 fi
11765
11766
11767 printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
11768
11769 fi
11770
11771 # Checks for typedefs, structures, and compiler characteristics.
11772 # Check whether --enable-largefile was given.
11773 if test ${enable_largefile+y}
11774 then :
11775 enableval=$enable_largefile;
11776 fi
11777 if test "$enable_largefile,$enable_year2038" != no,no
11778 then :
11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11780 printf %s "checking for $CC option to enable large file support... " >&6; }
11781 if test ${ac_cv_sys_largefile_opts+y}
11782 then :
11783 printf %s "(cached) " >&6
11784 else case e in #(
11785 e) ac_save_CC="$CC"
11786 ac_opt_found=no
11787 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11788 if test x"$ac_opt" != x"none needed"
11789 then :
11790 CC="$ac_save_CC $ac_opt"
11791 fi
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 #include <sys/types.h>
11795 #ifndef FTYPE
11796 # define FTYPE off_t
11797 #endif
11798 /* Check that FTYPE can represent 2**63 - 1 correctly.
11799 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11800 since some C++ compilers masquerading as C compilers
11801 incorrectly reject 9223372036854775807. */
11802 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11803 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11804 && LARGE_FTYPE % 2147483647 == 1)
11805 ? 1 : -1];
11806 int
11807 main (void)
11808 {
11809
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_compile "$LINENO"
11815 then :
11816 if test x"$ac_opt" = x"none needed"
11817 then :
11818 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11819 CC="$CC -DFTYPE=ino_t"
11820 if ac_fn_c_try_compile "$LINENO"
11821 then :
11822
11823 else case e in #(
11824 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11825 if ac_fn_c_try_compile "$LINENO"
11826 then :
11827 ac_opt='-D_FILE_OFFSET_BITS=64'
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11830 esac
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext conftest.beam
11833 fi
11834 ac_cv_sys_largefile_opts=$ac_opt
11835 ac_opt_found=yes
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11838 test $ac_opt_found = no || break
11839 done
11840 CC="$ac_save_CC"
11841
11842 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11843 esac
11844 fi
11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11846 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11847
11848 ac_have_largefile=yes
11849 case $ac_cv_sys_largefile_opts in #(
11850 "none needed") :
11851 ;; #(
11852 "supported through gnulib") :
11853 ;; #(
11854 "support not detected") :
11855 ac_have_largefile=no ;; #(
11856 "-D_FILE_OFFSET_BITS=64") :
11857
11858 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11859 ;; #(
11860 "-D_LARGE_FILES=1") :
11861
11862 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11863 ;; #(
11864 "-n32") :
11865 CC="$CC -n32" ;; #(
11866 *) :
11867 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11868 esac
11869
11870 if test "$enable_year2038" != no
11871 then :
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11873 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11874 if test ${ac_cv_sys_year2038_opts+y}
11875 then :
11876 printf %s "(cached) " >&6
11877 else case e in #(
11878 e) ac_save_CPPFLAGS="$CPPFLAGS"
11879 ac_opt_found=no
11880 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11881 if test x"$ac_opt" != x"none needed"
11882 then :
11883 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11884 fi
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887
11888 #include <time.h>
11889 /* Check that time_t can represent 2**32 - 1 correctly. */
11890 #define LARGE_TIME_T \\
11891 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11892 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11893 && LARGE_TIME_T % 65537 == 0)
11894 ? 1 : -1];
11895
11896 int
11897 main (void)
11898 {
11899
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_compile "$LINENO"
11905 then :
11906 ac_cv_sys_year2038_opts="$ac_opt"
11907 ac_opt_found=yes
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11910 test $ac_opt_found = no || break
11911 done
11912 CPPFLAGS="$ac_save_CPPFLAGS"
11913 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11914 esac
11915 fi
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11917 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11918
11919 ac_have_year2038=yes
11920 case $ac_cv_sys_year2038_opts in #(
11921 "none needed") :
11922 ;; #(
11923 "support not detected") :
11924 ac_have_year2038=no ;; #(
11925 "-D_TIME_BITS=64") :
11926
11927 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11928 ;; #(
11929 "-D__MINGW_USE_VC2005_COMPAT") :
11930
11931 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11932 ;; #(
11933 "-U_USE_32_BIT_TIME_T"*) :
11934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11936 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11937 will stop working after mid-January 2038. Remove
11938 _USE_32BIT_TIME_T from the compiler flags.
11939 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11940 *) :
11941 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11942 esac
11943
11944 fi
11945
11946 fi
11947
11948 # Checks for system functions / libraries
11949 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
11950 if test "x$ac_cv_func_vasprintf" = xyes
11951 then :
11952 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
11953
11954 fi
11955
11956
11957 # Checks for pkg-config packages
11958
11959 pkg_failed=no
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
11961 printf %s "checking for MKFONTSCALE... " >&6; }
11962
11963 if test -n "$MKFONTSCALE_CFLAGS"; then
11964 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
11965 elif test -n "$PKG_CONFIG"; then
11966 if test -n "$PKG_CONFIG" && \
11967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
11968 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
11969 ac_status=$?
11970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971 test $ac_status = 0; }; then
11972 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
11973 test "x$?" != "x0" && pkg_failed=yes
11974 else
11975 pkg_failed=yes
11976 fi
11977 else
11978 pkg_failed=untried
11979 fi
11980 if test -n "$MKFONTSCALE_LIBS"; then
11981 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
11982 elif test -n "$PKG_CONFIG"; then
11983 if test -n "$PKG_CONFIG" && \
11984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
11985 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
11986 ac_status=$?
11987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988 test $ac_status = 0; }; then
11989 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
11990 test "x$?" != "x0" && pkg_failed=yes
11991 else
11992 pkg_failed=yes
11993 fi
11994 else
11995 pkg_failed=untried
11996 fi
11997
11998
11999
12000 if test $pkg_failed = yes; then
12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 printf "%s\n" "no" >&6; }
12003
12004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12005 _pkg_short_errors_supported=yes
12006 else
12007 _pkg_short_errors_supported=no
12008 fi
12009 if test $_pkg_short_errors_supported = yes; then
12010 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontenc freetype2" 2>&1`
12011 else
12012 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontenc freetype2" 2>&1`
12013 fi
12014 # Put the nasty error message in config.log where it belongs
12015 echo "$MKFONTSCALE_PKG_ERRORS" >&5
12016
12017 as_fn_error $? "Package requirements (fontenc freetype2) were not met:
12018
12019 $MKFONTSCALE_PKG_ERRORS
12020
12021 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12022 installed software in a non-standard prefix.
12023
12024 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
12025 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
12026 See the pkg-config man page for more details." "$LINENO" 5
12027 elif test $pkg_failed = untried; then
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 printf "%s\n" "no" >&6; }
12030 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12031 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12032 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12033 is in your PATH or set the PKG_CONFIG environment variable to the full
12034 path to pkg-config.
12035
12036 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
12037 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
12038 See the pkg-config man page for more details.
12039
12040 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12041 See 'config.log' for more details" "$LINENO" 5; }
12042 else
12043 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
12044 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046 printf "%s\n" "yes" >&6; }
12047
12048 fi
12049
12050 pkg_failed=no
12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12052 printf %s "checking for ZLIB... " >&6; }
12053
12054 if test -n "$ZLIB_CFLAGS"; then
12055 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12056 elif test -n "$PKG_CONFIG"; then
12057 if test -n "$PKG_CONFIG" && \
12058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12059 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12060 ac_status=$?
12061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12062 test $ac_status = 0; }; then
12063 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
12064 test "x$?" != "x0" && pkg_failed=yes
12065 else
12066 pkg_failed=yes
12067 fi
12068 else
12069 pkg_failed=untried
12070 fi
12071 if test -n "$ZLIB_LIBS"; then
12072 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12073 elif test -n "$PKG_CONFIG"; then
12074 if test -n "$PKG_CONFIG" && \
12075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12076 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12077 ac_status=$?
12078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079 test $ac_status = 0; }; then
12080 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
12081 test "x$?" != "x0" && pkg_failed=yes
12082 else
12083 pkg_failed=yes
12084 fi
12085 else
12086 pkg_failed=untried
12087 fi
12088
12089
12090
12091 if test $pkg_failed = yes; then
12092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 printf "%s\n" "no" >&6; }
12094
12095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12096 _pkg_short_errors_supported=yes
12097 else
12098 _pkg_short_errors_supported=no
12099 fi
12100 if test $_pkg_short_errors_supported = yes; then
12101 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
12102 else
12103 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
12104 fi
12105 # Put the nasty error message in config.log where it belongs
12106 echo "$ZLIB_PKG_ERRORS" >&5
12107
12108 as_fn_error $? "Package requirements (zlib) were not met:
12109
12110 $ZLIB_PKG_ERRORS
12111
12112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12113 installed software in a non-standard prefix.
12114
12115 Alternatively, you may set the environment variables ZLIB_CFLAGS
12116 and ZLIB_LIBS to avoid the need to call pkg-config.
12117 See the pkg-config man page for more details." "$LINENO" 5
12118 elif test $pkg_failed = untried; then
12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 printf "%s\n" "no" >&6; }
12121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12122 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12123 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12124 is in your PATH or set the PKG_CONFIG environment variable to the full
12125 path to pkg-config.
12126
12127 Alternatively, you may set the environment variables ZLIB_CFLAGS
12128 and ZLIB_LIBS to avoid the need to call pkg-config.
12129 See the pkg-config man page for more details.
12130
12131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12132 See 'config.log' for more details" "$LINENO" 5; }
12133 else
12134 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12135 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137 printf "%s\n" "yes" >&6; }
12138
12139 fi
12140
12141 pkg_failed=no
12142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12143 printf %s "checking for X11... " >&6; }
12144
12145 if test -n "$X11_CFLAGS"; then
12146 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12147 elif test -n "$PKG_CONFIG"; then
12148 if test -n "$PKG_CONFIG" && \
12149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12150 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12151 ac_status=$?
12152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; }; then
12154 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
12155 test "x$?" != "x0" && pkg_failed=yes
12156 else
12157 pkg_failed=yes
12158 fi
12159 else
12160 pkg_failed=untried
12161 fi
12162 if test -n "$X11_LIBS"; then
12163 pkg_cv_X11_LIBS="$X11_LIBS"
12164 elif test -n "$PKG_CONFIG"; then
12165 if test -n "$PKG_CONFIG" && \
12166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12167 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12168 ac_status=$?
12169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12170 test $ac_status = 0; }; then
12171 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
12172 test "x$?" != "x0" && pkg_failed=yes
12173 else
12174 pkg_failed=yes
12175 fi
12176 else
12177 pkg_failed=untried
12178 fi
12179
12180
12181
12182 if test $pkg_failed = yes; then
12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 printf "%s\n" "no" >&6; }
12185
12186 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12187 _pkg_short_errors_supported=yes
12188 else
12189 _pkg_short_errors_supported=no
12190 fi
12191 if test $_pkg_short_errors_supported = yes; then
12192 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12193 else
12194 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12195 fi
12196 # Put the nasty error message in config.log where it belongs
12197 echo "$X11_PKG_ERRORS" >&5
12198
12199 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
12200
12201 $X11_PKG_ERRORS
12202
12203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12204 installed software in a non-standard prefix.
12205
12206 Alternatively, you may set the environment variables X11_CFLAGS
12207 and X11_LIBS to avoid the need to call pkg-config.
12208 See the pkg-config man page for more details." "$LINENO" 5
12209 elif test $pkg_failed = untried; then
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 printf "%s\n" "no" >&6; }
12212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12213 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12214 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12215 is in your PATH or set the PKG_CONFIG environment variable to the full
12216 path to pkg-config.
12217
12218 Alternatively, you may set the environment variables X11_CFLAGS
12219 and X11_LIBS to avoid the need to call pkg-config.
12220 See the pkg-config man page for more details.
12221
12222 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12223 See 'config.log' for more details" "$LINENO" 5; }
12224 else
12225 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12226 X11_LIBS=$pkg_cv_X11_LIBS
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 printf "%s\n" "yes" >&6; }
12229
12230 fi
12231
12232
12233
12234
12235
12236
12237 # Check whether --with-lint was given.
12238 if test ${with_lint+y}
12239 then :
12240 withval=$with_lint; use_lint=$withval
12241 else case e in #(
12242 e) use_lint=no ;;
12243 esac
12244 fi
12245
12246
12247 # Obtain platform specific info like program name and options
12248 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12249 case $host_os in
12250 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12251 lint_name=splint
12252 lint_options="-badflag"
12253 ;;
12254 *freebsd* | *netbsd*)
12255 lint_name=lint
12256 lint_options="-u -b"
12257 ;;
12258 *solaris*)
12259 lint_name=lint
12260 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12261 ;;
12262 esac
12263
12264 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12265 if test "x$use_lint" = x"yes" ; then
12266 # Extract the first word of "$lint_name", so it can be a program name with args.
12267 set dummy $lint_name; ac_word=$2
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 printf %s "checking for $ac_word... " >&6; }
12270 if test ${ac_cv_path_LINT+y}
12271 then :
12272 printf %s "(cached) " >&6
12273 else case e in #(
12274 e) case $LINT in
12275 [\\/]* | ?:[\\/]*)
12276 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12277 ;;
12278 *)
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282 IFS=$as_save_IFS
12283 case $as_dir in #(((
12284 '') as_dir=./ ;;
12285 */) ;;
12286 *) as_dir=$as_dir/ ;;
12287 esac
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12290 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12292 break 2
12293 fi
12294 done
12295 done
12296 IFS=$as_save_IFS
12297
12298 ;;
12299 esac ;;
12300 esac
12301 fi
12302 LINT=$ac_cv_path_LINT
12303 if test -n "$LINT"; then
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12305 printf "%s\n" "$LINT" >&6; }
12306 else
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 printf "%s\n" "no" >&6; }
12309 fi
12310
12311
12312 if test "x$LINT" = "x"; then
12313 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12314 fi
12315 elif test "x$use_lint" = x"no" ; then
12316 if test "x$LINT" != "x"; then
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12318 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12319 fi
12320 else
12321 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12322 fi
12323
12324 # User supplied flags override default flags
12325 if test "x$LINT_FLAGS" != "x"; then
12326 lint_options=$LINT_FLAGS
12327 fi
12328
12329 LINT_FLAGS=$lint_options
12330
12331 if test "x$LINT" != x; then
12332 LINT_TRUE=
12333 LINT_FALSE='#'
12334 else
12335 LINT_TRUE='#'
12336 LINT_FALSE=
12337 fi
12338
12339
12340
12341
12342 ac_config_files="$ac_config_files Makefile man/Makefile"
12343
12344 cat >confcache <<\_ACEOF
12345 # This file is a shell script that caches the results of configure
12346 # tests run on this system so they can be shared between configure
12347 # scripts and configure runs, see configure's option --config-cache.
12348 # It is not useful on other systems. If it contains results you don't
12349 # want to keep, you may remove or edit it.
12350 #
12351 # config.status only pays attention to the cache file if you give it
12352 # the --recheck option to rerun configure.
12353 #
12354 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12355 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12356 # following values.
12357
12358 _ACEOF
12359
12360 # The following way of writing the cache mishandles newlines in values,
12361 # but we know of no workaround that is simple, portable, and efficient.
12362 # So, we kill variables containing newlines.
12363 # Ultrix sh set writes to stderr and can't be redirected directly,
12364 # and sets the high bit in the cache file unless we assign to the vars.
12365 (
12366 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12367 eval ac_val=\$$ac_var
12368 case $ac_val in #(
12369 *${as_nl}*)
12370 case $ac_var in #(
12371 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12372 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12373 esac
12374 case $ac_var in #(
12375 _ | IFS | as_nl) ;; #(
12376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12377 *) { eval $ac_var=; unset $ac_var;} ;;
12378 esac ;;
12379 esac
12380 done
12381
12382 (set) 2>&1 |
12383 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12384 *${as_nl}ac_space=\ *)
12385 # 'set' does not quote correctly, so add quotes: double-quote
12386 # substitution turns \\\\ into \\, and sed turns \\ into \.
12387 sed -n \
12388 "s/'/'\\\\''/g;
12389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12390 ;; #(
12391 *)
12392 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12394 ;;
12395 esac |
12396 sort
12397 ) |
12398 sed '
12399 /^ac_cv_env_/b end
12400 t clear
12401 :clear
12402 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12403 t end
12404 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12405 :end' >>confcache
12406 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12407 if test -w "$cache_file"; then
12408 if test "x$cache_file" != "x/dev/null"; then
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12410 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12411 if test ! -f "$cache_file" || test -h "$cache_file"; then
12412 cat confcache >"$cache_file"
12413 else
12414 case $cache_file in #(
12415 */* | ?:*)
12416 mv -f confcache "$cache_file"$$ &&
12417 mv -f "$cache_file"$$ "$cache_file" ;; #(
12418 *)
12419 mv -f confcache "$cache_file" ;;
12420 esac
12421 fi
12422 fi
12423 else
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12425 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12426 fi
12427 fi
12428 rm -f confcache
12429
12430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12431 # Let make expand exec_prefix.
12432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12433
12434 DEFS=-DHAVE_CONFIG_H
12435
12436 ac_libobjs=
12437 ac_ltlibobjs=
12438 U=
12439 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12440 # 1. Remove the extension, and $U if already installed.
12441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12442 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12444 # will be set to the directory where LIBOBJS objects are built.
12445 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12446 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12447 done
12448 LIBOBJS=$ac_libobjs
12449
12450 LTLIBOBJS=$ac_ltlibobjs
12451
12452
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12454 printf %s "checking that generated files are newer than configure... " >&6; }
12455 if test -n "$am_sleep_pid"; then
12456 # Hide warnings about reused PIDs.
12457 wait $am_sleep_pid 2>/dev/null
12458 fi
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12460 printf "%s\n" "done" >&6; }
12461 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12462 as_fn_error $? "conditional \"AMDEP\" was never defined.
12463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12464 fi
12465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12468 fi
12469 if test -n "$EXEEXT"; then
12470 am__EXEEXT_TRUE=
12471 am__EXEEXT_FALSE='#'
12472 else
12473 am__EXEEXT_TRUE='#'
12474 am__EXEEXT_FALSE=
12475 fi
12476
12477 # Check whether --enable-year2038 was given.
12478 if test ${enable_year2038+y}
12479 then :
12480 enableval=$enable_year2038;
12481 fi
12482
12483 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12484 as_fn_error $? "conditional \"LINT\" was never defined.
12485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12486 fi
12487
12488 : "${CONFIG_STATUS=./config.status}"
12489 ac_write_fail=0
12490 ac_clean_files_save=$ac_clean_files
12491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12493 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12494 as_write_fail=0
12495 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12496 #! $SHELL
12497 # Generated by $as_me.
12498 # Run this file to recreate the current configuration.
12499 # Compiler output produced by configure, useful for debugging
12500 # configure, is in config.log if it exists.
12501
12502 debug=false
12503 ac_cs_recheck=false
12504 ac_cs_silent=false
12505
12506 SHELL=\${CONFIG_SHELL-$SHELL}
12507 export SHELL
12508 _ASEOF
12509 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12510 ## -------------------- ##
12511 ## M4sh Initialization. ##
12512 ## -------------------- ##
12513
12514 # Be more Bourne compatible
12515 DUALCASE=1; export DUALCASE # for MKS sh
12516 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12517 then :
12518 emulate sh
12519 NULLCMD=:
12520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12521 # is contrary to our usage. Disable this feature.
12522 alias -g '${1+"$@"}'='"$@"'
12523 setopt NO_GLOB_SUBST
12524 else case e in #(
12525 e) case `(set -o) 2>/dev/null` in #(
12526 *posix*) :
12527 set -o posix ;; #(
12528 *) :
12529 ;;
12530 esac ;;
12531 esac
12532 fi
12533
12534
12535
12536 # Reset variables that may have inherited troublesome values from
12537 # the environment.
12538
12539 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12540 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12541 # side effect of setting IFS to empty, thus disabling word splitting.)
12542 # Quoting is to prevent editors from complaining about space-tab.
12543 as_nl='
12544 '
12545 export as_nl
12546 IFS=" "" $as_nl"
12547
12548 PS1='$ '
12549 PS2='> '
12550 PS4='+ '
12551
12552 # Ensure predictable behavior from utilities with locale-dependent output.
12553 LC_ALL=C
12554 export LC_ALL
12555 LANGUAGE=C
12556 export LANGUAGE
12557
12558 # We cannot yet rely on "unset" to work, but we need these variables
12559 # to be unset--not just set to an empty or harmless value--now, to
12560 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12561 # also avoids known problems related to "unset" and subshell syntax
12562 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12563 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12564 do eval test \${$as_var+y} \
12565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12566 done
12567
12568 # Ensure that fds 0, 1, and 2 are open.
12569 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12570 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12571 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12572
12573 # The user is always right.
12574 if ${PATH_SEPARATOR+false} :; then
12575 PATH_SEPARATOR=:
12576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12578 PATH_SEPARATOR=';'
12579 }
12580 fi
12581
12582
12583 # Find who we are. Look in the path if we contain no directory separator.
12584 as_myself=
12585 case $0 in #((
12586 *[\\/]* ) as_myself=$0 ;;
12587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 case $as_dir in #(((
12592 '') as_dir=./ ;;
12593 */) ;;
12594 *) as_dir=$as_dir/ ;;
12595 esac
12596 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12597 done
12598 IFS=$as_save_IFS
12599
12600 ;;
12601 esac
12602 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12603 # in which case we are not to be found in the path.
12604 if test "x$as_myself" = x; then
12605 as_myself=$0
12606 fi
12607 if test ! -f "$as_myself"; then
12608 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12609 exit 1
12610 fi
12611
12612
12613
12614 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12615 # ----------------------------------------
12616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12618 # script with STATUS, using 1 if that was 0.
12619 as_fn_error ()
12620 {
12621 as_status=$1; test $as_status -eq 0 && as_status=1
12622 if test "$4"; then
12623 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12625 fi
12626 printf "%s\n" "$as_me: error: $2" >&2
12627 as_fn_exit $as_status
12628 } # as_fn_error
12629
12630
12631 # as_fn_set_status STATUS
12632 # -----------------------
12633 # Set $? to STATUS, without forking.
12634 as_fn_set_status ()
12635 {
12636 return $1
12637 } # as_fn_set_status
12638
12639 # as_fn_exit STATUS
12640 # -----------------
12641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12642 as_fn_exit ()
12643 {
12644 set +e
12645 as_fn_set_status $1
12646 exit $1
12647 } # as_fn_exit
12648
12649 # as_fn_unset VAR
12650 # ---------------
12651 # Portably unset VAR.
12652 as_fn_unset ()
12653 {
12654 { eval $1=; unset $1;}
12655 }
12656 as_unset=as_fn_unset
12657
12658 # as_fn_append VAR VALUE
12659 # ----------------------
12660 # Append the text in VALUE to the end of the definition contained in VAR. Take
12661 # advantage of any shell optimizations that allow amortized linear growth over
12662 # repeated appends, instead of the typical quadratic growth present in naive
12663 # implementations.
12664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12665 then :
12666 eval 'as_fn_append ()
12667 {
12668 eval $1+=\$2
12669 }'
12670 else case e in #(
12671 e) as_fn_append ()
12672 {
12673 eval $1=\$$1\$2
12674 } ;;
12675 esac
12676 fi # as_fn_append
12677
12678 # as_fn_arith ARG...
12679 # ------------------
12680 # Perform arithmetic evaluation on the ARGs, and store the result in the
12681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12682 # must be portable across $(()) and expr.
12683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12684 then :
12685 eval 'as_fn_arith ()
12686 {
12687 as_val=$(( $* ))
12688 }'
12689 else case e in #(
12690 e) as_fn_arith ()
12691 {
12692 as_val=`expr "$@" || test $? -eq 1`
12693 } ;;
12694 esac
12695 fi # as_fn_arith
12696
12697
12698 if expr a : '\(a\)' >/dev/null 2>&1 &&
12699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12700 as_expr=expr
12701 else
12702 as_expr=false
12703 fi
12704
12705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12706 as_basename=basename
12707 else
12708 as_basename=false
12709 fi
12710
12711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12712 as_dirname=dirname
12713 else
12714 as_dirname=false
12715 fi
12716
12717 as_me=`$as_basename -- "$0" ||
12718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12719 X"$0" : 'X\(//\)$' \| \
12720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12721 printf "%s\n" X/"$0" |
12722 sed '/^.*\/\([^/][^/]*\)\/*$/{
12723 s//\1/
12724 q
12725 }
12726 /^X\/\(\/\/\)$/{
12727 s//\1/
12728 q
12729 }
12730 /^X\/\(\/\).*/{
12731 s//\1/
12732 q
12733 }
12734 s/.*/./; q'`
12735
12736 # Avoid depending upon Character Ranges.
12737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12740 as_cr_digits='0123456789'
12741 as_cr_alnum=$as_cr_Letters$as_cr_digits
12742
12743
12744 # Determine whether it's possible to make 'echo' print without a newline.
12745 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12746 # for compatibility with existing Makefiles.
12747 ECHO_C= ECHO_N= ECHO_T=
12748 case `echo -n x` in #(((((
12749 -n*)
12750 case `echo 'xy\c'` in
12751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12752 xy) ECHO_C='\c';;
12753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12754 ECHO_T=' ';;
12755 esac;;
12756 *)
12757 ECHO_N='-n';;
12758 esac
12759
12760 # For backward compatibility with old third-party macros, we provide
12761 # the shell variables $as_echo and $as_echo_n. New code should use
12762 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12763 as_echo='printf %s\n'
12764 as_echo_n='printf %s'
12765
12766 rm -f conf$$ conf$$.exe conf$$.file
12767 if test -d conf$$.dir; then
12768 rm -f conf$$.dir/conf$$.file
12769 else
12770 rm -f conf$$.dir
12771 mkdir conf$$.dir 2>/dev/null
12772 fi
12773 if (echo >conf$$.file) 2>/dev/null; then
12774 if ln -s conf$$.file conf$$ 2>/dev/null; then
12775 as_ln_s='ln -s'
12776 # ... but there are two gotchas:
12777 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12778 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12779 # In both cases, we have to default to 'cp -pR'.
12780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12781 as_ln_s='cp -pR'
12782 elif ln conf$$.file conf$$ 2>/dev/null; then
12783 as_ln_s=ln
12784 else
12785 as_ln_s='cp -pR'
12786 fi
12787 else
12788 as_ln_s='cp -pR'
12789 fi
12790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12791 rmdir conf$$.dir 2>/dev/null
12792
12793
12794 # as_fn_mkdir_p
12795 # -------------
12796 # Create "$as_dir" as a directory, including parents if necessary.
12797 as_fn_mkdir_p ()
12798 {
12799
12800 case $as_dir in #(
12801 -*) as_dir=./$as_dir;;
12802 esac
12803 test -d "$as_dir" || eval $as_mkdir_p || {
12804 as_dirs=
12805 while :; do
12806 case $as_dir in #(
12807 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12808 *) as_qdir=$as_dir;;
12809 esac
12810 as_dirs="'$as_qdir' $as_dirs"
12811 as_dir=`$as_dirname -- "$as_dir" ||
12812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12813 X"$as_dir" : 'X\(//\)[^/]' \| \
12814 X"$as_dir" : 'X\(//\)$' \| \
12815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12816 printf "%s\n" X"$as_dir" |
12817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12818 s//\1/
12819 q
12820 }
12821 /^X\(\/\/\)[^/].*/{
12822 s//\1/
12823 q
12824 }
12825 /^X\(\/\/\)$/{
12826 s//\1/
12827 q
12828 }
12829 /^X\(\/\).*/{
12830 s//\1/
12831 q
12832 }
12833 s/.*/./; q'`
12834 test -d "$as_dir" && break
12835 done
12836 test -z "$as_dirs" || eval "mkdir $as_dirs"
12837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12838
12839
12840 } # as_fn_mkdir_p
12841 if mkdir -p . 2>/dev/null; then
12842 as_mkdir_p='mkdir -p "$as_dir"'
12843 else
12844 test -d ./-p && rmdir ./-p
12845 as_mkdir_p=false
12846 fi
12847
12848
12849 # as_fn_executable_p FILE
12850 # -----------------------
12851 # Test if FILE is an executable regular file.
12852 as_fn_executable_p ()
12853 {
12854 test -f "$1" && test -x "$1"
12855 } # as_fn_executable_p
12856 as_test_x='test -x'
12857 as_executable_p=as_fn_executable_p
12858
12859 # Sed expression to map a string onto a valid CPP name.
12860 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12861 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12862
12863 # Sed expression to map a string onto a valid variable name.
12864 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12865 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12866
12867
12868 exec 6>&1
12869 ## ----------------------------------- ##
12870 ## Main body of $CONFIG_STATUS script. ##
12871 ## ----------------------------------- ##
12872 _ASEOF
12873 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12874
12875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12876 # Save the log message, to keep $0 and so on meaningful, and to
12877 # report actual input values of CONFIG_FILES etc. instead of their
12878 # values after options handling.
12879 ac_log="
12880 This file was extended by mkfontscale $as_me 1.2.3, which was
12881 generated by GNU Autoconf 2.72. Invocation command line was
12882
12883 CONFIG_FILES = $CONFIG_FILES
12884 CONFIG_HEADERS = $CONFIG_HEADERS
12885 CONFIG_LINKS = $CONFIG_LINKS
12886 CONFIG_COMMANDS = $CONFIG_COMMANDS
12887 $ $0 $@
12888
12889 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12890 "
12891
12892 _ACEOF
12893
12894 case $ac_config_files in *"
12895 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12896 esac
12897
12898 case $ac_config_headers in *"
12899 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12900 esac
12901
12902
12903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12904 # Files that config.status was made for.
12905 config_files="$ac_config_files"
12906 config_headers="$ac_config_headers"
12907 config_commands="$ac_config_commands"
12908
12909 _ACEOF
12910
12911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12912 ac_cs_usage="\
12913 '$as_me' instantiates files and other configuration actions
12914 from templates according to the current configuration. Unless the files
12915 and actions are specified as TAGs, all are instantiated by default.
12916
12917 Usage: $0 [OPTION]... [TAG]...
12918
12919 -h, --help print this help, then exit
12920 -V, --version print version number and configuration settings, then exit
12921 --config print configuration, then exit
12922 -q, --quiet, --silent
12923 do not print progress messages
12924 -d, --debug don't remove temporary files
12925 --recheck update $as_me by reconfiguring in the same conditions
12926 --file=FILE[:TEMPLATE]
12927 instantiate the configuration file FILE
12928 --header=FILE[:TEMPLATE]
12929 instantiate the configuration header FILE
12930
12931 Configuration files:
12932 $config_files
12933
12934 Configuration headers:
12935 $config_headers
12936
12937 Configuration commands:
12938 $config_commands
12939
12940 Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues>."
12941
12942 _ACEOF
12943 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12944 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12946 ac_cs_config='$ac_cs_config_escaped'
12947 ac_cs_version="\\
12948 mkfontscale config.status 1.2.3
12949 configured by $0, generated by GNU Autoconf 2.72,
12950 with options \\"\$ac_cs_config\\"
12951
12952 Copyright (C) 2023 Free Software Foundation, Inc.
12953 This config.status script is free software; the Free Software Foundation
12954 gives unlimited permission to copy, distribute and modify it."
12955
12956 ac_pwd='$ac_pwd'
12957 srcdir='$srcdir'
12958 INSTALL='$INSTALL'
12959 MKDIR_P='$MKDIR_P'
12960 AWK='$AWK'
12961 test -n "\$AWK" || AWK=awk
12962 _ACEOF
12963
12964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12965 # The default lists apply if the user does not specify any file.
12966 ac_need_defaults=:
12967 while test $# != 0
12968 do
12969 case $1 in
12970 --*=?*)
12971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12973 ac_shift=:
12974 ;;
12975 --*=)
12976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12977 ac_optarg=
12978 ac_shift=:
12979 ;;
12980 *)
12981 ac_option=$1
12982 ac_optarg=$2
12983 ac_shift=shift
12984 ;;
12985 esac
12986
12987 case $ac_option in
12988 # Handling of the options.
12989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12990 ac_cs_recheck=: ;;
12991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12992 printf "%s\n" "$ac_cs_version"; exit ;;
12993 --config | --confi | --conf | --con | --co | --c )
12994 printf "%s\n" "$ac_cs_config"; exit ;;
12995 --debug | --debu | --deb | --de | --d | -d )
12996 debug=: ;;
12997 --file | --fil | --fi | --f )
12998 $ac_shift
12999 case $ac_optarg in
13000 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13001 '') as_fn_error $? "missing file argument" ;;
13002 esac
13003 as_fn_append CONFIG_FILES " '$ac_optarg'"
13004 ac_need_defaults=false;;
13005 --header | --heade | --head | --hea )
13006 $ac_shift
13007 case $ac_optarg in
13008 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13009 esac
13010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13011 ac_need_defaults=false;;
13012 --he | --h)
13013 # Conflict between --help and --header
13014 as_fn_error $? "ambiguous option: '$1'
13015 Try '$0 --help' for more information.";;
13016 --help | --hel | -h )
13017 printf "%s\n" "$ac_cs_usage"; exit ;;
13018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13020 ac_cs_silent=: ;;
13021
13022 # This is an error.
13023 -*) as_fn_error $? "unrecognized option: '$1'
13024 Try '$0 --help' for more information." ;;
13025
13026 *) as_fn_append ac_config_targets " $1"
13027 ac_need_defaults=false ;;
13028
13029 esac
13030 shift
13031 done
13032
13033 ac_configure_extra_args=
13034
13035 if $ac_cs_silent; then
13036 exec 6>/dev/null
13037 ac_configure_extra_args="$ac_configure_extra_args --silent"
13038 fi
13039
13040 _ACEOF
13041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13042 if \$ac_cs_recheck; then
13043 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13044 shift
13045 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13046 CONFIG_SHELL='$SHELL'
13047 export CONFIG_SHELL
13048 exec "\$@"
13049 fi
13050
13051 _ACEOF
13052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053 exec 5>>config.log
13054 {
13055 echo
13056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13057 ## Running $as_me. ##
13058 _ASBOX
13059 printf "%s\n" "$ac_log"
13060 } >&5
13061
13062 _ACEOF
13063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13064 #
13065 # INIT-COMMANDS
13066 #
13067 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13068
13069 _ACEOF
13070
13071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072
13073 # Handling of arguments.
13074 for ac_config_target in $ac_config_targets
13075 do
13076 case $ac_config_target in
13077 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13078 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13079 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13080 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13081
13082 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13083 esac
13084 done
13085
13086
13087 # If the user did not use the arguments to specify the items to instantiate,
13088 # then the envvar interface is used. Set only those that are not.
13089 # We use the long form for the default assignment because of an extremely
13090 # bizarre bug on SunOS 4.1.3.
13091 if $ac_need_defaults; then
13092 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13093 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13094 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13095 fi
13096
13097 # Have a temporary directory for convenience. Make it in the build tree
13098 # simply because there is no reason against having it here, and in addition,
13099 # creating and moving files from /tmp can sometimes cause problems.
13100 # Hook for its removal unless debugging.
13101 # Note that there is a small window in which the directory will not be cleaned:
13102 # after its creation but before its name has been assigned to '$tmp'.
13103 $debug ||
13104 {
13105 tmp= ac_tmp=
13106 trap 'exit_status=$?
13107 : "${ac_tmp:=$tmp}"
13108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13109 ' 0
13110 trap 'as_fn_exit 1' 1 2 13 15
13111 }
13112 # Create a (secure) tmp directory for tmp files.
13113
13114 {
13115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13116 test -d "$tmp"
13117 } ||
13118 {
13119 tmp=./conf$$-$RANDOM
13120 (umask 077 && mkdir "$tmp")
13121 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13122 ac_tmp=$tmp
13123
13124 # Set up the scripts for CONFIG_FILES section.
13125 # No need to generate them if there are no CONFIG_FILES.
13126 # This happens for instance with './config.status config.h'.
13127 if test -n "$CONFIG_FILES"; then
13128
13129
13130 ac_cr=`echo X | tr X '\015'`
13131 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13132 # But we know of no other shell where ac_cr would be empty at this
13133 # point, so we can use a bashism as a fallback.
13134 if test "x$ac_cr" = x; then
13135 eval ac_cr=\$\'\\r\'
13136 fi
13137 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13138 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13139 ac_cs_awk_cr='\\r'
13140 else
13141 ac_cs_awk_cr=$ac_cr
13142 fi
13143
13144 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13145 _ACEOF
13146
13147
13148 {
13149 echo "cat >conf$$subs.awk <<_ACEOF" &&
13150 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13151 echo "_ACEOF"
13152 } >conf$$subs.sh ||
13153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13154 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13155 ac_delim='%!_!# '
13156 for ac_last_try in false false false false false :; do
13157 . ./conf$$subs.sh ||
13158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13159
13160 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13161 if test $ac_delim_n = $ac_delim_num; then
13162 break
13163 elif $ac_last_try; then
13164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13165 else
13166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13167 fi
13168 done
13169 rm -f conf$$subs.sh
13170
13171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13172 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13173 _ACEOF
13174 sed -n '
13175 h
13176 s/^/S["/; s/!.*/"]=/
13177 p
13178 g
13179 s/^[^!]*!//
13180 :repl
13181 t repl
13182 s/'"$ac_delim"'$//
13183 t delim
13184 :nl
13185 h
13186 s/\(.\{148\}\)..*/\1/
13187 t more1
13188 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13189 p
13190 n
13191 b repl
13192 :more1
13193 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13194 p
13195 g
13196 s/.\{148\}//
13197 t nl
13198 :delim
13199 h
13200 s/\(.\{148\}\)..*/\1/
13201 t more2
13202 s/["\\]/\\&/g; s/^/"/; s/$/"/
13203 p
13204 b
13205 :more2
13206 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13207 p
13208 g
13209 s/.\{148\}//
13210 t delim
13211 ' <conf$$subs.awk | sed '
13212 /^[^""]/{
13213 N
13214 s/\n//
13215 }
13216 ' >>$CONFIG_STATUS || ac_write_fail=1
13217 rm -f conf$$subs.awk
13218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13219 _ACAWK
13220 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13221 for (key in S) S_is_set[key] = 1
13222 FS = ""
13223
13224 }
13225 {
13226 line = $ 0
13227 nfields = split(line, field, "@")
13228 substed = 0
13229 len = length(field[1])
13230 for (i = 2; i < nfields; i++) {
13231 key = field[i]
13232 keylen = length(key)
13233 if (S_is_set[key]) {
13234 value = S[key]
13235 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13236 len += length(value) + length(field[++i])
13237 substed = 1
13238 } else
13239 len += 1 + keylen
13240 }
13241
13242 print line
13243 }
13244
13245 _ACAWK
13246 _ACEOF
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13249 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13250 else
13251 cat
13252 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13253 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13254 _ACEOF
13255
13256 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13257 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13258 # trailing colons and then remove the whole line if VPATH becomes empty
13259 # (actually we leave an empty line to preserve line numbers).
13260 if test "x$srcdir" = x.; then
13261 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13262 h
13263 s///
13264 s/^/:/
13265 s/[ ]*$/:/
13266 s/:\$(srcdir):/:/g
13267 s/:\${srcdir}:/:/g
13268 s/:@srcdir@:/:/g
13269 s/^:*//
13270 s/:*$//
13271 x
13272 s/\(=[ ]*\).*/\1/
13273 G
13274 s/\n//
13275 s/^[^=]*=[ ]*$//
13276 }'
13277 fi
13278
13279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280 fi # test -n "$CONFIG_FILES"
13281
13282 # Set up the scripts for CONFIG_HEADERS section.
13283 # No need to generate them if there are no CONFIG_HEADERS.
13284 # This happens for instance with './config.status Makefile'.
13285 if test -n "$CONFIG_HEADERS"; then
13286 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13287 BEGIN {
13288 _ACEOF
13289
13290 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13291 # here-document in config.status, that substitutes the proper values into
13292 # config.h.in to produce config.h.
13293
13294 # Create a delimiter string that does not exist in confdefs.h, to ease
13295 # handling of long lines.
13296 ac_delim='%!_!# '
13297 for ac_last_try in false false :; do
13298 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13299 if test -z "$ac_tt"; then
13300 break
13301 elif $ac_last_try; then
13302 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13303 else
13304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13305 fi
13306 done
13307
13308 # For the awk script, D is an array of macro values keyed by name,
13309 # likewise P contains macro parameters if any. Preserve backslash
13310 # newline sequences.
13311
13312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13313 sed -n '
13314 s/.\{148\}/&'"$ac_delim"'/g
13315 t rset
13316 :rset
13317 s/^[ ]*#[ ]*define[ ][ ]*/ /
13318 t def
13319 d
13320 :def
13321 s/\\$//
13322 t bsnl
13323 s/["\\]/\\&/g
13324 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13325 D["\1"]=" \3"/p
13326 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13327 d
13328 :bsnl
13329 s/["\\]/\\&/g
13330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13331 D["\1"]=" \3\\\\\\n"\\/p
13332 t cont
13333 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13334 t cont
13335 d
13336 :cont
13337 n
13338 s/.\{148\}/&'"$ac_delim"'/g
13339 t clear
13340 :clear
13341 s/\\$//
13342 t bsnlc
13343 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13344 d
13345 :bsnlc
13346 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13347 b cont
13348 ' <confdefs.h | sed '
13349 s/'"$ac_delim"'/"\\\
13350 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13351
13352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13353 for (key in D) D_is_set[key] = 1
13354 FS = ""
13355 }
13356 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13357 line = \$ 0
13358 split(line, arg, " ")
13359 if (arg[1] == "#") {
13360 defundef = arg[2]
13361 mac1 = arg[3]
13362 } else {
13363 defundef = substr(arg[1], 2)
13364 mac1 = arg[2]
13365 }
13366 split(mac1, mac2, "(") #)
13367 macro = mac2[1]
13368 prefix = substr(line, 1, index(line, defundef) - 1)
13369 if (D_is_set[macro]) {
13370 # Preserve the white space surrounding the "#".
13371 print prefix "define", macro P[macro] D[macro]
13372 next
13373 } else {
13374 # Replace #undef with comments. This is necessary, for example,
13375 # in the case of _POSIX_SOURCE, which is predefined and required
13376 # on some systems where configure will not decide to define it.
13377 if (defundef == "undef") {
13378 print "/*", prefix defundef, macro, "*/"
13379 next
13380 }
13381 }
13382 }
13383 { print }
13384 _ACAWK
13385 _ACEOF
13386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13387 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13388 fi # test -n "$CONFIG_HEADERS"
13389
13390
13391 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13392 shift
13393 for ac_tag
13394 do
13395 case $ac_tag in
13396 :[FHLC]) ac_mode=$ac_tag; continue;;
13397 esac
13398 case $ac_mode$ac_tag in
13399 :[FHL]*:*);;
13400 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13401 :[FH]-) ac_tag=-:-;;
13402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13403 esac
13404 ac_save_IFS=$IFS
13405 IFS=:
13406 set x $ac_tag
13407 IFS=$ac_save_IFS
13408 shift
13409 ac_file=$1
13410 shift
13411
13412 case $ac_mode in
13413 :L) ac_source=$1;;
13414 :[FH])
13415 ac_file_inputs=
13416 for ac_f
13417 do
13418 case $ac_f in
13419 -) ac_f="$ac_tmp/stdin";;
13420 *) # Look for the file first in the build tree, then in the source tree
13421 # (if the path is not absolute). The absolute path cannot be DOS-style,
13422 # because $ac_f cannot contain ':'.
13423 test -f "$ac_f" ||
13424 case $ac_f in
13425 [\\/$]*) false;;
13426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13427 esac ||
13428 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13429 esac
13430 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13431 as_fn_append ac_file_inputs " '$ac_f'"
13432 done
13433
13434 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13435 # use $as_me), people would be surprised to read:
13436 # /* config.h. Generated by config.status. */
13437 configure_input='Generated from '`
13438 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13439 `' by configure.'
13440 if test x"$ac_file" != x-; then
13441 configure_input="$ac_file. $configure_input"
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13443 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13444 fi
13445 # Neutralize special characters interpreted by sed in replacement strings.
13446 case $configure_input in #(
13447 *\&* | *\|* | *\\* )
13448 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13450 *) ac_sed_conf_input=$configure_input;;
13451 esac
13452
13453 case $ac_tag in
13454 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13456 esac
13457 ;;
13458 esac
13459
13460 ac_dir=`$as_dirname -- "$ac_file" ||
13461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13462 X"$ac_file" : 'X\(//\)[^/]' \| \
13463 X"$ac_file" : 'X\(//\)$' \| \
13464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13465 printf "%s\n" X"$ac_file" |
13466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13467 s//\1/
13468 q
13469 }
13470 /^X\(\/\/\)[^/].*/{
13471 s//\1/
13472 q
13473 }
13474 /^X\(\/\/\)$/{
13475 s//\1/
13476 q
13477 }
13478 /^X\(\/\).*/{
13479 s//\1/
13480 q
13481 }
13482 s/.*/./; q'`
13483 as_dir="$ac_dir"; as_fn_mkdir_p
13484 ac_builddir=.
13485
13486 case "$ac_dir" in
13487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13488 *)
13489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13490 # A ".." for each directory in $ac_dir_suffix.
13491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13492 case $ac_top_builddir_sub in
13493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13495 esac ;;
13496 esac
13497 ac_abs_top_builddir=$ac_pwd
13498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13499 # for backward compatibility:
13500 ac_top_builddir=$ac_top_build_prefix
13501
13502 case $srcdir in
13503 .) # We are building in place.
13504 ac_srcdir=.
13505 ac_top_srcdir=$ac_top_builddir_sub
13506 ac_abs_top_srcdir=$ac_pwd ;;
13507 [\\/]* | ?:[\\/]* ) # Absolute name.
13508 ac_srcdir=$srcdir$ac_dir_suffix;
13509 ac_top_srcdir=$srcdir
13510 ac_abs_top_srcdir=$srcdir ;;
13511 *) # Relative name.
13512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13513 ac_top_srcdir=$ac_top_build_prefix$srcdir
13514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13515 esac
13516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13517
13518
13519 case $ac_mode in
13520 :F)
13521 #
13522 # CONFIG_FILE
13523 #
13524
13525 case $INSTALL in
13526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13528 esac
13529 ac_MKDIR_P=$MKDIR_P
13530 case $MKDIR_P in
13531 [\\/$]* | ?:[\\/]* ) ;;
13532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13533 esac
13534 _ACEOF
13535
13536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13537 # If the template does not know about datarootdir, expand it.
13538 # FIXME: This hack should be removed a few years after 2.60.
13539 ac_datarootdir_hack=; ac_datarootdir_seen=
13540 ac_sed_dataroot='
13541 /datarootdir/ {
13542 p
13543 q
13544 }
13545 /@datadir@/p
13546 /@docdir@/p
13547 /@infodir@/p
13548 /@localedir@/p
13549 /@mandir@/p'
13550 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13551 *datarootdir*) ac_datarootdir_seen=yes;;
13552 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13554 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13555 _ACEOF
13556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13557 ac_datarootdir_hack='
13558 s&@datadir@&$datadir&g
13559 s&@docdir@&$docdir&g
13560 s&@infodir@&$infodir&g
13561 s&@localedir@&$localedir&g
13562 s&@mandir@&$mandir&g
13563 s&\\\${datarootdir}&$datarootdir&g' ;;
13564 esac
13565 _ACEOF
13566
13567 # Neutralize VPATH when '$srcdir' = '.'.
13568 # Shell code in configure.ac might set extrasub.
13569 # FIXME: do we really want to maintain this feature?
13570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13571 ac_sed_extra="$ac_vpsub
13572 $extrasub
13573 _ACEOF
13574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13575 :t
13576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13577 s|@configure_input@|$ac_sed_conf_input|;t t
13578 s&@top_builddir@&$ac_top_builddir_sub&;t t
13579 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13580 s&@srcdir@&$ac_srcdir&;t t
13581 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13582 s&@top_srcdir@&$ac_top_srcdir&;t t
13583 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13584 s&@builddir@&$ac_builddir&;t t
13585 s&@abs_builddir@&$ac_abs_builddir&;t t
13586 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13587 s&@INSTALL@&$ac_INSTALL&;t t
13588 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13589 $ac_datarootdir_hack
13590 "
13591 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13592 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13593
13594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13595 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13597 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13599 which seems to be undefined. Please make sure it is defined" >&5
13600 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13601 which seems to be undefined. Please make sure it is defined" >&2;}
13602
13603 rm -f "$ac_tmp/stdin"
13604 case $ac_file in
13605 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13606 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13607 esac \
13608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13609 ;;
13610 :H)
13611 #
13612 # CONFIG_HEADER
13613 #
13614 if test x"$ac_file" != x-; then
13615 {
13616 printf "%s\n" "/* $configure_input */" >&1 \
13617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13618 } >"$ac_tmp/config.h" \
13619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13620 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13622 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13623 else
13624 rm -f "$ac_file"
13625 mv "$ac_tmp/config.h" "$ac_file" \
13626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13627 fi
13628 else
13629 printf "%s\n" "/* $configure_input */" >&1 \
13630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13631 || as_fn_error $? "could not create -" "$LINENO" 5
13632 fi
13633 # Compute "$ac_file"'s index in $config_headers.
13634 _am_arg="$ac_file"
13635 _am_stamp_count=1
13636 for _am_header in $config_headers :; do
13637 case $_am_header in
13638 $_am_arg | $_am_arg:* )
13639 break ;;
13640 * )
13641 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13642 esac
13643 done
13644 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13645 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13646 X"$_am_arg" : 'X\(//\)[^/]' \| \
13647 X"$_am_arg" : 'X\(//\)$' \| \
13648 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13649 printf "%s\n" X"$_am_arg" |
13650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13651 s//\1/
13652 q
13653 }
13654 /^X\(\/\/\)[^/].*/{
13655 s//\1/
13656 q
13657 }
13658 /^X\(\/\/\)$/{
13659 s//\1/
13660 q
13661 }
13662 /^X\(\/\).*/{
13663 s//\1/
13664 q
13665 }
13666 s/.*/./; q'`/stamp-h$_am_stamp_count
13667 ;;
13668
13669 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13670 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13671 ;;
13672 esac
13673
13674
13675 case $ac_file$ac_mode in
13676 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13677 # Older Autoconf quotes --file arguments for eval, but not when files
13678 # are listed without --file. Let's play safe and only enable the eval
13679 # if we detect the quoting.
13680 # TODO: see whether this extra hack can be removed once we start
13681 # requiring Autoconf 2.70 or later.
13682 case $CONFIG_FILES in #(
13683 *\'*) :
13684 eval set x "$CONFIG_FILES" ;; #(
13685 *) :
13686 set x $CONFIG_FILES ;; #(
13687 *) :
13688 ;;
13689 esac
13690 shift
13691 # Used to flag and report bootstrapping failures.
13692 am_rc=0
13693 for am_mf
13694 do
13695 # Strip MF so we end up with the name of the file.
13696 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13697 # Check whether this is an Automake generated Makefile which includes
13698 # dependency-tracking related rules and includes.
13699 # Grep'ing the whole file directly is not great: AIX grep has a line
13700 # limit of 2048, but all sed's we know have understand at least 4000.
13701 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13702 || continue
13703 am_dirpart=`$as_dirname -- "$am_mf" ||
13704 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13705 X"$am_mf" : 'X\(//\)[^/]' \| \
13706 X"$am_mf" : 'X\(//\)$' \| \
13707 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13708 printf "%s\n" X"$am_mf" |
13709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13710 s//\1/
13711 q
13712 }
13713 /^X\(\/\/\)[^/].*/{
13714 s//\1/
13715 q
13716 }
13717 /^X\(\/\/\)$/{
13718 s//\1/
13719 q
13720 }
13721 /^X\(\/\).*/{
13722 s//\1/
13723 q
13724 }
13725 s/.*/./; q'`
13726 am_filepart=`$as_basename -- "$am_mf" ||
13727 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13728 X"$am_mf" : 'X\(//\)$' \| \
13729 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13730 printf "%s\n" X/"$am_mf" |
13731 sed '/^.*\/\([^/][^/]*\)\/*$/{
13732 s//\1/
13733 q
13734 }
13735 /^X\/\(\/\/\)$/{
13736 s//\1/
13737 q
13738 }
13739 /^X\/\(\/\).*/{
13740 s//\1/
13741 q
13742 }
13743 s/.*/./; q'`
13744 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13745 && sed -e '/# am--include-marker/d' "$am_filepart" \
13746 | $MAKE -f - am--depfiles" >&5
13747 (cd "$am_dirpart" \
13748 && sed -e '/# am--include-marker/d' "$am_filepart" \
13749 | $MAKE -f - am--depfiles) >&5 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } || am_rc=$?
13753 done
13754 if test $am_rc -ne 0; then
13755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13757 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13758 for automatic dependency tracking. If GNU make was not used, consider
13759 re-running the configure script with MAKE=\"gmake\" (or whatever is
13760 necessary). You can also try re-running configure with the
13761 '--disable-dependency-tracking' option to at least be able to build
13762 the package (albeit without support for automatic dependency tracking).
13763 See 'config.log' for more details" "$LINENO" 5; }
13764 fi
13765 { am_dirpart=; unset am_dirpart;}
13766 { am_filepart=; unset am_filepart;}
13767 { am_mf=; unset am_mf;}
13768 { am_rc=; unset am_rc;}
13769 rm -f conftest-deps.mk
13770 }
13771 ;;
13772
13773 esac
13774 done # for ac_tag
13775
13776
13777 as_fn_exit 0
13778 _ACEOF
13779 ac_clean_files=$ac_clean_files_save
13780
13781 test $ac_write_fail = 0 ||
13782 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13783
13784
13785 # configure is writing to config.log, and then calls config.status.
13786 # config.status does its own redirection, appending to config.log.
13787 # Unfortunately, on DOS this fails, as config.log is still kept open
13788 # by configure, so config.status won't be able to write to it; its
13789 # output is simply discarded. So we exec the FD to /dev/null,
13790 # effectively closing config.log, so it can be properly (re)opened and
13791 # appended to by config.status. When coming back to configure, we
13792 # need to make the FD available again.
13793 if test "$no_create" != yes; then
13794 ac_cs_success=:
13795 ac_config_status_args=
13796 test "$silent" = yes &&
13797 ac_config_status_args="$ac_config_status_args --quiet"
13798 exec 5>/dev/null
13799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13800 exec 5>>config.log
13801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13802 # would make configure fail if this is the last instruction.
13803 $ac_cs_success || as_fn_exit 1
13804 fi
13805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13807 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13808 fi
13809
13810
13811