configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mkfontscale 1.1.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='mkfontscale'
563 PACKAGE_TARNAME='mkfontscale'
564 PACKAGE_VERSION='1.1.0'
565 PACKAGE_STRING='mkfontscale 1.1.0'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 LINT_FALSE
611 LINT_TRUE
612 LINT_FLAGS
613 LINT
614 X11_LIBS
615 X11_CFLAGS
616 MKFONTSCALE_LIBS
617 MKFONTSCALE_CFLAGS
618 AM_BACKSLASH
619 AM_DEFAULT_VERBOSITY
620 MAN_SUBSTS
621 XORG_MAN_PAGE
622 ADMIN_MAN_DIR
623 DRIVER_MAN_DIR
624 MISC_MAN_DIR
625 FILE_MAN_DIR
626 LIB_MAN_DIR
627 APP_MAN_DIR
628 ADMIN_MAN_SUFFIX
629 DRIVER_MAN_SUFFIX
630 MISC_MAN_SUFFIX
631 FILE_MAN_SUFFIX
632 LIB_MAN_SUFFIX
633 APP_MAN_SUFFIX
634 SED
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 INSTALL_CMD
644 PKG_CONFIG
645 CHANGELOG_CMD
646 STRICT_CFLAGS
647 CWARNFLAGS
648 BASE_CFLAGS
649 EGREP
650 GREP
651 CPP
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 MAINT
669 MAINTAINER_MODE_FALSE
670 MAINTAINER_MODE_TRUE
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_maintainer_mode
736 enable_dependency_tracking
737 enable_selective_werror
738 enable_strict_compilation
739 enable_silent_rules
740 with_bzip2
741 with_lint
742 '
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP
752 PKG_CONFIG
753 MKFONTSCALE_CFLAGS
754 MKFONTSCALE_LIBS
755 X11_CFLAGS
756 X11_LIBS
757 LINT
758 LINT_FLAGS'
759
760
761 # Initialize some variables set by options.
762 ac_init_help=
763 ac_init_version=false
764 ac_unrecognized_opts=
765 ac_unrecognized_sep=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
782
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
818 fi
819
820 case $ac_option in
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *=) ac_optarg= ;;
823 *) ac_optarg=yes ;;
824 esac
825
826 # Accept the important Cygnus configure options, so we can diagnose typos.
827
828 case $ac_dashdash$ac_option in
829 --)
830 ac_dashdash=yes ;;
831
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
836
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
841
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
848
849 --config-cache | -C)
850 cache_file=config.cache ;;
851
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
856
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
863
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
879
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
884
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
889
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
905
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
914
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
918
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
925
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
930
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
936
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
943
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
948
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
953
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
960
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
965
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
972
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
977
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
981
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
985
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
989
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
998
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1003
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1010
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1017
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1034
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1039
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1044
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1048
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1054
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1065
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1070
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1075
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1082
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1087
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1090
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1093
1094 -with-* | --with-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=\$ac_optarg ;;
1109
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=no ;;
1125
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1129
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1136
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1143
1144 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1146 ;;
1147
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154 esac
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1157
1158 *)
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 ;;
1165
1166 esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error $? "missing argument to $ac_option"
1172 fi
1173
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 esac
1180 fi
1181
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1187 do
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1190 case $ac_val in
1191 */ )
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1194 esac
1195 # Be sure to have absolute directory names.
1196 case $ac_val in
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 esac
1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used" >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1218 fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error $? "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
1262 srcdir=$ac_confdir
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 srcdir=..
1265 fi
1266 else
1267 ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272 fi
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 ac_abs_confdir=`(
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1280 fi
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1293
1294 #
1295 # Report the --help message.
1296 #
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures mkfontscale 1.1.0 to adapt to many kinds of systems.
1302
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1307
1308 Defaults for the options are specified in brackets.
1309
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking ...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1326
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1331
1332 For better control, use the options below.
1333
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1355
1356 cat <<\_ACEOF
1357
1358 Program names:
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1362
1363 System types:
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of mkfontscale 1.1.0:";;
1372 esac
1373 cat <<\_ACEOF
1374
1375 Optional Features:
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --disable-selective-werror
1384 Turn off selective compiler errors. (default:
1385 enabled)
1386 --enable-strict-compilation
1387 Enable all warnings from compiler and make them
1388 errors (default: disabled)
1389 --enable-silent-rules less verbose build output (undo: `make V=1')
1390 --disable-silent-rules verbose build output (undo: `make V=0')
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-bzip2 Support bzip2 compressed bitmap fonts
1396 --with-lint Use a lint-style source code checker (default:
1397 disabled)
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408 PKG_CONFIG path to pkg-config utility
1409 MKFONTSCALE_CFLAGS
1410 C compiler flags for MKFONTSCALE, overriding pkg-config
1411 MKFONTSCALE_LIBS
1412 linker flags for MKFONTSCALE, overriding pkg-config
1413 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1414 X11_LIBS linker flags for X11, overriding pkg-config
1415 LINT Path to a lint-style command
1416 LINT_FLAGS Flags for the lint-style command
1417
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1420
1421 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 mkfontscale configure 1.1.0
1485 generated by GNU Autoconf 2.68
1486
1487 Copyright (C) 2010 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1537 # ---------------------------------------------
1538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1539 # accordingly.
1540 ac_fn_c_check_decl ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 as_decl_name=`echo $2|sed 's/ *(.*//'`
1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1547 if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1549 else
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1552 $4
1553 int
1554 main ()
1555 {
1556 #ifndef $as_decl_name
1557 #ifdef __cplusplus
1558 (void) $as_decl_use;
1559 #else
1560 (void) $as_decl_name;
1561 #endif
1562 #endif
1563
1564 ;
1565 return 0;
1566 }
1567 _ACEOF
1568 if ac_fn_c_try_compile "$LINENO"; then :
1569 eval "$3=yes"
1570 else
1571 eval "$3=no"
1572 fi
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574 fi
1575 eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
1580 } # ac_fn_c_check_decl
1581
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_cpp ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } > conftest.i && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_cpp
1618
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1623 ac_fn_c_try_run ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1634 ac_status=$?
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=$ac_status
1654 fi
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_run
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
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$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 $as_echo "$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 $as_echo "$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 $as_test_x conftest$ac_exeext
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1740
1741 It was created by mkfontscale $as_me 1.1.0, which was
1742 generated by GNU Autoconf 2.68. Invocation command line was
1743
1744 $ $0 $@
1745
1746 _ACEOF
1747 exec 5>>config.log
1748 {
1749 cat <<_ASUNAME
1750 ## --------- ##
1751 ## Platform. ##
1752 ## --------- ##
1753
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762
1763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1770
1771 _ASUNAME
1772
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 $as_echo "PATH: $as_dir"
1779 done
1780 IFS=$as_save_IFS
1781
1782 } >&5
1783
1784 cat >&5 <<_ACEOF
1785
1786
1787 ## ----------- ##
1788 ## Core tests. ##
1789 ## ----------- ##
1790
1791 _ACEOF
1792
1793
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1799 ac_configure_args=
1800 ac_configure_args0=
1801 ac_configure_args1=
1802 ac_must_keep_next=false
1803 for ac_pass in 1 2
1804 do
1805 for ac_arg
1806 do
1807 case $ac_arg in
1808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810 | -silent | --silent | --silen | --sile | --sil)
1811 continue ;;
1812 *\'*)
1813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814 esac
1815 case $ac_pass in
1816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1817 2)
1818 as_fn_append ac_configure_args1 " '$ac_arg'"
1819 if test $ac_must_keep_next = true; then
1820 ac_must_keep_next=false # Got value, back to normal.
1821 else
1822 case $ac_arg in
1823 *=* | --config-cache | -C | -disable-* | --disable-* \
1824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826 | -with-* | --with-* | -without-* | --without-* | --x)
1827 case "$ac_configure_args0 " in
1828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829 esac
1830 ;;
1831 -* ) ac_must_keep_next=true ;;
1832 esac
1833 fi
1834 as_fn_append ac_configure_args " '$ac_arg'"
1835 ;;
1836 esac
1837 done
1838 done
1839 { ac_configure_args0=; unset ac_configure_args0;}
1840 { ac_configure_args1=; unset ac_configure_args1;}
1841
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log. We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848 # Save into config.log some information that might help in debugging.
1849 {
1850 echo
1851
1852 $as_echo "## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##"
1855 echo
1856 # The following way of writing the cache mishandles newlines in values,
1857 (
1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859 eval ac_val=\$$ac_var
1860 case $ac_val in #(
1861 *${as_nl}*)
1862 case $ac_var in #(
1863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865 esac
1866 case $ac_var in #(
1867 _ | IFS | as_nl) ;; #(
1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869 *) { eval $ac_var=; unset $ac_var;} ;;
1870 esac ;;
1871 esac
1872 done
1873 (set) 2>&1 |
1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875 *${as_nl}ac_space=\ *)
1876 sed -n \
1877 "s/'\''/'\''\\\\'\'''\''/g;
1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 ;; #(
1880 *)
1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882 ;;
1883 esac |
1884 sort
1885 )
1886 echo
1887
1888 $as_echo "## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##"
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 $as_echo "## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##"
1906 echo
1907 for ac_var in $ac_subst_files
1908 do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 $as_echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1916 fi
1917
1918 if test -s confdefs.h; then
1919 $as_echo "## ----------- ##
1920 ## confdefs.h. ##
1921 ## ----------- ##"
1922 echo
1923 cat confdefs.h
1924 echo
1925 fi
1926 test "$ac_signal" != 0 &&
1927 $as_echo "$as_me: caught signal $ac_signal"
1928 $as_echo "$as_me: exit $exit_status"
1929 } >&5
1930 rm -f core *.core core.conftest.* &&
1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932 exit $exit_status
1933 ' 0
1934 for ac_signal in 1 2 13 15; do
1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1936 done
1937 ac_signal=0
1938
1939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1940 rm -f -r conftest* confdefs.h
1941
1942 $as_echo "/* confdefs.h */" > confdefs.h
1943
1944 # Predefined preprocessor variables.
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1948 _ACEOF
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952 _ACEOF
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1956 _ACEOF
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_STRING "$PACKAGE_STRING"
1960 _ACEOF
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964 _ACEOF
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_URL "$PACKAGE_URL"
1968 _ACEOF
1969
1970
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer an explicitly selected file to automatically selected ones.
1973 ac_site_file1=NONE
1974 ac_site_file2=NONE
1975 if test -n "$CONFIG_SITE"; then
1976 # We do not want a PATH search for config.site.
1977 case $CONFIG_SITE in #((
1978 -*) ac_site_file1=./$CONFIG_SITE;;
1979 */*) ac_site_file1=$CONFIG_SITE;;
1980 *) ac_site_file1=./$CONFIG_SITE;;
1981 esac
1982 elif test "x$prefix" != xNONE; then
1983 ac_site_file1=$prefix/share/config.site
1984 ac_site_file2=$prefix/etc/config.site
1985 else
1986 ac_site_file1=$ac_default_prefix/share/config.site
1987 ac_site_file2=$ac_default_prefix/etc/config.site
1988 fi
1989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990 do
1991 test "x$ac_site_file" = xNONE && continue
1992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995 sed 's/^/| /' "$ac_site_file" >&5
1996 . "$ac_site_file" \
1997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 as_fn_error $? "failed to load site script $ac_site_file
2000 See \`config.log' for more details" "$LINENO" 5; }
2001 fi
2002 done
2003
2004 if test -r "$cache_file"; then
2005 # Some versions of bash will fail to source /dev/null (special files
2006 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2009 $as_echo "$as_me: loading cache $cache_file" >&6;}
2010 case $cache_file in
2011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012 *) . "./$cache_file";;
2013 esac
2014 fi
2015 else
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2017 $as_echo "$as_me: creating cache $cache_file" >&6;}
2018 >$cache_file
2019 fi
2020
2021 # Check that the precious variables saved in the cache have kept the same
2022 # value.
2023 ac_cache_corrupted=false
2024 for ac_var in $ac_precious_vars; do
2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026 eval ac_new_set=\$ac_env_${ac_var}_set
2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028 eval ac_new_val=\$ac_env_${ac_var}_value
2029 case $ac_old_set,$ac_new_set in
2030 set,)
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2034 ,set)
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2036 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037 ac_cache_corrupted=: ;;
2038 ,);;
2039 *)
2040 if test "x$ac_old_val" != "x$ac_new_val"; then
2041 # differences in whitespace do not lead to failure.
2042 ac_old_val_w=`echo x $ac_old_val`
2043 ac_new_val_w=`echo x $ac_new_val`
2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2046 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047 ac_cache_corrupted=:
2048 else
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051 eval $ac_var=\$ac_old_val
2052 fi
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2054 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2056 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2057 fi;;
2058 esac
2059 # Pass precious variables to config.status.
2060 if test "$ac_new_set" = set; then
2061 case $ac_new_val in
2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 *) ac_arg=$ac_var=$ac_new_val ;;
2064 esac
2065 case " $ac_configure_args " in
2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2067 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2068 esac
2069 fi
2070 done
2071 if $ac_cache_corrupted; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2077 fi
2078 ## -------------------- ##
2079 ## Main body of script. ##
2080 ## -------------------- ##
2081
2082 ac_ext=c
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087
2088
2089
2090 ac_config_headers="$ac_config_headers config.h"
2091
2092
2093 # Initialize Automake
2094 am__api_version='1.11'
2095
2096 ac_aux_dir=
2097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098 if test -f "$ac_dir/install-sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install-sh -c"
2101 break
2102 elif test -f "$ac_dir/install.sh"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install.sh -c"
2105 break
2106 elif test -f "$ac_dir/shtool"; then
2107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/shtool install -c"
2109 break
2110 fi
2111 done
2112 if test -z "$ac_aux_dir"; then
2113 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2114 fi
2115
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123
2124
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2131 # AIX /bin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 # Reject install programs that cannot install multiple files.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2141 if test -z "$INSTALL"; then
2142 if ${ac_cv_path_install+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in #((
2152 ./ | .// | /[cC]/* | \
2153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2155 /usr/ucb/* ) ;;
2156 *)
2157 # OSF1 and SCO ODT 3.0 have their own names for install.
2158 # Don't use installbsd from OSF since it installs stuff as root
2159 # by default.
2160 for ac_prog in ginstall scoinst install; do
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163 if test $ac_prog = install &&
2164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # AIX install. It has an incompatible calling convention.
2166 :
2167 elif test $ac_prog = install &&
2168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # program-specific install script used by HP pwplus--don't use.
2170 :
2171 else
2172 rm -rf conftest.one conftest.two conftest.dir
2173 echo one > conftest.one
2174 echo two > conftest.two
2175 mkdir conftest.dir
2176 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177 test -s conftest.one && test -s conftest.two &&
2178 test -s conftest.dir/conftest.one &&
2179 test -s conftest.dir/conftest.two
2180 then
2181 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182 break 3
2183 fi
2184 fi
2185 fi
2186 done
2187 done
2188 ;;
2189 esac
2190
2191 done
2192 IFS=$as_save_IFS
2193
2194 rm -rf conftest.one conftest.two conftest.dir
2195
2196 fi
2197 if test "${ac_cv_path_install+set}" = set; then
2198 INSTALL=$ac_cv_path_install
2199 else
2200 # As a last resort, use the slow shell script. Don't cache a
2201 # value for INSTALL within a source directory, because that will
2202 # break other packages using the cache if that directory is
2203 # removed, or if the value is a relative name.
2204 INSTALL=$ac_install_sh
2205 fi
2206 fi
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208 $as_echo "$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219 $as_echo_n "checking whether build environment is sane... " >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name. Accept space and tab only in the latter.
2225 am_lf='
2226 '
2227 case `pwd` in
2228 *[\\\"\#\$\&\'\`$am_lf]*)
2229 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2230 esac
2231 case $srcdir in
2232 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2233 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2234 esac
2235
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments. Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2240 # directory).
2241 if (
2242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243 if test "$*" = "X"; then
2244 # -L didn't work.
2245 set X `ls -t "$srcdir/configure" conftest.file`
2246 fi
2247 rm -f conftest.file
2248 if test "$*" != "X $srcdir/configure conftest.file" \
2249 && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251 # If neither matched, then we have a broken ls. This can happen
2252 # if, for instance, CONFIG_SHELL is bash and it inherits a
2253 # broken ls alias from the environment. This has actually
2254 # happened. Such a system could not be considered "sane".
2255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2256 alias in your environment" "$LINENO" 5
2257 fi
2258
2259 test "$2" = conftest.file
2260 )
2261 then
2262 # Ok.
2263 :
2264 else
2265 as_fn_error $? "newly created file is older than distributed files!
2266 Check your system clock" "$LINENO" 5
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269 $as_echo "yes" >&6; }
2270 test "$program_prefix" != NONE &&
2271 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272 # Use a double $ so make ignores it.
2273 test "$program_suffix" != NONE &&
2274 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275 # Double any \ or $.
2276 # By default was `s,x,x', remove it if useless.
2277 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283 if test x"${MISSING+set}" != xset; then
2284 case $am_aux_dir in
2285 *\ * | *\ *)
2286 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287 *)
2288 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289 esac
2290 fi
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293 am_missing_run="$MISSING --run "
2294 else
2295 am_missing_run=
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298 fi
2299
2300 if test x"${install_sh}" != xset; then
2301 case $am_aux_dir in
2302 *\ * | *\ *)
2303 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304 *)
2305 install_sh="\${SHELL} $am_aux_dir/install-sh"
2306 esac
2307 fi
2308
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'. However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_STRIP+:} false; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345 $as_echo "$STRIP" >&6; }
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$ac_cv_prog_STRIP"; then
2354 ac_ct_STRIP=$STRIP
2355 # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376 done
2377 done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385 $as_echo "$ac_ct_STRIP" >&6; }
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2389 fi
2390
2391 if test "x$ac_ct_STRIP" = x; then
2392 STRIP=":"
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400 STRIP=$ac_ct_STRIP
2401 fi
2402 else
2403 STRIP="$ac_cv_prog_STRIP"
2404 fi
2405
2406 fi
2407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411 if test -z "$MKDIR_P"; then
2412 if ${ac_cv_path_mkdir+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_prog in mkdir gmkdir; do
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424 'mkdir (GNU coreutils) '* | \
2425 'mkdir (coreutils) '* | \
2426 'mkdir (fileutils) '4.1*)
2427 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428 break 3;;
2429 esac
2430 done
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436
2437 test -d ./--version && rmdir ./--version
2438 if test "${ac_cv_path_mkdir+set}" = set; then
2439 MKDIR_P="$ac_cv_path_mkdir -p"
2440 else
2441 # As a last resort, use the slow shell script. Don't cache a
2442 # value for MKDIR_P within a source directory, because that will
2443 # break other packages using the cache if that directory is
2444 # removed, or if the value is a relative name.
2445 MKDIR_P="$ac_install_sh -d"
2446 fi
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449 $as_echo "$MKDIR_P" >&6; }
2450
2451 mkdir_p="$MKDIR_P"
2452 case $mkdir_p in
2453 [\\/$]* | ?:[\\/]*) ;;
2454 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455 esac
2456
2457 for ac_prog in gawk mawk nawk awk
2458 do
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_AWK+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$AWK"; then
2467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_AWK="$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 AWK=$ac_cv_prog_AWK
2487 if test -n "$AWK"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489 $as_echo "$AWK" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 test -n "$AWK" && break
2497 done
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501 set x ${MAKE-make}
2502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 cat >conftest.make <<\_ACEOF
2507 SHELL = /bin/sh
2508 all:
2509 @echo '@@@%%%=$(MAKE)=@@@%%%'
2510 _ACEOF
2511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513 *@@@%%%=?*=@@@%%%*)
2514 eval ac_cv_prog_make_${ac_make}_set=yes;;
2515 *)
2516 eval ac_cv_prog_make_${ac_make}_set=no;;
2517 esac
2518 rm -f conftest.make
2519 fi
2520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2523 SET_MAKE=
2524 else
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527 SET_MAKE="MAKE=${MAKE-make}"
2528 fi
2529
2530 rm -rf .tst 2>/dev/null
2531 mkdir .tst 2>/dev/null
2532 if test -d .tst; then
2533 am__leading_dot=.
2534 else
2535 am__leading_dot=_
2536 fi
2537 rmdir .tst 2>/dev/null
2538
2539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541 # is not polluted with repeated "-I."
2542 am__isrc=' -I$(srcdir)'
2543 # test to see if srcdir already configured
2544 if test -f $srcdir/config.status; then
2545 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2546 fi
2547 fi
2548
2549 # test whether we have cygpath
2550 if test -z "$CYGPATH_W"; then
2551 if (cygpath --version) >/dev/null 2>/dev/null; then
2552 CYGPATH_W='cygpath -w'
2553 else
2554 CYGPATH_W=echo
2555 fi
2556 fi
2557
2558
2559 # Define the identity of the package.
2560 PACKAGE='mkfontscale'
2561 VERSION='1.1.0'
2562
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE "$PACKAGE"
2566 _ACEOF
2567
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define VERSION "$VERSION"
2571 _ACEOF
2572
2573 # Some tools Automake needs.
2574
2575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576
2577
2578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579
2580
2581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582
2583
2584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585
2586
2587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2588
2589 # We need awk for the "check" target. The system "awk" is bad on
2590 # some platforms.
2591 # Always define AMTAR for backward compatibility.
2592
2593 AMTAR=${AMTAR-"${am_missing_run}tar"}
2594
2595 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596
2597
2598
2599
2600
2601
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2603 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2604 # Check whether --enable-maintainer-mode was given.
2605 if test "${enable_maintainer_mode+set}" = set; then :
2606 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2607 else
2608 USE_MAINTAINER_MODE=no
2609 fi
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2612 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2613 if test $USE_MAINTAINER_MODE = yes; then
2614 MAINTAINER_MODE_TRUE=
2615 MAINTAINER_MODE_FALSE='#'
2616 else
2617 MAINTAINER_MODE_TRUE='#'
2618 MAINTAINER_MODE_FALSE=
2619 fi
2620
2621 MAINT=$MAINTAINER_MODE_TRUE
2622
2623
2624
2625 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637 DEPDIR="${am__leading_dot}deps"
2638
2639 ac_config_commands="$ac_config_commands depfiles"
2640
2641
2642 am_make=${MAKE-make}
2643 cat > confinc << 'END'
2644 am__doit:
2645 @echo this is the am__doit target
2646 .PHONY: am__doit
2647 END
2648 # If we don't find an include directive, just comment out the code.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2651 am__include="#"
2652 am__quote=
2653 _am_result=none
2654 # First try GNU make style include.
2655 echo "include confinc" > confmf
2656 # Ignore all kinds of additional output from `make'.
2657 case `$am_make -s -f confmf 2> /dev/null` in #(
2658 *the\ am__doit\ target*)
2659 am__include=include
2660 am__quote=
2661 _am_result=GNU
2662 ;;
2663 esac
2664 # Now try BSD make style include.
2665 if test "$am__include" = "#"; then
2666 echo '.include "confinc"' > confmf
2667 case `$am_make -s -f confmf 2> /dev/null` in #(
2668 *the\ am__doit\ target*)
2669 am__include=.include
2670 am__quote="\""
2671 _am_result=BSD
2672 ;;
2673 esac
2674 fi
2675
2676
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2678 $as_echo "$_am_result" >&6; }
2679 rm -f confinc confmf
2680
2681 # Check whether --enable-dependency-tracking was given.
2682 if test "${enable_dependency_tracking+set}" = set; then :
2683 enableval=$enable_dependency_tracking;
2684 fi
2685
2686 if test "x$enable_dependency_tracking" != xno; then
2687 am_depcomp="$ac_aux_dir/depcomp"
2688 AMDEPBACKSLASH='\'
2689 fi
2690 if test "x$enable_dependency_tracking" != xno; then
2691 AMDEP_TRUE=
2692 AMDEP_FALSE='#'
2693 else
2694 AMDEP_TRUE='#'
2695 AMDEP_FALSE=
2696 fi
2697
2698
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$ac_cv_prog_CC"; then
2744 ac_ct_CC=$CC
2745 # Extract the first word of "gcc", so it can be a program name with args.
2746 set dummy gcc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test -n "$ac_ct_CC"; then
2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_CC="gcc"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766 done
2767 done
2768 IFS=$as_save_IFS
2769
2770 fi
2771 fi
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775 $as_echo "$ac_ct_CC" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781 if test "x$ac_ct_CC" = x; then
2782 CC=""
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785 yes:)
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790 CC=$ac_ct_CC
2791 fi
2792 else
2793 CC="$ac_cv_prog_CC"
2794 fi
2795
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}cc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="${ac_tool_prefix}cc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 fi
2837 if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 ac_prog_rejected=no
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected=yes
2858 continue
2859 fi
2860 ac_cv_prog_CC="cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 if test $ac_prog_rejected = yes; then
2869 # We found a bogon in the path, so make sure we never use it.
2870 set dummy $ac_cv_prog_CC
2871 shift
2872 if test $# != 0; then
2873 # We chose a different compiler from the bogus one.
2874 # However, it has the same basename, so the bogon will be chosen
2875 # first if we set CC to just the basename; use the full file name.
2876 shift
2877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878 fi
2879 fi
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 for ac_prog in cl.exe
2896 do
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 test -n "$CC" && break
2935 done
2936 fi
2937 if test -z "$CC"; then
2938 ac_ct_CC=$CC
2939 for ac_prog in cl.exe
2940 do
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978 test -n "$ac_ct_CC" && break
2979 done
2980
2981 if test "x$ac_ct_CC" = x; then
2982 CC=""
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2989 esac
2990 CC=$ac_ct_CC
2991 fi
2992 fi
2993
2994 fi
2995
2996
2997 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details" "$LINENO" 5; }
3001
3002 # Provide some information about the compiler.
3003 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3004 set X $ac_compile
3005 ac_compiler=$2
3006 for ac_option in --version -v -V -qversion; do
3007 { { ac_try="$ac_compiler $ac_option >&5"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013 $as_echo "$ac_try_echo"; } >&5
3014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3015 ac_status=$?
3016 if test -s conftest.err; then
3017 sed '10a\
3018 ... rest of stderr output deleted ...
3019 10q' conftest.err >conftest.er1
3020 cat conftest.er1 >&5
3021 fi
3022 rm -f conftest.er1 conftest.err
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }
3025 done
3026
3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3029
3030 int
3031 main ()
3032 {
3033
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 ac_clean_files_save=$ac_clean_files
3039 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3042 # of exeext.
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044 $as_echo_n "checking whether the C compiler works... " >&6; }
3045 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046
3047 # The possible output files:
3048 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049
3050 ac_rmfiles=
3051 for ac_file in $ac_files
3052 do
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056 esac
3057 done
3058 rm -f $ac_rmfiles
3059
3060 if { { ac_try="$ac_link_default"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link_default") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3074 # so that the user can short-circuit this test for compilers unknown to
3075 # Autoconf.
3076 for ac_file in $ac_files ''
3077 do
3078 test -f "$ac_file" || continue
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081 ;;
3082 [ab].out )
3083 # We found the default executable, but exeext='' is most
3084 # certainly right.
3085 break;;
3086 *.* )
3087 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088 then :; else
3089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 fi
3091 # We set ac_cv_exeext here because the later test for it is not
3092 # safe: cross compilers may not add the suffix if given an `-o'
3093 # argument, so we may need to know it at that point already.
3094 # Even if this section looks crufty: it has the advantage of
3095 # actually working.
3096 break;;
3097 * )
3098 break;;
3099 esac
3100 done
3101 test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
3103 else
3104 ac_file=''
3105 fi
3106 if test -z "$ac_file"; then :
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error 77 "C compiler cannot create executables
3115 See \`config.log' for more details" "$LINENO" 5; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118 $as_echo "yes" >&6; }
3119 fi
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123 $as_echo "$ac_file" >&6; }
3124 ac_exeext=$ac_cv_exeext
3125
3126 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129 $as_echo_n "checking for suffix of executables... " >&6; }
3130 if { { ac_try="$ac_link"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_link") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143 # work properly (i.e., refer to `conftest.exe'), while it won't with
3144 # `rm'.
3145 for ac_file in conftest.exe conftest conftest.*; do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 break;;
3151 * ) break;;
3152 esac
3153 done
3154 else
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details" "$LINENO" 5; }
3159 fi
3160 rm -f conftest conftest$ac_cv_exeext
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3162 $as_echo "$ac_cv_exeext" >&6; }
3163
3164 rm -f conftest.$ac_ext
3165 EXEEXT=$ac_cv_exeext
3166 ac_exeext=$EXEEXT
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169 #include <stdio.h>
3170 int
3171 main ()
3172 {
3173 FILE *f = fopen ("conftest.out", "w");
3174 return ferror (f) || fclose (f) != 0;
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 ac_clean_files="$ac_clean_files conftest.out"
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184 $as_echo_n "checking whether we are cross compiling... " >&6; }
3185 if test "$cross_compiling" != yes; then
3186 { { ac_try="$ac_link"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 if { ac_try='./conftest$ac_cv_exeext'
3198 { { case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; }; then
3208 cross_compiling=no
3209 else
3210 if test "$cross_compiling" = maybe; then
3211 cross_compiling=yes
3212 else
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "cannot run C compiled programs.
3216 If you meant to cross compile, use \`--host'.
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 fi
3219 fi
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3222 $as_echo "$cross_compiling" >&6; }
3223
3224 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3225 ac_clean_files=$ac_clean_files_save
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3227 $as_echo_n "checking for suffix of object files... " >&6; }
3228 if ${ac_cv_objext+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.o conftest.obj
3243 if { { ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_compile") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 for ac_file in conftest.o conftest.obj conftest.*; do
3255 test -f "$ac_file" || continue;
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3259 break;;
3260 esac
3261 done
3262 else
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details" "$LINENO" 5; }
3270 fi
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3274 $as_echo "$ac_cv_objext" >&6; }
3275 OBJEXT=$ac_cv_objext
3276 ac_objext=$OBJEXT
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3278 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3279 if ${ac_cv_c_compiler_gnu+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284
3285 int
3286 main ()
3287 {
3288 #ifndef __GNUC__
3289 choke me
3290 #endif
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_compiler_gnu=yes
3298 else
3299 ac_compiler_gnu=no
3300 fi
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3306 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3307 if test $ac_compiler_gnu = yes; then
3308 GCC=yes
3309 else
3310 GCC=
3311 fi
3312 ac_test_CFLAGS=${CFLAGS+set}
3313 ac_save_CFLAGS=$CFLAGS
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3315 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3316 if ${ac_cv_prog_cc_g+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 ac_save_c_werror_flag=$ac_c_werror_flag
3320 ac_c_werror_flag=yes
3321 ac_cv_prog_cc_g=no
3322 CFLAGS="-g"
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_g=yes
3336 else
3337 CFLAGS=""
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340
3341 int
3342 main ()
3343 {
3344
3345 ;
3346 return 0;
3347 }
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350
3351 else
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3353 CFLAGS="-g"
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 if ac_fn_c_try_compile "$LINENO"; then :
3366 ac_cv_prog_cc_g=yes
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_c_werror_flag=$ac_save_c_werror_flag
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376 $as_echo "$ac_cv_prog_cc_g" >&6; }
3377 if test "$ac_test_CFLAGS" = set; then
3378 CFLAGS=$ac_save_CFLAGS
3379 elif test $ac_cv_prog_cc_g = yes; then
3380 if test "$GCC" = yes; then
3381 CFLAGS="-g -O2"
3382 else
3383 CFLAGS="-g"
3384 fi
3385 else
3386 if test "$GCC" = yes; then
3387 CFLAGS="-O2"
3388 else
3389 CFLAGS=
3390 fi
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394 if ${ac_cv_prog_cc_c89+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 ac_cv_prog_cc_c89=no
3398 ac_save_CC=$CC
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #include <stdarg.h>
3402 #include <stdio.h>
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3409 char **p;
3410 int i;
3411 {
3412 return p[i];
3413 }
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3415 {
3416 char *s;
3417 va_list v;
3418 va_start (v,p);
3419 s = g (p, va_arg (v,int));
3420 va_end (v);
3421 return s;
3422 }
3423
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3434 inside strings and character constants. */
3435 #define FOO(x) 'x'
3436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437
3438 int test (int i, double x);
3439 struct s1 {int (*f) (int a);};
3440 struct s2 {int (*f) (double a);};
3441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 int argc;
3443 char **argv;
3444 int
3445 main ()
3446 {
3447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3453 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 do
3455 CC="$ac_save_CC $ac_arg"
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_cv_prog_cc_c89=$ac_arg
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext
3460 test "x$ac_cv_prog_cc_c89" != "xno" && break
3461 done
3462 rm -f conftest.$ac_ext
3463 CC=$ac_save_CC
3464
3465 fi
3466 # AC_CACHE_VAL
3467 case "x$ac_cv_prog_cc_c89" in
3468 x)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470 $as_echo "none needed" >&6; } ;;
3471 xno)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3473 $as_echo "unsupported" >&6; } ;;
3474 *)
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478 esac
3479 if test "x$ac_cv_prog_cc_c89" != xno; then :
3480
3481 fi
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489 depcc="$CC" am_compiler_list=
3490
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
3493 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3501 # in D'.
3502 mkdir conftest.dir
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3506 cd conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3512 # directory.
3513 mkdir sub
3514
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518 fi
3519 am__universal=false
3520 case " $depcc " in #(
3521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3522 esac
3523
3524 for depmode in $am_compiler_list; do
3525 # Setup a source with many dependencies, because some compilers
3526 # like to wrap large dependency lists on column 80 (with \), and
3527 # we should not choose a depcomp mode which is confused by this.
3528 #
3529 # We need to recreate these files for each test, as the compiler may
3530 # overwrite some of them when testing with obscure command lines.
3531 # This happens at least with the AIX C compiler.
3532 : > sub/conftest.c
3533 for i in 1 2 3 4 5 6; do
3534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536 # Solaris 8's {/usr,}/bin/sh.
3537 touch sub/conftst$i.h
3538 done
3539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540
3541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3542 # mode. It turns out that the SunPro C++ compiler does not properly
3543 # handle `-M -o', and we need to detect this. Also, some Intel
3544 # versions had trouble with output in subdirs
3545 am__obj=sub/conftest.${OBJEXT-o}
3546 am__minus_obj="-o $am__obj"
3547 case $depmode in
3548 gcc)
3549 # This depmode causes a compiler race in universal mode.
3550 test "$am__universal" = false || continue
3551 ;;
3552 nosideeffect)
3553 # after this tag, mechanisms are not by side-effect, so they'll
3554 # only be used when explicitly requested
3555 if test "x$enable_dependency_tracking" = xyes; then
3556 continue
3557 else
3558 break
3559 fi
3560 ;;
3561 msvisualcpp | msvcmsys)
3562 # This compiler won't grok `-c -o', but also, the minuso test has
3563 # not run yet. These depmodes are late enough in the game, and
3564 # so weak that their functioning should not be impacted.
3565 am__obj=conftest.${OBJEXT-o}
3566 am__minus_obj=
3567 ;;
3568 none) break ;;
3569 esac
3570 if depmode=$depmode \
3571 source=sub/conftest.c object=$am__obj \
3572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3574 >/dev/null 2>conftest.err &&
3575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3579 # icc doesn't choke on unknown options, it will just issue warnings
3580 # or remarks (even with -Werror). So we grep stderr for any message
3581 # that says an option was ignored or not supported.
3582 # When given -MP, icc 7.0 and 7.1 complain thusly:
3583 # icc: Command line warning: ignoring option '-M'; no argument required
3584 # The diagnosis changed in icc 8.0:
3585 # icc: Command line remark: option '-MP' not supported
3586 if (grep 'ignoring option' conftest.err ||
3587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3588 am_cv_CC_dependencies_compiler_type=$depmode
3589 break
3590 fi
3591 fi
3592 done
3593
3594 cd ..
3595 rm -rf conftest.dir
3596 else
3597 am_cv_CC_dependencies_compiler_type=none
3598 fi
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3604
3605 if
3606 test "x$enable_dependency_tracking" != xno \
3607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3608 am__fastdepCC_TRUE=
3609 am__fastdepCC_FALSE='#'
3610 else
3611 am__fastdepCC_TRUE='#'
3612 am__fastdepCC_FALSE=
3613 fi
3614
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3618 if ${ac_cv_prog_cc_c99+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 ac_cv_prog_cc_c99=no
3622 ac_save_CC=$CC
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <stdarg.h>
3626 #include <stdbool.h>
3627 #include <stdlib.h>
3628 #include <wchar.h>
3629 #include <stdio.h>
3630
3631 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3632 #define debug(...) fprintf (stderr, __VA_ARGS__)
3633 #define showlist(...) puts (#__VA_ARGS__)
3634 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3635 static void
3636 test_varargs_macros (void)
3637 {
3638 int x = 1234;
3639 int y = 5678;
3640 debug ("Flag");
3641 debug ("X = %d\n", x);
3642 showlist (The first, second, and third items.);
3643 report (x>y, "x is %d but y is %d", x, y);
3644 }
3645
3646 // Check long long types.
3647 #define BIG64 18446744073709551615ull
3648 #define BIG32 4294967295ul
3649 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3650 #if !BIG_OK
3651 your preprocessor is broken;
3652 #endif
3653 #if BIG_OK
3654 #else
3655 your preprocessor is broken;
3656 #endif
3657 static long long int bignum = -9223372036854775807LL;
3658 static unsigned long long int ubignum = BIG64;
3659
3660 struct incomplete_array
3661 {
3662 int datasize;
3663 double data[];
3664 };
3665
3666 struct named_init {
3667 int number;
3668 const wchar_t *name;
3669 double average;
3670 };
3671
3672 typedef const char *ccp;
3673
3674 static inline int
3675 test_restrict (ccp restrict text)
3676 {
3677 // See if C++-style comments work.
3678 // Iterate through items via the restricted pointer.
3679 // Also check for declarations in for loops.
3680 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3681 continue;
3682 return 0;
3683 }
3684
3685 // Check varargs and va_copy.
3686 static void
3687 test_varargs (const char *format, ...)
3688 {
3689 va_list args;
3690 va_start (args, format);
3691 va_list args_copy;
3692 va_copy (args_copy, args);
3693
3694 const char *str;
3695 int number;
3696 float fnumber;
3697
3698 while (*format)
3699 {
3700 switch (*format++)
3701 {
3702 case 's': // string
3703 str = va_arg (args_copy, const char *);
3704 break;
3705 case 'd': // int
3706 number = va_arg (args_copy, int);
3707 break;
3708 case 'f': // float
3709 fnumber = va_arg (args_copy, double);
3710 break;
3711 default:
3712 break;
3713 }
3714 }
3715 va_end (args_copy);
3716 va_end (args);
3717 }
3718
3719 int
3720 main ()
3721 {
3722
3723 // Check bool.
3724 _Bool success = false;
3725
3726 // Check restrict.
3727 if (test_restrict ("String literal") == 0)
3728 success = true;
3729 char *restrict newvar = "Another string";
3730
3731 // Check varargs.
3732 test_varargs ("s, d' f .", "string", 65, 34.234);
3733 test_varargs_macros ();
3734
3735 // Check flexible array members.
3736 struct incomplete_array *ia =
3737 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3738 ia->datasize = 10;
3739 for (int i = 0; i < ia->datasize; ++i)
3740 ia->data[i] = i * 1.234;
3741
3742 // Check named initializers.
3743 struct named_init ni = {
3744 .number = 34,
3745 .name = L"Test wide string",
3746 .average = 543.34343,
3747 };
3748
3749 ni.number = 58;
3750
3751 int dynamic_array[ni.number];
3752 dynamic_array[ni.number - 1] = 543;
3753
3754 // work around unused variable warnings
3755 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3756 || dynamic_array[ni.number - 1] != 543);
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3763 do
3764 CC="$ac_save_CC $ac_arg"
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_c99=$ac_arg
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x$ac_cv_prog_cc_c99" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3773
3774 fi
3775 # AC_CACHE_VAL
3776 case "x$ac_cv_prog_cc_c99" in
3777 x)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;;
3780 xno)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3782 $as_echo "unsupported" >&6; } ;;
3783 *)
3784 CC="$CC $ac_cv_prog_cc_c99"
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3786 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3787 esac
3788 if test "x$ac_cv_prog_cc_c99" != xno; then :
3789
3790 fi
3791
3792
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3801 # On Suns, sometimes $CPP names a directory.
3802 if test -n "$CPP" && test -d "$CPP"; then
3803 CPP=
3804 fi
3805 if test -z "$CPP"; then
3806 if ${ac_cv_prog_CPP+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 # Double quotes because CPP needs to be expanded
3810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3811 do
3812 ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3814 do
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #ifdef __STDC__
3824 # include <limits.h>
3825 #else
3826 # include <assert.h>
3827 #endif
3828 Syntax error
3829 _ACEOF
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3831
3832 else
3833 # Broken: fails on valid input.
3834 continue
3835 fi
3836 rm -f conftest.err conftest.i conftest.$ac_ext
3837
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3846 continue
3847 else
3848 # Passes both tests.
3849 ac_preproc_ok=:
3850 break
3851 fi
3852 rm -f conftest.err conftest.i conftest.$ac_ext
3853
3854 done
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.i conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then :
3858 break
3859 fi
3860
3861 done
3862 ac_cv_prog_CPP=$CPP
3863
3864 fi
3865 CPP=$ac_cv_prog_CPP
3866 else
3867 ac_cv_prog_CPP=$CPP
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3870 $as_echo "$CPP" >&6; }
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3873 do
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #ifdef __STDC__
3883 # include <limits.h>
3884 #else
3885 # include <assert.h>
3886 #endif
3887 Syntax error
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3890
3891 else
3892 # Broken: fails on valid input.
3893 continue
3894 fi
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3896
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3905 continue
3906 else
3907 # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3910 fi
3911 rm -f conftest.err conftest.i conftest.$ac_ext
3912
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.i conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3917
3918 else
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 fi
3924
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934 if ${ac_cv_path_GREP+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -z "$GREP"; then
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942 do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3952 *GNU*)
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954 *)
3955 ac_count=0
3956 $as_echo_n 0123456789 >"conftest.in"
3957 while :
3958 do
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 $as_echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 as_fn_arith $ac_count + 1 && ac_count=$as_val
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3970 fi
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975 esac
3976
3977 $ac_path_GREP_found && break 3
3978 done
3979 done
3980 done
3981 IFS=$as_save_IFS
3982 if test -z "$ac_cv_path_GREP"; then
3983 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3984 fi
3985 else
3986 ac_cv_path_GREP=$GREP
3987 fi
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3991 $as_echo "$ac_cv_path_GREP" >&6; }
3992 GREP="$ac_cv_path_GREP"
3993
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3996 $as_echo_n "checking for egrep... " >&6; }
3997 if ${ac_cv_path_EGREP+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4001 then ac_cv_path_EGREP="$GREP -E"
4002 else
4003 if test -z "$EGREP"; then
4004 ac_path_EGREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
4016 # Check for GNU $ac_path_EGREP
4017 case `"$ac_path_EGREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020 *)
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'EGREP' >> "conftest.nl"
4029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043 $ac_path_EGREP_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_EGREP"; then
4049 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 fi
4051 else
4052 ac_cv_path_EGREP=$EGREP
4053 fi
4054
4055 fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4058 $as_echo "$ac_cv_path_EGREP" >&6; }
4059 EGREP="$ac_cv_path_EGREP"
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4063 $as_echo_n "checking for ANSI C header files... " >&6; }
4064 if ${ac_cv_header_stdc+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 #include <stdlib.h>
4070 #include <stdarg.h>
4071 #include <string.h>
4072 #include <float.h>
4073
4074 int
4075 main ()
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_header_stdc=yes
4084 else
4085 ac_cv_header_stdc=no
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #include <string.h>
4094
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev/null 2>&1; then :
4098
4099 else
4100 ac_cv_header_stdc=no
4101 fi
4102 rm -f conftest*
4103
4104 fi
4105
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdlib.h>
4111
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "free" >/dev/null 2>&1; then :
4115
4116 else
4117 ac_cv_header_stdc=no
4118 fi
4119 rm -f conftest*
4120
4121 fi
4122
4123 if test $ac_cv_header_stdc = yes; then
4124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125 if test "$cross_compiling" = yes; then :
4126 :
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <ctype.h>
4131 #include <stdlib.h>
4132 #if ((' ' & 0x0FF) == 0x020)
4133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4135 #else
4136 # define ISLOWER(c) \
4137 (('a' <= (c) && (c) <= 'i') \
4138 || ('j' <= (c) && (c) <= 'r') \
4139 || ('s' <= (c) && (c) <= 'z'))
4140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #endif
4142
4143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4144 int
4145 main ()
4146 {
4147 int i;
4148 for (i = 0; i < 256; i++)
4149 if (XOR (islower (i), ISLOWER (i))
4150 || toupper (i) != TOUPPER (i))
4151 return 2;
4152 return 0;
4153 }
4154 _ACEOF
4155 if ac_fn_c_try_run "$LINENO"; then :
4156
4157 else
4158 ac_cv_header_stdc=no
4159 fi
4160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4161 conftest.$ac_objext conftest.beam conftest.$ac_ext
4162 fi
4163
4164 fi
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4167 $as_echo "$ac_cv_header_stdc" >&6; }
4168 if test $ac_cv_header_stdc = yes; then
4169
4170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4171
4172 fi
4173
4174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4176 inttypes.h stdint.h unistd.h
4177 do :
4178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4180 "
4181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4182 cat >>confdefs.h <<_ACEOF
4183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184 _ACEOF
4185
4186 fi
4187
4188 done
4189
4190
4191
4192
4193 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4194 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4195 CLANGCC="yes"
4196 else
4197 CLANGCC="no"
4198 fi
4199
4200 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4201 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4202 INTELCC="yes"
4203 else
4204 INTELCC="no"
4205 fi
4206
4207 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4208 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4209 SUNCC="yes"
4210 else
4211 SUNCC="no"
4212 fi
4213
4214
4215
4216
4217 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 case $PKG_CONFIG in
4227 [\\/]* | ?:[\\/]*)
4228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4229 ;;
4230 *)
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 ;;
4247 esac
4248 fi
4249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4250 if test -n "$PKG_CONFIG"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4252 $as_echo "$PKG_CONFIG" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259 fi
4260 if test -z "$ac_cv_path_PKG_CONFIG"; then
4261 ac_pt_PKG_CONFIG=$PKG_CONFIG
4262 # Extract the first word of "pkg-config", so it can be a program name with args.
4263 set dummy pkg-config; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 case $ac_pt_PKG_CONFIG in
4270 [\\/]* | ?:[\\/]*)
4271 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4272 ;;
4273 *)
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 IFS=$as_save_IFS
4288
4289 ;;
4290 esac
4291 fi
4292 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4293 if test -n "$ac_pt_PKG_CONFIG"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4295 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301 if test "x$ac_pt_PKG_CONFIG" = x; then
4302 PKG_CONFIG=""
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310 PKG_CONFIG=$ac_pt_PKG_CONFIG
4311 fi
4312 else
4313 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4314 fi
4315
4316 fi
4317 if test -n "$PKG_CONFIG"; then
4318 _pkg_min_version=0.9.0
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4320 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4321 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323 $as_echo "yes" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4327 PKG_CONFIG=""
4328 fi
4329
4330 fi
4331 # Make sure we can run config.sub.
4332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4336 $as_echo_n "checking build system type... " >&6; }
4337 if ${ac_cv_build+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_build_alias=$build_alias
4341 test "x$ac_build_alias" = x &&
4342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4343 test "x$ac_build_alias" = x &&
4344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4347
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4350 $as_echo "$ac_cv_build" >&6; }
4351 case $ac_cv_build in
4352 *-*-*) ;;
4353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4354 esac
4355 build=$ac_cv_build
4356 ac_save_IFS=$IFS; IFS='-'
4357 set x $ac_cv_build
4358 shift
4359 build_cpu=$1
4360 build_vendor=$2
4361 shift; shift
4362 # Remember, the first character of IFS is used to create $*,
4363 # except with old shells:
4364 build_os=$*
4365 IFS=$ac_save_IFS
4366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4370 $as_echo_n "checking host system type... " >&6; }
4371 if ${ac_cv_host+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test "x$host_alias" = x; then
4375 ac_cv_host=$ac_cv_build
4376 else
4377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4379 fi
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4383 $as_echo "$ac_cv_host" >&6; }
4384 case $ac_cv_host in
4385 *-*-*) ;;
4386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4387 esac
4388 host=$ac_cv_host
4389 ac_save_IFS=$IFS; IFS='-'
4390 set x $ac_cv_host
4391 shift
4392 host_cpu=$1
4393 host_vendor=$2
4394 shift; shift
4395 # Remember, the first character of IFS is used to create $*,
4396 # except with old shells:
4397 host_os=$*
4398 IFS=$ac_save_IFS
4399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404 if ${ac_cv_path_SED+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408 for ac_i in 1 2 3 4 5 6 7; do
4409 ac_script="$ac_script$as_nl$ac_script"
4410 done
4411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412 { ac_script=; unset ac_script;}
4413 if test -z "$SED"; then
4414 ac_path_SED_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in sed gsed; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4425 # Check for GNU ac_path_SED and select it if it is found.
4426 # Check for GNU $ac_path_SED
4427 case `"$ac_path_SED" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4430 *)
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo '' >> "conftest.nl"
4439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_SED_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_SED="$ac_path_SED"
4445 ac_path_SED_max=$ac_count
4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4452
4453 $ac_path_SED_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_SED"; then
4459 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4460 fi
4461 else
4462 ac_cv_path_SED=$SED
4463 fi
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4467 $as_echo "$ac_cv_path_SED" >&6; }
4468 SED="$ac_cv_path_SED"
4469 rm -f conftest.sed
4470
4471
4472
4473
4474
4475
4476 # Check whether --enable-selective-werror was given.
4477 if test "${enable_selective_werror+set}" = set; then :
4478 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4479 else
4480 SELECTIVE_WERROR=yes
4481 fi
4482
4483
4484 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4485 if test "x$SUNCC" = "xyes"; then
4486 BASE_CFLAGS="-v"
4487 else
4488 BASE_CFLAGS=""
4489 fi
4490
4491 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4492
4493
4494
4495
4496
4497 xorg_testset_save_CFLAGS="$CFLAGS"
4498
4499 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 int i;
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 xorg_cv_cc_flag_unknown_warning_option=yes
4512 else
4513 xorg_cv_cc_flag_unknown_warning_option=no
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4519 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4520 CFLAGS="$xorg_testset_save_CFLAGS"
4521 fi
4522
4523 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4524 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4526 fi
4527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 int i;
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 xorg_cv_cc_flag_unused_command_line_argument=yes
4539 else
4540 xorg_cv_cc_flag_unused_command_line_argument=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4546 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4547 CFLAGS="$xorg_testset_save_CFLAGS"
4548 fi
4549
4550 found="no"
4551
4552 if test $found = "no" ; then
4553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4555 fi
4556
4557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4559 fi
4560
4561 CFLAGS="$CFLAGS -Wall"
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4564 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4565 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4566 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 int i;
4572 int
4573 main ()
4574 {
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_link "$LINENO"; then :
4581 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4582 else
4583 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587 fi
4588
4589
4590 CFLAGS="$xorg_testset_save_CFLAGS"
4591
4592 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4594 $as_echo "$supported" >&6; }
4595 if test "$supported" = "yes" ; then
4596 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4597 found="yes"
4598 fi
4599 fi
4600
4601
4602
4603
4604
4605
4606
4607 xorg_testset_save_CFLAGS="$CFLAGS"
4608
4609 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 int i;
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 xorg_cv_cc_flag_unknown_warning_option=yes
4622 else
4623 xorg_cv_cc_flag_unknown_warning_option=no
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630 CFLAGS="$xorg_testset_save_CFLAGS"
4631 fi
4632
4633 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4636 fi
4637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 int i;
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 xorg_cv_cc_flag_unused_command_line_argument=yes
4649 else
4650 xorg_cv_cc_flag_unused_command_line_argument=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657 CFLAGS="$xorg_testset_save_CFLAGS"
4658 fi
4659
4660 found="no"
4661
4662 if test $found = "no" ; then
4663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4665 fi
4666
4667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669 fi
4670
4671 CFLAGS="$CFLAGS -Wpointer-arith"
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4674 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4675 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4676 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 int i;
4682 int
4683 main ()
4684 {
4685
4686 ;
4687 return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_link "$LINENO"; then :
4691 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4692 else
4693 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
4697 fi
4698
4699
4700 CFLAGS="$xorg_testset_save_CFLAGS"
4701
4702 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704 $as_echo "$supported" >&6; }
4705 if test "$supported" = "yes" ; then
4706 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4707 found="yes"
4708 fi
4709 fi
4710
4711
4712
4713
4714
4715
4716
4717 xorg_testset_save_CFLAGS="$CFLAGS"
4718
4719 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728 int i;
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 xorg_cv_cc_flag_unknown_warning_option=yes
4732 else
4733 xorg_cv_cc_flag_unknown_warning_option=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4739 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4740 CFLAGS="$xorg_testset_save_CFLAGS"
4741 fi
4742
4743 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4746 fi
4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 int i;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 xorg_cv_cc_flag_unused_command_line_argument=yes
4759 else
4760 xorg_cv_cc_flag_unused_command_line_argument=no
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4766 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4767 CFLAGS="$xorg_testset_save_CFLAGS"
4768 fi
4769
4770 found="no"
4771
4772 if test $found = "no" ; then
4773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775 fi
4776
4777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4779 fi
4780
4781 CFLAGS="$CFLAGS -Wstrict-prototypes"
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4784 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4785 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4786 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 int i;
4792 int
4793 main ()
4794 {
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_link "$LINENO"; then :
4801 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4802 else
4803 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext \
4806 conftest$ac_exeext conftest.$ac_ext
4807 fi
4808
4809
4810 CFLAGS="$xorg_testset_save_CFLAGS"
4811
4812 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4814 $as_echo "$supported" >&6; }
4815 if test "$supported" = "yes" ; then
4816 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4817 found="yes"
4818 fi
4819 fi
4820
4821
4822
4823
4824
4825
4826
4827 xorg_testset_save_CFLAGS="$CFLAGS"
4828
4829 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 int i;
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 xorg_cv_cc_flag_unknown_warning_option=yes
4842 else
4843 xorg_cv_cc_flag_unknown_warning_option=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4849 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4850 CFLAGS="$xorg_testset_save_CFLAGS"
4851 fi
4852
4853 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856 fi
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 int i;
4866 _ACEOF
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 xorg_cv_cc_flag_unused_command_line_argument=yes
4869 else
4870 xorg_cv_cc_flag_unused_command_line_argument=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4876 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4877 CFLAGS="$xorg_testset_save_CFLAGS"
4878 fi
4879
4880 found="no"
4881
4882 if test $found = "no" ; then
4883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885 fi
4886
4887 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4889 fi
4890
4891 CFLAGS="$CFLAGS -Wmissing-prototypes"
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4894 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4895 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4896 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 int i;
4902 int
4903 main ()
4904 {
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_link "$LINENO"; then :
4911 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4912 else
4913 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext \
4916 conftest$ac_exeext conftest.$ac_ext
4917 fi
4918
4919
4920 CFLAGS="$xorg_testset_save_CFLAGS"
4921
4922 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4924 $as_echo "$supported" >&6; }
4925 if test "$supported" = "yes" ; then
4926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4927 found="yes"
4928 fi
4929 fi
4930
4931
4932
4933
4934
4935
4936
4937 xorg_testset_save_CFLAGS="$CFLAGS"
4938
4939 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 xorg_cv_cc_flag_unknown_warning_option=yes
4952 else
4953 xorg_cv_cc_flag_unknown_warning_option=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4959 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4960 CFLAGS="$xorg_testset_save_CFLAGS"
4961 fi
4962
4963 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4966 fi
4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 int i;
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 xorg_cv_cc_flag_unused_command_line_argument=yes
4979 else
4980 xorg_cv_cc_flag_unused_command_line_argument=no
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4986 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4987 CFLAGS="$xorg_testset_save_CFLAGS"
4988 fi
4989
4990 found="no"
4991
4992 if test $found = "no" ; then
4993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995 fi
4996
4997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999 fi
5000
5001 CFLAGS="$CFLAGS -Wmissing-declarations"
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5004 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5005 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 int i;
5012 int
5013 main ()
5014 {
5015
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5022 else
5023 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027 fi
5028
5029
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5031
5032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5034 $as_echo "$supported" >&6; }
5035 if test "$supported" = "yes" ; then
5036 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5037 found="yes"
5038 fi
5039 fi
5040
5041
5042
5043
5044
5045
5046
5047 xorg_testset_save_CFLAGS="$CFLAGS"
5048
5049 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 int i;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061 xorg_cv_cc_flag_unknown_warning_option=yes
5062 else
5063 xorg_cv_cc_flag_unknown_warning_option=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070 CFLAGS="$xorg_testset_save_CFLAGS"
5071 fi
5072
5073 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076 fi
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int i;
5086 _ACEOF
5087 if ac_fn_c_try_compile "$LINENO"; then :
5088 xorg_cv_cc_flag_unused_command_line_argument=yes
5089 else
5090 xorg_cv_cc_flag_unused_command_line_argument=no
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5096 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5098 fi
5099
5100 found="no"
5101
5102 if test $found = "no" ; then
5103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 fi
5106
5107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 fi
5110
5111 CFLAGS="$CFLAGS -Wnested-externs"
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5114 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5115 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5116 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 int
5123 main ()
5124 {
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5132 else
5133 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 fi
5138
5139
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144 $as_echo "$supported" >&6; }
5145 if test "$supported" = "yes" ; then
5146 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5147 found="yes"
5148 fi
5149 fi
5150
5151
5152
5153
5154
5155
5156
5157 xorg_testset_save_CFLAGS="$CFLAGS"
5158
5159 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 int i;
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 xorg_cv_cc_flag_unknown_warning_option=yes
5172 else
5173 xorg_cv_cc_flag_unknown_warning_option=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5179 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5180 CFLAGS="$xorg_testset_save_CFLAGS"
5181 fi
5182
5183 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186 fi
5187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 int i;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 xorg_cv_cc_flag_unused_command_line_argument=yes
5199 else
5200 xorg_cv_cc_flag_unused_command_line_argument=no
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207 CFLAGS="$xorg_testset_save_CFLAGS"
5208 fi
5209
5210 found="no"
5211
5212 if test $found = "no" ; then
5213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215 fi
5216
5217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219 fi
5220
5221 CFLAGS="$CFLAGS -Wbad-function-cast"
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5224 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5225 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5226 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 int i;
5232 int
5233 main ()
5234 {
5235
5236 ;
5237 return 0;
5238 }
5239 _ACEOF
5240 if ac_fn_c_try_link "$LINENO"; then :
5241 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5242 else
5243 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext \
5246 conftest$ac_exeext conftest.$ac_ext
5247 fi
5248
5249
5250 CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254 $as_echo "$supported" >&6; }
5255 if test "$supported" = "yes" ; then
5256 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5257 found="yes"
5258 fi
5259 fi
5260
5261
5262
5263
5264
5265
5266
5267 xorg_testset_save_CFLAGS="$CFLAGS"
5268
5269 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 int i;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 xorg_cv_cc_flag_unknown_warning_option=yes
5282 else
5283 xorg_cv_cc_flag_unknown_warning_option=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291 fi
5292
5293 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296 fi
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 int i;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 xorg_cv_cc_flag_unused_command_line_argument=yes
5309 else
5310 xorg_cv_cc_flag_unused_command_line_argument=no
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5316 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5317 CFLAGS="$xorg_testset_save_CFLAGS"
5318 fi
5319
5320 found="no"
5321
5322 if test $found = "no" ; then
5323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326
5327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329 fi
5330
5331 CFLAGS="$CFLAGS -Wformat=2"
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5334 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5335 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5336 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 int i;
5342 int
5343 main ()
5344 {
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5352 else
5353 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 fi
5358
5359
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 $as_echo "$supported" >&6; }
5365 if test "$supported" = "yes" ; then
5366 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5367 found="yes"
5368 fi
5369 fi
5370
5371 if test $found = "no" ; then
5372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374 fi
5375
5376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5378 fi
5379
5380 CFLAGS="$CFLAGS -Wformat"
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5383 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5384 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5385 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 int i;
5391 int
5392 main ()
5393 {
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5401 else
5402 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5406 fi
5407
5408
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410
5411 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413 $as_echo "$supported" >&6; }
5414 if test "$supported" = "yes" ; then
5415 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5416 found="yes"
5417 fi
5418 fi
5419
5420
5421
5422
5423
5424
5425
5426 xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 int i;
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 xorg_cv_cc_flag_unknown_warning_option=yes
5441 else
5442 xorg_cv_cc_flag_unknown_warning_option=no
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449 CFLAGS="$xorg_testset_save_CFLAGS"
5450 fi
5451
5452 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 fi
5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 int i;
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"; then :
5467 xorg_cv_cc_flag_unused_command_line_argument=yes
5468 else
5469 xorg_cv_cc_flag_unused_command_line_argument=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5475 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477 fi
5478
5479 found="no"
5480
5481 if test $found = "no" ; then
5482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5484 fi
5485
5486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5488 fi
5489
5490 CFLAGS="$CFLAGS -Wold-style-definition"
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5493 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5494 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5495 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 int
5502 main ()
5503 {
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5511 else
5512 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 fi
5517
5518
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523 $as_echo "$supported" >&6; }
5524 if test "$supported" = "yes" ; then
5525 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5526 found="yes"
5527 fi
5528 fi
5529
5530
5531
5532
5533
5534
5535
5536 xorg_testset_save_CFLAGS="$CFLAGS"
5537
5538 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 int i;
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 xorg_cv_cc_flag_unknown_warning_option=yes
5551 else
5552 xorg_cv_cc_flag_unknown_warning_option=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5558 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5560 fi
5561
5562 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565 fi
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 int i;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 xorg_cv_cc_flag_unused_command_line_argument=yes
5578 else
5579 xorg_cv_cc_flag_unused_command_line_argument=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585 xorg_testset_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_unknown_warning_option" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594 fi
5595
5596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5598 fi
5599
5600 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5603 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5604 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5605 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 int i;
5611 int
5612 main ()
5613 {
5614
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 if ac_fn_c_try_link "$LINENO"; then :
5620 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5621 else
5622 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 fi
5627
5628
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5630
5631 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5633 $as_echo "$supported" >&6; }
5634 if test "$supported" = "yes" ; then
5635 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5636 found="yes"
5637 fi
5638 fi
5639
5640
5641
5642 # This chunk adds additional warnings that could catch undesired effects.
5643
5644
5645
5646
5647
5648 xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 int i;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 xorg_cv_cc_flag_unknown_warning_option=yes
5663 else
5664 xorg_cv_cc_flag_unknown_warning_option=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5670 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672 fi
5673
5674 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 fi
5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int i;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 xorg_cv_cc_flag_unused_command_line_argument=yes
5690 else
5691 xorg_cv_cc_flag_unused_command_line_argument=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5697 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5698 CFLAGS="$xorg_testset_save_CFLAGS"
5699 fi
5700
5701 found="no"
5702
5703 if test $found = "no" ; then
5704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 fi
5707
5708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5710 fi
5711
5712 CFLAGS="$CFLAGS -Wunused"
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5715 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5716 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5717 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int i;
5723 int
5724 main ()
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5733 else
5734 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
5738 fi
5739
5740
5741 CFLAGS="$xorg_testset_save_CFLAGS"
5742
5743 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745 $as_echo "$supported" >&6; }
5746 if test "$supported" = "yes" ; then
5747 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5748 found="yes"
5749 fi
5750 fi
5751
5752
5753
5754
5755
5756
5757
5758 xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 xorg_cv_cc_flag_unknown_warning_option=yes
5773 else
5774 xorg_cv_cc_flag_unknown_warning_option=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782 fi
5783
5784 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787 fi
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int i;
5797 _ACEOF
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 xorg_cv_cc_flag_unused_command_line_argument=yes
5800 else
5801 xorg_cv_cc_flag_unused_command_line_argument=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809 fi
5810
5811 found="no"
5812
5813 if test $found = "no" ; then
5814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816 fi
5817
5818 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820 fi
5821
5822 CFLAGS="$CFLAGS -Wuninitialized"
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5825 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5826 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5827 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 int
5834 main ()
5835 {
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5843 else
5844 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848 fi
5849
5850
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852
5853 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5855 $as_echo "$supported" >&6; }
5856 if test "$supported" = "yes" ; then
5857 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5858 found="yes"
5859 fi
5860 fi
5861
5862
5863
5864
5865
5866
5867
5868 xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 xorg_cv_cc_flag_unknown_warning_option=yes
5883 else
5884 xorg_cv_cc_flag_unknown_warning_option=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5892 fi
5893
5894 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 fi
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 int i;
5907 _ACEOF
5908 if ac_fn_c_try_compile "$LINENO"; then :
5909 xorg_cv_cc_flag_unused_command_line_argument=yes
5910 else
5911 xorg_cv_cc_flag_unused_command_line_argument=no
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918 CFLAGS="$xorg_testset_save_CFLAGS"
5919 fi
5920
5921 found="no"
5922
5923 if test $found = "no" ; then
5924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926 fi
5927
5928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930 fi
5931
5932 CFLAGS="$CFLAGS -Wshadow"
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5935 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5936 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5937 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 int i;
5943 int
5944 main ()
5945 {
5946
5947 ;
5948 return 0;
5949 }
5950 _ACEOF
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5953 else
5954 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 fi
5959
5960
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965 $as_echo "$supported" >&6; }
5966 if test "$supported" = "yes" ; then
5967 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5968 found="yes"
5969 fi
5970 fi
5971
5972
5973
5974
5975
5976
5977
5978 xorg_testset_save_CFLAGS="$CFLAGS"
5979
5980 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 int i;
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 xorg_cv_cc_flag_unknown_warning_option=yes
5993 else
5994 xorg_cv_cc_flag_unknown_warning_option=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6000 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6001 CFLAGS="$xorg_testset_save_CFLAGS"
6002 fi
6003
6004 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6007 fi
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 int i;
6017 _ACEOF
6018 if ac_fn_c_try_compile "$LINENO"; then :
6019 xorg_cv_cc_flag_unused_command_line_argument=yes
6020 else
6021 xorg_cv_cc_flag_unused_command_line_argument=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6027 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6029 fi
6030
6031 found="no"
6032
6033 if test $found = "no" ; then
6034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 fi
6037
6038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040 fi
6041
6042 CFLAGS="$CFLAGS -Wcast-qual"
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6045 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6046 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6047 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 int i;
6053 int
6054 main ()
6055 {
6056
6057 ;
6058 return 0;
6059 }
6060 _ACEOF
6061 if ac_fn_c_try_link "$LINENO"; then :
6062 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6063 else
6064 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 fi
6069
6070
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6072
6073 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6075 $as_echo "$supported" >&6; }
6076 if test "$supported" = "yes" ; then
6077 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6078 found="yes"
6079 fi
6080 fi
6081
6082
6083
6084
6085
6086
6087
6088 xorg_testset_save_CFLAGS="$CFLAGS"
6089
6090 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 int i;
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 xorg_cv_cc_flag_unknown_warning_option=yes
6103 else
6104 xorg_cv_cc_flag_unknown_warning_option=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112 fi
6113
6114 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6115 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 int i;
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 xorg_cv_cc_flag_unused_command_line_argument=yes
6130 else
6131 xorg_cv_cc_flag_unused_command_line_argument=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139 fi
6140
6141 found="no"
6142
6143 if test $found = "no" ; then
6144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146 fi
6147
6148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150 fi
6151
6152 CFLAGS="$CFLAGS -Wmissing-noreturn"
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6155 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6156 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6157 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 int i;
6163 int
6164 main ()
6165 {
6166
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_link "$LINENO"; then :
6172 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6173 else
6174 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6178 fi
6179
6180
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185 $as_echo "$supported" >&6; }
6186 if test "$supported" = "yes" ; then
6187 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6188 found="yes"
6189 fi
6190 fi
6191
6192
6193
6194
6195
6196
6197
6198 xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 int i;
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6213 else
6214 xorg_cv_cc_flag_unknown_warning_option=no
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6222 fi
6223
6224 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unused_command_line_argument=yes
6240 else
6241 xorg_cv_cc_flag_unused_command_line_argument=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 found="no"
6252
6253 if test $found = "no" ; then
6254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257
6258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 fi
6261
6262 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6265 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6266 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6267 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 int i;
6273 int
6274 main ()
6275 {
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_link "$LINENO"; then :
6282 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6283 else
6284 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288 fi
6289
6290
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295 $as_echo "$supported" >&6; }
6296 if test "$supported" = "yes" ; then
6297 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6298 found="yes"
6299 fi
6300 fi
6301
6302
6303
6304
6305
6306
6307
6308 xorg_testset_save_CFLAGS="$CFLAGS"
6309
6310 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int i;
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 xorg_cv_cc_flag_unknown_warning_option=yes
6323 else
6324 xorg_cv_cc_flag_unknown_warning_option=no
6325 fi
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6330 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6331 CFLAGS="$xorg_testset_save_CFLAGS"
6332 fi
6333
6334 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337 fi
6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 xorg_cv_cc_flag_unused_command_line_argument=yes
6350 else
6351 xorg_cv_cc_flag_unused_command_line_argument=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6359 fi
6360
6361 found="no"
6362
6363 if test $found = "no" ; then
6364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366 fi
6367
6368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6370 fi
6371
6372 CFLAGS="$CFLAGS -Wredundant-decls"
6373
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6375 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6376 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6377 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 int i;
6383 int
6384 main ()
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6393 else
6394 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 fi
6399
6400
6401 CFLAGS="$xorg_testset_save_CFLAGS"
6402
6403 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6405 $as_echo "$supported" >&6; }
6406 if test "$supported" = "yes" ; then
6407 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6408 found="yes"
6409 fi
6410 fi
6411
6412
6413
6414 # These are currently disabled because they are noisy. They will be enabled
6415 # in the future once the codebase is sufficiently modernized to silence
6416 # them. For now, I don't want them to drown out the other warnings.
6417 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6418 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6419 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6420
6421 # Turn some warnings into errors, so we don't accidently get successful builds
6422 # when there are problems that should be fixed.
6423
6424 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6425
6426
6427
6428
6429
6430 xorg_testset_save_CFLAGS="$CFLAGS"
6431
6432 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 xorg_cv_cc_flag_unknown_warning_option=yes
6445 else
6446 xorg_cv_cc_flag_unknown_warning_option=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454 fi
6455
6456 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 fi
6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 xorg_cv_cc_flag_unused_command_line_argument=yes
6472 else
6473 xorg_cv_cc_flag_unused_command_line_argument=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6481 fi
6482
6483 found="no"
6484
6485 if test $found = "no" ; then
6486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488 fi
6489
6490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492 fi
6493
6494 CFLAGS="$CFLAGS -Werror=implicit"
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6497 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6498 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6499 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 int i;
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6515 else
6516 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 fi
6521
6522
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527 $as_echo "$supported" >&6; }
6528 if test "$supported" = "yes" ; then
6529 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6530 found="yes"
6531 fi
6532 fi
6533
6534 if test $found = "no" ; then
6535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538
6539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541 fi
6542
6543 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6546 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6547 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6548 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 int i;
6554 int
6555 main ()
6556 {
6557
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_link "$LINENO"; then :
6563 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6564 else
6565 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext \
6568 conftest$ac_exeext conftest.$ac_ext
6569 fi
6570
6571
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573
6574 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6576 $as_echo "$supported" >&6; }
6577 if test "$supported" = "yes" ; then
6578 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6579 found="yes"
6580 fi
6581 fi
6582
6583
6584
6585
6586
6587
6588
6589 xorg_testset_save_CFLAGS="$CFLAGS"
6590
6591 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 int i;
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 xorg_cv_cc_flag_unknown_warning_option=yes
6604 else
6605 xorg_cv_cc_flag_unknown_warning_option=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612 CFLAGS="$xorg_testset_save_CFLAGS"
6613 fi
6614
6615 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618 fi
6619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 int i;
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 xorg_cv_cc_flag_unused_command_line_argument=yes
6631 else
6632 xorg_cv_cc_flag_unused_command_line_argument=no
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6638 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6639 CFLAGS="$xorg_testset_save_CFLAGS"
6640 fi
6641
6642 found="no"
6643
6644 if test $found = "no" ; then
6645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647 fi
6648
6649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651 fi
6652
6653 CFLAGS="$CFLAGS -Werror=nonnull"
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6656 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6657 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6658 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 int i;
6664 int
6665 main ()
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6674 else
6675 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6679 fi
6680
6681
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6683
6684 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6686 $as_echo "$supported" >&6; }
6687 if test "$supported" = "yes" ; then
6688 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6689 found="yes"
6690 fi
6691 fi
6692
6693
6694
6695
6696
6697
6698
6699 xorg_testset_save_CFLAGS="$CFLAGS"
6700
6701 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 xorg_cv_cc_flag_unknown_warning_option=yes
6714 else
6715 xorg_cv_cc_flag_unknown_warning_option=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6721 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723 fi
6724
6725 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 int i;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 xorg_cv_cc_flag_unused_command_line_argument=yes
6741 else
6742 xorg_cv_cc_flag_unused_command_line_argument=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6748 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6749 CFLAGS="$xorg_testset_save_CFLAGS"
6750 fi
6751
6752 found="no"
6753
6754 if test $found = "no" ; then
6755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757 fi
6758
6759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6761 fi
6762
6763 CFLAGS="$CFLAGS -Werror=init-self"
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6766 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6767 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6768 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 int i;
6774 int
6775 main ()
6776 {
6777
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6784 else
6785 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 fi
6790
6791
6792 CFLAGS="$xorg_testset_save_CFLAGS"
6793
6794 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6796 $as_echo "$supported" >&6; }
6797 if test "$supported" = "yes" ; then
6798 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6799 found="yes"
6800 fi
6801 fi
6802
6803
6804
6805
6806
6807
6808
6809 xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int i;
6821 _ACEOF
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 xorg_cv_cc_flag_unknown_warning_option=yes
6824 else
6825 xorg_cv_cc_flag_unknown_warning_option=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6833 fi
6834
6835 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6838 fi
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 int i;
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 xorg_cv_cc_flag_unused_command_line_argument=yes
6851 else
6852 xorg_cv_cc_flag_unused_command_line_argument=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6860 fi
6861
6862 found="no"
6863
6864 if test $found = "no" ; then
6865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867 fi
6868
6869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 fi
6872
6873 CFLAGS="$CFLAGS -Werror=main"
6874
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6876 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6877 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6878 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 int
6885 main ()
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6894 else
6895 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 fi
6900
6901
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6903
6904 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906 $as_echo "$supported" >&6; }
6907 if test "$supported" = "yes" ; then
6908 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6909 found="yes"
6910 fi
6911 fi
6912
6913
6914
6915
6916
6917
6918
6919 xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int i;
6931 _ACEOF
6932 if ac_fn_c_try_compile "$LINENO"; then :
6933 xorg_cv_cc_flag_unknown_warning_option=yes
6934 else
6935 xorg_cv_cc_flag_unknown_warning_option=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6941 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943 fi
6944
6945 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948 fi
6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 xorg_cv_cc_flag_unused_command_line_argument=yes
6961 else
6962 xorg_cv_cc_flag_unused_command_line_argument=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969 CFLAGS="$xorg_testset_save_CFLAGS"
6970 fi
6971
6972 found="no"
6973
6974 if test $found = "no" ; then
6975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977 fi
6978
6979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981 fi
6982
6983 CFLAGS="$CFLAGS -Werror=missing-braces"
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6986 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6987 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6988 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 int
6995 main ()
6996 {
6997
6998 ;
6999 return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7004 else
7005 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 fi
7010
7011
7012 CFLAGS="$xorg_testset_save_CFLAGS"
7013
7014 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7016 $as_echo "$supported" >&6; }
7017 if test "$supported" = "yes" ; then
7018 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7019 found="yes"
7020 fi
7021 fi
7022
7023
7024
7025
7026
7027
7028
7029 xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 int i;
7041 _ACEOF
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 xorg_cv_cc_flag_unknown_warning_option=yes
7044 else
7045 xorg_cv_cc_flag_unknown_warning_option=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7053 fi
7054
7055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 fi
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 int i;
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 xorg_cv_cc_flag_unused_command_line_argument=yes
7071 else
7072 xorg_cv_cc_flag_unused_command_line_argument=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080 fi
7081
7082 found="no"
7083
7084 if test $found = "no" ; then
7085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 fi
7088
7089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091 fi
7092
7093 CFLAGS="$CFLAGS -Werror=sequence-point"
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7096 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7097 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7098 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 int i;
7104 int
7105 main ()
7106 {
7107
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7114 else
7115 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7119 fi
7120
7121
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7123
7124 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126 $as_echo "$supported" >&6; }
7127 if test "$supported" = "yes" ; then
7128 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7129 found="yes"
7130 fi
7131 fi
7132
7133
7134
7135
7136
7137
7138
7139 xorg_testset_save_CFLAGS="$CFLAGS"
7140
7141 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 xorg_cv_cc_flag_unknown_warning_option=yes
7154 else
7155 xorg_cv_cc_flag_unknown_warning_option=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163 fi
7164
7165 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 fi
7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 xorg_cv_cc_flag_unused_command_line_argument=yes
7181 else
7182 xorg_cv_cc_flag_unused_command_line_argument=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7188 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7190 fi
7191
7192 found="no"
7193
7194 if test $found = "no" ; then
7195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197 fi
7198
7199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201 fi
7202
7203 CFLAGS="$CFLAGS -Werror=return-type"
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7206 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7207 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7208 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 int i;
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7224 else
7225 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 fi
7230
7231
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7233
7234 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7236 $as_echo "$supported" >&6; }
7237 if test "$supported" = "yes" ; then
7238 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7239 found="yes"
7240 fi
7241 fi
7242
7243 if test $found = "no" ; then
7244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246 fi
7247
7248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7250 fi
7251
7252 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7255 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7256 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7257 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 int i;
7263 int
7264 main ()
7265 {
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7273 else
7274 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7278 fi
7279
7280
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285 $as_echo "$supported" >&6; }
7286 if test "$supported" = "yes" ; then
7287 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7288 found="yes"
7289 fi
7290 fi
7291
7292
7293
7294
7295
7296
7297
7298 xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else
7314 xorg_cv_cc_flag_unknown_warning_option=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unused_command_line_argument=yes
7340 else
7341 xorg_cv_cc_flag_unused_command_line_argument=no
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7349 fi
7350
7351 found="no"
7352
7353 if test $found = "no" ; then
7354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 fi
7357
7358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360 fi
7361
7362 CFLAGS="$CFLAGS -Werror=trigraphs"
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7365 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7366 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7367 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 int
7374 main ()
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7383 else
7384 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7388 fi
7389
7390
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 $as_echo "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7398 found="yes"
7399 fi
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408 xorg_testset_save_CFLAGS="$CFLAGS"
7409
7410 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 int i;
7420 _ACEOF
7421 if ac_fn_c_try_compile "$LINENO"; then :
7422 xorg_cv_cc_flag_unknown_warning_option=yes
7423 else
7424 xorg_cv_cc_flag_unknown_warning_option=no
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7430 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7431 CFLAGS="$xorg_testset_save_CFLAGS"
7432 fi
7433
7434 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437 fi
7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 int i;
7447 _ACEOF
7448 if ac_fn_c_try_compile "$LINENO"; then :
7449 xorg_cv_cc_flag_unused_command_line_argument=yes
7450 else
7451 xorg_cv_cc_flag_unused_command_line_argument=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7457 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7458 CFLAGS="$xorg_testset_save_CFLAGS"
7459 fi
7460
7461 found="no"
7462
7463 if test $found = "no" ; then
7464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466 fi
7467
7468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470 fi
7471
7472 CFLAGS="$CFLAGS -Werror=array-bounds"
7473
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7475 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7476 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7477 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 int i;
7483 int
7484 main ()
7485 {
7486
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 if ac_fn_c_try_link "$LINENO"; then :
7492 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7493 else
7494 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7495 fi
7496 rm -f core conftest.err conftest.$ac_objext \
7497 conftest$ac_exeext conftest.$ac_ext
7498 fi
7499
7500
7501 CFLAGS="$xorg_testset_save_CFLAGS"
7502
7503 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7505 $as_echo "$supported" >&6; }
7506 if test "$supported" = "yes" ; then
7507 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7508 found="yes"
7509 fi
7510 fi
7511
7512
7513
7514
7515
7516
7517
7518 xorg_testset_save_CFLAGS="$CFLAGS"
7519
7520 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 int i;
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 xorg_cv_cc_flag_unknown_warning_option=yes
7533 else
7534 xorg_cv_cc_flag_unknown_warning_option=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7540 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7542 fi
7543
7544 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547 fi
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 int i;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 xorg_cv_cc_flag_unused_command_line_argument=yes
7560 else
7561 xorg_cv_cc_flag_unused_command_line_argument=no
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7567 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7568 CFLAGS="$xorg_testset_save_CFLAGS"
7569 fi
7570
7571 found="no"
7572
7573 if test $found = "no" ; then
7574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576 fi
7577
7578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580 fi
7581
7582 CFLAGS="$CFLAGS -Werror=write-strings"
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7585 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7586 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7587 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int i;
7593 int
7594 main ()
7595 {
7596
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7603 else
7604 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 fi
7609
7610
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 $as_echo "$supported" >&6; }
7616 if test "$supported" = "yes" ; then
7617 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7618 found="yes"
7619 fi
7620 fi
7621
7622
7623
7624
7625
7626
7627
7628 xorg_testset_save_CFLAGS="$CFLAGS"
7629
7630 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 int i;
7640 _ACEOF
7641 if ac_fn_c_try_compile "$LINENO"; then :
7642 xorg_cv_cc_flag_unknown_warning_option=yes
7643 else
7644 xorg_cv_cc_flag_unknown_warning_option=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7650 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7651 CFLAGS="$xorg_testset_save_CFLAGS"
7652 fi
7653
7654 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657 fi
7658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 int i;
7667 _ACEOF
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669 xorg_cv_cc_flag_unused_command_line_argument=yes
7670 else
7671 xorg_cv_cc_flag_unused_command_line_argument=no
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7677 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7678 CFLAGS="$xorg_testset_save_CFLAGS"
7679 fi
7680
7681 found="no"
7682
7683 if test $found = "no" ; then
7684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686 fi
7687
7688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690 fi
7691
7692 CFLAGS="$CFLAGS -Werror=address"
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7695 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7696 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7697 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 int i;
7703 int
7704 main ()
7705 {
7706
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"; then :
7712 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7713 else
7714 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 fi
7719
7720
7721 CFLAGS="$xorg_testset_save_CFLAGS"
7722
7723 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7725 $as_echo "$supported" >&6; }
7726 if test "$supported" = "yes" ; then
7727 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7728 found="yes"
7729 fi
7730 fi
7731
7732
7733
7734
7735
7736
7737
7738 xorg_testset_save_CFLAGS="$CFLAGS"
7739
7740 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 int i;
7750 _ACEOF
7751 if ac_fn_c_try_compile "$LINENO"; then :
7752 xorg_cv_cc_flag_unknown_warning_option=yes
7753 else
7754 xorg_cv_cc_flag_unknown_warning_option=no
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7762 fi
7763
7764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767 fi
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 _ACEOF
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 xorg_cv_cc_flag_unused_command_line_argument=yes
7780 else
7781 xorg_cv_cc_flag_unused_command_line_argument=no
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 found="no"
7792
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 fi
7797
7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800 fi
7801
7802 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7805 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7806 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7807 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 int i;
7813 int
7814 main ()
7815 {
7816
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 if ac_fn_c_try_link "$LINENO"; then :
7822 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7823 else
7824 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7828 fi
7829
7830
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835 $as_echo "$supported" >&6; }
7836 if test "$supported" = "yes" ; then
7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7838 found="yes"
7839 fi
7840 fi
7841
7842 if test $found = "no" ; then
7843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845 fi
7846
7847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7849 fi
7850
7851 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7854 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7855 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7856 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 int i;
7862 int
7863 main ()
7864 {
7865
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7872 else
7873 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 fi
7878
7879
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881
7882 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884 $as_echo "$supported" >&6; }
7885 if test "$supported" = "yes" ; then
7886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7887 found="yes"
7888 fi
7889 fi
7890
7891
7892
7893
7894
7895
7896
7897 xorg_testset_save_CFLAGS="$CFLAGS"
7898
7899 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 int i;
7909 _ACEOF
7910 if ac_fn_c_try_compile "$LINENO"; then :
7911 xorg_cv_cc_flag_unknown_warning_option=yes
7912 else
7913 xorg_cv_cc_flag_unknown_warning_option=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7919 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7920 CFLAGS="$xorg_testset_save_CFLAGS"
7921 fi
7922
7923 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926 fi
7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 int i;
7936 _ACEOF
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7939 else
7940 xorg_cv_cc_flag_unused_command_line_argument=no
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 found="no"
7951
7952 if test $found = "no" ; then
7953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956
7957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 fi
7960
7961 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7962
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7964 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7965 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7966 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 int i;
7972 int
7973 main ()
7974 {
7975
7976 ;
7977 return 0;
7978 }
7979 _ACEOF
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7982 else
7983 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7984 fi
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 fi
7988
7989
7990 CFLAGS="$xorg_testset_save_CFLAGS"
7991
7992 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7994 $as_echo "$supported" >&6; }
7995 if test "$supported" = "yes" ; then
7996 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7997 found="yes"
7998 fi
7999 fi
8000
8001 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8002 else
8003 { $as_echo "$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
8004 $as_echo "$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;}
8005
8006
8007
8008
8009
8010 xorg_testset_save_CFLAGS="$CFLAGS"
8011
8012 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 int i;
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024 xorg_cv_cc_flag_unknown_warning_option=yes
8025 else
8026 xorg_cv_cc_flag_unknown_warning_option=no
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8032 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8033 CFLAGS="$xorg_testset_save_CFLAGS"
8034 fi
8035
8036 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 fi
8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 int i;
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 xorg_cv_cc_flag_unused_command_line_argument=yes
8052 else
8053 xorg_cv_cc_flag_unused_command_line_argument=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8059 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8062
8063 found="no"
8064
8065 if test $found = "no" ; then
8066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068 fi
8069
8070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072 fi
8073
8074 CFLAGS="$CFLAGS -Wimplicit"
8075
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8077 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8078 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8079 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 int i;
8085 int
8086 main ()
8087 {
8088
8089 ;
8090 return 0;
8091 }
8092 _ACEOF
8093 if ac_fn_c_try_link "$LINENO"; then :
8094 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8095 else
8096 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 fi
8101
8102
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104
8105 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8107 $as_echo "$supported" >&6; }
8108 if test "$supported" = "yes" ; then
8109 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8110 found="yes"
8111 fi
8112 fi
8113
8114
8115
8116
8117
8118
8119
8120 xorg_testset_save_CFLAGS="$CFLAGS"
8121
8122 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int i;
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 xorg_cv_cc_flag_unknown_warning_option=yes
8135 else
8136 xorg_cv_cc_flag_unknown_warning_option=no
8137 fi
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8142 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8143 CFLAGS="$xorg_testset_save_CFLAGS"
8144 fi
8145
8146 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 fi
8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 int i;
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 xorg_cv_cc_flag_unused_command_line_argument=yes
8162 else
8163 xorg_cv_cc_flag_unused_command_line_argument=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8169 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171 fi
8172
8173 found="no"
8174
8175 if test $found = "no" ; then
8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178 fi
8179
8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 fi
8183
8184 CFLAGS="$CFLAGS -Wnonnull"
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8187 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8188 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8189 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 int
8196 main ()
8197 {
8198
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8205 else
8206 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 fi
8211
8212
8213 CFLAGS="$xorg_testset_save_CFLAGS"
8214
8215 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8217 $as_echo "$supported" >&6; }
8218 if test "$supported" = "yes" ; then
8219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8220 found="yes"
8221 fi
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230 xorg_testset_save_CFLAGS="$CFLAGS"
8231
8232 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 int i;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 xorg_cv_cc_flag_unknown_warning_option=yes
8245 else
8246 xorg_cv_cc_flag_unknown_warning_option=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8252 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8253 CFLAGS="$xorg_testset_save_CFLAGS"
8254 fi
8255
8256 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 fi
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 int i;
8269 _ACEOF
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 xorg_cv_cc_flag_unused_command_line_argument=yes
8272 else
8273 xorg_cv_cc_flag_unused_command_line_argument=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8279 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8280 CFLAGS="$xorg_testset_save_CFLAGS"
8281 fi
8282
8283 found="no"
8284
8285 if test $found = "no" ; then
8286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288 fi
8289
8290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292 fi
8293
8294 CFLAGS="$CFLAGS -Winit-self"
8295
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8297 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8298 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8299 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 int i;
8305 int
8306 main ()
8307 {
8308
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_link "$LINENO"; then :
8314 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8315 else
8316 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 fi
8321
8322
8323 CFLAGS="$xorg_testset_save_CFLAGS"
8324
8325 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327 $as_echo "$supported" >&6; }
8328 if test "$supported" = "yes" ; then
8329 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8330 found="yes"
8331 fi
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340 xorg_testset_save_CFLAGS="$CFLAGS"
8341
8342 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 xorg_cv_cc_flag_unknown_warning_option=yes
8355 else
8356 xorg_cv_cc_flag_unknown_warning_option=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8362 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364 fi
8365
8366 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 fi
8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int i;
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 xorg_cv_cc_flag_unused_command_line_argument=yes
8382 else
8383 xorg_cv_cc_flag_unused_command_line_argument=no
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8389 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8390 CFLAGS="$xorg_testset_save_CFLAGS"
8391 fi
8392
8393 found="no"
8394
8395 if test $found = "no" ; then
8396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398 fi
8399
8400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402 fi
8403
8404 CFLAGS="$CFLAGS -Wmain"
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8407 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8408 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8409 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 int
8416 main ()
8417 {
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8425 else
8426 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 fi
8431
8432
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437 $as_echo "$supported" >&6; }
8438 if test "$supported" = "yes" ; then
8439 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8440 found="yes"
8441 fi
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450 xorg_testset_save_CFLAGS="$CFLAGS"
8451
8452 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 int i;
8462 _ACEOF
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 xorg_cv_cc_flag_unknown_warning_option=yes
8465 else
8466 xorg_cv_cc_flag_unknown_warning_option=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8472 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8474 fi
8475
8476 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 fi
8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 xorg_cv_cc_flag_unused_command_line_argument=yes
8492 else
8493 xorg_cv_cc_flag_unused_command_line_argument=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8499 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 found="no"
8504
8505 if test $found = "no" ; then
8506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508 fi
8509
8510 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512 fi
8513
8514 CFLAGS="$CFLAGS -Wmissing-braces"
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8517 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8518 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8519 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 int i;
8525 int
8526 main ()
8527 {
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8535 else
8536 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8540 fi
8541
8542
8543 CFLAGS="$xorg_testset_save_CFLAGS"
8544
8545 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8547 $as_echo "$supported" >&6; }
8548 if test "$supported" = "yes" ; then
8549 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8550 found="yes"
8551 fi
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560 xorg_testset_save_CFLAGS="$CFLAGS"
8561
8562 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 xorg_cv_cc_flag_unknown_warning_option=yes
8575 else
8576 xorg_cv_cc_flag_unknown_warning_option=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8584 fi
8585
8586 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 int i;
8599 _ACEOF
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 xorg_cv_cc_flag_unused_command_line_argument=yes
8602 else
8603 xorg_cv_cc_flag_unused_command_line_argument=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610 CFLAGS="$xorg_testset_save_CFLAGS"
8611 fi
8612
8613 found="no"
8614
8615 if test $found = "no" ; then
8616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618 fi
8619
8620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622 fi
8623
8624 CFLAGS="$CFLAGS -Wsequence-point"
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8627 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8628 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8629 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 int i;
8635 int
8636 main ()
8637 {
8638
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_c_try_link "$LINENO"; then :
8644 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8645 else
8646 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 fi
8651
8652
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657 $as_echo "$supported" >&6; }
8658 if test "$supported" = "yes" ; then
8659 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8660 found="yes"
8661 fi
8662 fi
8663
8664
8665
8666
8667
8668
8669
8670 xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 int i;
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 xorg_cv_cc_flag_unknown_warning_option=yes
8685 else
8686 xorg_cv_cc_flag_unknown_warning_option=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8694 fi
8695
8696 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699 fi
8700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unused_command_line_argument=yes
8712 else
8713 xorg_cv_cc_flag_unused_command_line_argument=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 found="no"
8724
8725 if test $found = "no" ; then
8726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 fi
8729
8730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732 fi
8733
8734 CFLAGS="$CFLAGS -Wreturn-type"
8735
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8737 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8738 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8739 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 int i;
8745 int
8746 main ()
8747 {
8748
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8755 else
8756 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 fi
8761
8762
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767 $as_echo "$supported" >&6; }
8768 if test "$supported" = "yes" ; then
8769 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8770 found="yes"
8771 fi
8772 fi
8773
8774
8775
8776
8777
8778
8779
8780 xorg_testset_save_CFLAGS="$CFLAGS"
8781
8782 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 xorg_cv_cc_flag_unknown_warning_option=yes
8795 else
8796 xorg_cv_cc_flag_unknown_warning_option=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804 fi
8805
8806 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8807 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809 fi
8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 xorg_cv_cc_flag_unused_command_line_argument=yes
8822 else
8823 xorg_cv_cc_flag_unused_command_line_argument=no
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830 CFLAGS="$xorg_testset_save_CFLAGS"
8831 fi
8832
8833 found="no"
8834
8835 if test $found = "no" ; then
8836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838 fi
8839
8840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842 fi
8843
8844 CFLAGS="$CFLAGS -Wtrigraphs"
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8847 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8848 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8849 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 int
8856 main ()
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8865 else
8866 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 fi
8871
8872
8873 CFLAGS="$xorg_testset_save_CFLAGS"
8874
8875 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877 $as_echo "$supported" >&6; }
8878 if test "$supported" = "yes" ; then
8879 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8880 found="yes"
8881 fi
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890 xorg_testset_save_CFLAGS="$CFLAGS"
8891
8892 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 int i;
8902 _ACEOF
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 xorg_cv_cc_flag_unknown_warning_option=yes
8905 else
8906 xorg_cv_cc_flag_unknown_warning_option=no
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8912 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8913 CFLAGS="$xorg_testset_save_CFLAGS"
8914 fi
8915
8916 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919 fi
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 int i;
8929 _ACEOF
8930 if ac_fn_c_try_compile "$LINENO"; then :
8931 xorg_cv_cc_flag_unused_command_line_argument=yes
8932 else
8933 xorg_cv_cc_flag_unused_command_line_argument=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8939 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8941 fi
8942
8943 found="no"
8944
8945 if test $found = "no" ; then
8946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948 fi
8949
8950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8952 fi
8953
8954 CFLAGS="$CFLAGS -Warray-bounds"
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8957 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8958 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8959 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 int
8966 main ()
8967 {
8968
8969 ;
8970 return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8975 else
8976 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 fi
8981
8982
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984
8985 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8987 $as_echo "$supported" >&6; }
8988 if test "$supported" = "yes" ; then
8989 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8990 found="yes"
8991 fi
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000 xorg_testset_save_CFLAGS="$CFLAGS"
9001
9002 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 int i;
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 xorg_cv_cc_flag_unknown_warning_option=yes
9015 else
9016 xorg_cv_cc_flag_unknown_warning_option=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9022 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9024 fi
9025
9026 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 int i;
9039 _ACEOF
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 xorg_cv_cc_flag_unused_command_line_argument=yes
9042 else
9043 xorg_cv_cc_flag_unused_command_line_argument=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9049 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9051 fi
9052
9053 found="no"
9054
9055 if test $found = "no" ; then
9056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058 fi
9059
9060 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9062 fi
9063
9064 CFLAGS="$CFLAGS -Wwrite-strings"
9065
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9067 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9068 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9069 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 int i;
9075 int
9076 main ()
9077 {
9078
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9085 else
9086 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 fi
9091
9092
9093 CFLAGS="$xorg_testset_save_CFLAGS"
9094
9095 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9097 $as_echo "$supported" >&6; }
9098 if test "$supported" = "yes" ; then
9099 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9100 found="yes"
9101 fi
9102 fi
9103
9104
9105
9106
9107
9108
9109
9110 xorg_testset_save_CFLAGS="$CFLAGS"
9111
9112 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 int i;
9122 _ACEOF
9123 if ac_fn_c_try_compile "$LINENO"; then :
9124 xorg_cv_cc_flag_unknown_warning_option=yes
9125 else
9126 xorg_cv_cc_flag_unknown_warning_option=no
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 fi
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9132 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9133 CFLAGS="$xorg_testset_save_CFLAGS"
9134 fi
9135
9136 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139 fi
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 int i;
9149 _ACEOF
9150 if ac_fn_c_try_compile "$LINENO"; then :
9151 xorg_cv_cc_flag_unused_command_line_argument=yes
9152 else
9153 xorg_cv_cc_flag_unused_command_line_argument=no
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160 CFLAGS="$xorg_testset_save_CFLAGS"
9161 fi
9162
9163 found="no"
9164
9165 if test $found = "no" ; then
9166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168 fi
9169
9170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9172 fi
9173
9174 CFLAGS="$CFLAGS -Waddress"
9175
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9177 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9178 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9179 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 int i;
9185 int
9186 main ()
9187 {
9188
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 if ac_fn_c_try_link "$LINENO"; then :
9194 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9195 else
9196 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200 fi
9201
9202
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204
9205 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207 $as_echo "$supported" >&6; }
9208 if test "$supported" = "yes" ; then
9209 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9210 found="yes"
9211 fi
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220 xorg_testset_save_CFLAGS="$CFLAGS"
9221
9222 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 int i;
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 xorg_cv_cc_flag_unknown_warning_option=yes
9235 else
9236 xorg_cv_cc_flag_unknown_warning_option=no
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9242 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9243 CFLAGS="$xorg_testset_save_CFLAGS"
9244 fi
9245
9246 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249 fi
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 int i;
9259 _ACEOF
9260 if ac_fn_c_try_compile "$LINENO"; then :
9261 xorg_cv_cc_flag_unused_command_line_argument=yes
9262 else
9263 xorg_cv_cc_flag_unused_command_line_argument=no
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9269 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9270 CFLAGS="$xorg_testset_save_CFLAGS"
9271 fi
9272
9273 found="no"
9274
9275 if test $found = "no" ; then
9276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278 fi
9279
9280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282 fi
9283
9284 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9285
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9287 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9288 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9289 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 int i;
9295 int
9296 main ()
9297 {
9298
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9305 else
9306 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9307 fi
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 fi
9311
9312
9313 CFLAGS="$xorg_testset_save_CFLAGS"
9314
9315 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9317 $as_echo "$supported" >&6; }
9318 if test "$supported" = "yes" ; then
9319 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9320 found="yes"
9321 fi
9322 fi
9323
9324
9325
9326
9327
9328
9329
9330 xorg_testset_save_CFLAGS="$CFLAGS"
9331
9332 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 int i;
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 xorg_cv_cc_flag_unknown_warning_option=yes
9345 else
9346 xorg_cv_cc_flag_unknown_warning_option=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354 fi
9355
9356 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359 fi
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"; then :
9371 xorg_cv_cc_flag_unused_command_line_argument=yes
9372 else
9373 xorg_cv_cc_flag_unused_command_line_argument=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9379 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9381 fi
9382
9383 found="no"
9384
9385 if test $found = "no" ; then
9386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388 fi
9389
9390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392 fi
9393
9394 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9397 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9398 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9399 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404 int i;
9405 int
9406 main ()
9407 {
9408
9409 ;
9410 return 0;
9411 }
9412 _ACEOF
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9415 else
9416 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 fi
9421
9422
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9424
9425 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427 $as_echo "$supported" >&6; }
9428 if test "$supported" = "yes" ; then
9429 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9430 found="yes"
9431 fi
9432 fi
9433
9434
9435 fi
9436
9437
9438
9439
9440
9441
9442 CWARNFLAGS="$BASE_CFLAGS"
9443 if test "x$GCC" = xyes ; then
9444 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9445 fi
9446
9447
9448
9449
9450
9451
9452 # Check whether --enable-strict-compilation was given.
9453 if test "${enable_strict_compilation+set}" = set; then :
9454 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9455 else
9456 STRICT_COMPILE=no
9457 fi
9458
9459
9460 STRICT_CFLAGS=""
9461
9462
9463
9464
9465
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9481 else
9482 xorg_cv_cc_flag_unknown_warning_option=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490 fi
9491
9492 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495 fi
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 xorg_cv_cc_flag_unused_command_line_argument=yes
9508 else
9509 xorg_cv_cc_flag_unused_command_line_argument=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 found="no"
9520
9521 if test $found = "no" ; then
9522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 fi
9525
9526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 fi
9529
9530 CFLAGS="$CFLAGS -pedantic"
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9533 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9534 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9535 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9551 else
9552 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 fi
9557
9558
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 $as_echo "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9566 found="yes"
9567 fi
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576 xorg_testset_save_CFLAGS="$CFLAGS"
9577
9578 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 int i;
9588 _ACEOF
9589 if ac_fn_c_try_compile "$LINENO"; then :
9590 xorg_cv_cc_flag_unknown_warning_option=yes
9591 else
9592 xorg_cv_cc_flag_unknown_warning_option=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600 fi
9601
9602 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605 fi
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 int i;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617 xorg_cv_cc_flag_unused_command_line_argument=yes
9618 else
9619 xorg_cv_cc_flag_unused_command_line_argument=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626 CFLAGS="$xorg_testset_save_CFLAGS"
9627 fi
9628
9629 found="no"
9630
9631 if test $found = "no" ; then
9632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634 fi
9635
9636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638 fi
9639
9640 CFLAGS="$CFLAGS -Werror"
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9643 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9644 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9645 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 int i;
9651 int
9652 main ()
9653 {
9654
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9661 else
9662 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 fi
9667
9668
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9670
9671 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673 $as_echo "$supported" >&6; }
9674 if test "$supported" = "yes" ; then
9675 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9676 found="yes"
9677 fi
9678 fi
9679
9680 if test $found = "no" ; then
9681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 fi
9684
9685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687 fi
9688
9689 CFLAGS="$CFLAGS -errwarn"
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9692 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9693 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9694 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 int
9701 main ()
9702 {
9703
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 if ac_fn_c_try_link "$LINENO"; then :
9709 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9710 else
9711 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 fi
9716
9717
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722 $as_echo "$supported" >&6; }
9723 if test "$supported" = "yes" ; then
9724 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9725 found="yes"
9726 fi
9727 fi
9728
9729
9730
9731 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9732 # activate it with -Werror, so we add it here explicitly.
9733
9734
9735
9736
9737
9738 xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unknown_warning_option=yes
9753 else
9754 xorg_cv_cc_flag_unknown_warning_option=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 fi
9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Werror=attributes"
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9805 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9806 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9807 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 int
9814 main ()
9815 {
9816
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9823 else
9824 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi
9829
9830
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 $as_echo "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9838 found="yes"
9839 fi
9840 fi
9841
9842
9843
9844 if test "x$STRICT_COMPILE" = "xyes"; then
9845 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9846 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9847 fi
9848
9849
9850
9851
9852
9853
9854 cat >>confdefs.h <<_ACEOF
9855 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9856 _ACEOF
9857
9858 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9859 if test "x$PVM" = "x"; then
9860 PVM="0"
9861 fi
9862
9863 cat >>confdefs.h <<_ACEOF
9864 #define PACKAGE_VERSION_MINOR $PVM
9865 _ACEOF
9866
9867 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9868 if test "x$PVP" = "x"; then
9869 PVP="0"
9870 fi
9871
9872 cat >>confdefs.h <<_ACEOF
9873 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9874 _ACEOF
9875
9876
9877
9878 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9879 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9880 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9881 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9882
9883
9884
9885
9886 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9887 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9888 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9889 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9890 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9891
9892
9893
9894
9895
9896
9897 if test x$APP_MAN_SUFFIX = x ; then
9898 APP_MAN_SUFFIX=1
9899 fi
9900 if test x$APP_MAN_DIR = x ; then
9901 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9902 fi
9903
9904 if test x$LIB_MAN_SUFFIX = x ; then
9905 LIB_MAN_SUFFIX=3
9906 fi
9907 if test x$LIB_MAN_DIR = x ; then
9908 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9909 fi
9910
9911 if test x$FILE_MAN_SUFFIX = x ; then
9912 case $host_os in
9913 solaris*) FILE_MAN_SUFFIX=4 ;;
9914 *) FILE_MAN_SUFFIX=5 ;;
9915 esac
9916 fi
9917 if test x$FILE_MAN_DIR = x ; then
9918 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9919 fi
9920
9921 if test x$MISC_MAN_SUFFIX = x ; then
9922 case $host_os in
9923 solaris*) MISC_MAN_SUFFIX=5 ;;
9924 *) MISC_MAN_SUFFIX=7 ;;
9925 esac
9926 fi
9927 if test x$MISC_MAN_DIR = x ; then
9928 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9929 fi
9930
9931 if test x$DRIVER_MAN_SUFFIX = x ; then
9932 case $host_os in
9933 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9934 *) DRIVER_MAN_SUFFIX=4 ;;
9935 esac
9936 fi
9937 if test x$DRIVER_MAN_DIR = x ; then
9938 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9939 fi
9940
9941 if test x$ADMIN_MAN_SUFFIX = x ; then
9942 case $host_os in
9943 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9944 *) ADMIN_MAN_SUFFIX=8 ;;
9945 esac
9946 fi
9947 if test x$ADMIN_MAN_DIR = x ; then
9948 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9949 fi
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965 XORG_MAN_PAGE="X Version 11"
9966
9967 MAN_SUBSTS="\
9968 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9969 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9970 -e 's|__xservername__|Xorg|g' \
9971 -e 's|__xconfigfile__|xorg.conf|g' \
9972 -e 's|__projectroot__|\$(prefix)|g' \
9973 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9974 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9975 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9976 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9977 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9978 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9979 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9980
9981
9982
9983 # Check whether --enable-silent-rules was given.
9984 if test "${enable_silent_rules+set}" = set; then :
9985 enableval=$enable_silent_rules;
9986 fi
9987
9988 case $enable_silent_rules in
9989 yes) AM_DEFAULT_VERBOSITY=0;;
9990 no) AM_DEFAULT_VERBOSITY=1;;
9991 *) AM_DEFAULT_VERBOSITY=0;;
9992 esac
9993 AM_BACKSLASH='\'
9994
9995
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
9998 $as_echo_n "checking for gzopen in -lz... " >&6; }
9999 if ${ac_cv_lib_z_gzopen+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-lz $LIBS"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char gzopen ();
10014 int
10015 main ()
10016 {
10017 return gzopen ();
10018 ;
10019 return 0;
10020 }
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 ac_cv_lib_z_gzopen=yes
10024 else
10025 ac_cv_lib_z_gzopen=no
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10032 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
10033 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_LIBZ 1
10036 _ACEOF
10037
10038 LIBS="-lz $LIBS"
10039
10040 else
10041 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10042 fi
10043
10044
10045
10046 # Check whether --with-bzip2 was given.
10047 if test "${with_bzip2+set}" = set; then :
10048 withval=$with_bzip2;
10049 else
10050 with_bzip2=no
10051 fi
10052
10053 if test "x$with_bzip2" = xyes; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10055 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10056 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-lbz2 $LIBS"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063
10064 /* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char BZ2_bzopen ();
10071 int
10072 main ()
10073 {
10074 return BZ2_bzopen ();
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 ac_cv_lib_bz2_BZ2_bzopen=yes
10081 else
10082 ac_cv_lib_bz2_BZ2_bzopen=no
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10089 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10090 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10091 cat >>confdefs.h <<_ACEOF
10092 #define HAVE_LIBBZ2 1
10093 _ACEOF
10094
10095 LIBS="-lbz2 $LIBS"
10096
10097 else
10098 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10099 fi
10100
10101
10102 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10103
10104 fi
10105
10106 # Checks for pkg-config packages
10107
10108 pkg_failed=no
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10110 $as_echo_n "checking for MKFONTSCALE... " >&6; }
10111
10112 if test -n "$MKFONTSCALE_CFLAGS"; then
10113 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10114 elif test -n "$PKG_CONFIG"; then
10115 if test -n "$PKG_CONFIG" && \
10116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10117 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10118 ac_status=$?
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; }; then
10121 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10122 else
10123 pkg_failed=yes
10124 fi
10125 else
10126 pkg_failed=untried
10127 fi
10128 if test -n "$MKFONTSCALE_LIBS"; then
10129 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10130 elif test -n "$PKG_CONFIG"; then
10131 if test -n "$PKG_CONFIG" && \
10132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10133 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10134 ac_status=$?
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136 test $ac_status = 0; }; then
10137 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10138 else
10139 pkg_failed=yes
10140 fi
10141 else
10142 pkg_failed=untried
10143 fi
10144
10145
10146
10147 if test $pkg_failed = yes; then
10148
10149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10150 _pkg_short_errors_supported=yes
10151 else
10152 _pkg_short_errors_supported=no
10153 fi
10154 if test $_pkg_short_errors_supported = yes; then
10155 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1`
10156 else
10157 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1`
10158 fi
10159 # Put the nasty error message in config.log where it belongs
10160 echo "$MKFONTSCALE_PKG_ERRORS" >&5
10161
10162 as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10163
10164 $MKFONTSCALE_PKG_ERRORS
10165
10166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10167 installed software in a non-standard prefix.
10168
10169 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10170 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10171 See the pkg-config man page for more details.
10172 " "$LINENO" 5
10173 elif test $pkg_failed = untried; then
10174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10176 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10177 is in your PATH or set the PKG_CONFIG environment variable to the full
10178 path to pkg-config.
10179
10180 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10181 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10182 See the pkg-config man page for more details.
10183
10184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10185 See \`config.log' for more details" "$LINENO" 5; }
10186 else
10187 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
10188 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190 $as_echo "yes" >&6; }
10191 :
10192 fi
10193
10194 pkg_failed=no
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
10196 $as_echo_n "checking for X11... " >&6; }
10197
10198 if test -n "$X11_CFLAGS"; then
10199 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
10200 elif test -n "$PKG_CONFIG"; then
10201 if test -n "$PKG_CONFIG" && \
10202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10203 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10204 ac_status=$?
10205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206 test $ac_status = 0; }; then
10207 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10208 else
10209 pkg_failed=yes
10210 fi
10211 else
10212 pkg_failed=untried
10213 fi
10214 if test -n "$X11_LIBS"; then
10215 pkg_cv_X11_LIBS="$X11_LIBS"
10216 elif test -n "$PKG_CONFIG"; then
10217 if test -n "$PKG_CONFIG" && \
10218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10219 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10220 ac_status=$?
10221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222 test $ac_status = 0; }; then
10223 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10224 else
10225 pkg_failed=yes
10226 fi
10227 else
10228 pkg_failed=untried
10229 fi
10230
10231
10232
10233 if test $pkg_failed = yes; then
10234
10235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10236 _pkg_short_errors_supported=yes
10237 else
10238 _pkg_short_errors_supported=no
10239 fi
10240 if test $_pkg_short_errors_supported = yes; then
10241 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10242 else
10243 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10244 fi
10245 # Put the nasty error message in config.log where it belongs
10246 echo "$X11_PKG_ERRORS" >&5
10247
10248 as_fn_error $? "Package requirements (xproto) were not met:
10249
10250 $X11_PKG_ERRORS
10251
10252 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10253 installed software in a non-standard prefix.
10254
10255 Alternatively, you may set the environment variables X11_CFLAGS
10256 and X11_LIBS to avoid the need to call pkg-config.
10257 See the pkg-config man page for more details.
10258 " "$LINENO" 5
10259 elif test $pkg_failed = untried; then
10260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10262 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10263 is in your PATH or set the PKG_CONFIG environment variable to the full
10264 path to pkg-config.
10265
10266 Alternatively, you may set the environment variables X11_CFLAGS
10267 and X11_LIBS to avoid the need to call pkg-config.
10268 See the pkg-config man page for more details.
10269
10270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10271 See \`config.log' for more details" "$LINENO" 5; }
10272 else
10273 X11_CFLAGS=$pkg_cv_X11_CFLAGS
10274 X11_LIBS=$pkg_cv_X11_LIBS
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10276 $as_echo "yes" >&6; }
10277 :
10278 fi
10279
10280
10281
10282
10283
10284
10285 # Check whether --with-lint was given.
10286 if test "${with_lint+set}" = set; then :
10287 withval=$with_lint; use_lint=$withval
10288 else
10289 use_lint=no
10290 fi
10291
10292
10293 # Obtain platform specific info like program name and options
10294 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10295 case $host_os in
10296 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10297 lint_name=splint
10298 lint_options="-badflag"
10299 ;;
10300 *freebsd* | *netbsd*)
10301 lint_name=lint
10302 lint_options="-u -b"
10303 ;;
10304 *solaris*)
10305 lint_name=lint
10306 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10307 ;;
10308 esac
10309
10310 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10311 if test "x$use_lint" = x"yes" ; then
10312 # Extract the first word of "$lint_name", so it can be a program name with args.
10313 set dummy $lint_name; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if ${ac_cv_path_LINT+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 case $LINT in
10320 [\\/]* | ?:[\\/]*)
10321 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10322 ;;
10323 *)
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335 done
10336 done
10337 IFS=$as_save_IFS
10338
10339 ;;
10340 esac
10341 fi
10342 LINT=$ac_cv_path_LINT
10343 if test -n "$LINT"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10345 $as_echo "$LINT" >&6; }
10346 else
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10349 fi
10350
10351
10352 if test "x$LINT" = "x"; then
10353 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10354 fi
10355 elif test "x$use_lint" = x"no" ; then
10356 if test "x$LINT" != "x"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10358 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10359 fi
10360 else
10361 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10362 fi
10363
10364 # User supplied flags override default flags
10365 if test "x$LINT_FLAGS" != "x"; then
10366 lint_options=$LINT_FLAGS
10367 fi
10368
10369 LINT_FLAGS=$lint_options
10370
10371 if test "x$LINT" != x; then
10372 LINT_TRUE=
10373 LINT_FALSE='#'
10374 else
10375 LINT_TRUE='#'
10376 LINT_FALSE=
10377 fi
10378
10379
10380
10381
10382 ac_config_files="$ac_config_files Makefile man/Makefile"
10383
10384 cat >confcache <<\_ACEOF
10385 # This file is a shell script that caches the results of configure
10386 # tests run on this system so they can be shared between configure
10387 # scripts and configure runs, see configure's option --config-cache.
10388 # It is not useful on other systems. If it contains results you don't
10389 # want to keep, you may remove or edit it.
10390 #
10391 # config.status only pays attention to the cache file if you give it
10392 # the --recheck option to rerun configure.
10393 #
10394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10396 # following values.
10397
10398 _ACEOF
10399
10400 # The following way of writing the cache mishandles newlines in values,
10401 # but we know of no workaround that is simple, portable, and efficient.
10402 # So, we kill variables containing newlines.
10403 # Ultrix sh set writes to stderr and can't be redirected directly,
10404 # and sets the high bit in the cache file unless we assign to the vars.
10405 (
10406 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10407 eval ac_val=\$$ac_var
10408 case $ac_val in #(
10409 *${as_nl}*)
10410 case $ac_var in #(
10411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10413 esac
10414 case $ac_var in #(
10415 _ | IFS | as_nl) ;; #(
10416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10417 *) { eval $ac_var=; unset $ac_var;} ;;
10418 esac ;;
10419 esac
10420 done
10421
10422 (set) 2>&1 |
10423 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10424 *${as_nl}ac_space=\ *)
10425 # `set' does not quote correctly, so add quotes: double-quote
10426 # substitution turns \\\\ into \\, and sed turns \\ into \.
10427 sed -n \
10428 "s/'/'\\\\''/g;
10429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10430 ;; #(
10431 *)
10432 # `set' quotes correctly as required by POSIX, so do not add quotes.
10433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10434 ;;
10435 esac |
10436 sort
10437 ) |
10438 sed '
10439 /^ac_cv_env_/b end
10440 t clear
10441 :clear
10442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10443 t end
10444 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10445 :end' >>confcache
10446 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10447 if test -w "$cache_file"; then
10448 if test "x$cache_file" != "x/dev/null"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10450 $as_echo "$as_me: updating cache $cache_file" >&6;}
10451 if test ! -f "$cache_file" || test -h "$cache_file"; then
10452 cat confcache >"$cache_file"
10453 else
10454 case $cache_file in #(
10455 */* | ?:*)
10456 mv -f confcache "$cache_file"$$ &&
10457 mv -f "$cache_file"$$ "$cache_file" ;; #(
10458 *)
10459 mv -f confcache "$cache_file" ;;
10460 esac
10461 fi
10462 fi
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10466 fi
10467 fi
10468 rm -f confcache
10469
10470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10471 # Let make expand exec_prefix.
10472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10473
10474 DEFS=-DHAVE_CONFIG_H
10475
10476 ac_libobjs=
10477 ac_ltlibobjs=
10478 U=
10479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10480 # 1. Remove the extension, and $U if already installed.
10481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10482 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10484 # will be set to the directory where LIBOBJS objects are built.
10485 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10486 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10487 done
10488 LIBOBJS=$ac_libobjs
10489
10490 LTLIBOBJS=$ac_ltlibobjs
10491
10492
10493 if test -n "$EXEEXT"; then
10494 am__EXEEXT_TRUE=
10495 am__EXEEXT_FALSE='#'
10496 else
10497 am__EXEEXT_TRUE='#'
10498 am__EXEEXT_FALSE=
10499 fi
10500
10501 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10502 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10504 fi
10505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10506 as_fn_error $? "conditional \"AMDEP\" was never defined.
10507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10508 fi
10509 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10510 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10512 fi
10513 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10514 as_fn_error $? "conditional \"LINT\" was never defined.
10515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10516 fi
10517
10518 : "${CONFIG_STATUS=./config.status}"
10519 ac_write_fail=0
10520 ac_clean_files_save=$ac_clean_files
10521 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10523 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10524 as_write_fail=0
10525 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10526 #! $SHELL
10527 # Generated by $as_me.
10528 # Run this file to recreate the current configuration.
10529 # Compiler output produced by configure, useful for debugging
10530 # configure, is in config.log if it exists.
10531
10532 debug=false
10533 ac_cs_recheck=false
10534 ac_cs_silent=false
10535
10536 SHELL=\${CONFIG_SHELL-$SHELL}
10537 export SHELL
10538 _ASEOF
10539 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10540 ## -------------------- ##
10541 ## M4sh Initialization. ##
10542 ## -------------------- ##
10543
10544 # Be more Bourne compatible
10545 DUALCASE=1; export DUALCASE # for MKS sh
10546 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10547 emulate sh
10548 NULLCMD=:
10549 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10550 # is contrary to our usage. Disable this feature.
10551 alias -g '${1+"$@"}'='"$@"'
10552 setopt NO_GLOB_SUBST
10553 else
10554 case `(set -o) 2>/dev/null` in #(
10555 *posix*) :
10556 set -o posix ;; #(
10557 *) :
10558 ;;
10559 esac
10560 fi
10561
10562
10563 as_nl='
10564 '
10565 export as_nl
10566 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10567 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10570 # Prefer a ksh shell builtin over an external printf program on Solaris,
10571 # but without wasting forks for bash or zsh.
10572 if test -z "$BASH_VERSION$ZSH_VERSION" \
10573 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10574 as_echo='print -r --'
10575 as_echo_n='print -rn --'
10576 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10577 as_echo='printf %s\n'
10578 as_echo_n='printf %s'
10579 else
10580 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10581 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10582 as_echo_n='/usr/ucb/echo -n'
10583 else
10584 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10585 as_echo_n_body='eval
10586 arg=$1;
10587 case $arg in #(
10588 *"$as_nl"*)
10589 expr "X$arg" : "X\\(.*\\)$as_nl";
10590 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10591 esac;
10592 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10593 '
10594 export as_echo_n_body
10595 as_echo_n='sh -c $as_echo_n_body as_echo'
10596 fi
10597 export as_echo_body
10598 as_echo='sh -c $as_echo_body as_echo'
10599 fi
10600
10601 # The user is always right.
10602 if test "${PATH_SEPARATOR+set}" != set; then
10603 PATH_SEPARATOR=:
10604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10605 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10606 PATH_SEPARATOR=';'
10607 }
10608 fi
10609
10610
10611 # IFS
10612 # We need space, tab and new line, in precisely that order. Quoting is
10613 # there to prevent editors from complaining about space-tab.
10614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10615 # splitting by setting IFS to empty value.)
10616 IFS=" "" $as_nl"
10617
10618 # Find who we are. Look in the path if we contain no directory separator.
10619 as_myself=
10620 case $0 in #((
10621 *[\\/]* ) as_myself=$0 ;;
10622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10624 do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10628 done
10629 IFS=$as_save_IFS
10630
10631 ;;
10632 esac
10633 # We did not find ourselves, most probably we were run as `sh COMMAND'
10634 # in which case we are not to be found in the path.
10635 if test "x$as_myself" = x; then
10636 as_myself=$0
10637 fi
10638 if test ! -f "$as_myself"; then
10639 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10640 exit 1
10641 fi
10642
10643 # Unset variables that we do not need and which cause bugs (e.g. in
10644 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10645 # suppresses any "Segmentation fault" message there. '((' could
10646 # trigger a bug in pdksh 5.2.14.
10647 for as_var in BASH_ENV ENV MAIL MAILPATH
10648 do eval test x\${$as_var+set} = xset \
10649 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10650 done
10651 PS1='$ '
10652 PS2='> '
10653 PS4='+ '
10654
10655 # NLS nuisances.
10656 LC_ALL=C
10657 export LC_ALL
10658 LANGUAGE=C
10659 export LANGUAGE
10660
10661 # CDPATH.
10662 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10663
10664
10665 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10666 # ----------------------------------------
10667 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10668 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10669 # script with STATUS, using 1 if that was 0.
10670 as_fn_error ()
10671 {
10672 as_status=$1; test $as_status -eq 0 && as_status=1
10673 if test "$4"; then
10674 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10675 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10676 fi
10677 $as_echo "$as_me: error: $2" >&2
10678 as_fn_exit $as_status
10679 } # as_fn_error
10680
10681
10682 # as_fn_set_status STATUS
10683 # -----------------------
10684 # Set $? to STATUS, without forking.
10685 as_fn_set_status ()
10686 {
10687 return $1
10688 } # as_fn_set_status
10689
10690 # as_fn_exit STATUS
10691 # -----------------
10692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10693 as_fn_exit ()
10694 {
10695 set +e
10696 as_fn_set_status $1
10697 exit $1
10698 } # as_fn_exit
10699
10700 # as_fn_unset VAR
10701 # ---------------
10702 # Portably unset VAR.
10703 as_fn_unset ()
10704 {
10705 { eval $1=; unset $1;}
10706 }
10707 as_unset=as_fn_unset
10708 # as_fn_append VAR VALUE
10709 # ----------------------
10710 # Append the text in VALUE to the end of the definition contained in VAR. Take
10711 # advantage of any shell optimizations that allow amortized linear growth over
10712 # repeated appends, instead of the typical quadratic growth present in naive
10713 # implementations.
10714 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10715 eval 'as_fn_append ()
10716 {
10717 eval $1+=\$2
10718 }'
10719 else
10720 as_fn_append ()
10721 {
10722 eval $1=\$$1\$2
10723 }
10724 fi # as_fn_append
10725
10726 # as_fn_arith ARG...
10727 # ------------------
10728 # Perform arithmetic evaluation on the ARGs, and store the result in the
10729 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10730 # must be portable across $(()) and expr.
10731 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10732 eval 'as_fn_arith ()
10733 {
10734 as_val=$(( $* ))
10735 }'
10736 else
10737 as_fn_arith ()
10738 {
10739 as_val=`expr "$@" || test $? -eq 1`
10740 }
10741 fi # as_fn_arith
10742
10743
10744 if expr a : '\(a\)' >/dev/null 2>&1 &&
10745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10746 as_expr=expr
10747 else
10748 as_expr=false
10749 fi
10750
10751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10752 as_basename=basename
10753 else
10754 as_basename=false
10755 fi
10756
10757 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10758 as_dirname=dirname
10759 else
10760 as_dirname=false
10761 fi
10762
10763 as_me=`$as_basename -- "$0" ||
10764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10765 X"$0" : 'X\(//\)$' \| \
10766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10767 $as_echo X/"$0" |
10768 sed '/^.*\/\([^/][^/]*\)\/*$/{
10769 s//\1/
10770 q
10771 }
10772 /^X\/\(\/\/\)$/{
10773 s//\1/
10774 q
10775 }
10776 /^X\/\(\/\).*/{
10777 s//\1/
10778 q
10779 }
10780 s/.*/./; q'`
10781
10782 # Avoid depending upon Character Ranges.
10783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10786 as_cr_digits='0123456789'
10787 as_cr_alnum=$as_cr_Letters$as_cr_digits
10788
10789 ECHO_C= ECHO_N= ECHO_T=
10790 case `echo -n x` in #(((((
10791 -n*)
10792 case `echo 'xy\c'` in
10793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10794 xy) ECHO_C='\c';;
10795 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10796 ECHO_T=' ';;
10797 esac;;
10798 *)
10799 ECHO_N='-n';;
10800 esac
10801
10802 rm -f conf$$ conf$$.exe conf$$.file
10803 if test -d conf$$.dir; then
10804 rm -f conf$$.dir/conf$$.file
10805 else
10806 rm -f conf$$.dir
10807 mkdir conf$$.dir 2>/dev/null
10808 fi
10809 if (echo >conf$$.file) 2>/dev/null; then
10810 if ln -s conf$$.file conf$$ 2>/dev/null; then
10811 as_ln_s='ln -s'
10812 # ... but there are two gotchas:
10813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10815 # In both cases, we have to default to `cp -p'.
10816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10817 as_ln_s='cp -p'
10818 elif ln conf$$.file conf$$ 2>/dev/null; then
10819 as_ln_s=ln
10820 else
10821 as_ln_s='cp -p'
10822 fi
10823 else
10824 as_ln_s='cp -p'
10825 fi
10826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10827 rmdir conf$$.dir 2>/dev/null
10828
10829
10830 # as_fn_mkdir_p
10831 # -------------
10832 # Create "$as_dir" as a directory, including parents if necessary.
10833 as_fn_mkdir_p ()
10834 {
10835
10836 case $as_dir in #(
10837 -*) as_dir=./$as_dir;;
10838 esac
10839 test -d "$as_dir" || eval $as_mkdir_p || {
10840 as_dirs=
10841 while :; do
10842 case $as_dir in #(
10843 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10844 *) as_qdir=$as_dir;;
10845 esac
10846 as_dirs="'$as_qdir' $as_dirs"
10847 as_dir=`$as_dirname -- "$as_dir" ||
10848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10849 X"$as_dir" : 'X\(//\)[^/]' \| \
10850 X"$as_dir" : 'X\(//\)$' \| \
10851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10852 $as_echo X"$as_dir" |
10853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10854 s//\1/
10855 q
10856 }
10857 /^X\(\/\/\)[^/].*/{
10858 s//\1/
10859 q
10860 }
10861 /^X\(\/\/\)$/{
10862 s//\1/
10863 q
10864 }
10865 /^X\(\/\).*/{
10866 s//\1/
10867 q
10868 }
10869 s/.*/./; q'`
10870 test -d "$as_dir" && break
10871 done
10872 test -z "$as_dirs" || eval "mkdir $as_dirs"
10873 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10874
10875
10876 } # as_fn_mkdir_p
10877 if mkdir -p . 2>/dev/null; then
10878 as_mkdir_p='mkdir -p "$as_dir"'
10879 else
10880 test -d ./-p && rmdir ./-p
10881 as_mkdir_p=false
10882 fi
10883
10884 if test -x / >/dev/null 2>&1; then
10885 as_test_x='test -x'
10886 else
10887 if ls -dL / >/dev/null 2>&1; then
10888 as_ls_L_option=L
10889 else
10890 as_ls_L_option=
10891 fi
10892 as_test_x='
10893 eval sh -c '\''
10894 if test -d "$1"; then
10895 test -d "$1/.";
10896 else
10897 case $1 in #(
10898 -*)set "./$1";;
10899 esac;
10900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10901 ???[sx]*):;;*)false;;esac;fi
10902 '\'' sh
10903 '
10904 fi
10905 as_executable_p=$as_test_x
10906
10907 # Sed expression to map a string onto a valid CPP name.
10908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10909
10910 # Sed expression to map a string onto a valid variable name.
10911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10912
10913
10914 exec 6>&1
10915 ## ----------------------------------- ##
10916 ## Main body of $CONFIG_STATUS script. ##
10917 ## ----------------------------------- ##
10918 _ASEOF
10919 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10920
10921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10922 # Save the log message, to keep $0 and so on meaningful, and to
10923 # report actual input values of CONFIG_FILES etc. instead of their
10924 # values after options handling.
10925 ac_log="
10926 This file was extended by mkfontscale $as_me 1.1.0, which was
10927 generated by GNU Autoconf 2.68. Invocation command line was
10928
10929 CONFIG_FILES = $CONFIG_FILES
10930 CONFIG_HEADERS = $CONFIG_HEADERS
10931 CONFIG_LINKS = $CONFIG_LINKS
10932 CONFIG_COMMANDS = $CONFIG_COMMANDS
10933 $ $0 $@
10934
10935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10936 "
10937
10938 _ACEOF
10939
10940 case $ac_config_files in *"
10941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10942 esac
10943
10944 case $ac_config_headers in *"
10945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10946 esac
10947
10948
10949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10950 # Files that config.status was made for.
10951 config_files="$ac_config_files"
10952 config_headers="$ac_config_headers"
10953 config_commands="$ac_config_commands"
10954
10955 _ACEOF
10956
10957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10958 ac_cs_usage="\
10959 \`$as_me' instantiates files and other configuration actions
10960 from templates according to the current configuration. Unless the files
10961 and actions are specified as TAGs, all are instantiated by default.
10962
10963 Usage: $0 [OPTION]... [TAG]...
10964
10965 -h, --help print this help, then exit
10966 -V, --version print version number and configuration settings, then exit
10967 --config print configuration, then exit
10968 -q, --quiet, --silent
10969 do not print progress messages
10970 -d, --debug don't remove temporary files
10971 --recheck update $as_me by reconfiguring in the same conditions
10972 --file=FILE[:TEMPLATE]
10973 instantiate the configuration file FILE
10974 --header=FILE[:TEMPLATE]
10975 instantiate the configuration header FILE
10976
10977 Configuration files:
10978 $config_files
10979
10980 Configuration headers:
10981 $config_headers
10982
10983 Configuration commands:
10984 $config_commands
10985
10986 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10987
10988 _ACEOF
10989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10990 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10991 ac_cs_version="\\
10992 mkfontscale config.status 1.1.0
10993 configured by $0, generated by GNU Autoconf 2.68,
10994 with options \\"\$ac_cs_config\\"
10995
10996 Copyright (C) 2010 Free Software Foundation, Inc.
10997 This config.status script is free software; the Free Software Foundation
10998 gives unlimited permission to copy, distribute and modify it."
10999
11000 ac_pwd='$ac_pwd'
11001 srcdir='$srcdir'
11002 INSTALL='$INSTALL'
11003 MKDIR_P='$MKDIR_P'
11004 AWK='$AWK'
11005 test -n "\$AWK" || AWK=awk
11006 _ACEOF
11007
11008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11009 # The default lists apply if the user does not specify any file.
11010 ac_need_defaults=:
11011 while test $# != 0
11012 do
11013 case $1 in
11014 --*=?*)
11015 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11017 ac_shift=:
11018 ;;
11019 --*=)
11020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11021 ac_optarg=
11022 ac_shift=:
11023 ;;
11024 *)
11025 ac_option=$1
11026 ac_optarg=$2
11027 ac_shift=shift
11028 ;;
11029 esac
11030
11031 case $ac_option in
11032 # Handling of the options.
11033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11034 ac_cs_recheck=: ;;
11035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11036 $as_echo "$ac_cs_version"; exit ;;
11037 --config | --confi | --conf | --con | --co | --c )
11038 $as_echo "$ac_cs_config"; exit ;;
11039 --debug | --debu | --deb | --de | --d | -d )
11040 debug=: ;;
11041 --file | --fil | --fi | --f )
11042 $ac_shift
11043 case $ac_optarg in
11044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11045 '') as_fn_error $? "missing file argument" ;;
11046 esac
11047 as_fn_append CONFIG_FILES " '$ac_optarg'"
11048 ac_need_defaults=false;;
11049 --header | --heade | --head | --hea )
11050 $ac_shift
11051 case $ac_optarg in
11052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11053 esac
11054 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11055 ac_need_defaults=false;;
11056 --he | --h)
11057 # Conflict between --help and --header
11058 as_fn_error $? "ambiguous option: \`$1'
11059 Try \`$0 --help' for more information.";;
11060 --help | --hel | -h )
11061 $as_echo "$ac_cs_usage"; exit ;;
11062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11064 ac_cs_silent=: ;;
11065
11066 # This is an error.
11067 -*) as_fn_error $? "unrecognized option: \`$1'
11068 Try \`$0 --help' for more information." ;;
11069
11070 *) as_fn_append ac_config_targets " $1"
11071 ac_need_defaults=false ;;
11072
11073 esac
11074 shift
11075 done
11076
11077 ac_configure_extra_args=
11078
11079 if $ac_cs_silent; then
11080 exec 6>/dev/null
11081 ac_configure_extra_args="$ac_configure_extra_args --silent"
11082 fi
11083
11084 _ACEOF
11085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11086 if \$ac_cs_recheck; then
11087 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11088 shift
11089 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11090 CONFIG_SHELL='$SHELL'
11091 export CONFIG_SHELL
11092 exec "\$@"
11093 fi
11094
11095 _ACEOF
11096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11097 exec 5>>config.log
11098 {
11099 echo
11100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11101 ## Running $as_me. ##
11102 _ASBOX
11103 $as_echo "$ac_log"
11104 } >&5
11105
11106 _ACEOF
11107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11108 #
11109 # INIT-COMMANDS
11110 #
11111 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11112
11113 _ACEOF
11114
11115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11116
11117 # Handling of arguments.
11118 for ac_config_target in $ac_config_targets
11119 do
11120 case $ac_config_target in
11121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11124 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11125
11126 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11127 esac
11128 done
11129
11130
11131 # If the user did not use the arguments to specify the items to instantiate,
11132 # then the envvar interface is used. Set only those that are not.
11133 # We use the long form for the default assignment because of an extremely
11134 # bizarre bug on SunOS 4.1.3.
11135 if $ac_need_defaults; then
11136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11139 fi
11140
11141 # Have a temporary directory for convenience. Make it in the build tree
11142 # simply because there is no reason against having it here, and in addition,
11143 # creating and moving files from /tmp can sometimes cause problems.
11144 # Hook for its removal unless debugging.
11145 # Note that there is a small window in which the directory will not be cleaned:
11146 # after its creation but before its name has been assigned to `$tmp'.
11147 $debug ||
11148 {
11149 tmp= ac_tmp=
11150 trap 'exit_status=$?
11151 : "${ac_tmp:=$tmp}"
11152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11153 ' 0
11154 trap 'as_fn_exit 1' 1 2 13 15
11155 }
11156 # Create a (secure) tmp directory for tmp files.
11157
11158 {
11159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11160 test -d "$tmp"
11161 } ||
11162 {
11163 tmp=./conf$$-$RANDOM
11164 (umask 077 && mkdir "$tmp")
11165 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11166 ac_tmp=$tmp
11167
11168 # Set up the scripts for CONFIG_FILES section.
11169 # No need to generate them if there are no CONFIG_FILES.
11170 # This happens for instance with `./config.status config.h'.
11171 if test -n "$CONFIG_FILES"; then
11172
11173
11174 ac_cr=`echo X | tr X '\015'`
11175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11176 # But we know of no other shell where ac_cr would be empty at this
11177 # point, so we can use a bashism as a fallback.
11178 if test "x$ac_cr" = x; then
11179 eval ac_cr=\$\'\\r\'
11180 fi
11181 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11183 ac_cs_awk_cr='\\r'
11184 else
11185 ac_cs_awk_cr=$ac_cr
11186 fi
11187
11188 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11189 _ACEOF
11190
11191
11192 {
11193 echo "cat >conf$$subs.awk <<_ACEOF" &&
11194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11195 echo "_ACEOF"
11196 } >conf$$subs.sh ||
11197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11199 ac_delim='%!_!# '
11200 for ac_last_try in false false false false false :; do
11201 . ./conf$$subs.sh ||
11202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11203
11204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11205 if test $ac_delim_n = $ac_delim_num; then
11206 break
11207 elif $ac_last_try; then
11208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11209 else
11210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11211 fi
11212 done
11213 rm -f conf$$subs.sh
11214
11215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11217 _ACEOF
11218 sed -n '
11219 h
11220 s/^/S["/; s/!.*/"]=/
11221 p
11222 g
11223 s/^[^!]*!//
11224 :repl
11225 t repl
11226 s/'"$ac_delim"'$//
11227 t delim
11228 :nl
11229 h
11230 s/\(.\{148\}\)..*/\1/
11231 t more1
11232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11233 p
11234 n
11235 b repl
11236 :more1
11237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11238 p
11239 g
11240 s/.\{148\}//
11241 t nl
11242 :delim
11243 h
11244 s/\(.\{148\}\)..*/\1/
11245 t more2
11246 s/["\\]/\\&/g; s/^/"/; s/$/"/
11247 p
11248 b
11249 :more2
11250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11251 p
11252 g
11253 s/.\{148\}//
11254 t delim
11255 ' <conf$$subs.awk | sed '
11256 /^[^""]/{
11257 N
11258 s/\n//
11259 }
11260 ' >>$CONFIG_STATUS || ac_write_fail=1
11261 rm -f conf$$subs.awk
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263 _ACAWK
11264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11265 for (key in S) S_is_set[key] = 1
11266 FS = ""
11267
11268 }
11269 {
11270 line = $ 0
11271 nfields = split(line, field, "@")
11272 substed = 0
11273 len = length(field[1])
11274 for (i = 2; i < nfields; i++) {
11275 key = field[i]
11276 keylen = length(key)
11277 if (S_is_set[key]) {
11278 value = S[key]
11279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11280 len += length(value) + length(field[++i])
11281 substed = 1
11282 } else
11283 len += 1 + keylen
11284 }
11285
11286 print line
11287 }
11288
11289 _ACAWK
11290 _ACEOF
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11294 else
11295 cat
11296 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11298 _ACEOF
11299
11300 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11301 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11302 # trailing colons and then remove the whole line if VPATH becomes empty
11303 # (actually we leave an empty line to preserve line numbers).
11304 if test "x$srcdir" = x.; then
11305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11306 h
11307 s///
11308 s/^/:/
11309 s/[ ]*$/:/
11310 s/:\$(srcdir):/:/g
11311 s/:\${srcdir}:/:/g
11312 s/:@srcdir@:/:/g
11313 s/^:*//
11314 s/:*$//
11315 x
11316 s/\(=[ ]*\).*/\1/
11317 G
11318 s/\n//
11319 s/^[^=]*=[ ]*$//
11320 }'
11321 fi
11322
11323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11324 fi # test -n "$CONFIG_FILES"
11325
11326 # Set up the scripts for CONFIG_HEADERS section.
11327 # No need to generate them if there are no CONFIG_HEADERS.
11328 # This happens for instance with `./config.status Makefile'.
11329 if test -n "$CONFIG_HEADERS"; then
11330 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11331 BEGIN {
11332 _ACEOF
11333
11334 # Transform confdefs.h into an awk script `defines.awk', embedded as
11335 # here-document in config.status, that substitutes the proper values into
11336 # config.h.in to produce config.h.
11337
11338 # Create a delimiter string that does not exist in confdefs.h, to ease
11339 # handling of long lines.
11340 ac_delim='%!_!# '
11341 for ac_last_try in false false :; do
11342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11343 if test -z "$ac_tt"; then
11344 break
11345 elif $ac_last_try; then
11346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11347 else
11348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11349 fi
11350 done
11351
11352 # For the awk script, D is an array of macro values keyed by name,
11353 # likewise P contains macro parameters if any. Preserve backslash
11354 # newline sequences.
11355
11356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11357 sed -n '
11358 s/.\{148\}/&'"$ac_delim"'/g
11359 t rset
11360 :rset
11361 s/^[ ]*#[ ]*define[ ][ ]*/ /
11362 t def
11363 d
11364 :def
11365 s/\\$//
11366 t bsnl
11367 s/["\\]/\\&/g
11368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11369 D["\1"]=" \3"/p
11370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11371 d
11372 :bsnl
11373 s/["\\]/\\&/g
11374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11375 D["\1"]=" \3\\\\\\n"\\/p
11376 t cont
11377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11378 t cont
11379 d
11380 :cont
11381 n
11382 s/.\{148\}/&'"$ac_delim"'/g
11383 t clear
11384 :clear
11385 s/\\$//
11386 t bsnlc
11387 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11388 d
11389 :bsnlc
11390 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11391 b cont
11392 ' <confdefs.h | sed '
11393 s/'"$ac_delim"'/"\\\
11394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11395
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 for (key in D) D_is_set[key] = 1
11398 FS = ""
11399 }
11400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11401 line = \$ 0
11402 split(line, arg, " ")
11403 if (arg[1] == "#") {
11404 defundef = arg[2]
11405 mac1 = arg[3]
11406 } else {
11407 defundef = substr(arg[1], 2)
11408 mac1 = arg[2]
11409 }
11410 split(mac1, mac2, "(") #)
11411 macro = mac2[1]
11412 prefix = substr(line, 1, index(line, defundef) - 1)
11413 if (D_is_set[macro]) {
11414 # Preserve the white space surrounding the "#".
11415 print prefix "define", macro P[macro] D[macro]
11416 next
11417 } else {
11418 # Replace #undef with comments. This is necessary, for example,
11419 # in the case of _POSIX_SOURCE, which is predefined and required
11420 # on some systems where configure will not decide to define it.
11421 if (defundef == "undef") {
11422 print "/*", prefix defundef, macro, "*/"
11423 next
11424 }
11425 }
11426 }
11427 { print }
11428 _ACAWK
11429 _ACEOF
11430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11432 fi # test -n "$CONFIG_HEADERS"
11433
11434
11435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11436 shift
11437 for ac_tag
11438 do
11439 case $ac_tag in
11440 :[FHLC]) ac_mode=$ac_tag; continue;;
11441 esac
11442 case $ac_mode$ac_tag in
11443 :[FHL]*:*);;
11444 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11445 :[FH]-) ac_tag=-:-;;
11446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11447 esac
11448 ac_save_IFS=$IFS
11449 IFS=:
11450 set x $ac_tag
11451 IFS=$ac_save_IFS
11452 shift
11453 ac_file=$1
11454 shift
11455
11456 case $ac_mode in
11457 :L) ac_source=$1;;
11458 :[FH])
11459 ac_file_inputs=
11460 for ac_f
11461 do
11462 case $ac_f in
11463 -) ac_f="$ac_tmp/stdin";;
11464 *) # Look for the file first in the build tree, then in the source tree
11465 # (if the path is not absolute). The absolute path cannot be DOS-style,
11466 # because $ac_f cannot contain `:'.
11467 test -f "$ac_f" ||
11468 case $ac_f in
11469 [\\/$]*) false;;
11470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11471 esac ||
11472 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11473 esac
11474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11475 as_fn_append ac_file_inputs " '$ac_f'"
11476 done
11477
11478 # Let's still pretend it is `configure' which instantiates (i.e., don't
11479 # use $as_me), people would be surprised to read:
11480 # /* config.h. Generated by config.status. */
11481 configure_input='Generated from '`
11482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11483 `' by configure.'
11484 if test x"$ac_file" != x-; then
11485 configure_input="$ac_file. $configure_input"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11487 $as_echo "$as_me: creating $ac_file" >&6;}
11488 fi
11489 # Neutralize special characters interpreted by sed in replacement strings.
11490 case $configure_input in #(
11491 *\&* | *\|* | *\\* )
11492 ac_sed_conf_input=`$as_echo "$configure_input" |
11493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11494 *) ac_sed_conf_input=$configure_input;;
11495 esac
11496
11497 case $ac_tag in
11498 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11500 esac
11501 ;;
11502 esac
11503
11504 ac_dir=`$as_dirname -- "$ac_file" ||
11505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$ac_file" : 'X\(//\)[^/]' \| \
11507 X"$ac_file" : 'X\(//\)$' \| \
11508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11509 $as_echo X"$ac_file" |
11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11511 s//\1/
11512 q
11513 }
11514 /^X\(\/\/\)[^/].*/{
11515 s//\1/
11516 q
11517 }
11518 /^X\(\/\/\)$/{
11519 s//\1/
11520 q
11521 }
11522 /^X\(\/\).*/{
11523 s//\1/
11524 q
11525 }
11526 s/.*/./; q'`
11527 as_dir="$ac_dir"; as_fn_mkdir_p
11528 ac_builddir=.
11529
11530 case "$ac_dir" in
11531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11532 *)
11533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11534 # A ".." for each directory in $ac_dir_suffix.
11535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11536 case $ac_top_builddir_sub in
11537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11539 esac ;;
11540 esac
11541 ac_abs_top_builddir=$ac_pwd
11542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11543 # for backward compatibility:
11544 ac_top_builddir=$ac_top_build_prefix
11545
11546 case $srcdir in
11547 .) # We are building in place.
11548 ac_srcdir=.
11549 ac_top_srcdir=$ac_top_builddir_sub
11550 ac_abs_top_srcdir=$ac_pwd ;;
11551 [\\/]* | ?:[\\/]* ) # Absolute name.
11552 ac_srcdir=$srcdir$ac_dir_suffix;
11553 ac_top_srcdir=$srcdir
11554 ac_abs_top_srcdir=$srcdir ;;
11555 *) # Relative name.
11556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11557 ac_top_srcdir=$ac_top_build_prefix$srcdir
11558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11559 esac
11560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11561
11562
11563 case $ac_mode in
11564 :F)
11565 #
11566 # CONFIG_FILE
11567 #
11568
11569 case $INSTALL in
11570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11572 esac
11573 ac_MKDIR_P=$MKDIR_P
11574 case $MKDIR_P in
11575 [\\/$]* | ?:[\\/]* ) ;;
11576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11577 esac
11578 _ACEOF
11579
11580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11581 # If the template does not know about datarootdir, expand it.
11582 # FIXME: This hack should be removed a few years after 2.60.
11583 ac_datarootdir_hack=; ac_datarootdir_seen=
11584 ac_sed_dataroot='
11585 /datarootdir/ {
11586 p
11587 q
11588 }
11589 /@datadir@/p
11590 /@docdir@/p
11591 /@infodir@/p
11592 /@localedir@/p
11593 /@mandir@/p'
11594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11595 *datarootdir*) ac_datarootdir_seen=yes;;
11596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11598 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11599 _ACEOF
11600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601 ac_datarootdir_hack='
11602 s&@datadir@&$datadir&g
11603 s&@docdir@&$docdir&g
11604 s&@infodir@&$infodir&g
11605 s&@localedir@&$localedir&g
11606 s&@mandir@&$mandir&g
11607 s&\\\${datarootdir}&$datarootdir&g' ;;
11608 esac
11609 _ACEOF
11610
11611 # Neutralize VPATH when `$srcdir' = `.'.
11612 # Shell code in configure.ac might set extrasub.
11613 # FIXME: do we really want to maintain this feature?
11614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11615 ac_sed_extra="$ac_vpsub
11616 $extrasub
11617 _ACEOF
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 :t
11620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11621 s|@configure_input@|$ac_sed_conf_input|;t t
11622 s&@top_builddir@&$ac_top_builddir_sub&;t t
11623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11624 s&@srcdir@&$ac_srcdir&;t t
11625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11626 s&@top_srcdir@&$ac_top_srcdir&;t t
11627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11628 s&@builddir@&$ac_builddir&;t t
11629 s&@abs_builddir@&$ac_abs_builddir&;t t
11630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11631 s&@INSTALL@&$ac_INSTALL&;t t
11632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11633 $ac_datarootdir_hack
11634 "
11635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11637
11638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11641 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11643 which seems to be undefined. Please make sure it is defined" >&5
11644 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11645 which seems to be undefined. Please make sure it is defined" >&2;}
11646
11647 rm -f "$ac_tmp/stdin"
11648 case $ac_file in
11649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11651 esac \
11652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11653 ;;
11654 :H)
11655 #
11656 # CONFIG_HEADER
11657 #
11658 if test x"$ac_file" != x-; then
11659 {
11660 $as_echo "/* $configure_input */" \
11661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11662 } >"$ac_tmp/config.h" \
11663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11666 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11667 else
11668 rm -f "$ac_file"
11669 mv "$ac_tmp/config.h" "$ac_file" \
11670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11671 fi
11672 else
11673 $as_echo "/* $configure_input */" \
11674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11675 || as_fn_error $? "could not create -" "$LINENO" 5
11676 fi
11677 # Compute "$ac_file"'s index in $config_headers.
11678 _am_arg="$ac_file"
11679 _am_stamp_count=1
11680 for _am_header in $config_headers :; do
11681 case $_am_header in
11682 $_am_arg | $_am_arg:* )
11683 break ;;
11684 * )
11685 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11686 esac
11687 done
11688 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11689 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11690 X"$_am_arg" : 'X\(//\)[^/]' \| \
11691 X"$_am_arg" : 'X\(//\)$' \| \
11692 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11693 $as_echo X"$_am_arg" |
11694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11695 s//\1/
11696 q
11697 }
11698 /^X\(\/\/\)[^/].*/{
11699 s//\1/
11700 q
11701 }
11702 /^X\(\/\/\)$/{
11703 s//\1/
11704 q
11705 }
11706 /^X\(\/\).*/{
11707 s//\1/
11708 q
11709 }
11710 s/.*/./; q'`/stamp-h$_am_stamp_count
11711 ;;
11712
11713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11714 $as_echo "$as_me: executing $ac_file commands" >&6;}
11715 ;;
11716 esac
11717
11718
11719 case $ac_file$ac_mode in
11720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11721 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11722 # are listed without --file. Let's play safe and only enable the eval
11723 # if we detect the quoting.
11724 case $CONFIG_FILES in
11725 *\'*) eval set x "$CONFIG_FILES" ;;
11726 *) set x $CONFIG_FILES ;;
11727 esac
11728 shift
11729 for mf
11730 do
11731 # Strip MF so we end up with the name of the file.
11732 mf=`echo "$mf" | sed -e 's/:.*$//'`
11733 # Check whether this is an Automake generated Makefile or not.
11734 # We used to match only the files named `Makefile.in', but
11735 # some people rename them; so instead we look at the file content.
11736 # Grep'ing the first line is not enough: some people post-process
11737 # each Makefile.in and add a new line on top of each file to say so.
11738 # Grep'ing the whole file is not good either: AIX grep has a line
11739 # limit of 2048, but all sed's we know have understand at least 4000.
11740 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11741 dirpart=`$as_dirname -- "$mf" ||
11742 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11743 X"$mf" : 'X\(//\)[^/]' \| \
11744 X"$mf" : 'X\(//\)$' \| \
11745 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11746 $as_echo X"$mf" |
11747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11748 s//\1/
11749 q
11750 }
11751 /^X\(\/\/\)[^/].*/{
11752 s//\1/
11753 q
11754 }
11755 /^X\(\/\/\)$/{
11756 s//\1/
11757 q
11758 }
11759 /^X\(\/\).*/{
11760 s//\1/
11761 q
11762 }
11763 s/.*/./; q'`
11764 else
11765 continue
11766 fi
11767 # Extract the definition of DEPDIR, am__include, and am__quote
11768 # from the Makefile without running `make'.
11769 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11770 test -z "$DEPDIR" && continue
11771 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11772 test -z "am__include" && continue
11773 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11774 # When using ansi2knr, U may be empty or an underscore; expand it
11775 U=`sed -n 's/^U = //p' < "$mf"`
11776 # Find all dependency output files, they are included files with
11777 # $(DEPDIR) in their names. We invoke sed twice because it is the
11778 # simplest approach to changing $(DEPDIR) to its actual value in the
11779 # expansion.
11780 for file in `sed -n "
11781 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11782 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11783 # Make sure the directory exists.
11784 test -f "$dirpart/$file" && continue
11785 fdir=`$as_dirname -- "$file" ||
11786 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11787 X"$file" : 'X\(//\)[^/]' \| \
11788 X"$file" : 'X\(//\)$' \| \
11789 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11790 $as_echo X"$file" |
11791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11792 s//\1/
11793 q
11794 }
11795 /^X\(\/\/\)[^/].*/{
11796 s//\1/
11797 q
11798 }
11799 /^X\(\/\/\)$/{
11800 s//\1/
11801 q
11802 }
11803 /^X\(\/\).*/{
11804 s//\1/
11805 q
11806 }
11807 s/.*/./; q'`
11808 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11809 # echo "creating $dirpart/$file"
11810 echo '# dummy' > "$dirpart/$file"
11811 done
11812 done
11813 }
11814 ;;
11815
11816 esac
11817 done # for ac_tag
11818
11819
11820 as_fn_exit 0
11821 _ACEOF
11822 ac_clean_files=$ac_clean_files_save
11823
11824 test $ac_write_fail = 0 ||
11825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11826
11827
11828 # configure is writing to config.log, and then calls config.status.
11829 # config.status does its own redirection, appending to config.log.
11830 # Unfortunately, on DOS this fails, as config.log is still kept open
11831 # by configure, so config.status won't be able to write to it; its
11832 # output is simply discarded. So we exec the FD to /dev/null,
11833 # effectively closing config.log, so it can be properly (re)opened and
11834 # appended to by config.status. When coming back to configure, we
11835 # need to make the FD available again.
11836 if test "$no_create" != yes; then
11837 ac_cs_success=:
11838 ac_config_status_args=
11839 test "$silent" = yes &&
11840 ac_config_status_args="$ac_config_status_args --quiet"
11841 exec 5>/dev/null
11842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11843 exec 5>>config.log
11844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11845 # would make configure fail if this is the last instruction.
11846 $ac_cs_success || as_fn_exit 1
11847 fi
11848 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11850 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11851 fi
11852
11853