configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mkfontscale 1.1.1.
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.1'
565 PACKAGE_STRING='mkfontscale 1.1.1'
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 MAN_SUBSTS
619 XORG_MAN_PAGE
620 ADMIN_MAN_DIR
621 DRIVER_MAN_DIR
622 MISC_MAN_DIR
623 FILE_MAN_DIR
624 LIB_MAN_DIR
625 APP_MAN_DIR
626 ADMIN_MAN_SUFFIX
627 DRIVER_MAN_SUFFIX
628 MISC_MAN_SUFFIX
629 FILE_MAN_SUFFIX
630 LIB_MAN_SUFFIX
631 APP_MAN_SUFFIX
632 SED
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 INSTALL_CMD
642 PKG_CONFIG
643 CHANGELOG_CMD
644 STRICT_CFLAGS
645 CWARNFLAGS
646 BASE_CFLAGS
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 AM_BACKSLASH
651 AM_DEFAULT_VERBOSITY
652 AM_DEFAULT_V
653 AM_V
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 am__nodep
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 EGREP
688 GREP
689 CPP
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_dependency_tracking
739 enable_silent_rules
740 enable_maintainer_mode
741 enable_selective_werror
742 enable_strict_compilation
743 with_bzip2
744 with_lint
745 '
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
749 CC
750 CFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
754 CPP
755 PKG_CONFIG
756 MKFONTSCALE_CFLAGS
757 MKFONTSCALE_LIBS
758 X11_CFLAGS
759 X11_LIBS
760 LINT
761 LINT_FLAGS'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *=) ac_optarg= ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190 do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures mkfontscale 1.1.1 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of mkfontscale 1.1.1:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-dependency-tracking
1383 do not reject slow dependency extractors
1384 --disable-dependency-tracking
1385 speeds up one-time build
1386 --enable-silent-rules less verbose build output (undo: "make V=1")
1387 --disable-silent-rules verbose build output (undo: "make V=0")
1388 --enable-maintainer-mode
1389 enable make rules and dependencies not useful (and
1390 sometimes confusing) to the casual installer
1391 --disable-selective-werror
1392 Turn off selective compiler errors. (default:
1393 enabled)
1394 --enable-strict-compilation
1395 Enable all warnings from compiler and make them
1396 errors (default: disabled)
1397
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-bzip2 Support bzip2 compressed bitmap fonts
1402 --with-lint Use a lint-style source code checker (default:
1403 disabled)
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 PKG_CONFIG path to pkg-config utility
1415 MKFONTSCALE_CFLAGS
1416 C compiler flags for MKFONTSCALE, overriding pkg-config
1417 MKFONTSCALE_LIBS
1418 linker flags for MKFONTSCALE, overriding pkg-config
1419 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1420 X11_LIBS linker flags for X11, overriding pkg-config
1421 LINT Path to a lint-style command
1422 LINT_FLAGS Flags for the lint-style command
1423
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 mkfontscale configure 1.1.1
1491 generated by GNU Autoconf 2.68
1492
1493 Copyright (C) 2010 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1498 fi
1499
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1503
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540 } # ac_fn_c_try_compile
1541
1542 # ac_fn_c_try_cpp LINENO
1543 # ----------------------
1544 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_cpp ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_cpp conftest.$ac_ext"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } > conftest.i && {
1564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 }; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_cpp
1578
1579 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1582 # the include files in INCLUDES and setting the cache variable VAR
1583 # accordingly.
1584 ac_fn_c_check_header_mongrel ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if eval \${$3+:} false; then :
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 $as_echo_n "checking for $2... " >&6; }
1590 if eval \${$3+:} false; then :
1591 $as_echo_n "(cached) " >&6
1592 fi
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 else
1597 # Is the header compilable?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1599 $as_echo_n "checking $2 usability... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 $4
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 ac_header_compiler=yes
1607 else
1608 ac_header_compiler=no
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1612 $as_echo "$ac_header_compiler" >&6; }
1613
1614 # Is the header present?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1616 $as_echo_n "checking $2 presence... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_cpp "$LINENO"; then :
1622 ac_header_preproc=yes
1623 else
1624 ac_header_preproc=no
1625 fi
1626 rm -f conftest.err conftest.i conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1628 $as_echo "$ac_header_preproc" >&6; }
1629
1630 # So? What about this header?
1631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632 yes:no: )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1634 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 ;;
1638 no:yes:* )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1640 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1642 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1644 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1646 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 ( $as_echo "## ---------------------------------------------------------------------- ##
1650 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1651 ## ---------------------------------------------------------------------- ##"
1652 ) | sed "s/^/$as_me: WARNING: /" >&2
1653 ;;
1654 esac
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 eval "$3=\$ac_header_compiler"
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_mongrel
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1744 # ---------------------------------------------
1745 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1746 # accordingly.
1747 ac_fn_c_check_decl ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 as_decl_name=`echo $2|sed 's/ *(.*//'`
1751 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1753 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 int
1761 main ()
1762 {
1763 #ifndef $as_decl_name
1764 #ifdef __cplusplus
1765 (void) $as_decl_use;
1766 #else
1767 (void) $as_decl_name;
1768 #endif
1769 #endif
1770
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_decl
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 $as_test_x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1837
1838 It was created by mkfontscale $as_me 1.1.1, which was
1839 generated by GNU Autoconf 2.68. Invocation command line was
1840
1841 $ $0 $@
1842
1843 _ACEOF
1844 exec 5>>config.log
1845 {
1846 cat <<_ASUNAME
1847 ## --------- ##
1848 ## Platform. ##
1849 ## --------- ##
1850
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859
1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1867
1868 _ASUNAME
1869
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 $as_echo "PATH: $as_dir"
1876 done
1877 IFS=$as_save_IFS
1878
1879 } >&5
1880
1881 cat >&5 <<_ACEOF
1882
1883
1884 ## ----------- ##
1885 ## Core tests. ##
1886 ## ----------- ##
1887
1888 _ACEOF
1889
1890
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_configure_args=
1897 ac_configure_args0=
1898 ac_configure_args1=
1899 ac_must_keep_next=false
1900 for ac_pass in 1 2
1901 do
1902 for ac_arg
1903 do
1904 case $ac_arg in
1905 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907 | -silent | --silent | --silen | --sile | --sil)
1908 continue ;;
1909 *\'*)
1910 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 esac
1912 case $ac_pass in
1913 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914 2)
1915 as_fn_append ac_configure_args1 " '$ac_arg'"
1916 if test $ac_must_keep_next = true; then
1917 ac_must_keep_next=false # Got value, back to normal.
1918 else
1919 case $ac_arg in
1920 *=* | --config-cache | -C | -disable-* | --disable-* \
1921 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923 | -with-* | --with-* | -without-* | --without-* | --x)
1924 case "$ac_configure_args0 " in
1925 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1926 esac
1927 ;;
1928 -* ) ac_must_keep_next=true ;;
1929 esac
1930 fi
1931 as_fn_append ac_configure_args " '$ac_arg'"
1932 ;;
1933 esac
1934 done
1935 done
1936 { ac_configure_args0=; unset ac_configure_args0;}
1937 { ac_configure_args1=; unset ac_configure_args1;}
1938
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log. We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945 # Save into config.log some information that might help in debugging.
1946 {
1947 echo
1948
1949 $as_echo "## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##"
1952 echo
1953 # The following way of writing the cache mishandles newlines in values,
1954 (
1955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in #(
1958 *${as_nl}*)
1959 case $ac_var in #(
1960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1962 esac
1963 case $ac_var in #(
1964 _ | IFS | as_nl) ;; #(
1965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966 *) { eval $ac_var=; unset $ac_var;} ;;
1967 esac ;;
1968 esac
1969 done
1970 (set) 2>&1 |
1971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972 *${as_nl}ac_space=\ *)
1973 sed -n \
1974 "s/'\''/'\''\\\\'\'''\''/g;
1975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976 ;; #(
1977 *)
1978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979 ;;
1980 esac |
1981 sort
1982 )
1983 echo
1984
1985 $as_echo "## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##"
1988 echo
1989 for ac_var in $ac_subst_vars
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998
1999 if test -n "$ac_subst_files"; then
2000 $as_echo "## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##"
2003 echo
2004 for ac_var in $ac_subst_files
2005 do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 esac
2010 $as_echo "$ac_var='\''$ac_val'\''"
2011 done | sort
2012 echo
2013 fi
2014
2015 if test -s confdefs.h; then
2016 $as_echo "## ----------- ##
2017 ## confdefs.h. ##
2018 ## ----------- ##"
2019 echo
2020 cat confdefs.h
2021 echo
2022 fi
2023 test "$ac_signal" != 0 &&
2024 $as_echo "$as_me: caught signal $ac_signal"
2025 $as_echo "$as_me: exit $exit_status"
2026 } >&5
2027 rm -f core *.core core.conftest.* &&
2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029 exit $exit_status
2030 ' 0
2031 for ac_signal in 1 2 13 15; do
2032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033 done
2034 ac_signal=0
2035
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2038
2039 $as_echo "/* confdefs.h */" > confdefs.h
2040
2041 # Predefined preprocessor variables.
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_URL "$PACKAGE_URL"
2065 _ACEOF
2066
2067
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2070 ac_site_file1=NONE
2071 ac_site_file2=NONE
2072 if test -n "$CONFIG_SITE"; then
2073 # We do not want a PATH search for config.site.
2074 case $CONFIG_SITE in #((
2075 -*) ac_site_file1=./$CONFIG_SITE;;
2076 */*) ac_site_file1=$CONFIG_SITE;;
2077 *) ac_site_file1=./$CONFIG_SITE;;
2078 esac
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_file1=$prefix/share/config.site
2081 ac_site_file2=$prefix/etc/config.site
2082 else
2083 ac_site_file1=$ac_default_prefix/share/config.site
2084 ac_site_file2=$ac_default_prefix/etc/config.site
2085 fi
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 do
2088 test "x$ac_site_file" = xNONE && continue
2089 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2093 . "$ac_site_file" \
2094 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 as_fn_error $? "failed to load site script $ac_site_file
2097 See \`config.log' for more details" "$LINENO" 5; }
2098 fi
2099 done
2100
2101 if test -r "$cache_file"; then
2102 # Some versions of bash will fail to source /dev/null (special files
2103 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2104 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2106 $as_echo "$as_me: loading cache $cache_file" >&6;}
2107 case $cache_file in
2108 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2109 *) . "./$cache_file";;
2110 esac
2111 fi
2112 else
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2114 $as_echo "$as_me: creating cache $cache_file" >&6;}
2115 >$cache_file
2116 fi
2117
2118 # Check that the precious variables saved in the cache have kept the same
2119 # value.
2120 ac_cache_corrupted=false
2121 for ac_var in $ac_precious_vars; do
2122 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123 eval ac_new_set=\$ac_env_${ac_var}_set
2124 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125 eval ac_new_val=\$ac_env_${ac_var}_value
2126 case $ac_old_set,$ac_new_set in
2127 set,)
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2131 ,set)
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2135 ,);;
2136 *)
2137 if test "x$ac_old_val" != "x$ac_new_val"; then
2138 # differences in whitespace do not lead to failure.
2139 ac_old_val_w=`echo x $ac_old_val`
2140 ac_new_val_w=`echo x $ac_new_val`
2141 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144 ac_cache_corrupted=:
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148 eval $ac_var=\$ac_old_val
2149 fi
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2151 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2153 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2154 fi;;
2155 esac
2156 # Pass precious variables to config.status.
2157 if test "$ac_new_set" = set; then
2158 case $ac_new_val in
2159 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 *) ac_arg=$ac_var=$ac_new_val ;;
2161 esac
2162 case " $ac_configure_args " in
2163 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2165 esac
2166 fi
2167 done
2168 if $ac_cache_corrupted; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2174 fi
2175 ## -------------------- ##
2176 ## Main body of script. ##
2177 ## -------------------- ##
2178
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
2185
2186
2187 ac_config_headers="$ac_config_headers config.h"
2188
2189 # expand $ac_aux_dir to an absolute path
2190 am_aux_dir=`cd $ac_aux_dir && pwd`
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2201 $as_echo_n "checking for $ac_word... " >&6; }
2202 if ${ac_cv_prog_CC+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2228 $as_echo "$CC" >&6; }
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2231 $as_echo "no" >&6; }
2232 fi
2233
2234
2235 fi
2236 if test -z "$ac_cv_prog_CC"; then
2237 ac_ct_CC=$CC
2238 # Extract the first word of "gcc", so it can be a program name with args.
2239 set dummy gcc; ac_word=$2
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 if test -n "$ac_ct_CC"; then
2246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_CC="gcc"
2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264 fi
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2268 $as_echo "$ac_ct_CC" >&6; }
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2271 $as_echo "no" >&6; }
2272 fi
2273
2274 if test "x$ac_ct_CC" = x; then
2275 CC=""
2276 else
2277 case $cross_compiling:$ac_tool_warned in
2278 yes:)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2281 ac_tool_warned=yes ;;
2282 esac
2283 CC=$ac_ct_CC
2284 fi
2285 else
2286 CC="$ac_cv_prog_CC"
2287 fi
2288
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}cc; ac_word=$2
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294 $as_echo_n "checking for $ac_word... " >&6; }
2295 if ${ac_cv_prog_CC+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_CC="${ac_tool_prefix}cc"
2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 $as_echo "$CC" >&6; }
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2325 fi
2326
2327
2328 fi
2329 fi
2330 if test -z "$CC"; then
2331 # Extract the first word of "cc", so it can be a program name with args.
2332 set dummy cc; ac_word=$2
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if ${ac_cv_prog_CC+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 else
2341 ac_prog_rejected=no
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2350 ac_prog_rejected=yes
2351 continue
2352 fi
2353 ac_cv_prog_CC="cc"
2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 if test $ac_prog_rejected = yes; then
2362 # We found a bogon in the path, so make sure we never use it.
2363 set dummy $ac_cv_prog_CC
2364 shift
2365 if test $# != 0; then
2366 # We chose a different compiler from the bogus one.
2367 # However, it has the same basename, so the bogon will be chosen
2368 # first if we set CC to just the basename; use the full file name.
2369 shift
2370 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2371 fi
2372 fi
2373 fi
2374 fi
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384
2385 fi
2386 if test -z "$CC"; then
2387 if test -n "$ac_tool_prefix"; then
2388 for ac_prog in cl.exe
2389 do
2390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393 $as_echo_n "checking for $ac_word... " >&6; }
2394 if ${ac_cv_prog_CC+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2420 $as_echo "$CC" >&6; }
2421 else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423 $as_echo "no" >&6; }
2424 fi
2425
2426
2427 test -n "$CC" && break
2428 done
2429 fi
2430 if test -z "$CC"; then
2431 ac_ct_CC=$CC
2432 for ac_prog in cl.exe
2433 do
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_CC="$ac_prog"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462 if test -n "$ac_ct_CC"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2464 $as_echo "$ac_ct_CC" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470
2471 test -n "$ac_ct_CC" && break
2472 done
2473
2474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2481 ac_tool_warned=yes ;;
2482 esac
2483 CC=$ac_ct_CC
2484 fi
2485 fi
2486
2487 fi
2488
2489
2490 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 as_fn_error $? "no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details" "$LINENO" 5; }
2494
2495 # Provide some information about the compiler.
2496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2497 set X $ac_compile
2498 ac_compiler=$2
2499 for ac_option in --version -v -V -qversion; do
2500 { { ac_try="$ac_compiler $ac_option >&5"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2508 ac_status=$?
2509 if test -s conftest.err; then
2510 sed '10a\
2511 ... rest of stderr output deleted ...
2512 10q' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 fi
2515 rm -f conftest.er1 conftest.err
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; }
2518 done
2519
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2522
2523 int
2524 main ()
2525 {
2526
2527 ;
2528 return 0;
2529 }
2530 _ACEOF
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2535 # of exeext.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2537 $as_echo_n "checking whether the C compiler works... " >&6; }
2538 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539
2540 # The possible output files:
2541 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2542
2543 ac_rmfiles=
2544 for ac_file in $ac_files
2545 do
2546 case $ac_file in
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2548 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2549 esac
2550 done
2551 rm -f $ac_rmfiles
2552
2553 if { { ac_try="$ac_link_default"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2559 $as_echo "$ac_try_echo"; } >&5
2560 (eval "$ac_link_default") 2>&5
2561 ac_status=$?
2562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563 test $ac_status = 0; }; then :
2564 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2565 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2566 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2567 # so that the user can short-circuit this test for compilers unknown to
2568 # Autoconf.
2569 for ac_file in $ac_files ''
2570 do
2571 test -f "$ac_file" || continue
2572 case $ac_file in
2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2574 ;;
2575 [ab].out )
2576 # We found the default executable, but exeext='' is most
2577 # certainly right.
2578 break;;
2579 *.* )
2580 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2581 then :; else
2582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 fi
2584 # We set ac_cv_exeext here because the later test for it is not
2585 # safe: cross compilers may not add the suffix if given an `-o'
2586 # argument, so we may need to know it at that point already.
2587 # Even if this section looks crufty: it has the advantage of
2588 # actually working.
2589 break;;
2590 * )
2591 break;;
2592 esac
2593 done
2594 test "$ac_cv_exeext" = no && ac_cv_exeext=
2595
2596 else
2597 ac_file=''
2598 fi
2599 if test -z "$ac_file"; then :
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error 77 "C compiler cannot create executables
2608 See \`config.log' for more details" "$LINENO" 5; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2614 $as_echo_n "checking for C compiler default output file name... " >&6; }
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2616 $as_echo "$ac_file" >&6; }
2617 ac_exeext=$ac_cv_exeext
2618
2619 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2622 $as_echo_n "checking for suffix of executables... " >&6; }
2623 if { { ac_try="$ac_link"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>&5
2631 ac_status=$?
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; }; then :
2634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2637 # `rm'.
2638 for ac_file in conftest.exe conftest conftest.*; do
2639 test -f "$ac_file" || continue
2640 case $ac_file in
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643 break;;
2644 * ) break;;
2645 esac
2646 done
2647 else
2648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2651 See \`config.log' for more details" "$LINENO" 5; }
2652 fi
2653 rm -f conftest conftest$ac_cv_exeext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2655 $as_echo "$ac_cv_exeext" >&6; }
2656
2657 rm -f conftest.$ac_ext
2658 EXEEXT=$ac_cv_exeext
2659 ac_exeext=$EXEEXT
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 #include <stdio.h>
2663 int
2664 main ()
2665 {
2666 FILE *f = fopen ("conftest.out", "w");
2667 return ferror (f) || fclose (f) != 0;
2668
2669 ;
2670 return 0;
2671 }
2672 _ACEOF
2673 ac_clean_files="$ac_clean_files conftest.out"
2674 # Check that the compiler produces executables we can run. If not, either
2675 # the compiler is broken, or we cross compile.
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2677 $as_echo_n "checking whether we are cross compiling... " >&6; }
2678 if test "$cross_compiling" != yes; then
2679 { { ac_try="$ac_link"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link") 2>&5
2687 ac_status=$?
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; }
2690 if { ac_try='./conftest$ac_cv_exeext'
2691 { { case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_try") 2>&5
2698 ac_status=$?
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }; }; then
2701 cross_compiling=no
2702 else
2703 if test "$cross_compiling" = maybe; then
2704 cross_compiling=yes
2705 else
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details" "$LINENO" 5; }
2711 fi
2712 fi
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2715 $as_echo "$cross_compiling" >&6; }
2716
2717 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2718 ac_clean_files=$ac_clean_files_save
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2720 $as_echo_n "checking for suffix of object files... " >&6; }
2721 if ${ac_cv_objext+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2726
2727 int
2728 main ()
2729 {
2730
2731 ;
2732 return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.o conftest.obj
2736 if { { ac_try="$ac_compile"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_compile") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; then :
2747 for ac_file in conftest.o conftest.obj conftest.*; do
2748 test -f "$ac_file" || continue;
2749 case $ac_file in
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2752 break;;
2753 esac
2754 done
2755 else
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 as_fn_error $? "cannot compute suffix of object files: cannot compile
2762 See \`config.log' for more details" "$LINENO" 5; }
2763 fi
2764 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2767 $as_echo "$ac_cv_objext" >&6; }
2768 OBJEXT=$ac_cv_objext
2769 ac_objext=$OBJEXT
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2772 if ${ac_cv_c_compiler_gnu+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777
2778 int
2779 main ()
2780 {
2781 #ifndef __GNUC__
2782 choke me
2783 #endif
2784
2785 ;
2786 return 0;
2787 }
2788 _ACEOF
2789 if ac_fn_c_try_compile "$LINENO"; then :
2790 ac_compiler_gnu=yes
2791 else
2792 ac_compiler_gnu=no
2793 fi
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2796
2797 fi
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2799 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2800 if test $ac_compiler_gnu = yes; then
2801 GCC=yes
2802 else
2803 GCC=
2804 fi
2805 ac_test_CFLAGS=${CFLAGS+set}
2806 ac_save_CFLAGS=$CFLAGS
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2808 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2809 if ${ac_cv_prog_cc_g+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 ac_save_c_werror_flag=$ac_c_werror_flag
2813 ac_c_werror_flag=yes
2814 ac_cv_prog_cc_g=no
2815 CFLAGS="-g"
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818
2819 int
2820 main ()
2821 {
2822
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 if ac_fn_c_try_compile "$LINENO"; then :
2828 ac_cv_prog_cc_g=yes
2829 else
2830 CFLAGS=""
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2833
2834 int
2835 main ()
2836 {
2837
2838 ;
2839 return 0;
2840 }
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2843
2844 else
2845 ac_c_werror_flag=$ac_save_c_werror_flag
2846 CFLAGS="-g"
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2849
2850 int
2851 main ()
2852 {
2853
2854 ;
2855 return 0;
2856 }
2857 _ACEOF
2858 if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_cv_prog_cc_g=yes
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_c_werror_flag=$ac_save_c_werror_flag
2867 fi
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2869 $as_echo "$ac_cv_prog_cc_g" >&6; }
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2874 CFLAGS="-g -O2"
2875 else
2876 CFLAGS="-g"
2877 fi
2878 else
2879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2883 fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2886 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2887 if ${ac_cv_prog_cc_c89+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 ac_cv_prog_cc_c89=no
2891 ac_save_CC=$CC
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894 #include <stdarg.h>
2895 #include <stdio.h>
2896 #include <sys/types.h>
2897 #include <sys/stat.h>
2898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2899 struct buf { int x; };
2900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901 static char *e (p, i)
2902 char **p;
2903 int i;
2904 {
2905 return p[i];
2906 }
2907 static char *f (char * (*g) (char **, int), char **p, ...)
2908 {
2909 char *s;
2910 va_list v;
2911 va_start (v,p);
2912 s = g (p, va_arg (v,int));
2913 va_end (v);
2914 return s;
2915 }
2916
2917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2918 function prototypes and stuff, but not '\xHH' hex character constants.
2919 These don't provoke an error unfortunately, instead are silently treated
2920 as 'x'. The following induces an error, until -std is added to get
2921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2922 array size at least. It's necessary to write '\x00'==0 to get something
2923 that's true only with -std. */
2924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2925
2926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927 inside strings and character constants. */
2928 #define FOO(x) 'x'
2929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2930
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 int argc;
2936 char **argv;
2937 int
2938 main ()
2939 {
2940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2947 do
2948 CC="$ac_save_CC $ac_arg"
2949 if ac_fn_c_try_compile "$LINENO"; then :
2950 ac_cv_prog_cc_c89=$ac_arg
2951 fi
2952 rm -f core conftest.err conftest.$ac_objext
2953 test "x$ac_cv_prog_cc_c89" != "xno" && break
2954 done
2955 rm -f conftest.$ac_ext
2956 CC=$ac_save_CC
2957
2958 fi
2959 # AC_CACHE_VAL
2960 case "x$ac_cv_prog_cc_c89" in
2961 x)
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2963 $as_echo "none needed" >&6; } ;;
2964 xno)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2966 $as_echo "unsupported" >&6; } ;;
2967 *)
2968 CC="$CC $ac_cv_prog_cc_c89"
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2970 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2971 esac
2972 if test "x$ac_cv_prog_cc_c89" != xno; then :
2973
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
2988 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
2989 if ${am_cv_prog_cc_c_o+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994
2995 int
2996 main ()
2997 {
2998
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 # Make sure it works both with $CC and with simple cc.
3004 # Following AC_PROG_CC_C_O, we do the test twice because some
3005 # compilers refuse to overwrite an existing .o file with -o,
3006 # though they will create one.
3007 am_cv_prog_cc_c_o=yes
3008 for am_i in 1 2; do
3009 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3010 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } \
3014 && test -f conftest2.$ac_objext; then
3015 : OK
3016 else
3017 am_cv_prog_cc_c_o=no
3018 break
3019 fi
3020 done
3021 rm -f core conftest*
3022 unset am_i
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3025 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3026 if test "$am_cv_prog_cc_c_o" != yes; then
3027 # Losing compiler, so override with the script.
3028 # FIXME: It is wrong to rewrite CC.
3029 # But if we don't then we get into trouble of one sort or another.
3030 # A longer-term fix would be to have automake use am__CC in this case,
3031 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3032 CC="$am_aux_dir/compile $CC"
3033 fi
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3049 # On Suns, sometimes $CPP names a directory.
3050 if test -n "$CPP" && test -d "$CPP"; then
3051 CPP=
3052 fi
3053 if test -z "$CPP"; then
3054 if ${ac_cv_prog_CPP+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 # Double quotes because CPP needs to be expanded
3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3059 do
3060 ac_preproc_ok=false
3061 for ac_c_preproc_warn_flag in '' yes
3062 do
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071 #ifdef __STDC__
3072 # include <limits.h>
3073 #else
3074 # include <assert.h>
3075 #endif
3076 Syntax error
3077 _ACEOF
3078 if ac_fn_c_try_cpp "$LINENO"; then :
3079
3080 else
3081 # Broken: fails on valid input.
3082 continue
3083 fi
3084 rm -f conftest.err conftest.i conftest.$ac_ext
3085
3086 # OK, works on sane cases. Now check whether nonexistent headers
3087 # can be detected and how.
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if ac_fn_c_try_cpp "$LINENO"; then :
3093 # Broken: success on invalid input.
3094 continue
3095 else
3096 # Passes both tests.
3097 ac_preproc_ok=:
3098 break
3099 fi
3100 rm -f conftest.err conftest.i conftest.$ac_ext
3101
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.i conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then :
3106 break
3107 fi
3108
3109 done
3110 ac_cv_prog_CPP=$CPP
3111
3112 fi
3113 CPP=$ac_cv_prog_CPP
3114 else
3115 ac_cv_prog_CPP=$CPP
3116 fi
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3118 $as_echo "$CPP" >&6; }
3119 ac_preproc_ok=false
3120 for ac_c_preproc_warn_flag in '' yes
3121 do
3122 # Use a header file that comes with gcc, so configuring glibc
3123 # with a fresh cross-compiler works.
3124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125 # <limits.h> exists even on freestanding compilers.
3126 # On the NeXT, cc -E runs the code through the compiler's parser,
3127 # not just through cpp. "Syntax error" is here to catch this case.
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130 #ifdef __STDC__
3131 # include <limits.h>
3132 #else
3133 # include <assert.h>
3134 #endif
3135 Syntax error
3136 _ACEOF
3137 if ac_fn_c_try_cpp "$LINENO"; then :
3138
3139 else
3140 # Broken: fails on valid input.
3141 continue
3142 fi
3143 rm -f conftest.err conftest.i conftest.$ac_ext
3144
3145 # OK, works on sane cases. Now check whether nonexistent headers
3146 # can be detected and how.
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149 #include <ac_nonexistent.h>
3150 _ACEOF
3151 if ac_fn_c_try_cpp "$LINENO"; then :
3152 # Broken: success on invalid input.
3153 continue
3154 else
3155 # Passes both tests.
3156 ac_preproc_ok=:
3157 break
3158 fi
3159 rm -f conftest.err conftest.i conftest.$ac_ext
3160
3161 done
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.i conftest.err conftest.$ac_ext
3164 if $ac_preproc_ok; then :
3165
3166 else
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3170 See \`config.log' for more details" "$LINENO" 5; }
3171 fi
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3182 if ${ac_cv_path_GREP+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -z "$GREP"; then
3186 ac_path_GREP_found=false
3187 # Loop through the user's path and test for each of PROGNAME-LIST
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_prog in grep ggrep; do
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3197 # Check for GNU ac_path_GREP and select it if it is found.
3198 # Check for GNU $ac_path_GREP
3199 case `"$ac_path_GREP" --version 2>&1` in
3200 *GNU*)
3201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3202 *)
3203 ac_count=0
3204 $as_echo_n 0123456789 >"conftest.in"
3205 while :
3206 do
3207 cat "conftest.in" "conftest.in" >"conftest.tmp"
3208 mv "conftest.tmp" "conftest.in"
3209 cp "conftest.in" "conftest.nl"
3210 $as_echo 'GREP' >> "conftest.nl"
3211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3213 as_fn_arith $ac_count + 1 && ac_count=$as_val
3214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3215 # Best one so far, save it but keep looking for a better one
3216 ac_cv_path_GREP="$ac_path_GREP"
3217 ac_path_GREP_max=$ac_count
3218 fi
3219 # 10*(2^10) chars as input seems more than enough
3220 test $ac_count -gt 10 && break
3221 done
3222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3223 esac
3224
3225 $ac_path_GREP_found && break 3
3226 done
3227 done
3228 done
3229 IFS=$as_save_IFS
3230 if test -z "$ac_cv_path_GREP"; then
3231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3232 fi
3233 else
3234 ac_cv_path_GREP=$GREP
3235 fi
3236
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3239 $as_echo "$ac_cv_path_GREP" >&6; }
3240 GREP="$ac_cv_path_GREP"
3241
3242
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3244 $as_echo_n "checking for egrep... " >&6; }
3245 if ${ac_cv_path_EGREP+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3249 then ac_cv_path_EGREP="$GREP -E"
3250 else
3251 if test -z "$EGREP"; then
3252 ac_path_EGREP_found=false
3253 # Loop through the user's path and test for each of PROGNAME-LIST
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_prog in egrep; do
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3263 # Check for GNU ac_path_EGREP and select it if it is found.
3264 # Check for GNU $ac_path_EGREP
3265 case `"$ac_path_EGREP" --version 2>&1` in
3266 *GNU*)
3267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3268 *)
3269 ac_count=0
3270 $as_echo_n 0123456789 >"conftest.in"
3271 while :
3272 do
3273 cat "conftest.in" "conftest.in" >"conftest.tmp"
3274 mv "conftest.tmp" "conftest.in"
3275 cp "conftest.in" "conftest.nl"
3276 $as_echo 'EGREP' >> "conftest.nl"
3277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3279 as_fn_arith $ac_count + 1 && ac_count=$as_val
3280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3281 # Best one so far, save it but keep looking for a better one
3282 ac_cv_path_EGREP="$ac_path_EGREP"
3283 ac_path_EGREP_max=$ac_count
3284 fi
3285 # 10*(2^10) chars as input seems more than enough
3286 test $ac_count -gt 10 && break
3287 done
3288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3289 esac
3290
3291 $ac_path_EGREP_found && break 3
3292 done
3293 done
3294 done
3295 IFS=$as_save_IFS
3296 if test -z "$ac_cv_path_EGREP"; then
3297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3298 fi
3299 else
3300 ac_cv_path_EGREP=$EGREP
3301 fi
3302
3303 fi
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3306 $as_echo "$ac_cv_path_EGREP" >&6; }
3307 EGREP="$ac_cv_path_EGREP"
3308
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3311 $as_echo_n "checking for ANSI C header files... " >&6; }
3312 if ${ac_cv_header_stdc+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317 #include <stdlib.h>
3318 #include <stdarg.h>
3319 #include <string.h>
3320 #include <float.h>
3321
3322 int
3323 main ()
3324 {
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_header_stdc=yes
3332 else
3333 ac_cv_header_stdc=no
3334 fi
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336
3337 if test $ac_cv_header_stdc = yes; then
3338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341 #include <string.h>
3342
3343 _ACEOF
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "memchr" >/dev/null 2>&1; then :
3346
3347 else
3348 ac_cv_header_stdc=no
3349 fi
3350 rm -f conftest*
3351
3352 fi
3353
3354 if test $ac_cv_header_stdc = yes; then
3355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdlib.h>
3359
3360 _ACEOF
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 $EGREP "free" >/dev/null 2>&1; then :
3363
3364 else
3365 ac_cv_header_stdc=no
3366 fi
3367 rm -f conftest*
3368
3369 fi
3370
3371 if test $ac_cv_header_stdc = yes; then
3372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3373 if test "$cross_compiling" = yes; then :
3374 :
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ctype.h>
3379 #include <stdlib.h>
3380 #if ((' ' & 0x0FF) == 0x020)
3381 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3382 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3383 #else
3384 # define ISLOWER(c) \
3385 (('a' <= (c) && (c) <= 'i') \
3386 || ('j' <= (c) && (c) <= 'r') \
3387 || ('s' <= (c) && (c) <= 'z'))
3388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3389 #endif
3390
3391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3392 int
3393 main ()
3394 {
3395 int i;
3396 for (i = 0; i < 256; i++)
3397 if (XOR (islower (i), ISLOWER (i))
3398 || toupper (i) != TOUPPER (i))
3399 return 2;
3400 return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_c_try_run "$LINENO"; then :
3404
3405 else
3406 ac_cv_header_stdc=no
3407 fi
3408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3409 conftest.$ac_objext conftest.beam conftest.$ac_ext
3410 fi
3411
3412 fi
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3415 $as_echo "$ac_cv_header_stdc" >&6; }
3416 if test $ac_cv_header_stdc = yes; then
3417
3418 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3419
3420 fi
3421
3422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3424 inttypes.h stdint.h unistd.h
3425 do :
3426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3428 "
3429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3430 cat >>confdefs.h <<_ACEOF
3431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3432 _ACEOF
3433
3434 fi
3435
3436 done
3437
3438
3439
3440 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3441 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3442 MINIX=yes
3443 else
3444 MINIX=
3445 fi
3446
3447
3448 if test "$MINIX" = yes; then
3449
3450 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3451
3452
3453 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3454
3455
3456 $as_echo "#define _MINIX 1" >>confdefs.h
3457
3458 fi
3459
3460
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3463 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 # define __EXTENSIONS__ 1
3470 $ac_includes_default
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_safe_to_define___extensions__=yes
3481 else
3482 ac_cv_safe_to_define___extensions__=no
3483 fi
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3488 test $ac_cv_safe_to_define___extensions__ = yes &&
3489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3490
3491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3492
3493 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3494
3495 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3496
3497 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3498
3499
3500
3501 # Initialize Automake
3502 am__api_version='1.14'
3503
3504 ac_aux_dir=
3505 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3506 if test -f "$ac_dir/install-sh"; then
3507 ac_aux_dir=$ac_dir
3508 ac_install_sh="$ac_aux_dir/install-sh -c"
3509 break
3510 elif test -f "$ac_dir/install.sh"; then
3511 ac_aux_dir=$ac_dir
3512 ac_install_sh="$ac_aux_dir/install.sh -c"
3513 break
3514 elif test -f "$ac_dir/shtool"; then
3515 ac_aux_dir=$ac_dir
3516 ac_install_sh="$ac_aux_dir/shtool install -c"
3517 break
3518 fi
3519 done
3520 if test -z "$ac_aux_dir"; then
3521 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3522 fi
3523
3524 # These three variables are undocumented and unsupported,
3525 # and are intended to be withdrawn in a future Autoconf release.
3526 # They can cause serious problems if a builder's source tree is in a directory
3527 # whose full name contains unusual characters.
3528 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3529 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3530 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3531
3532
3533 # Find a good install program. We prefer a C program (faster),
3534 # so one script is as good as another. But avoid the broken or
3535 # incompatible versions:
3536 # SysV /etc/install, /usr/sbin/install
3537 # SunOS /usr/etc/install
3538 # IRIX /sbin/install
3539 # AIX /bin/install
3540 # AmigaOS /C/install, which installs bootblocks on floppy discs
3541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3544 # OS/2's system install, which has a completely different semantic
3545 # ./install, which can be erroneously created by make from ./install.sh.
3546 # Reject install programs that cannot install multiple files.
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3548 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3549 if test -z "$INSTALL"; then
3550 if ${ac_cv_path_install+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 # Account for people who put trailing slashes in PATH elements.
3559 case $as_dir/ in #((
3560 ./ | .// | /[cC]/* | \
3561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3563 /usr/ucb/* ) ;;
3564 *)
3565 # OSF1 and SCO ODT 3.0 have their own names for install.
3566 # Don't use installbsd from OSF since it installs stuff as root
3567 # by default.
3568 for ac_prog in ginstall scoinst install; do
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3571 if test $ac_prog = install &&
3572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3573 # AIX install. It has an incompatible calling convention.
3574 :
3575 elif test $ac_prog = install &&
3576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3577 # program-specific install script used by HP pwplus--don't use.
3578 :
3579 else
3580 rm -rf conftest.one conftest.two conftest.dir
3581 echo one > conftest.one
3582 echo two > conftest.two
3583 mkdir conftest.dir
3584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3585 test -s conftest.one && test -s conftest.two &&
3586 test -s conftest.dir/conftest.one &&
3587 test -s conftest.dir/conftest.two
3588 then
3589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3590 break 3
3591 fi
3592 fi
3593 fi
3594 done
3595 done
3596 ;;
3597 esac
3598
3599 done
3600 IFS=$as_save_IFS
3601
3602 rm -rf conftest.one conftest.two conftest.dir
3603
3604 fi
3605 if test "${ac_cv_path_install+set}" = set; then
3606 INSTALL=$ac_cv_path_install
3607 else
3608 # As a last resort, use the slow shell script. Don't cache a
3609 # value for INSTALL within a source directory, because that will
3610 # break other packages using the cache if that directory is
3611 # removed, or if the value is a relative name.
3612 INSTALL=$ac_install_sh
3613 fi
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3616 $as_echo "$INSTALL" >&6; }
3617
3618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3619 # It thinks the first close brace ends the variable substitution.
3620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3621
3622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3623
3624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3627 $as_echo_n "checking whether build environment is sane... " >&6; }
3628 # Reject unsafe characters in $srcdir or the absolute working directory
3629 # name. Accept space and tab only in the latter.
3630 am_lf='
3631 '
3632 case `pwd` in
3633 *[\\\"\#\$\&\'\`$am_lf]*)
3634 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3635 esac
3636 case $srcdir in
3637 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3638 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3639 esac
3640
3641 # Do 'set' in a subshell so we don't clobber the current shell's
3642 # arguments. Must try -L first in case configure is actually a
3643 # symlink; some systems play weird games with the mod time of symlinks
3644 # (eg FreeBSD returns the mod time of the symlink's containing
3645 # directory).
3646 if (
3647 am_has_slept=no
3648 for am_try in 1 2; do
3649 echo "timestamp, slept: $am_has_slept" > conftest.file
3650 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3651 if test "$*" = "X"; then
3652 # -L didn't work.
3653 set X `ls -t "$srcdir/configure" conftest.file`
3654 fi
3655 if test "$*" != "X $srcdir/configure conftest.file" \
3656 && test "$*" != "X conftest.file $srcdir/configure"; then
3657
3658 # If neither matched, then we have a broken ls. This can happen
3659 # if, for instance, CONFIG_SHELL is bash and it inherits a
3660 # broken ls alias from the environment. This has actually
3661 # happened. Such a system could not be considered "sane".
3662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3663 alias in your environment" "$LINENO" 5
3664 fi
3665 if test "$2" = conftest.file || test $am_try -eq 2; then
3666 break
3667 fi
3668 # Just in case.
3669 sleep 1
3670 am_has_slept=yes
3671 done
3672 test "$2" = conftest.file
3673 )
3674 then
3675 # Ok.
3676 :
3677 else
3678 as_fn_error $? "newly created file is older than distributed files!
3679 Check your system clock" "$LINENO" 5
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3683 # If we didn't sleep, we still need to ensure time stamps of config.status and
3684 # generated files are strictly newer.
3685 am_sleep_pid=
3686 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3687 ( sleep 1 ) &
3688 am_sleep_pid=$!
3689 fi
3690
3691 rm -f conftest.file
3692
3693 test "$program_prefix" != NONE &&
3694 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3695 # Use a double $ so make ignores it.
3696 test "$program_suffix" != NONE &&
3697 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3698 # Double any \ or $.
3699 # By default was `s,x,x', remove it if useless.
3700 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3701 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3702
3703 if test x"${MISSING+set}" != xset; then
3704 case $am_aux_dir in
3705 *\ * | *\ *)
3706 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3707 *)
3708 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3709 esac
3710 fi
3711 # Use eval to expand $SHELL
3712 if eval "$MISSING --is-lightweight"; then
3713 am_missing_run="$MISSING "
3714 else
3715 am_missing_run=
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3717 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3718 fi
3719
3720 if test x"${install_sh}" != xset; then
3721 case $am_aux_dir in
3722 *\ * | *\ *)
3723 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3724 *)
3725 install_sh="\${SHELL} $am_aux_dir/install-sh"
3726 esac
3727 fi
3728
3729 # Installed binaries are usually stripped using 'strip' when the user
3730 # run "make install-strip". However 'strip' might not be the right
3731 # tool to use in cross-compilation environments, therefore Automake
3732 # will honor the 'STRIP' environment variable to overrule this program.
3733 if test "$cross_compiling" != no; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}strip; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_STRIP+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$STRIP"; then
3743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 STRIP=$ac_cv_prog_STRIP
3763 if test -n "$STRIP"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3765 $as_echo "$STRIP" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 if test -z "$ac_cv_prog_STRIP"; then
3774 ac_ct_STRIP=$STRIP
3775 # Extract the first word of "strip", so it can be a program name with args.
3776 set dummy strip; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$ac_ct_STRIP"; then
3783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 ac_cv_prog_ac_ct_STRIP="strip"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796 done
3797 done
3798 IFS=$as_save_IFS
3799
3800 fi
3801 fi
3802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3803 if test -n "$ac_ct_STRIP"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3805 $as_echo "$ac_ct_STRIP" >&6; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3809 fi
3810
3811 if test "x$ac_ct_STRIP" = x; then
3812 STRIP=":"
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 STRIP=$ac_ct_STRIP
3821 fi
3822 else
3823 STRIP="$ac_cv_prog_STRIP"
3824 fi
3825
3826 fi
3827 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3830 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3831 if test -z "$MKDIR_P"; then
3832 if ${ac_cv_path_mkdir+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3837 do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_prog in mkdir gmkdir; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3843 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3844 'mkdir (GNU coreutils) '* | \
3845 'mkdir (coreutils) '* | \
3846 'mkdir (fileutils) '4.1*)
3847 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3848 break 3;;
3849 esac
3850 done
3851 done
3852 done
3853 IFS=$as_save_IFS
3854
3855 fi
3856
3857 test -d ./--version && rmdir ./--version
3858 if test "${ac_cv_path_mkdir+set}" = set; then
3859 MKDIR_P="$ac_cv_path_mkdir -p"
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for MKDIR_P within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 MKDIR_P="$ac_install_sh -d"
3866 fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3869 $as_echo "$MKDIR_P" >&6; }
3870
3871 for ac_prog in gawk mawk nawk awk
3872 do
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_AWK+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$AWK"; then
3881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 ac_cv_prog_AWK="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896 IFS=$as_save_IFS
3897
3898 fi
3899 fi
3900 AWK=$ac_cv_prog_AWK
3901 if test -n "$AWK"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3903 $as_echo "$AWK" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 fi
3908
3909
3910 test -n "$AWK" && break
3911 done
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3914 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3915 set x ${MAKE-make}
3916 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3917 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 cat >conftest.make <<\_ACEOF
3921 SHELL = /bin/sh
3922 all:
3923 @echo '@@@%%%=$(MAKE)=@@@%%%'
3924 _ACEOF
3925 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3926 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3927 *@@@%%%=?*=@@@%%%*)
3928 eval ac_cv_prog_make_${ac_make}_set=yes;;
3929 *)
3930 eval ac_cv_prog_make_${ac_make}_set=no;;
3931 esac
3932 rm -f conftest.make
3933 fi
3934 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3937 SET_MAKE=
3938 else
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 SET_MAKE="MAKE=${MAKE-make}"
3942 fi
3943
3944 rm -rf .tst 2>/dev/null
3945 mkdir .tst 2>/dev/null
3946 if test -d .tst; then
3947 am__leading_dot=.
3948 else
3949 am__leading_dot=_
3950 fi
3951 rmdir .tst 2>/dev/null
3952
3953 DEPDIR="${am__leading_dot}deps"
3954
3955 ac_config_commands="$ac_config_commands depfiles"
3956
3957
3958 am_make=${MAKE-make}
3959 cat > confinc << 'END'
3960 am__doit:
3961 @echo this is the am__doit target
3962 .PHONY: am__doit
3963 END
3964 # If we don't find an include directive, just comment out the code.
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3966 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3967 am__include="#"
3968 am__quote=
3969 _am_result=none
3970 # First try GNU make style include.
3971 echo "include confinc" > confmf
3972 # Ignore all kinds of additional output from 'make'.
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3975 am__include=include
3976 am__quote=
3977 _am_result=GNU
3978 ;;
3979 esac
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982 echo '.include "confinc"' > confmf
3983 case `$am_make -s -f confmf 2> /dev/null` in #(
3984 *the\ am__doit\ target*)
3985 am__include=.include
3986 am__quote="\""
3987 _am_result=BSD
3988 ;;
3989 esac
3990 fi
3991
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3994 $as_echo "$_am_result" >&6; }
3995 rm -f confinc confmf
3996
3997 # Check whether --enable-dependency-tracking was given.
3998 if test "${enable_dependency_tracking+set}" = set; then :
3999 enableval=$enable_dependency_tracking;
4000 fi
4001
4002 if test "x$enable_dependency_tracking" != xno; then
4003 am_depcomp="$ac_aux_dir/depcomp"
4004 AMDEPBACKSLASH='\'
4005 am__nodep='_no'
4006 fi
4007 if test "x$enable_dependency_tracking" != xno; then
4008 AMDEP_TRUE=
4009 AMDEP_FALSE='#'
4010 else
4011 AMDEP_TRUE='#'
4012 AMDEP_FALSE=
4013 fi
4014
4015
4016 # Check whether --enable-silent-rules was given.
4017 if test "${enable_silent_rules+set}" = set; then :
4018 enableval=$enable_silent_rules;
4019 fi
4020
4021 case $enable_silent_rules in # (((
4022 yes) AM_DEFAULT_VERBOSITY=0;;
4023 no) AM_DEFAULT_VERBOSITY=1;;
4024 *) AM_DEFAULT_VERBOSITY=1;;
4025 esac
4026 am_make=${MAKE-make}
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4028 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4029 if ${am_cv_make_support_nested_variables+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if $as_echo 'TRUE=$(BAR$(V))
4033 BAR0=false
4034 BAR1=true
4035 V=1
4036 am__doit:
4037 @$(TRUE)
4038 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4039 am_cv_make_support_nested_variables=yes
4040 else
4041 am_cv_make_support_nested_variables=no
4042 fi
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4045 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4046 if test $am_cv_make_support_nested_variables = yes; then
4047 AM_V='$(V)'
4048 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4049 else
4050 AM_V=$AM_DEFAULT_VERBOSITY
4051 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4052 fi
4053 AM_BACKSLASH='\'
4054
4055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4057 # is not polluted with repeated "-I."
4058 am__isrc=' -I$(srcdir)'
4059 # test to see if srcdir already configured
4060 if test -f $srcdir/config.status; then
4061 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4062 fi
4063 fi
4064
4065 # test whether we have cygpath
4066 if test -z "$CYGPATH_W"; then
4067 if (cygpath --version) >/dev/null 2>/dev/null; then
4068 CYGPATH_W='cygpath -w'
4069 else
4070 CYGPATH_W=echo
4071 fi
4072 fi
4073
4074
4075 # Define the identity of the package.
4076 PACKAGE='mkfontscale'
4077 VERSION='1.1.1'
4078
4079
4080 cat >>confdefs.h <<_ACEOF
4081 #define PACKAGE "$PACKAGE"
4082 _ACEOF
4083
4084
4085 cat >>confdefs.h <<_ACEOF
4086 #define VERSION "$VERSION"
4087 _ACEOF
4088
4089 # Some tools Automake needs.
4090
4091 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4092
4093
4094 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4095
4096
4097 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4098
4099
4100 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4101
4102
4103 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4104
4105 # For better backward compatibility. To be removed once Automake 1.9.x
4106 # dies out for good. For more background, see:
4107 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4108 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4109 mkdir_p='$(MKDIR_P)'
4110
4111 # We need awk for the "check" target. The system "awk" is bad on
4112 # some platforms.
4113 # Always define AMTAR for backward compatibility. Yes, it's still used
4114 # in the wild :-( We should find a proper way to deprecate it ...
4115 AMTAR='$${TAR-tar}'
4116
4117
4118 # We'll loop over all known methods to create a tar archive until one works.
4119 _am_tools='gnutar pax cpio none'
4120
4121 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4122
4123
4124
4125
4126
4127 depcc="$CC" am_compiler_list=
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4130 $as_echo_n "checking dependency style of $depcc... " >&6; }
4131 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4135 # We make a subdir and do the tests there. Otherwise we can end up
4136 # making bogus files that we don't know about and never remove. For
4137 # instance it was reported that on HP-UX the gcc test will end up
4138 # making a dummy file named 'D' -- because '-MD' means "put the output
4139 # in D".
4140 rm -rf conftest.dir
4141 mkdir conftest.dir
4142 # Copy depcomp to subdir because otherwise we won't find it if we're
4143 # using a relative directory.
4144 cp "$am_depcomp" conftest.dir
4145 cd conftest.dir
4146 # We will build objects and dependencies in a subdirectory because
4147 # it helps to detect inapplicable dependency modes. For instance
4148 # both Tru64's cc and ICC support -MD to output dependencies as a
4149 # side effect of compilation, but ICC will put the dependencies in
4150 # the current directory while Tru64 will put them in the object
4151 # directory.
4152 mkdir sub
4153
4154 am_cv_CC_dependencies_compiler_type=none
4155 if test "$am_compiler_list" = ""; then
4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157 fi
4158 am__universal=false
4159 case " $depcc " in #(
4160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4161 esac
4162
4163 for depmode in $am_compiler_list; do
4164 # Setup a source with many dependencies, because some compilers
4165 # like to wrap large dependency lists on column 80 (with \), and
4166 # we should not choose a depcomp mode which is confused by this.
4167 #
4168 # We need to recreate these files for each test, as the compiler may
4169 # overwrite some of them when testing with obscure command lines.
4170 # This happens at least with the AIX C compiler.
4171 : > sub/conftest.c
4172 for i in 1 2 3 4 5 6; do
4173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4175 # Solaris 10 /bin/sh.
4176 echo '/* dummy */' > sub/conftst$i.h
4177 done
4178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179
4180 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4181 # mode. It turns out that the SunPro C++ compiler does not properly
4182 # handle '-M -o', and we need to detect this. Also, some Intel
4183 # versions had trouble with output in subdirs.
4184 am__obj=sub/conftest.${OBJEXT-o}
4185 am__minus_obj="-o $am__obj"
4186 case $depmode in
4187 gcc)
4188 # This depmode causes a compiler race in universal mode.
4189 test "$am__universal" = false || continue
4190 ;;
4191 nosideeffect)
4192 # After this tag, mechanisms are not by side-effect, so they'll
4193 # only be used when explicitly requested.
4194 if test "x$enable_dependency_tracking" = xyes; then
4195 continue
4196 else
4197 break
4198 fi
4199 ;;
4200 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4201 # This compiler won't grok '-c -o', but also, the minuso test has
4202 # not run yet. These depmodes are late enough in the game, and
4203 # so weak that their functioning should not be impacted.
4204 am__obj=conftest.${OBJEXT-o}
4205 am__minus_obj=
4206 ;;
4207 none) break ;;
4208 esac
4209 if depmode=$depmode \
4210 source=sub/conftest.c object=$am__obj \
4211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213 >/dev/null 2>conftest.err &&
4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218 # icc doesn't choke on unknown options, it will just issue warnings
4219 # or remarks (even with -Werror). So we grep stderr for any message
4220 # that says an option was ignored or not supported.
4221 # When given -MP, icc 7.0 and 7.1 complain thusly:
4222 # icc: Command line warning: ignoring option '-M'; no argument required
4223 # The diagnosis changed in icc 8.0:
4224 # icc: Command line remark: option '-MP' not supported
4225 if (grep 'ignoring option' conftest.err ||
4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227 am_cv_CC_dependencies_compiler_type=$depmode
4228 break
4229 fi
4230 fi
4231 done
4232
4233 cd ..
4234 rm -rf conftest.dir
4235 else
4236 am_cv_CC_dependencies_compiler_type=none
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4243
4244 if
4245 test "x$enable_dependency_tracking" != xno \
4246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4247 am__fastdepCC_TRUE=
4248 am__fastdepCC_FALSE='#'
4249 else
4250 am__fastdepCC_TRUE='#'
4251 am__fastdepCC_FALSE=
4252 fi
4253
4254
4255
4256 # POSIX will say in a future version that running "rm -f" with no argument
4257 # is OK; and we want to be able to make that assumption in our Makefile
4258 # recipes. So use an aggressive probe to check that the usage we want is
4259 # actually supported "in the wild" to an acceptable degree.
4260 # See automake bug#10828.
4261 # To make any issue more visible, cause the running configure to be aborted
4262 # by default if the 'rm' program in use doesn't match our expectations; the
4263 # user can still override this though.
4264 if rm -f && rm -fr && rm -rf; then : OK; else
4265 cat >&2 <<'END'
4266 Oops!
4267
4268 Your 'rm' program seems unable to run without file operands specified
4269 on the command line, even when the '-f' option is present. This is contrary
4270 to the behaviour of most rm programs out there, and not conforming with
4271 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4272
4273 Please tell bug-automake@gnu.org about your system, including the value
4274 of your $PATH and any error possibly output before this message. This
4275 can help us improve future automake versions.
4276
4277 END
4278 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4279 echo 'Configuration will proceed anyway, since you have set the' >&2
4280 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4281 echo >&2
4282 else
4283 cat >&2 <<'END'
4284 Aborting the configuration process, to ensure you take notice of the issue.
4285
4286 You can download and install GNU coreutils to get an 'rm' implementation
4287 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4288
4289 If you want to complete the configuration process using your problematic
4290 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4291 to "yes", and re-run configure.
4292
4293 END
4294 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4295 fi
4296 fi
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4299 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4300 # Check whether --enable-maintainer-mode was given.
4301 if test "${enable_maintainer_mode+set}" = set; then :
4302 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4303 else
4304 USE_MAINTAINER_MODE=no
4305 fi
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4308 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4309 if test $USE_MAINTAINER_MODE = yes; then
4310 MAINTAINER_MODE_TRUE=
4311 MAINTAINER_MODE_FALSE='#'
4312 else
4313 MAINTAINER_MODE_TRUE='#'
4314 MAINTAINER_MODE_FALSE=
4315 fi
4316
4317 MAINT=$MAINTAINER_MODE_TRUE
4318
4319
4320
4321 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4334 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4335 if ${ac_cv_prog_cc_c99+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 ac_cv_prog_cc_c99=no
4339 ac_save_CC=$CC
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <stdarg.h>
4343 #include <stdbool.h>
4344 #include <stdlib.h>
4345 #include <wchar.h>
4346 #include <stdio.h>
4347
4348 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4349 #define debug(...) fprintf (stderr, __VA_ARGS__)
4350 #define showlist(...) puts (#__VA_ARGS__)
4351 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4352 static void
4353 test_varargs_macros (void)
4354 {
4355 int x = 1234;
4356 int y = 5678;
4357 debug ("Flag");
4358 debug ("X = %d\n", x);
4359 showlist (The first, second, and third items.);
4360 report (x>y, "x is %d but y is %d", x, y);
4361 }
4362
4363 // Check long long types.
4364 #define BIG64 18446744073709551615ull
4365 #define BIG32 4294967295ul
4366 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4367 #if !BIG_OK
4368 your preprocessor is broken;
4369 #endif
4370 #if BIG_OK
4371 #else
4372 your preprocessor is broken;
4373 #endif
4374 static long long int bignum = -9223372036854775807LL;
4375 static unsigned long long int ubignum = BIG64;
4376
4377 struct incomplete_array
4378 {
4379 int datasize;
4380 double data[];
4381 };
4382
4383 struct named_init {
4384 int number;
4385 const wchar_t *name;
4386 double average;
4387 };
4388
4389 typedef const char *ccp;
4390
4391 static inline int
4392 test_restrict (ccp restrict text)
4393 {
4394 // See if C++-style comments work.
4395 // Iterate through items via the restricted pointer.
4396 // Also check for declarations in for loops.
4397 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4398 continue;
4399 return 0;
4400 }
4401
4402 // Check varargs and va_copy.
4403 static void
4404 test_varargs (const char *format, ...)
4405 {
4406 va_list args;
4407 va_start (args, format);
4408 va_list args_copy;
4409 va_copy (args_copy, args);
4410
4411 const char *str;
4412 int number;
4413 float fnumber;
4414
4415 while (*format)
4416 {
4417 switch (*format++)
4418 {
4419 case 's': // string
4420 str = va_arg (args_copy, const char *);
4421 break;
4422 case 'd': // int
4423 number = va_arg (args_copy, int);
4424 break;
4425 case 'f': // float
4426 fnumber = va_arg (args_copy, double);
4427 break;
4428 default:
4429 break;
4430 }
4431 }
4432 va_end (args_copy);
4433 va_end (args);
4434 }
4435
4436 int
4437 main ()
4438 {
4439
4440 // Check bool.
4441 _Bool success = false;
4442
4443 // Check restrict.
4444 if (test_restrict ("String literal") == 0)
4445 success = true;
4446 char *restrict newvar = "Another string";
4447
4448 // Check varargs.
4449 test_varargs ("s, d' f .", "string", 65, 34.234);
4450 test_varargs_macros ();
4451
4452 // Check flexible array members.
4453 struct incomplete_array *ia =
4454 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4455 ia->datasize = 10;
4456 for (int i = 0; i < ia->datasize; ++i)
4457 ia->data[i] = i * 1.234;
4458
4459 // Check named initializers.
4460 struct named_init ni = {
4461 .number = 34,
4462 .name = L"Test wide string",
4463 .average = 543.34343,
4464 };
4465
4466 ni.number = 58;
4467
4468 int dynamic_array[ni.number];
4469 dynamic_array[ni.number - 1] = 543;
4470
4471 // work around unused variable warnings
4472 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4473 || dynamic_array[ni.number - 1] != 543);
4474
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4480 do
4481 CC="$ac_save_CC $ac_arg"
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_cv_prog_cc_c99=$ac_arg
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext
4486 test "x$ac_cv_prog_cc_c99" != "xno" && break
4487 done
4488 rm -f conftest.$ac_ext
4489 CC=$ac_save_CC
4490
4491 fi
4492 # AC_CACHE_VAL
4493 case "x$ac_cv_prog_cc_c99" in
4494 x)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4496 $as_echo "none needed" >&6; } ;;
4497 xno)
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4499 $as_echo "unsupported" >&6; } ;;
4500 *)
4501 CC="$CC $ac_cv_prog_cc_c99"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4503 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4504 esac
4505 if test "x$ac_cv_prog_cc_c99" != xno; then :
4506
4507 fi
4508
4509
4510
4511
4512
4513
4514 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4515 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4516 CLANGCC="yes"
4517 else
4518 CLANGCC="no"
4519 fi
4520
4521 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4522 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4523 INTELCC="yes"
4524 else
4525 INTELCC="no"
4526 fi
4527
4528 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4529 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4530 SUNCC="yes"
4531 else
4532 SUNCC="no"
4533 fi
4534
4535
4536
4537
4538 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 case $PKG_CONFIG in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567 ;;
4568 esac
4569 fi
4570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4571 if test -n "$PKG_CONFIG"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4573 $as_echo "$PKG_CONFIG" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_path_PKG_CONFIG"; then
4582 ac_pt_PKG_CONFIG=$PKG_CONFIG
4583 # Extract the first word of "pkg-config", so it can be a program name with args.
4584 set dummy pkg-config; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 case $ac_pt_PKG_CONFIG in
4591 [\\/]* | ?:[\\/]*)
4592 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4593 ;;
4594 *)
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 ;;
4611 esac
4612 fi
4613 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4614 if test -n "$ac_pt_PKG_CONFIG"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4616 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621
4622 if test "x$ac_pt_PKG_CONFIG" = x; then
4623 PKG_CONFIG=""
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631 PKG_CONFIG=$ac_pt_PKG_CONFIG
4632 fi
4633 else
4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4635 fi
4636
4637 fi
4638 if test -n "$PKG_CONFIG"; then
4639 _pkg_min_version=0.9.0
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4641 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644 $as_echo "yes" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 PKG_CONFIG=""
4649 fi
4650
4651 fi
4652 # Make sure we can run config.sub.
4653 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4654 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4657 $as_echo_n "checking build system type... " >&6; }
4658 if ${ac_cv_build+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_build_alias=$build_alias
4662 test "x$ac_build_alias" = x &&
4663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4664 test "x$ac_build_alias" = x &&
4665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4671 $as_echo "$ac_cv_build" >&6; }
4672 case $ac_cv_build in
4673 *-*-*) ;;
4674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4675 esac
4676 build=$ac_cv_build
4677 ac_save_IFS=$IFS; IFS='-'
4678 set x $ac_cv_build
4679 shift
4680 build_cpu=$1
4681 build_vendor=$2
4682 shift; shift
4683 # Remember, the first character of IFS is used to create $*,
4684 # except with old shells:
4685 build_os=$*
4686 IFS=$ac_save_IFS
4687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4691 $as_echo_n "checking host system type... " >&6; }
4692 if ${ac_cv_host+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test "x$host_alias" = x; then
4696 ac_cv_host=$ac_cv_build
4697 else
4698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4700 fi
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4704 $as_echo "$ac_cv_host" >&6; }
4705 case $ac_cv_host in
4706 *-*-*) ;;
4707 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4708 esac
4709 host=$ac_cv_host
4710 ac_save_IFS=$IFS; IFS='-'
4711 set x $ac_cv_host
4712 shift
4713 host_cpu=$1
4714 host_vendor=$2
4715 shift; shift
4716 # Remember, the first character of IFS is used to create $*,
4717 # except with old shells:
4718 host_os=$*
4719 IFS=$ac_save_IFS
4720 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4721
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4724 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4725 if ${ac_cv_path_SED+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729 for ac_i in 1 2 3 4 5 6 7; do
4730 ac_script="$ac_script$as_nl$ac_script"
4731 done
4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733 { ac_script=; unset ac_script;}
4734 if test -z "$SED"; then
4735 ac_path_SED_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_prog in sed gsed; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4745 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4746 # Check for GNU ac_path_SED and select it if it is found.
4747 # Check for GNU $ac_path_SED
4748 case `"$ac_path_SED" --version 2>&1` in
4749 *GNU*)
4750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4751 *)
4752 ac_count=0
4753 $as_echo_n 0123456789 >"conftest.in"
4754 while :
4755 do
4756 cat "conftest.in" "conftest.in" >"conftest.tmp"
4757 mv "conftest.tmp" "conftest.in"
4758 cp "conftest.in" "conftest.nl"
4759 $as_echo '' >> "conftest.nl"
4760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762 as_fn_arith $ac_count + 1 && ac_count=$as_val
4763 if test $ac_count -gt ${ac_path_SED_max-0}; then
4764 # Best one so far, save it but keep looking for a better one
4765 ac_cv_path_SED="$ac_path_SED"
4766 ac_path_SED_max=$ac_count
4767 fi
4768 # 10*(2^10) chars as input seems more than enough
4769 test $ac_count -gt 10 && break
4770 done
4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4773
4774 $ac_path_SED_found && break 3
4775 done
4776 done
4777 done
4778 IFS=$as_save_IFS
4779 if test -z "$ac_cv_path_SED"; then
4780 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4781 fi
4782 else
4783 ac_cv_path_SED=$SED
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4788 $as_echo "$ac_cv_path_SED" >&6; }
4789 SED="$ac_cv_path_SED"
4790 rm -f conftest.sed
4791
4792
4793
4794
4795
4796
4797 # Check whether --enable-selective-werror was given.
4798 if test "${enable_selective_werror+set}" = set; then :
4799 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4800 else
4801 SELECTIVE_WERROR=yes
4802 fi
4803
4804
4805
4806
4807
4808 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4809 if test "x$SUNCC" = "xyes"; then
4810 BASE_CFLAGS="-v"
4811 else
4812 BASE_CFLAGS=""
4813 fi
4814
4815 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829 xorg_testset_save_CFLAGS="$CFLAGS"
4830
4831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 int i;
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 xorg_cv_cc_flag_unknown_warning_option=yes
4844 else
4845 xorg_cv_cc_flag_unknown_warning_option=no
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852 CFLAGS="$xorg_testset_save_CFLAGS"
4853 fi
4854
4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858 fi
4859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 int i;
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870 xorg_cv_cc_flag_unused_command_line_argument=yes
4871 else
4872 xorg_cv_cc_flag_unused_command_line_argument=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4880 fi
4881
4882 found="no"
4883
4884 if test $found = "no" ; then
4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 fi
4888
4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 fi
4892
4893 CFLAGS="$CFLAGS -Wall"
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4896 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4897 cacheid=xorg_cv_cc_flag__Wall
4898 if eval \${$cacheid+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 int i;
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_link "$LINENO"; then :
4913 eval $cacheid=yes
4914 else
4915 eval $cacheid=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 fi
4920
4921
4922 CFLAGS="$xorg_testset_save_CFLAGS"
4923
4924 eval supported=\$$cacheid
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4926 $as_echo "$supported" >&6; }
4927 if test "$supported" = "yes" ; then
4928 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4929 found="yes"
4930 fi
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 xorg_testset_save_CFLAGS="$CFLAGS"
4948
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 int i;
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961 xorg_cv_cc_flag_unknown_warning_option=yes
4962 else
4963 xorg_cv_cc_flag_unknown_warning_option=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4970 CFLAGS="$xorg_testset_save_CFLAGS"
4971 fi
4972
4973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976 fi
4977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 int i;
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988 xorg_cv_cc_flag_unused_command_line_argument=yes
4989 else
4990 xorg_cv_cc_flag_unused_command_line_argument=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998 fi
4999
5000 found="no"
5001
5002 if test $found = "no" ; then
5003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005 fi
5006
5007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5009 fi
5010
5011 CFLAGS="$CFLAGS -Wpointer-arith"
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5014 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5015 cacheid=xorg_cv_cc_flag__Wpointer_arith
5016 if eval \${$cacheid+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 int i;
5022 int
5023 main ()
5024 {
5025
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 if ac_fn_c_try_link "$LINENO"; then :
5031 eval $cacheid=yes
5032 else
5033 eval $cacheid=no
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext \
5036 conftest$ac_exeext conftest.$ac_ext
5037 fi
5038
5039
5040 CFLAGS="$xorg_testset_save_CFLAGS"
5041
5042 eval supported=\$$cacheid
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5044 $as_echo "$supported" >&6; }
5045 if test "$supported" = "yes" ; then
5046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5047 found="yes"
5048 fi
5049 fi
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 xorg_testset_save_CFLAGS="$CFLAGS"
5066
5067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 int i;
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 xorg_cv_cc_flag_unknown_warning_option=yes
5080 else
5081 xorg_cv_cc_flag_unknown_warning_option=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5088 CFLAGS="$xorg_testset_save_CFLAGS"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 fi
5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 xorg_cv_cc_flag_unused_command_line_argument=yes
5107 else
5108 xorg_cv_cc_flag_unused_command_line_argument=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 found="no"
5119
5120 if test $found = "no" ; then
5121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 fi
5124
5125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127 fi
5128
5129 CFLAGS="$CFLAGS -Wmissing-declarations"
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5132 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5133 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5134 if eval \${$cacheid+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 int
5141 main ()
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_link "$LINENO"; then :
5149 eval $cacheid=yes
5150 else
5151 eval $cacheid=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext \
5154 conftest$ac_exeext conftest.$ac_ext
5155 fi
5156
5157
5158 CFLAGS="$xorg_testset_save_CFLAGS"
5159
5160 eval supported=\$$cacheid
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5162 $as_echo "$supported" >&6; }
5163 if test "$supported" = "yes" ; then
5164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5165 found="yes"
5166 fi
5167 fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 xorg_testset_save_CFLAGS="$CFLAGS"
5184
5185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 int i;
5195 _ACEOF
5196 if ac_fn_c_try_compile "$LINENO"; then :
5197 xorg_cv_cc_flag_unknown_warning_option=yes
5198 else
5199 xorg_cv_cc_flag_unknown_warning_option=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5206 CFLAGS="$xorg_testset_save_CFLAGS"
5207 fi
5208
5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212 fi
5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 xorg_cv_cc_flag_unused_command_line_argument=yes
5225 else
5226 xorg_cv_cc_flag_unused_command_line_argument=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234 fi
5235
5236 found="no"
5237
5238 if test $found = "no" ; then
5239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241 fi
5242
5243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245 fi
5246
5247 CFLAGS="$CFLAGS -Wformat=2"
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5250 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5251 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5252 if eval \${$cacheid+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 int i;
5258 int
5259 main ()
5260 {
5261
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267 eval $cacheid=yes
5268 else
5269 eval $cacheid=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
5273 fi
5274
5275
5276 CFLAGS="$xorg_testset_save_CFLAGS"
5277
5278 eval supported=\$$cacheid
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5280 $as_echo "$supported" >&6; }
5281 if test "$supported" = "yes" ; then
5282 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5283 found="yes"
5284 fi
5285 fi
5286
5287 if test $found = "no" ; then
5288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 fi
5291
5292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294 fi
5295
5296 CFLAGS="$CFLAGS -Wformat"
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5299 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5300 cacheid=xorg_cv_cc_flag__Wformat
5301 if eval \${$cacheid+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 int
5308 main ()
5309 {
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_link "$LINENO"; then :
5316 eval $cacheid=yes
5317 else
5318 eval $cacheid=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 fi
5323
5324
5325 CFLAGS="$xorg_testset_save_CFLAGS"
5326
5327 eval supported=\$$cacheid
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5329 $as_echo "$supported" >&6; }
5330 if test "$supported" = "yes" ; then
5331 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5332 found="yes"
5333 fi
5334 fi
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 xorg_testset_save_CFLAGS="$CFLAGS"
5353
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 int i;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 xorg_cv_cc_flag_unknown_warning_option=yes
5367 else
5368 xorg_cv_cc_flag_unknown_warning_option=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5375 CFLAGS="$xorg_testset_save_CFLAGS"
5376 fi
5377
5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 fi
5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 xorg_cv_cc_flag_unused_command_line_argument=yes
5394 else
5395 xorg_cv_cc_flag_unused_command_line_argument=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403 fi
5404
5405 found="no"
5406
5407 if test $found = "no" ; then
5408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411
5412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 fi
5415
5416 CFLAGS="$CFLAGS -Wstrict-prototypes"
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5419 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5420 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5421 if eval \${$cacheid+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int i;
5427 int
5428 main ()
5429 {
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_link "$LINENO"; then :
5436 eval $cacheid=yes
5437 else
5438 eval $cacheid=no
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext \
5441 conftest$ac_exeext conftest.$ac_ext
5442 fi
5443
5444
5445 CFLAGS="$xorg_testset_save_CFLAGS"
5446
5447 eval supported=\$$cacheid
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5449 $as_echo "$supported" >&6; }
5450 if test "$supported" = "yes" ; then
5451 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5452 found="yes"
5453 fi
5454 fi
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 xorg_testset_save_CFLAGS="$CFLAGS"
5471
5472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 int i;
5482 _ACEOF
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 xorg_cv_cc_flag_unknown_warning_option=yes
5485 else
5486 xorg_cv_cc_flag_unknown_warning_option=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494 fi
5495
5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 fi
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 xorg_cv_cc_flag_unused_command_line_argument=yes
5512 else
5513 xorg_cv_cc_flag_unused_command_line_argument=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5520 CFLAGS="$xorg_testset_save_CFLAGS"
5521 fi
5522
5523 found="no"
5524
5525 if test $found = "no" ; then
5526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528 fi
5529
5530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532 fi
5533
5534 CFLAGS="$CFLAGS -Wmissing-prototypes"
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5537 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5538 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5539 if eval \${$cacheid+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 int
5546 main ()
5547 {
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 eval $cacheid=yes
5555 else
5556 eval $cacheid=no
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5560 fi
5561
5562
5563 CFLAGS="$xorg_testset_save_CFLAGS"
5564
5565 eval supported=\$$cacheid
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5567 $as_echo "$supported" >&6; }
5568 if test "$supported" = "yes" ; then
5569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5570 found="yes"
5571 fi
5572 fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 xorg_testset_save_CFLAGS="$CFLAGS"
5589
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 int i;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 xorg_cv_cc_flag_unknown_warning_option=yes
5603 else
5604 xorg_cv_cc_flag_unknown_warning_option=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5611 CFLAGS="$xorg_testset_save_CFLAGS"
5612 fi
5613
5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617 fi
5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unused_command_line_argument=yes
5630 else
5631 xorg_cv_cc_flag_unused_command_line_argument=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 found="no"
5642
5643 if test $found = "no" ; then
5644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 fi
5647
5648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650 fi
5651
5652 CFLAGS="$CFLAGS -Wnested-externs"
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5655 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5656 cacheid=xorg_cv_cc_flag__Wnested_externs
5657 if eval \${$cacheid+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 int i;
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"; then :
5672 eval $cacheid=yes
5673 else
5674 eval $cacheid=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5678 fi
5679
5680
5681 CFLAGS="$xorg_testset_save_CFLAGS"
5682
5683 eval supported=\$$cacheid
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5685 $as_echo "$supported" >&6; }
5686 if test "$supported" = "yes" ; then
5687 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5688 found="yes"
5689 fi
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 xorg_testset_save_CFLAGS="$CFLAGS"
5707
5708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 int i;
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"; then :
5720 xorg_cv_cc_flag_unknown_warning_option=yes
5721 else
5722 xorg_cv_cc_flag_unknown_warning_option=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5729 CFLAGS="$xorg_testset_save_CFLAGS"
5730 fi
5731
5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735 fi
5736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 xorg_cv_cc_flag_unused_command_line_argument=yes
5748 else
5749 xorg_cv_cc_flag_unused_command_line_argument=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757 fi
5758
5759 found="no"
5760
5761 if test $found = "no" ; then
5762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 fi
5765
5766 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768 fi
5769
5770 CFLAGS="$CFLAGS -Wbad-function-cast"
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5773 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5774 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5775 if eval \${$cacheid+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 int
5782 main ()
5783 {
5784
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 eval $cacheid=yes
5791 else
5792 eval $cacheid=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 $as_echo "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int i;
5836 _ACEOF
5837 if ac_fn_c_try_compile "$LINENO"; then :
5838 xorg_cv_cc_flag_unknown_warning_option=yes
5839 else
5840 xorg_cv_cc_flag_unknown_warning_option=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848 fi
5849
5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 xorg_cv_cc_flag_unused_command_line_argument=yes
5866 else
5867 xorg_cv_cc_flag_unused_command_line_argument=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875 fi
5876
5877 found="no"
5878
5879 if test $found = "no" ; then
5880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 fi
5883
5884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886 fi
5887
5888 CFLAGS="$CFLAGS -Wold-style-definition"
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5891 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5892 cacheid=xorg_cv_cc_flag__Wold_style_definition
5893 if eval \${$cacheid+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_c_try_link "$LINENO"; then :
5908 eval $cacheid=yes
5909 else
5910 eval $cacheid=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914 fi
5915
5916
5917 CFLAGS="$xorg_testset_save_CFLAGS"
5918
5919 eval supported=\$$cacheid
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5921 $as_echo "$supported" >&6; }
5922 if test "$supported" = "yes" ; then
5923 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5924 found="yes"
5925 fi
5926 fi
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 xorg_testset_save_CFLAGS="$CFLAGS"
5943
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 int i;
5954 _ACEOF
5955 if ac_fn_c_try_compile "$LINENO"; then :
5956 xorg_cv_cc_flag_unknown_warning_option=yes
5957 else
5958 xorg_cv_cc_flag_unknown_warning_option=no
5959 fi
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5965 CFLAGS="$xorg_testset_save_CFLAGS"
5966 fi
5967
5968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 int i;
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 xorg_cv_cc_flag_unused_command_line_argument=yes
5984 else
5985 xorg_cv_cc_flag_unused_command_line_argument=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993 fi
5994
5995 found="no"
5996
5997 if test $found = "no" ; then
5998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 fi
6001
6002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004 fi
6005
6006 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6009 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6010 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6011 if eval \${$cacheid+:} 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 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 eval $cacheid=yes
6027 else
6028 eval $cacheid=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 fi
6033
6034
6035 CFLAGS="$xorg_testset_save_CFLAGS"
6036
6037 eval supported=\$$cacheid
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6039 $as_echo "$supported" >&6; }
6040 if test "$supported" = "yes" ; then
6041 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6042 found="yes"
6043 fi
6044 fi
6045
6046
6047
6048
6049
6050 # This chunk adds additional warnings that could catch undesired effects.
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 xorg_testset_save_CFLAGS="$CFLAGS"
6065
6066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 int i;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 xorg_cv_cc_flag_unknown_warning_option=yes
6079 else
6080 xorg_cv_cc_flag_unknown_warning_option=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6087 CFLAGS="$xorg_testset_save_CFLAGS"
6088 fi
6089
6090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 fi
6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 int i;
6103 _ACEOF
6104 if ac_fn_c_try_compile "$LINENO"; then :
6105 xorg_cv_cc_flag_unused_command_line_argument=yes
6106 else
6107 xorg_cv_cc_flag_unused_command_line_argument=no
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6114 CFLAGS="$xorg_testset_save_CFLAGS"
6115 fi
6116
6117 found="no"
6118
6119 if test $found = "no" ; then
6120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123
6124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 fi
6127
6128 CFLAGS="$CFLAGS -Wunused"
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6131 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6132 cacheid=xorg_cv_cc_flag__Wunused
6133 if eval \${$cacheid+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 int i;
6139 int
6140 main ()
6141 {
6142
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_link "$LINENO"; then :
6148 eval $cacheid=yes
6149 else
6150 eval $cacheid=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 fi
6155
6156
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159 eval supported=\$$cacheid
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161 $as_echo "$supported" >&6; }
6162 if test "$supported" = "yes" ; then
6163 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6164 found="yes"
6165 fi
6166 fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 int i;
6194 _ACEOF
6195 if ac_fn_c_try_compile "$LINENO"; then :
6196 xorg_cv_cc_flag_unknown_warning_option=yes
6197 else
6198 xorg_cv_cc_flag_unknown_warning_option=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211 fi
6212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 xorg_cv_cc_flag_unused_command_line_argument=yes
6224 else
6225 xorg_cv_cc_flag_unused_command_line_argument=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6232 CFLAGS="$xorg_testset_save_CFLAGS"
6233 fi
6234
6235 found="no"
6236
6237 if test $found = "no" ; then
6238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241
6242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244 fi
6245
6246 CFLAGS="$CFLAGS -Wuninitialized"
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6249 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6250 cacheid=xorg_cv_cc_flag__Wuninitialized
6251 if eval \${$cacheid+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 int i;
6257 int
6258 main ()
6259 {
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_link "$LINENO"; then :
6266 eval $cacheid=yes
6267 else
6268 eval $cacheid=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273
6274
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277 eval supported=\$$cacheid
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279 $as_echo "$supported" >&6; }
6280 if test "$supported" = "yes" ; then
6281 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6282 found="yes"
6283 fi
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int i;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 xorg_cv_cc_flag_unknown_warning_option=yes
6315 else
6316 xorg_cv_cc_flag_unknown_warning_option=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324 fi
6325
6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 fi
6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 xorg_cv_cc_flag_unused_command_line_argument=yes
6342 else
6343 xorg_cv_cc_flag_unused_command_line_argument=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351 fi
6352
6353 found="no"
6354
6355 if test $found = "no" ; then
6356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359
6360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 fi
6363
6364 CFLAGS="$CFLAGS -Wshadow"
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6367 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6368 cacheid=xorg_cv_cc_flag__Wshadow
6369 if eval \${$cacheid+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 eval $cacheid=yes
6385 else
6386 eval $cacheid=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391
6392
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395 eval supported=\$$cacheid
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397 $as_echo "$supported" >&6; }
6398 if test "$supported" = "yes" ; then
6399 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6400 found="yes"
6401 fi
6402 fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429 int i;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 xorg_cv_cc_flag_unknown_warning_option=yes
6433 else
6434 xorg_cv_cc_flag_unknown_warning_option=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442 fi
6443
6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 fi
6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 xorg_cv_cc_flag_unused_command_line_argument=yes
6460 else
6461 xorg_cv_cc_flag_unused_command_line_argument=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468 CFLAGS="$xorg_testset_save_CFLAGS"
6469 fi
6470
6471 found="no"
6472
6473 if test $found = "no" ; then
6474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477
6478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480 fi
6481
6482 CFLAGS="$CFLAGS -Wcast-qual"
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6485 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6486 cacheid=xorg_cv_cc_flag__Wcast_qual
6487 if eval \${$cacheid+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 int i;
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 eval $cacheid=yes
6503 else
6504 eval $cacheid=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 fi
6509
6510
6511 CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513 eval supported=\$$cacheid
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515 $as_echo "$supported" >&6; }
6516 if test "$supported" = "yes" ; then
6517 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6518 found="yes"
6519 fi
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 int i;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 xorg_cv_cc_flag_unknown_warning_option=yes
6551 else
6552 xorg_cv_cc_flag_unknown_warning_option=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560 fi
6561
6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 fi
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 xorg_cv_cc_flag_unused_command_line_argument=yes
6578 else
6579 xorg_cv_cc_flag_unused_command_line_argument=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586 CFLAGS="$xorg_testset_save_CFLAGS"
6587 fi
6588
6589 found="no"
6590
6591 if test $found = "no" ; then
6592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595
6596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598 fi
6599
6600 CFLAGS="$CFLAGS -Wmissing-noreturn"
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6603 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6604 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6605 if eval \${$cacheid+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 eval $cacheid=yes
6621 else
6622 eval $cacheid=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 fi
6627
6628
6629 CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631 eval supported=\$$cacheid
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633 $as_echo "$supported" >&6; }
6634 if test "$supported" = "yes" ; then
6635 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6636 found="yes"
6637 fi
6638 fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int i;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 xorg_cv_cc_flag_unknown_warning_option=yes
6669 else
6670 xorg_cv_cc_flag_unknown_warning_option=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678 fi
6679
6680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 fi
6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 xorg_cv_cc_flag_unused_command_line_argument=yes
6696 else
6697 xorg_cv_cc_flag_unused_command_line_argument=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705 fi
6706
6707 found="no"
6708
6709 if test $found = "no" ; then
6710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713
6714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716 fi
6717
6718 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6721 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6722 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6723 if eval \${$cacheid+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 eval $cacheid=yes
6739 else
6740 eval $cacheid=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 fi
6745
6746
6747 CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749 eval supported=\$$cacheid
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751 $as_echo "$supported" >&6; }
6752 if test "$supported" = "yes" ; then
6753 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6754 found="yes"
6755 fi
6756 fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 int i;
6784 _ACEOF
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 xorg_cv_cc_flag_unknown_warning_option=yes
6787 else
6788 xorg_cv_cc_flag_unknown_warning_option=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6796 fi
6797
6798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801 fi
6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int i;
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 xorg_cv_cc_flag_unused_command_line_argument=yes
6814 else
6815 xorg_cv_cc_flag_unused_command_line_argument=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822 CFLAGS="$xorg_testset_save_CFLAGS"
6823 fi
6824
6825 found="no"
6826
6827 if test $found = "no" ; then
6828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831
6832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 fi
6835
6836 CFLAGS="$CFLAGS -Wredundant-decls"
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6839 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6840 cacheid=xorg_cv_cc_flag__Wredundant_decls
6841 if eval \${$cacheid+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 int i;
6847 int
6848 main ()
6849 {
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 eval $cacheid=yes
6857 else
6858 eval $cacheid=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 fi
6863
6864
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867 eval supported=\$$cacheid
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869 $as_echo "$supported" >&6; }
6870 if test "$supported" = "yes" ; then
6871 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6872 found="yes"
6873 fi
6874 fi
6875
6876
6877
6878 # These are currently disabled because they are noisy. They will be enabled
6879 # in the future once the codebase is sufficiently modernized to silence
6880 # them. For now, I don't want them to drown out the other warnings.
6881 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6882 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6883 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6884
6885 # Turn some warnings into errors, so we don't accidently get successful builds
6886 # when there are problems that should be fixed.
6887
6888 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 xorg_testset_save_CFLAGS="$CFLAGS"
6903
6904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int i;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 xorg_cv_cc_flag_unknown_warning_option=yes
6917 else
6918 xorg_cv_cc_flag_unknown_warning_option=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 fi
6932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 xorg_cv_cc_flag_unused_command_line_argument=yes
6944 else
6945 xorg_cv_cc_flag_unused_command_line_argument=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953 fi
6954
6955 found="no"
6956
6957 if test $found = "no" ; then
6958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961
6962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 fi
6965
6966 CFLAGS="$CFLAGS -Werror=implicit"
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6969 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6970 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6971 if eval \${$cacheid+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 int i;
6977 int
6978 main ()
6979 {
6980
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 eval $cacheid=yes
6987 else
6988 eval $cacheid=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 fi
6993
6994
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997 eval supported=\$$cacheid
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999 $as_echo "$supported" >&6; }
7000 if test "$supported" = "yes" ; then
7001 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7002 found="yes"
7003 fi
7004 fi
7005
7006 if test $found = "no" ; then
7007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010
7011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 fi
7014
7015 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7018 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7019 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7020 if eval \${$cacheid+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 eval $cacheid=yes
7036 else
7037 eval $cacheid=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 fi
7042
7043
7044 CFLAGS="$xorg_testset_save_CFLAGS"
7045
7046 eval supported=\$$cacheid
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7048 $as_echo "$supported" >&6; }
7049 if test "$supported" = "yes" ; then
7050 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7051 found="yes"
7052 fi
7053 fi
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 xorg_testset_save_CFLAGS="$CFLAGS"
7070
7071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 int i;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 xorg_cv_cc_flag_unknown_warning_option=yes
7084 else
7085 xorg_cv_cc_flag_unknown_warning_option=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093 fi
7094
7095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 int i;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 xorg_cv_cc_flag_unused_command_line_argument=yes
7111 else
7112 xorg_cv_cc_flag_unused_command_line_argument=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120 fi
7121
7122 found="no"
7123
7124 if test $found = "no" ; then
7125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128
7129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 fi
7132
7133 CFLAGS="$CFLAGS -Werror=nonnull"
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7136 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7137 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7138 if eval \${$cacheid+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 int
7145 main ()
7146 {
7147
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"; then :
7153 eval $cacheid=yes
7154 else
7155 eval $cacheid=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7159 fi
7160
7161
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164 eval supported=\$$cacheid
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166 $as_echo "$supported" >&6; }
7167 if test "$supported" = "yes" ; then
7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7169 found="yes"
7170 fi
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 xorg_testset_save_CFLAGS="$CFLAGS"
7188
7189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 int i;
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 xorg_cv_cc_flag_unknown_warning_option=yes
7202 else
7203 xorg_cv_cc_flag_unknown_warning_option=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211 fi
7212
7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 fi
7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 int i;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 xorg_cv_cc_flag_unused_command_line_argument=yes
7229 else
7230 xorg_cv_cc_flag_unused_command_line_argument=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238 fi
7239
7240 found="no"
7241
7242 if test $found = "no" ; then
7243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246
7247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 fi
7250
7251 CFLAGS="$CFLAGS -Werror=init-self"
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7254 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7255 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7256 if eval \${$cacheid+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 int
7263 main ()
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 eval $cacheid=yes
7272 else
7273 eval $cacheid=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 fi
7278
7279
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282 eval supported=\$$cacheid
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284 $as_echo "$supported" >&6; }
7285 if test "$supported" = "yes" ; then
7286 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7287 found="yes"
7288 fi
7289 fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 int i;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 xorg_cv_cc_flag_unknown_warning_option=yes
7320 else
7321 xorg_cv_cc_flag_unknown_warning_option=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329 fi
7330
7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 fi
7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 int i;
7344 _ACEOF
7345 if ac_fn_c_try_compile "$LINENO"; then :
7346 xorg_cv_cc_flag_unused_command_line_argument=yes
7347 else
7348 xorg_cv_cc_flag_unused_command_line_argument=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7355 CFLAGS="$xorg_testset_save_CFLAGS"
7356 fi
7357
7358 found="no"
7359
7360 if test $found = "no" ; then
7361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364
7365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 fi
7368
7369 CFLAGS="$CFLAGS -Werror=main"
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7372 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7373 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7374 if eval \${$cacheid+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 int i;
7380 int
7381 main ()
7382 {
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389 eval $cacheid=yes
7390 else
7391 eval $cacheid=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 fi
7396
7397
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400 eval supported=\$$cacheid
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402 $as_echo "$supported" >&6; }
7403 if test "$supported" = "yes" ; then
7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7405 found="yes"
7406 fi
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 xorg_cv_cc_flag_unknown_warning_option=yes
7438 else
7439 xorg_cv_cc_flag_unknown_warning_option=no
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446 CFLAGS="$xorg_testset_save_CFLAGS"
7447 fi
7448
7449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452 fi
7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 xorg_cv_cc_flag_unused_command_line_argument=yes
7465 else
7466 xorg_cv_cc_flag_unused_command_line_argument=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474 fi
7475
7476 found="no"
7477
7478 if test $found = "no" ; then
7479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 fi
7482
7483 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485 fi
7486
7487 CFLAGS="$CFLAGS -Werror=missing-braces"
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7490 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7491 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7492 if eval \${$cacheid+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 int i;
7498 int
7499 main ()
7500 {
7501
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7507 eval $cacheid=yes
7508 else
7509 eval $cacheid=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513 fi
7514
7515
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518 eval supported=\$$cacheid
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520 $as_echo "$supported" >&6; }
7521 if test "$supported" = "yes" ; then
7522 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7523 found="yes"
7524 fi
7525 fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555 xorg_cv_cc_flag_unknown_warning_option=yes
7556 else
7557 xorg_cv_cc_flag_unknown_warning_option=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 xorg_cv_cc_flag_unused_command_line_argument=yes
7583 else
7584 xorg_cv_cc_flag_unused_command_line_argument=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7592 fi
7593
7594 found="no"
7595
7596 if test $found = "no" ; then
7597 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600
7601 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603 fi
7604
7605 CFLAGS="$CFLAGS -Werror=sequence-point"
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7608 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7609 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7610 if eval \${$cacheid+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 int
7617 main ()
7618 {
7619
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625 eval $cacheid=yes
7626 else
7627 eval $cacheid=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632
7633
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636 eval supported=\$$cacheid
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638 $as_echo "$supported" >&6; }
7639 if test "$supported" = "yes" ; then
7640 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7641 found="yes"
7642 fi
7643 fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 xorg_testset_save_CFLAGS="$CFLAGS"
7660
7661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7664 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7665 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 int i;
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 xorg_cv_cc_flag_unknown_warning_option=yes
7674 else
7675 xorg_cv_cc_flag_unknown_warning_option=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682 CFLAGS="$xorg_testset_save_CFLAGS"
7683 fi
7684
7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 fi
7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 xorg_cv_cc_flag_unused_command_line_argument=yes
7701 else
7702 xorg_cv_cc_flag_unused_command_line_argument=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7707 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710 fi
7711
7712 found="no"
7713
7714 if test $found = "no" ; then
7715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717 fi
7718
7719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721 fi
7722
7723 CFLAGS="$CFLAGS -Werror=return-type"
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7726 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7727 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7728 if eval \${$cacheid+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 int i;
7734 int
7735 main ()
7736 {
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 eval $cacheid=yes
7744 else
7745 eval $cacheid=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 fi
7750
7751
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754 eval supported=\$$cacheid
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756 $as_echo "$supported" >&6; }
7757 if test "$supported" = "yes" ; then
7758 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7759 found="yes"
7760 fi
7761 fi
7762
7763 if test $found = "no" ; then
7764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 fi
7767
7768 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770 fi
7771
7772 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7775 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7776 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7777 if eval \${$cacheid+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 int
7784 main ()
7785 {
7786
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 eval $cacheid=yes
7793 else
7794 eval $cacheid=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 fi
7799
7800
7801 CFLAGS="$xorg_testset_save_CFLAGS"
7802
7803 eval supported=\$$cacheid
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7805 $as_echo "$supported" >&6; }
7806 if test "$supported" = "yes" ; then
7807 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7808 found="yes"
7809 fi
7810 fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 xorg_testset_save_CFLAGS="$CFLAGS"
7827
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7831 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7832 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 int i;
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 xorg_cv_cc_flag_unknown_warning_option=yes
7841 else
7842 xorg_cv_cc_flag_unknown_warning_option=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7847 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850 fi
7851
7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7859 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 xorg_cv_cc_flag_unused_command_line_argument=yes
7868 else
7869 xorg_cv_cc_flag_unused_command_line_argument=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7874 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7876 CFLAGS="$xorg_testset_save_CFLAGS"
7877 fi
7878
7879 found="no"
7880
7881 if test $found = "no" ; then
7882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 fi
7885
7886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 fi
7889
7890 CFLAGS="$CFLAGS -Werror=trigraphs"
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7893 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7894 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7895 if eval \${$cacheid+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main ()
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 eval $cacheid=yes
7911 else
7912 eval $cacheid=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 fi
7917
7918
7919 CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921 eval supported=\$$cacheid
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923 $as_echo "$supported" >&6; }
7924 if test "$supported" = "yes" ; then
7925 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7926 found="yes"
7927 fi
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944 xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 int i;
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 xorg_cv_cc_flag_unknown_warning_option=yes
7959 else
7960 xorg_cv_cc_flag_unknown_warning_option=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7967 CFLAGS="$xorg_testset_save_CFLAGS"
7968 fi
7969
7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973 fi
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int i;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 xorg_cv_cc_flag_unused_command_line_argument=yes
7986 else
7987 xorg_cv_cc_flag_unused_command_line_argument=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994 CFLAGS="$xorg_testset_save_CFLAGS"
7995 fi
7996
7997 found="no"
7998
7999 if test $found = "no" ; then
8000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 fi
8003
8004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006 fi
8007
8008 CFLAGS="$CFLAGS -Werror=array-bounds"
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8011 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8012 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8013 if eval \${$cacheid+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 int i;
8019 int
8020 main ()
8021 {
8022
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_link "$LINENO"; then :
8028 eval $cacheid=yes
8029 else
8030 eval $cacheid=no
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 fi
8035
8036
8037 CFLAGS="$xorg_testset_save_CFLAGS"
8038
8039 eval supported=\$$cacheid
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8041 $as_echo "$supported" >&6; }
8042 if test "$supported" = "yes" ; then
8043 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8044 found="yes"
8045 fi
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 xorg_testset_save_CFLAGS="$CFLAGS"
8063
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 int i;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 xorg_cv_cc_flag_unknown_warning_option=yes
8077 else
8078 xorg_cv_cc_flag_unknown_warning_option=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 fi
8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 xorg_cv_cc_flag_unused_command_line_argument=yes
8104 else
8105 xorg_cv_cc_flag_unused_command_line_argument=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8112 CFLAGS="$xorg_testset_save_CFLAGS"
8113 fi
8114
8115 found="no"
8116
8117 if test $found = "no" ; then
8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121
8122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 fi
8125
8126 CFLAGS="$CFLAGS -Werror=write-strings"
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8129 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8131 if eval \${$cacheid+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 int
8138 main ()
8139 {
8140
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"; then :
8146 eval $cacheid=yes
8147 else
8148 eval $cacheid=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
8152 fi
8153
8154
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157 eval supported=\$$cacheid
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159 $as_echo "$supported" >&6; }
8160 if test "$supported" = "yes" ; then
8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8162 found="yes"
8163 fi
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180 xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 xorg_cv_cc_flag_unknown_warning_option=yes
8195 else
8196 xorg_cv_cc_flag_unknown_warning_option=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204 fi
8205
8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 fi
8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int i;
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 xorg_cv_cc_flag_unused_command_line_argument=yes
8222 else
8223 xorg_cv_cc_flag_unused_command_line_argument=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8231 fi
8232
8233 found="no"
8234
8235 if test $found = "no" ; then
8236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239
8240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242 fi
8243
8244 CFLAGS="$CFLAGS -Werror=address"
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8247 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8249 if eval \${$cacheid+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 int i;
8255 int
8256 main ()
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 eval $cacheid=yes
8265 else
8266 eval $cacheid=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 fi
8271
8272
8273 CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275 eval supported=\$$cacheid
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277 $as_echo "$supported" >&6; }
8278 if test "$supported" = "yes" ; then
8279 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8280 found="yes"
8281 fi
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 xorg_testset_save_CFLAGS="$CFLAGS"
8299
8300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 int i;
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 xorg_cv_cc_flag_unknown_warning_option=yes
8313 else
8314 xorg_cv_cc_flag_unknown_warning_option=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321 CFLAGS="$xorg_testset_save_CFLAGS"
8322 fi
8323
8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327 fi
8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 int i;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339 xorg_cv_cc_flag_unused_command_line_argument=yes
8340 else
8341 xorg_cv_cc_flag_unused_command_line_argument=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349 fi
8350
8351 found="no"
8352
8353 if test $found = "no" ; then
8354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357
8358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 fi
8361
8362 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8365 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8367 if eval \${$cacheid+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 int
8374 main ()
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"; then :
8382 eval $cacheid=yes
8383 else
8384 eval $cacheid=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 fi
8389
8390
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393 eval supported=\$$cacheid
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395 $as_echo "$supported" >&6; }
8396 if test "$supported" = "yes" ; then
8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8398 found="yes"
8399 fi
8400 fi
8401
8402 if test $found = "no" ; then
8403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 fi
8406
8407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409 fi
8410
8411 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8414 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8415 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8416 if eval \${$cacheid+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 int
8423 main ()
8424 {
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"; then :
8431 eval $cacheid=yes
8432 else
8433 eval $cacheid=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438
8439
8440 CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442 eval supported=\$$cacheid
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444 $as_echo "$supported" >&6; }
8445 if test "$supported" = "yes" ; then
8446 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8447 found="yes"
8448 fi
8449 fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465 xorg_testset_save_CFLAGS="$CFLAGS"
8466
8467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 xorg_cv_cc_flag_unknown_warning_option=yes
8480 else
8481 xorg_cv_cc_flag_unknown_warning_option=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8488 CFLAGS="$xorg_testset_save_CFLAGS"
8489 fi
8490
8491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 int i;
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 xorg_cv_cc_flag_unused_command_line_argument=yes
8507 else
8508 xorg_cv_cc_flag_unused_command_line_argument=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8515 CFLAGS="$xorg_testset_save_CFLAGS"
8516 fi
8517
8518 found="no"
8519
8520 if test $found = "no" ; then
8521 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524
8525 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527 fi
8528
8529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8530
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8532 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8533 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8534 if eval \${$cacheid+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 int i;
8540 int
8541 main ()
8542 {
8543
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549 eval $cacheid=yes
8550 else
8551 eval $cacheid=no
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 fi
8556
8557
8558 CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560 eval supported=\$$cacheid
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562 $as_echo "$supported" >&6; }
8563 if test "$supported" = "yes" ; then
8564 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8565 found="yes"
8566 fi
8567 fi
8568
8569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8570 else
8571 { $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
8572 $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;}
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586 xorg_testset_save_CFLAGS="$CFLAGS"
8587
8588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8592 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"; then :
8600 xorg_cv_cc_flag_unknown_warning_option=yes
8601 else
8602 xorg_cv_cc_flag_unknown_warning_option=no
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8607 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610 fi
8611
8612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8619 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 xorg_cv_cc_flag_unused_command_line_argument=yes
8628 else
8629 xorg_cv_cc_flag_unused_command_line_argument=no
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8634 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8636 CFLAGS="$xorg_testset_save_CFLAGS"
8637 fi
8638
8639 found="no"
8640
8641 if test $found = "no" ; then
8642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645
8646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 fi
8649
8650 CFLAGS="$CFLAGS -Wimplicit"
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8653 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8654 cacheid=xorg_cv_cc_flag__Wimplicit
8655 if eval \${$cacheid+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 int
8662 main ()
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 eval $cacheid=yes
8671 else
8672 eval $cacheid=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681 eval supported=\$$cacheid
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683 $as_echo "$supported" >&6; }
8684 if test "$supported" = "yes" ; then
8685 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8686 found="yes"
8687 fi
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 int i;
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 xorg_cv_cc_flag_unknown_warning_option=yes
8719 else
8720 xorg_cv_cc_flag_unknown_warning_option=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728 fi
8729
8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 fi
8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 int i;
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 xorg_cv_cc_flag_unused_command_line_argument=yes
8746 else
8747 xorg_cv_cc_flag_unused_command_line_argument=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755 fi
8756
8757 found="no"
8758
8759 if test $found = "no" ; then
8760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763
8764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766 fi
8767
8768 CFLAGS="$CFLAGS -Wnonnull"
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8771 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8772 cacheid=xorg_cv_cc_flag__Wnonnull
8773 if eval \${$cacheid+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int i;
8779 int
8780 main ()
8781 {
8782
8783 ;
8784 return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_c_try_link "$LINENO"; then :
8788 eval $cacheid=yes
8789 else
8790 eval $cacheid=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 fi
8795
8796
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799 eval supported=\$$cacheid
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801 $as_echo "$supported" >&6; }
8802 if test "$supported" = "yes" ; then
8803 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8804 found="yes"
8805 fi
8806 fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 int i;
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 xorg_cv_cc_flag_unknown_warning_option=yes
8837 else
8838 xorg_cv_cc_flag_unknown_warning_option=no
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845 CFLAGS="$xorg_testset_save_CFLAGS"
8846 fi
8847
8848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851 fi
8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 int i;
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"; then :
8863 xorg_cv_cc_flag_unused_command_line_argument=yes
8864 else
8865 xorg_cv_cc_flag_unused_command_line_argument=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872 CFLAGS="$xorg_testset_save_CFLAGS"
8873 fi
8874
8875 found="no"
8876
8877 if test $found = "no" ; then
8878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881
8882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884 fi
8885
8886 CFLAGS="$CFLAGS -Winit-self"
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8889 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8890 cacheid=xorg_cv_cc_flag__Winit_self
8891 if eval \${$cacheid+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 int
8898 main ()
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"; then :
8906 eval $cacheid=yes
8907 else
8908 eval $cacheid=no
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 fi
8913
8914
8915 CFLAGS="$xorg_testset_save_CFLAGS"
8916
8917 eval supported=\$$cacheid
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8919 $as_echo "$supported" >&6; }
8920 if test "$supported" = "yes" ; then
8921 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8922 found="yes"
8923 fi
8924 fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940 xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 int i;
8952 _ACEOF
8953 if ac_fn_c_try_compile "$LINENO"; then :
8954 xorg_cv_cc_flag_unknown_warning_option=yes
8955 else
8956 xorg_cv_cc_flag_unknown_warning_option=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964 fi
8965
8966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 fi
8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 xorg_cv_cc_flag_unused_command_line_argument=yes
8982 else
8983 xorg_cv_cc_flag_unused_command_line_argument=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 found="no"
8994
8995 if test $found = "no" ; then
8996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999
9000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 fi
9003
9004 CFLAGS="$CFLAGS -Wmain"
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9007 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9008 cacheid=xorg_cv_cc_flag__Wmain
9009 if eval \${$cacheid+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 int i;
9015 int
9016 main ()
9017 {
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 eval $cacheid=yes
9025 else
9026 eval $cacheid=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 fi
9031
9032
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035 eval supported=\$$cacheid
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037 $as_echo "$supported" >&6; }
9038 if test "$supported" = "yes" ; then
9039 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9040 found="yes"
9041 fi
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072 xorg_cv_cc_flag_unknown_warning_option=yes
9073 else
9074 xorg_cv_cc_flag_unknown_warning_option=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082 fi
9083
9084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087 fi
9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9099 xorg_cv_cc_flag_unused_command_line_argument=yes
9100 else
9101 xorg_cv_cc_flag_unused_command_line_argument=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108 CFLAGS="$xorg_testset_save_CFLAGS"
9109 fi
9110
9111 found="no"
9112
9113 if test $found = "no" ; then
9114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117
9118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 fi
9121
9122 CFLAGS="$CFLAGS -Wmissing-braces"
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9125 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9126 cacheid=xorg_cv_cc_flag__Wmissing_braces
9127 if eval \${$cacheid+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 int
9134 main ()
9135 {
9136
9137 ;
9138 return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 eval $cacheid=yes
9143 else
9144 eval $cacheid=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 fi
9149
9150
9151 CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153 eval supported=\$$cacheid
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155 $as_echo "$supported" >&6; }
9156 if test "$supported" = "yes" ; then
9157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9158 found="yes"
9159 fi
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 int i;
9188 _ACEOF
9189 if ac_fn_c_try_compile "$LINENO"; then :
9190 xorg_cv_cc_flag_unknown_warning_option=yes
9191 else
9192 xorg_cv_cc_flag_unknown_warning_option=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199 CFLAGS="$xorg_testset_save_CFLAGS"
9200 fi
9201
9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205 fi
9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 int i;
9215 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"; then :
9217 xorg_cv_cc_flag_unused_command_line_argument=yes
9218 else
9219 xorg_cv_cc_flag_unused_command_line_argument=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227 fi
9228
9229 found="no"
9230
9231 if test $found = "no" ; then
9232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235
9236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 fi
9239
9240 CFLAGS="$CFLAGS -Wsequence-point"
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9243 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9244 cacheid=xorg_cv_cc_flag__Wsequence_point
9245 if eval \${$cacheid+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 int
9252 main ()
9253 {
9254
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260 eval $cacheid=yes
9261 else
9262 eval $cacheid=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi
9267
9268
9269 CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271 eval supported=\$$cacheid
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273 $as_echo "$supported" >&6; }
9274 if test "$supported" = "yes" ; then
9275 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9276 found="yes"
9277 fi
9278 fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 int i;
9306 _ACEOF
9307 if ac_fn_c_try_compile "$LINENO"; then :
9308 xorg_cv_cc_flag_unknown_warning_option=yes
9309 else
9310 xorg_cv_cc_flag_unknown_warning_option=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 xorg_cv_cc_flag_unused_command_line_argument=yes
9336 else
9337 xorg_cv_cc_flag_unused_command_line_argument=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 found="no"
9348
9349 if test $found = "no" ; then
9350 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353
9354 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 fi
9357
9358 CFLAGS="$CFLAGS -Wreturn-type"
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9361 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9362 cacheid=xorg_cv_cc_flag__Wreturn_type
9363 if eval \${$cacheid+:} 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 int
9370 main ()
9371 {
9372
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 eval $cacheid=yes
9379 else
9380 eval $cacheid=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 fi
9385
9386
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389 eval supported=\$$cacheid
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391 $as_echo "$supported" >&6; }
9392 if test "$supported" = "yes" ; then
9393 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9394 found="yes"
9395 fi
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 int i;
9424 _ACEOF
9425 if ac_fn_c_try_compile "$LINENO"; then :
9426 xorg_cv_cc_flag_unknown_warning_option=yes
9427 else
9428 xorg_cv_cc_flag_unknown_warning_option=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436 fi
9437
9438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441 fi
9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 int i;
9451 _ACEOF
9452 if ac_fn_c_try_compile "$LINENO"; then :
9453 xorg_cv_cc_flag_unused_command_line_argument=yes
9454 else
9455 xorg_cv_cc_flag_unused_command_line_argument=no
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463 fi
9464
9465 found="no"
9466
9467 if test $found = "no" ; then
9468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471
9472 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474 fi
9475
9476 CFLAGS="$CFLAGS -Wtrigraphs"
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9479 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9480 cacheid=xorg_cv_cc_flag__Wtrigraphs
9481 if eval \${$cacheid+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int i;
9487 int
9488 main ()
9489 {
9490
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 eval $cacheid=yes
9497 else
9498 eval $cacheid=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 fi
9503
9504
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507 eval supported=\$$cacheid
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509 $as_echo "$supported" >&6; }
9510 if test "$supported" = "yes" ; then
9511 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9512 found="yes"
9513 fi
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 int i;
9542 _ACEOF
9543 if ac_fn_c_try_compile "$LINENO"; then :
9544 xorg_cv_cc_flag_unknown_warning_option=yes
9545 else
9546 xorg_cv_cc_flag_unknown_warning_option=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554 fi
9555
9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559 fi
9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int i;
9569 _ACEOF
9570 if ac_fn_c_try_compile "$LINENO"; then :
9571 xorg_cv_cc_flag_unused_command_line_argument=yes
9572 else
9573 xorg_cv_cc_flag_unused_command_line_argument=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581 fi
9582
9583 found="no"
9584
9585 if test $found = "no" ; then
9586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589
9590 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 fi
9593
9594 CFLAGS="$CFLAGS -Warray-bounds"
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9597 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9598 cacheid=xorg_cv_cc_flag__Warray_bounds
9599 if eval \${$cacheid+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int i;
9605 int
9606 main ()
9607 {
9608
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 eval $cacheid=yes
9615 else
9616 eval $cacheid=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 fi
9621
9622
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625 eval supported=\$$cacheid
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627 $as_echo "$supported" >&6; }
9628 if test "$supported" = "yes" ; then
9629 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9630 found="yes"
9631 fi
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 int i;
9660 _ACEOF
9661 if ac_fn_c_try_compile "$LINENO"; then :
9662 xorg_cv_cc_flag_unknown_warning_option=yes
9663 else
9664 xorg_cv_cc_flag_unknown_warning_option=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int i;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9689 xorg_cv_cc_flag_unused_command_line_argument=yes
9690 else
9691 xorg_cv_cc_flag_unused_command_line_argument=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 fi
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699 fi
9700
9701 found="no"
9702
9703 if test $found = "no" ; then
9704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 fi
9707
9708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 fi
9711
9712 CFLAGS="$CFLAGS -Wwrite-strings"
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9715 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9716 cacheid=xorg_cv_cc_flag__Wwrite_strings
9717 if eval \${$cacheid+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 int
9724 main ()
9725 {
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 eval $cacheid=yes
9733 else
9734 eval $cacheid=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 fi
9739
9740
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743 eval supported=\$$cacheid
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745 $as_echo "$supported" >&6; }
9746 if test "$supported" = "yes" ; then
9747 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9748 found="yes"
9749 fi
9750 fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766 xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 int i;
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 xorg_cv_cc_flag_unknown_warning_option=yes
9781 else
9782 xorg_cv_cc_flag_unknown_warning_option=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 int i;
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 xorg_cv_cc_flag_unused_command_line_argument=yes
9808 else
9809 xorg_cv_cc_flag_unused_command_line_argument=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816 CFLAGS="$xorg_testset_save_CFLAGS"
9817 fi
9818
9819 found="no"
9820
9821 if test $found = "no" ; then
9822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 fi
9825
9826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828 fi
9829
9830 CFLAGS="$CFLAGS -Waddress"
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9833 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9834 cacheid=xorg_cv_cc_flag__Waddress
9835 if eval \${$cacheid+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 int i;
9841 int
9842 main ()
9843 {
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 eval $cacheid=yes
9851 else
9852 eval $cacheid=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 fi
9857
9858
9859 CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861 eval supported=\$$cacheid
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863 $as_echo "$supported" >&6; }
9864 if test "$supported" = "yes" ; then
9865 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9866 found="yes"
9867 fi
9868 fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 int i;
9896 _ACEOF
9897 if ac_fn_c_try_compile "$LINENO"; then :
9898 xorg_cv_cc_flag_unknown_warning_option=yes
9899 else
9900 xorg_cv_cc_flag_unknown_warning_option=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913 fi
9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"; then :
9925 xorg_cv_cc_flag_unused_command_line_argument=yes
9926 else
9927 xorg_cv_cc_flag_unused_command_line_argument=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935 fi
9936
9937 found="no"
9938
9939 if test $found = "no" ; then
9940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943
9944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946 fi
9947
9948 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9951 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9952 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9953 if eval \${$cacheid+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 int i;
9959 int
9960 main ()
9961 {
9962
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_link "$LINENO"; then :
9968 eval $cacheid=yes
9969 else
9970 eval $cacheid=no
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 fi
9975
9976
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979 eval supported=\$$cacheid
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981 $as_echo "$supported" >&6; }
9982 if test "$supported" = "yes" ; then
9983 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9984 found="yes"
9985 fi
9986 fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"; then :
10016 xorg_cv_cc_flag_unknown_warning_option=yes
10017 else
10018 xorg_cv_cc_flag_unknown_warning_option=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025 CFLAGS="$xorg_testset_save_CFLAGS"
10026 fi
10027
10028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031 fi
10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int i;
10041 _ACEOF
10042 if ac_fn_c_try_compile "$LINENO"; then :
10043 xorg_cv_cc_flag_unused_command_line_argument=yes
10044 else
10045 xorg_cv_cc_flag_unused_command_line_argument=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052 CFLAGS="$xorg_testset_save_CFLAGS"
10053 fi
10054
10055 found="no"
10056
10057 if test $found = "no" ; then
10058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061
10062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064 fi
10065
10066 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10069 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10070 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10071 if eval \${$cacheid+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 int i;
10077 int
10078 main ()
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 eval $cacheid=yes
10087 else
10088 eval $cacheid=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093
10094
10095 CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097 eval supported=\$$cacheid
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099 $as_echo "$supported" >&6; }
10100 if test "$supported" = "yes" ; then
10101 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10102 found="yes"
10103 fi
10104 fi
10105
10106
10107 fi
10108
10109
10110
10111
10112
10113
10114
10115 CWARNFLAGS="$BASE_CFLAGS"
10116 if test "x$GCC" = xyes ; then
10117 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10118 fi
10119
10120
10121
10122
10123
10124
10125
10126
10127 # Check whether --enable-strict-compilation was given.
10128 if test "${enable_strict_compilation+set}" = set; then :
10129 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10130 else
10131 STRICT_COMPILE=no
10132 fi
10133
10134
10135
10136
10137
10138
10139 STRICT_CFLAGS=""
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 xorg_testset_save_CFLAGS="$CFLAGS"
10154
10155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"; then :
10167 xorg_cv_cc_flag_unknown_warning_option=yes
10168 else
10169 xorg_cv_cc_flag_unknown_warning_option=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176 CFLAGS="$xorg_testset_save_CFLAGS"
10177 fi
10178
10179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 fi
10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 int i;
10192 _ACEOF
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194 xorg_cv_cc_flag_unused_command_line_argument=yes
10195 else
10196 xorg_cv_cc_flag_unused_command_line_argument=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204 fi
10205
10206 found="no"
10207
10208 if test $found = "no" ; then
10209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 fi
10212
10213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215 fi
10216
10217 CFLAGS="$CFLAGS -pedantic"
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10220 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10221 cacheid=xorg_cv_cc_flag__pedantic
10222 if eval \${$cacheid+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 int
10229 main ()
10230 {
10231
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 eval $cacheid=yes
10238 else
10239 eval $cacheid=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 fi
10244
10245
10246 CFLAGS="$xorg_testset_save_CFLAGS"
10247
10248 eval supported=\$$cacheid
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250 $as_echo "$supported" >&6; }
10251 if test "$supported" = "yes" ; then
10252 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10253 found="yes"
10254 fi
10255 fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271 xorg_testset_save_CFLAGS="$CFLAGS"
10272
10273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285 xorg_cv_cc_flag_unknown_warning_option=yes
10286 else
10287 xorg_cv_cc_flag_unknown_warning_option=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10294 CFLAGS="$xorg_testset_save_CFLAGS"
10295 fi
10296
10297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300 fi
10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"; then :
10312 xorg_cv_cc_flag_unused_command_line_argument=yes
10313 else
10314 xorg_cv_cc_flag_unused_command_line_argument=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 fi
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322 fi
10323
10324 found="no"
10325
10326 if test $found = "no" ; then
10327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329 fi
10330
10331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333 fi
10334
10335 CFLAGS="$CFLAGS -Werror"
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10338 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10339 cacheid=xorg_cv_cc_flag__Werror
10340 if eval \${$cacheid+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 eval $cacheid=yes
10356 else
10357 eval $cacheid=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 fi
10362
10363
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366 eval supported=\$$cacheid
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368 $as_echo "$supported" >&6; }
10369 if test "$supported" = "yes" ; then
10370 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10371 found="yes"
10372 fi
10373 fi
10374
10375 if test $found = "no" ; then
10376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379
10380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382 fi
10383
10384 CFLAGS="$CFLAGS -errwarn"
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10387 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10388 cacheid=xorg_cv_cc_flag__errwarn
10389 if eval \${$cacheid+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int i;
10395 int
10396 main ()
10397 {
10398
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404 eval $cacheid=yes
10405 else
10406 eval $cacheid=no
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 fi
10411
10412
10413 CFLAGS="$xorg_testset_save_CFLAGS"
10414
10415 eval supported=\$$cacheid
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10417 $as_echo "$supported" >&6; }
10418 if test "$supported" = "yes" ; then
10419 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10420 found="yes"
10421 fi
10422 fi
10423
10424
10425
10426 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10427 # activate it with -Werror, so we add it here explicitly.
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 xorg_testset_save_CFLAGS="$CFLAGS"
10442
10443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 int i;
10453 _ACEOF
10454 if ac_fn_c_try_compile "$LINENO"; then :
10455 xorg_cv_cc_flag_unknown_warning_option=yes
10456 else
10457 xorg_cv_cc_flag_unknown_warning_option=no
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 fi
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10464 CFLAGS="$xorg_testset_save_CFLAGS"
10465 fi
10466
10467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470 fi
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int i;
10480 _ACEOF
10481 if ac_fn_c_try_compile "$LINENO"; then :
10482 xorg_cv_cc_flag_unused_command_line_argument=yes
10483 else
10484 xorg_cv_cc_flag_unused_command_line_argument=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10491 CFLAGS="$xorg_testset_save_CFLAGS"
10492 fi
10493
10494 found="no"
10495
10496 if test $found = "no" ; then
10497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499 fi
10500
10501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503 fi
10504
10505 CFLAGS="$CFLAGS -Werror=attributes"
10506
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10508 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10510 if eval \${$cacheid+:} false; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int i;
10516 int
10517 main ()
10518 {
10519
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10525 eval $cacheid=yes
10526 else
10527 eval $cacheid=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 fi
10532
10533
10534 CFLAGS="$xorg_testset_save_CFLAGS"
10535
10536 eval supported=\$$cacheid
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10538 $as_echo "$supported" >&6; }
10539 if test "$supported" = "yes" ; then
10540 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10541 found="yes"
10542 fi
10543 fi
10544
10545
10546
10547 if test "x$STRICT_COMPILE" = "xyes"; then
10548 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10549 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10550 fi
10551
10552
10553
10554
10555
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10559 _ACEOF
10560
10561 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10562 if test "x$PVM" = "x"; then
10563 PVM="0"
10564 fi
10565
10566 cat >>confdefs.h <<_ACEOF
10567 #define PACKAGE_VERSION_MINOR $PVM
10568 _ACEOF
10569
10570 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10571 if test "x$PVP" = "x"; then
10572 PVP="0"
10573 fi
10574
10575 cat >>confdefs.h <<_ACEOF
10576 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10577 _ACEOF
10578
10579
10580
10581 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10582 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10583 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10584 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10585
10586
10587
10588
10589 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10590 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10591 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10592 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10593 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10594
10595
10596
10597
10598
10599
10600 if test x$APP_MAN_SUFFIX = x ; then
10601 APP_MAN_SUFFIX=1
10602 fi
10603 if test x$APP_MAN_DIR = x ; then
10604 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10605 fi
10606
10607 if test x$LIB_MAN_SUFFIX = x ; then
10608 LIB_MAN_SUFFIX=3
10609 fi
10610 if test x$LIB_MAN_DIR = x ; then
10611 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10612 fi
10613
10614 if test x$FILE_MAN_SUFFIX = x ; then
10615 case $host_os in
10616 solaris*) FILE_MAN_SUFFIX=4 ;;
10617 *) FILE_MAN_SUFFIX=5 ;;
10618 esac
10619 fi
10620 if test x$FILE_MAN_DIR = x ; then
10621 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10622 fi
10623
10624 if test x$MISC_MAN_SUFFIX = x ; then
10625 case $host_os in
10626 solaris*) MISC_MAN_SUFFIX=5 ;;
10627 *) MISC_MAN_SUFFIX=7 ;;
10628 esac
10629 fi
10630 if test x$MISC_MAN_DIR = x ; then
10631 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10632 fi
10633
10634 if test x$DRIVER_MAN_SUFFIX = x ; then
10635 case $host_os in
10636 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10637 *) DRIVER_MAN_SUFFIX=4 ;;
10638 esac
10639 fi
10640 if test x$DRIVER_MAN_DIR = x ; then
10641 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10642 fi
10643
10644 if test x$ADMIN_MAN_SUFFIX = x ; then
10645 case $host_os in
10646 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10647 *) ADMIN_MAN_SUFFIX=8 ;;
10648 esac
10649 fi
10650 if test x$ADMIN_MAN_DIR = x ; then
10651 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668 XORG_MAN_PAGE="X Version 11"
10669
10670 MAN_SUBSTS="\
10671 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10672 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10673 -e 's|__xservername__|Xorg|g' \
10674 -e 's|__xconfigfile__|xorg.conf|g' \
10675 -e 's|__projectroot__|\$(prefix)|g' \
10676 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10677 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10678 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10679 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10680 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10681 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10682 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10683
10684
10685
10686 # Check whether --enable-silent-rules was given.
10687 if test "${enable_silent_rules+set}" = set; then :
10688 enableval=$enable_silent_rules;
10689 fi
10690
10691 case $enable_silent_rules in # (((
10692 yes) AM_DEFAULT_VERBOSITY=0;;
10693 no) AM_DEFAULT_VERBOSITY=1;;
10694 *) AM_DEFAULT_VERBOSITY=0;;
10695 esac
10696 am_make=${MAKE-make}
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10698 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10699 if ${am_cv_make_support_nested_variables+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 if $as_echo 'TRUE=$(BAR$(V))
10703 BAR0=false
10704 BAR1=true
10705 V=1
10706 am__doit:
10707 @$(TRUE)
10708 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10709 am_cv_make_support_nested_variables=yes
10710 else
10711 am_cv_make_support_nested_variables=no
10712 fi
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10715 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10716 if test $am_cv_make_support_nested_variables = yes; then
10717 AM_V='$(V)'
10718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10719 else
10720 AM_V=$AM_DEFAULT_VERBOSITY
10721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10722 fi
10723 AM_BACKSLASH='\'
10724
10725
10726
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
10728 $as_echo_n "checking for gzopen in -lz... " >&6; }
10729 if ${ac_cv_lib_z_gzopen+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 ac_check_lib_save_LIBS=$LIBS
10733 LIBS="-lz $LIBS"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char gzopen ();
10744 int
10745 main ()
10746 {
10747 return gzopen ();
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_link "$LINENO"; then :
10753 ac_cv_lib_z_gzopen=yes
10754 else
10755 ac_cv_lib_z_gzopen=no
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759 LIBS=$ac_check_lib_save_LIBS
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10762 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
10763 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10764 cat >>confdefs.h <<_ACEOF
10765 #define HAVE_LIBZ 1
10766 _ACEOF
10767
10768 LIBS="-lz $LIBS"
10769
10770 else
10771 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10772 fi
10773
10774
10775
10776 # Check whether --with-bzip2 was given.
10777 if test "${with_bzip2+set}" = set; then :
10778 withval=$with_bzip2;
10779 else
10780 with_bzip2=no
10781 fi
10782
10783 if test "x$with_bzip2" = xyes; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10785 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10786 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lbz2 $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char BZ2_bzopen ();
10801 int
10802 main ()
10803 {
10804 return BZ2_bzopen ();
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_bz2_BZ2_bzopen=yes
10811 else
10812 ac_cv_lib_bz2_BZ2_bzopen=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10819 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10820 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_LIBBZ2 1
10823 _ACEOF
10824
10825 LIBS="-lbz2 $LIBS"
10826
10827 else
10828 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10829 fi
10830
10831
10832 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10833
10834 fi
10835
10836 # Checks for pkg-config packages
10837
10838 pkg_failed=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10840 $as_echo_n "checking for MKFONTSCALE... " >&6; }
10841
10842 if test -n "$MKFONTSCALE_CFLAGS"; then
10843 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10844 elif test -n "$PKG_CONFIG"; then
10845 if test -n "$PKG_CONFIG" && \
10846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10847 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; }; then
10851 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10852 else
10853 pkg_failed=yes
10854 fi
10855 else
10856 pkg_failed=untried
10857 fi
10858 if test -n "$MKFONTSCALE_LIBS"; then
10859 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10860 elif test -n "$PKG_CONFIG"; then
10861 if test -n "$PKG_CONFIG" && \
10862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10863 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10864 ac_status=$?
10865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10866 test $ac_status = 0; }; then
10867 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10868 else
10869 pkg_failed=yes
10870 fi
10871 else
10872 pkg_failed=untried
10873 fi
10874
10875
10876
10877 if test $pkg_failed = yes; then
10878
10879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10880 _pkg_short_errors_supported=yes
10881 else
10882 _pkg_short_errors_supported=no
10883 fi
10884 if test $_pkg_short_errors_supported = yes; then
10885 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1`
10886 else
10887 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1`
10888 fi
10889 # Put the nasty error message in config.log where it belongs
10890 echo "$MKFONTSCALE_PKG_ERRORS" >&5
10891
10892 as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10893
10894 $MKFONTSCALE_PKG_ERRORS
10895
10896 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10897 installed software in a non-standard prefix.
10898
10899 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10900 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10901 See the pkg-config man page for more details.
10902 " "$LINENO" 5
10903 elif test $pkg_failed = untried; then
10904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10906 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10907 is in your PATH or set the PKG_CONFIG environment variable to the full
10908 path to pkg-config.
10909
10910 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10911 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10912 See the pkg-config man page for more details.
10913
10914 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10915 See \`config.log' for more details" "$LINENO" 5; }
10916 else
10917 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
10918 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; }
10921 :
10922 fi
10923
10924 pkg_failed=no
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
10926 $as_echo_n "checking for X11... " >&6; }
10927
10928 if test -n "$X11_CFLAGS"; then
10929 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
10930 elif test -n "$PKG_CONFIG"; then
10931 if test -n "$PKG_CONFIG" && \
10932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10933 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10934 ac_status=$?
10935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10936 test $ac_status = 0; }; then
10937 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10938 else
10939 pkg_failed=yes
10940 fi
10941 else
10942 pkg_failed=untried
10943 fi
10944 if test -n "$X11_LIBS"; then
10945 pkg_cv_X11_LIBS="$X11_LIBS"
10946 elif test -n "$PKG_CONFIG"; then
10947 if test -n "$PKG_CONFIG" && \
10948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10949 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10950 ac_status=$?
10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952 test $ac_status = 0; }; then
10953 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10954 else
10955 pkg_failed=yes
10956 fi
10957 else
10958 pkg_failed=untried
10959 fi
10960
10961
10962
10963 if test $pkg_failed = yes; then
10964
10965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10966 _pkg_short_errors_supported=yes
10967 else
10968 _pkg_short_errors_supported=no
10969 fi
10970 if test $_pkg_short_errors_supported = yes; then
10971 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10972 else
10973 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10974 fi
10975 # Put the nasty error message in config.log where it belongs
10976 echo "$X11_PKG_ERRORS" >&5
10977
10978 as_fn_error $? "Package requirements (xproto) were not met:
10979
10980 $X11_PKG_ERRORS
10981
10982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10983 installed software in a non-standard prefix.
10984
10985 Alternatively, you may set the environment variables X11_CFLAGS
10986 and X11_LIBS to avoid the need to call pkg-config.
10987 See the pkg-config man page for more details.
10988 " "$LINENO" 5
10989 elif test $pkg_failed = untried; then
10990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10992 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10993 is in your PATH or set the PKG_CONFIG environment variable to the full
10994 path to pkg-config.
10995
10996 Alternatively, you may set the environment variables X11_CFLAGS
10997 and X11_LIBS to avoid the need to call pkg-config.
10998 See the pkg-config man page for more details.
10999
11000 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11001 See \`config.log' for more details" "$LINENO" 5; }
11002 else
11003 X11_CFLAGS=$pkg_cv_X11_CFLAGS
11004 X11_LIBS=$pkg_cv_X11_LIBS
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006 $as_echo "yes" >&6; }
11007 :
11008 fi
11009
11010
11011
11012
11013
11014
11015 # Check whether --with-lint was given.
11016 if test "${with_lint+set}" = set; then :
11017 withval=$with_lint; use_lint=$withval
11018 else
11019 use_lint=no
11020 fi
11021
11022
11023 # Obtain platform specific info like program name and options
11024 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11025 case $host_os in
11026 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11027 lint_name=splint
11028 lint_options="-badflag"
11029 ;;
11030 *freebsd* | *netbsd*)
11031 lint_name=lint
11032 lint_options="-u -b"
11033 ;;
11034 *solaris*)
11035 lint_name=lint
11036 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11037 ;;
11038 esac
11039
11040 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11041 if test "x$use_lint" = x"yes" ; then
11042 # Extract the first word of "$lint_name", so it can be a program name with args.
11043 set dummy $lint_name; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if ${ac_cv_path_LINT+:} false; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 case $LINT in
11050 [\\/]* | ?:[\\/]*)
11051 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11052 ;;
11053 *)
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11056 do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 ;;
11070 esac
11071 fi
11072 LINT=$ac_cv_path_LINT
11073 if test -n "$LINT"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11075 $as_echo "$LINT" >&6; }
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; }
11079 fi
11080
11081
11082 if test "x$LINT" = "x"; then
11083 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11084 fi
11085 elif test "x$use_lint" = x"no" ; then
11086 if test "x$LINT" != "x"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11088 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11089 fi
11090 else
11091 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11092 fi
11093
11094 # User supplied flags override default flags
11095 if test "x$LINT_FLAGS" != "x"; then
11096 lint_options=$LINT_FLAGS
11097 fi
11098
11099 LINT_FLAGS=$lint_options
11100
11101 if test "x$LINT" != x; then
11102 LINT_TRUE=
11103 LINT_FALSE='#'
11104 else
11105 LINT_TRUE='#'
11106 LINT_FALSE=
11107 fi
11108
11109
11110
11111
11112 ac_config_files="$ac_config_files Makefile man/Makefile"
11113
11114 cat >confcache <<\_ACEOF
11115 # This file is a shell script that caches the results of configure
11116 # tests run on this system so they can be shared between configure
11117 # scripts and configure runs, see configure's option --config-cache.
11118 # It is not useful on other systems. If it contains results you don't
11119 # want to keep, you may remove or edit it.
11120 #
11121 # config.status only pays attention to the cache file if you give it
11122 # the --recheck option to rerun configure.
11123 #
11124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11126 # following values.
11127
11128 _ACEOF
11129
11130 # The following way of writing the cache mishandles newlines in values,
11131 # but we know of no workaround that is simple, portable, and efficient.
11132 # So, we kill variables containing newlines.
11133 # Ultrix sh set writes to stderr and can't be redirected directly,
11134 # and sets the high bit in the cache file unless we assign to the vars.
11135 (
11136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11137 eval ac_val=\$$ac_var
11138 case $ac_val in #(
11139 *${as_nl}*)
11140 case $ac_var in #(
11141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11143 esac
11144 case $ac_var in #(
11145 _ | IFS | as_nl) ;; #(
11146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11147 *) { eval $ac_var=; unset $ac_var;} ;;
11148 esac ;;
11149 esac
11150 done
11151
11152 (set) 2>&1 |
11153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11154 *${as_nl}ac_space=\ *)
11155 # `set' does not quote correctly, so add quotes: double-quote
11156 # substitution turns \\\\ into \\, and sed turns \\ into \.
11157 sed -n \
11158 "s/'/'\\\\''/g;
11159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11160 ;; #(
11161 *)
11162 # `set' quotes correctly as required by POSIX, so do not add quotes.
11163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11164 ;;
11165 esac |
11166 sort
11167 ) |
11168 sed '
11169 /^ac_cv_env_/b end
11170 t clear
11171 :clear
11172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11173 t end
11174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11175 :end' >>confcache
11176 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11177 if test -w "$cache_file"; then
11178 if test "x$cache_file" != "x/dev/null"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11180 $as_echo "$as_me: updating cache $cache_file" >&6;}
11181 if test ! -f "$cache_file" || test -h "$cache_file"; then
11182 cat confcache >"$cache_file"
11183 else
11184 case $cache_file in #(
11185 */* | ?:*)
11186 mv -f confcache "$cache_file"$$ &&
11187 mv -f "$cache_file"$$ "$cache_file" ;; #(
11188 *)
11189 mv -f confcache "$cache_file" ;;
11190 esac
11191 fi
11192 fi
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11195 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11196 fi
11197 fi
11198 rm -f confcache
11199
11200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11201 # Let make expand exec_prefix.
11202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11203
11204 DEFS=-DHAVE_CONFIG_H
11205
11206 ac_libobjs=
11207 ac_ltlibobjs=
11208 U=
11209 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11210 # 1. Remove the extension, and $U if already installed.
11211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11214 # will be set to the directory where LIBOBJS objects are built.
11215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11217 done
11218 LIBOBJS=$ac_libobjs
11219
11220 LTLIBOBJS=$ac_ltlibobjs
11221
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11224 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11225 if test -n "$am_sleep_pid"; then
11226 # Hide warnings about reused PIDs.
11227 wait $am_sleep_pid 2>/dev/null
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11230 $as_echo "done" >&6; }
11231 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11232 as_fn_error $? "conditional \"AMDEP\" was never defined.
11233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11234 fi
11235 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11236 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11238 fi
11239 if test -n "$EXEEXT"; then
11240 am__EXEEXT_TRUE=
11241 am__EXEEXT_FALSE='#'
11242 else
11243 am__EXEEXT_TRUE='#'
11244 am__EXEEXT_FALSE=
11245 fi
11246
11247 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11248 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11250 fi
11251 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11252 as_fn_error $? "conditional \"LINT\" was never defined.
11253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11254 fi
11255
11256 : "${CONFIG_STATUS=./config.status}"
11257 ac_write_fail=0
11258 ac_clean_files_save=$ac_clean_files
11259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11261 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11262 as_write_fail=0
11263 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11264 #! $SHELL
11265 # Generated by $as_me.
11266 # Run this file to recreate the current configuration.
11267 # Compiler output produced by configure, useful for debugging
11268 # configure, is in config.log if it exists.
11269
11270 debug=false
11271 ac_cs_recheck=false
11272 ac_cs_silent=false
11273
11274 SHELL=\${CONFIG_SHELL-$SHELL}
11275 export SHELL
11276 _ASEOF
11277 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11278 ## -------------------- ##
11279 ## M4sh Initialization. ##
11280 ## -------------------- ##
11281
11282 # Be more Bourne compatible
11283 DUALCASE=1; export DUALCASE # for MKS sh
11284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11285 emulate sh
11286 NULLCMD=:
11287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11288 # is contrary to our usage. Disable this feature.
11289 alias -g '${1+"$@"}'='"$@"'
11290 setopt NO_GLOB_SUBST
11291 else
11292 case `(set -o) 2>/dev/null` in #(
11293 *posix*) :
11294 set -o posix ;; #(
11295 *) :
11296 ;;
11297 esac
11298 fi
11299
11300
11301 as_nl='
11302 '
11303 export as_nl
11304 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11305 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11308 # Prefer a ksh shell builtin over an external printf program on Solaris,
11309 # but without wasting forks for bash or zsh.
11310 if test -z "$BASH_VERSION$ZSH_VERSION" \
11311 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11312 as_echo='print -r --'
11313 as_echo_n='print -rn --'
11314 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11315 as_echo='printf %s\n'
11316 as_echo_n='printf %s'
11317 else
11318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11320 as_echo_n='/usr/ucb/echo -n'
11321 else
11322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11323 as_echo_n_body='eval
11324 arg=$1;
11325 case $arg in #(
11326 *"$as_nl"*)
11327 expr "X$arg" : "X\\(.*\\)$as_nl";
11328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11329 esac;
11330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11331 '
11332 export as_echo_n_body
11333 as_echo_n='sh -c $as_echo_n_body as_echo'
11334 fi
11335 export as_echo_body
11336 as_echo='sh -c $as_echo_body as_echo'
11337 fi
11338
11339 # The user is always right.
11340 if test "${PATH_SEPARATOR+set}" != set; then
11341 PATH_SEPARATOR=:
11342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11344 PATH_SEPARATOR=';'
11345 }
11346 fi
11347
11348
11349 # IFS
11350 # We need space, tab and new line, in precisely that order. Quoting is
11351 # there to prevent editors from complaining about space-tab.
11352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11353 # splitting by setting IFS to empty value.)
11354 IFS=" "" $as_nl"
11355
11356 # Find who we are. Look in the path if we contain no directory separator.
11357 as_myself=
11358 case $0 in #((
11359 *[\\/]* ) as_myself=$0 ;;
11360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11362 do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11366 done
11367 IFS=$as_save_IFS
11368
11369 ;;
11370 esac
11371 # We did not find ourselves, most probably we were run as `sh COMMAND'
11372 # in which case we are not to be found in the path.
11373 if test "x$as_myself" = x; then
11374 as_myself=$0
11375 fi
11376 if test ! -f "$as_myself"; then
11377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11378 exit 1
11379 fi
11380
11381 # Unset variables that we do not need and which cause bugs (e.g. in
11382 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11383 # suppresses any "Segmentation fault" message there. '((' could
11384 # trigger a bug in pdksh 5.2.14.
11385 for as_var in BASH_ENV ENV MAIL MAILPATH
11386 do eval test x\${$as_var+set} = xset \
11387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11388 done
11389 PS1='$ '
11390 PS2='> '
11391 PS4='+ '
11392
11393 # NLS nuisances.
11394 LC_ALL=C
11395 export LC_ALL
11396 LANGUAGE=C
11397 export LANGUAGE
11398
11399 # CDPATH.
11400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11401
11402
11403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11404 # ----------------------------------------
11405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11407 # script with STATUS, using 1 if that was 0.
11408 as_fn_error ()
11409 {
11410 as_status=$1; test $as_status -eq 0 && as_status=1
11411 if test "$4"; then
11412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11414 fi
11415 $as_echo "$as_me: error: $2" >&2
11416 as_fn_exit $as_status
11417 } # as_fn_error
11418
11419
11420 # as_fn_set_status STATUS
11421 # -----------------------
11422 # Set $? to STATUS, without forking.
11423 as_fn_set_status ()
11424 {
11425 return $1
11426 } # as_fn_set_status
11427
11428 # as_fn_exit STATUS
11429 # -----------------
11430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11431 as_fn_exit ()
11432 {
11433 set +e
11434 as_fn_set_status $1
11435 exit $1
11436 } # as_fn_exit
11437
11438 # as_fn_unset VAR
11439 # ---------------
11440 # Portably unset VAR.
11441 as_fn_unset ()
11442 {
11443 { eval $1=; unset $1;}
11444 }
11445 as_unset=as_fn_unset
11446 # as_fn_append VAR VALUE
11447 # ----------------------
11448 # Append the text in VALUE to the end of the definition contained in VAR. Take
11449 # advantage of any shell optimizations that allow amortized linear growth over
11450 # repeated appends, instead of the typical quadratic growth present in naive
11451 # implementations.
11452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11453 eval 'as_fn_append ()
11454 {
11455 eval $1+=\$2
11456 }'
11457 else
11458 as_fn_append ()
11459 {
11460 eval $1=\$$1\$2
11461 }
11462 fi # as_fn_append
11463
11464 # as_fn_arith ARG...
11465 # ------------------
11466 # Perform arithmetic evaluation on the ARGs, and store the result in the
11467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11468 # must be portable across $(()) and expr.
11469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11470 eval 'as_fn_arith ()
11471 {
11472 as_val=$(( $* ))
11473 }'
11474 else
11475 as_fn_arith ()
11476 {
11477 as_val=`expr "$@" || test $? -eq 1`
11478 }
11479 fi # as_fn_arith
11480
11481
11482 if expr a : '\(a\)' >/dev/null 2>&1 &&
11483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11484 as_expr=expr
11485 else
11486 as_expr=false
11487 fi
11488
11489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11490 as_basename=basename
11491 else
11492 as_basename=false
11493 fi
11494
11495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11496 as_dirname=dirname
11497 else
11498 as_dirname=false
11499 fi
11500
11501 as_me=`$as_basename -- "$0" ||
11502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11503 X"$0" : 'X\(//\)$' \| \
11504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11505 $as_echo X/"$0" |
11506 sed '/^.*\/\([^/][^/]*\)\/*$/{
11507 s//\1/
11508 q
11509 }
11510 /^X\/\(\/\/\)$/{
11511 s//\1/
11512 q
11513 }
11514 /^X\/\(\/\).*/{
11515 s//\1/
11516 q
11517 }
11518 s/.*/./; q'`
11519
11520 # Avoid depending upon Character Ranges.
11521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11524 as_cr_digits='0123456789'
11525 as_cr_alnum=$as_cr_Letters$as_cr_digits
11526
11527 ECHO_C= ECHO_N= ECHO_T=
11528 case `echo -n x` in #(((((
11529 -n*)
11530 case `echo 'xy\c'` in
11531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11532 xy) ECHO_C='\c';;
11533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11534 ECHO_T=' ';;
11535 esac;;
11536 *)
11537 ECHO_N='-n';;
11538 esac
11539
11540 rm -f conf$$ conf$$.exe conf$$.file
11541 if test -d conf$$.dir; then
11542 rm -f conf$$.dir/conf$$.file
11543 else
11544 rm -f conf$$.dir
11545 mkdir conf$$.dir 2>/dev/null
11546 fi
11547 if (echo >conf$$.file) 2>/dev/null; then
11548 if ln -s conf$$.file conf$$ 2>/dev/null; then
11549 as_ln_s='ln -s'
11550 # ... but there are two gotchas:
11551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11553 # In both cases, we have to default to `cp -p'.
11554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11555 as_ln_s='cp -p'
11556 elif ln conf$$.file conf$$ 2>/dev/null; then
11557 as_ln_s=ln
11558 else
11559 as_ln_s='cp -p'
11560 fi
11561 else
11562 as_ln_s='cp -p'
11563 fi
11564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11565 rmdir conf$$.dir 2>/dev/null
11566
11567
11568 # as_fn_mkdir_p
11569 # -------------
11570 # Create "$as_dir" as a directory, including parents if necessary.
11571 as_fn_mkdir_p ()
11572 {
11573
11574 case $as_dir in #(
11575 -*) as_dir=./$as_dir;;
11576 esac
11577 test -d "$as_dir" || eval $as_mkdir_p || {
11578 as_dirs=
11579 while :; do
11580 case $as_dir in #(
11581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11582 *) as_qdir=$as_dir;;
11583 esac
11584 as_dirs="'$as_qdir' $as_dirs"
11585 as_dir=`$as_dirname -- "$as_dir" ||
11586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11587 X"$as_dir" : 'X\(//\)[^/]' \| \
11588 X"$as_dir" : 'X\(//\)$' \| \
11589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11590 $as_echo X"$as_dir" |
11591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11592 s//\1/
11593 q
11594 }
11595 /^X\(\/\/\)[^/].*/{
11596 s//\1/
11597 q
11598 }
11599 /^X\(\/\/\)$/{
11600 s//\1/
11601 q
11602 }
11603 /^X\(\/\).*/{
11604 s//\1/
11605 q
11606 }
11607 s/.*/./; q'`
11608 test -d "$as_dir" && break
11609 done
11610 test -z "$as_dirs" || eval "mkdir $as_dirs"
11611 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11612
11613
11614 } # as_fn_mkdir_p
11615 if mkdir -p . 2>/dev/null; then
11616 as_mkdir_p='mkdir -p "$as_dir"'
11617 else
11618 test -d ./-p && rmdir ./-p
11619 as_mkdir_p=false
11620 fi
11621
11622 if test -x / >/dev/null 2>&1; then
11623 as_test_x='test -x'
11624 else
11625 if ls -dL / >/dev/null 2>&1; then
11626 as_ls_L_option=L
11627 else
11628 as_ls_L_option=
11629 fi
11630 as_test_x='
11631 eval sh -c '\''
11632 if test -d "$1"; then
11633 test -d "$1/.";
11634 else
11635 case $1 in #(
11636 -*)set "./$1";;
11637 esac;
11638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11639 ???[sx]*):;;*)false;;esac;fi
11640 '\'' sh
11641 '
11642 fi
11643 as_executable_p=$as_test_x
11644
11645 # Sed expression to map a string onto a valid CPP name.
11646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11647
11648 # Sed expression to map a string onto a valid variable name.
11649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11650
11651
11652 exec 6>&1
11653 ## ----------------------------------- ##
11654 ## Main body of $CONFIG_STATUS script. ##
11655 ## ----------------------------------- ##
11656 _ASEOF
11657 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11658
11659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11660 # Save the log message, to keep $0 and so on meaningful, and to
11661 # report actual input values of CONFIG_FILES etc. instead of their
11662 # values after options handling.
11663 ac_log="
11664 This file was extended by mkfontscale $as_me 1.1.1, which was
11665 generated by GNU Autoconf 2.68. Invocation command line was
11666
11667 CONFIG_FILES = $CONFIG_FILES
11668 CONFIG_HEADERS = $CONFIG_HEADERS
11669 CONFIG_LINKS = $CONFIG_LINKS
11670 CONFIG_COMMANDS = $CONFIG_COMMANDS
11671 $ $0 $@
11672
11673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11674 "
11675
11676 _ACEOF
11677
11678 case $ac_config_files in *"
11679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11680 esac
11681
11682 case $ac_config_headers in *"
11683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11684 esac
11685
11686
11687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11688 # Files that config.status was made for.
11689 config_files="$ac_config_files"
11690 config_headers="$ac_config_headers"
11691 config_commands="$ac_config_commands"
11692
11693 _ACEOF
11694
11695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11696 ac_cs_usage="\
11697 \`$as_me' instantiates files and other configuration actions
11698 from templates according to the current configuration. Unless the files
11699 and actions are specified as TAGs, all are instantiated by default.
11700
11701 Usage: $0 [OPTION]... [TAG]...
11702
11703 -h, --help print this help, then exit
11704 -V, --version print version number and configuration settings, then exit
11705 --config print configuration, then exit
11706 -q, --quiet, --silent
11707 do not print progress messages
11708 -d, --debug don't remove temporary files
11709 --recheck update $as_me by reconfiguring in the same conditions
11710 --file=FILE[:TEMPLATE]
11711 instantiate the configuration file FILE
11712 --header=FILE[:TEMPLATE]
11713 instantiate the configuration header FILE
11714
11715 Configuration files:
11716 $config_files
11717
11718 Configuration headers:
11719 $config_headers
11720
11721 Configuration commands:
11722 $config_commands
11723
11724 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11725
11726 _ACEOF
11727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11728 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11729 ac_cs_version="\\
11730 mkfontscale config.status 1.1.1
11731 configured by $0, generated by GNU Autoconf 2.68,
11732 with options \\"\$ac_cs_config\\"
11733
11734 Copyright (C) 2010 Free Software Foundation, Inc.
11735 This config.status script is free software; the Free Software Foundation
11736 gives unlimited permission to copy, distribute and modify it."
11737
11738 ac_pwd='$ac_pwd'
11739 srcdir='$srcdir'
11740 INSTALL='$INSTALL'
11741 MKDIR_P='$MKDIR_P'
11742 AWK='$AWK'
11743 test -n "\$AWK" || AWK=awk
11744 _ACEOF
11745
11746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747 # The default lists apply if the user does not specify any file.
11748 ac_need_defaults=:
11749 while test $# != 0
11750 do
11751 case $1 in
11752 --*=?*)
11753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11755 ac_shift=:
11756 ;;
11757 --*=)
11758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11759 ac_optarg=
11760 ac_shift=:
11761 ;;
11762 *)
11763 ac_option=$1
11764 ac_optarg=$2
11765 ac_shift=shift
11766 ;;
11767 esac
11768
11769 case $ac_option in
11770 # Handling of the options.
11771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11772 ac_cs_recheck=: ;;
11773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11774 $as_echo "$ac_cs_version"; exit ;;
11775 --config | --confi | --conf | --con | --co | --c )
11776 $as_echo "$ac_cs_config"; exit ;;
11777 --debug | --debu | --deb | --de | --d | -d )
11778 debug=: ;;
11779 --file | --fil | --fi | --f )
11780 $ac_shift
11781 case $ac_optarg in
11782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11783 '') as_fn_error $? "missing file argument" ;;
11784 esac
11785 as_fn_append CONFIG_FILES " '$ac_optarg'"
11786 ac_need_defaults=false;;
11787 --header | --heade | --head | --hea )
11788 $ac_shift
11789 case $ac_optarg in
11790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11791 esac
11792 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11793 ac_need_defaults=false;;
11794 --he | --h)
11795 # Conflict between --help and --header
11796 as_fn_error $? "ambiguous option: \`$1'
11797 Try \`$0 --help' for more information.";;
11798 --help | --hel | -h )
11799 $as_echo "$ac_cs_usage"; exit ;;
11800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11802 ac_cs_silent=: ;;
11803
11804 # This is an error.
11805 -*) as_fn_error $? "unrecognized option: \`$1'
11806 Try \`$0 --help' for more information." ;;
11807
11808 *) as_fn_append ac_config_targets " $1"
11809 ac_need_defaults=false ;;
11810
11811 esac
11812 shift
11813 done
11814
11815 ac_configure_extra_args=
11816
11817 if $ac_cs_silent; then
11818 exec 6>/dev/null
11819 ac_configure_extra_args="$ac_configure_extra_args --silent"
11820 fi
11821
11822 _ACEOF
11823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11824 if \$ac_cs_recheck; then
11825 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11826 shift
11827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11828 CONFIG_SHELL='$SHELL'
11829 export CONFIG_SHELL
11830 exec "\$@"
11831 fi
11832
11833 _ACEOF
11834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11835 exec 5>>config.log
11836 {
11837 echo
11838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11839 ## Running $as_me. ##
11840 _ASBOX
11841 $as_echo "$ac_log"
11842 } >&5
11843
11844 _ACEOF
11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11846 #
11847 # INIT-COMMANDS
11848 #
11849 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11850
11851 _ACEOF
11852
11853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11854
11855 # Handling of arguments.
11856 for ac_config_target in $ac_config_targets
11857 do
11858 case $ac_config_target in
11859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11860 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11862 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11863
11864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11865 esac
11866 done
11867
11868
11869 # If the user did not use the arguments to specify the items to instantiate,
11870 # then the envvar interface is used. Set only those that are not.
11871 # We use the long form for the default assignment because of an extremely
11872 # bizarre bug on SunOS 4.1.3.
11873 if $ac_need_defaults; then
11874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11877 fi
11878
11879 # Have a temporary directory for convenience. Make it in the build tree
11880 # simply because there is no reason against having it here, and in addition,
11881 # creating and moving files from /tmp can sometimes cause problems.
11882 # Hook for its removal unless debugging.
11883 # Note that there is a small window in which the directory will not be cleaned:
11884 # after its creation but before its name has been assigned to `$tmp'.
11885 $debug ||
11886 {
11887 tmp= ac_tmp=
11888 trap 'exit_status=$?
11889 : "${ac_tmp:=$tmp}"
11890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11891 ' 0
11892 trap 'as_fn_exit 1' 1 2 13 15
11893 }
11894 # Create a (secure) tmp directory for tmp files.
11895
11896 {
11897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11898 test -d "$tmp"
11899 } ||
11900 {
11901 tmp=./conf$$-$RANDOM
11902 (umask 077 && mkdir "$tmp")
11903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11904 ac_tmp=$tmp
11905
11906 # Set up the scripts for CONFIG_FILES section.
11907 # No need to generate them if there are no CONFIG_FILES.
11908 # This happens for instance with `./config.status config.h'.
11909 if test -n "$CONFIG_FILES"; then
11910
11911
11912 ac_cr=`echo X | tr X '\015'`
11913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11914 # But we know of no other shell where ac_cr would be empty at this
11915 # point, so we can use a bashism as a fallback.
11916 if test "x$ac_cr" = x; then
11917 eval ac_cr=\$\'\\r\'
11918 fi
11919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11921 ac_cs_awk_cr='\\r'
11922 else
11923 ac_cs_awk_cr=$ac_cr
11924 fi
11925
11926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11927 _ACEOF
11928
11929
11930 {
11931 echo "cat >conf$$subs.awk <<_ACEOF" &&
11932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11933 echo "_ACEOF"
11934 } >conf$$subs.sh ||
11935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11937 ac_delim='%!_!# '
11938 for ac_last_try in false false false false false :; do
11939 . ./conf$$subs.sh ||
11940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11941
11942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11943 if test $ac_delim_n = $ac_delim_num; then
11944 break
11945 elif $ac_last_try; then
11946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11947 else
11948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11949 fi
11950 done
11951 rm -f conf$$subs.sh
11952
11953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11955 _ACEOF
11956 sed -n '
11957 h
11958 s/^/S["/; s/!.*/"]=/
11959 p
11960 g
11961 s/^[^!]*!//
11962 :repl
11963 t repl
11964 s/'"$ac_delim"'$//
11965 t delim
11966 :nl
11967 h
11968 s/\(.\{148\}\)..*/\1/
11969 t more1
11970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11971 p
11972 n
11973 b repl
11974 :more1
11975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11976 p
11977 g
11978 s/.\{148\}//
11979 t nl
11980 :delim
11981 h
11982 s/\(.\{148\}\)..*/\1/
11983 t more2
11984 s/["\\]/\\&/g; s/^/"/; s/$/"/
11985 p
11986 b
11987 :more2
11988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11989 p
11990 g
11991 s/.\{148\}//
11992 t delim
11993 ' <conf$$subs.awk | sed '
11994 /^[^""]/{
11995 N
11996 s/\n//
11997 }
11998 ' >>$CONFIG_STATUS || ac_write_fail=1
11999 rm -f conf$$subs.awk
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 _ACAWK
12002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12003 for (key in S) S_is_set[key] = 1
12004 FS = ""
12005
12006 }
12007 {
12008 line = $ 0
12009 nfields = split(line, field, "@")
12010 substed = 0
12011 len = length(field[1])
12012 for (i = 2; i < nfields; i++) {
12013 key = field[i]
12014 keylen = length(key)
12015 if (S_is_set[key]) {
12016 value = S[key]
12017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12018 len += length(value) + length(field[++i])
12019 substed = 1
12020 } else
12021 len += 1 + keylen
12022 }
12023
12024 print line
12025 }
12026
12027 _ACAWK
12028 _ACEOF
12029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12032 else
12033 cat
12034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12036 _ACEOF
12037
12038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12040 # trailing colons and then remove the whole line if VPATH becomes empty
12041 # (actually we leave an empty line to preserve line numbers).
12042 if test "x$srcdir" = x.; then
12043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12044 h
12045 s///
12046 s/^/:/
12047 s/[ ]*$/:/
12048 s/:\$(srcdir):/:/g
12049 s/:\${srcdir}:/:/g
12050 s/:@srcdir@:/:/g
12051 s/^:*//
12052 s/:*$//
12053 x
12054 s/\(=[ ]*\).*/\1/
12055 G
12056 s/\n//
12057 s/^[^=]*=[ ]*$//
12058 }'
12059 fi
12060
12061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062 fi # test -n "$CONFIG_FILES"
12063
12064 # Set up the scripts for CONFIG_HEADERS section.
12065 # No need to generate them if there are no CONFIG_HEADERS.
12066 # This happens for instance with `./config.status Makefile'.
12067 if test -n "$CONFIG_HEADERS"; then
12068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12069 BEGIN {
12070 _ACEOF
12071
12072 # Transform confdefs.h into an awk script `defines.awk', embedded as
12073 # here-document in config.status, that substitutes the proper values into
12074 # config.h.in to produce config.h.
12075
12076 # Create a delimiter string that does not exist in confdefs.h, to ease
12077 # handling of long lines.
12078 ac_delim='%!_!# '
12079 for ac_last_try in false false :; do
12080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12081 if test -z "$ac_tt"; then
12082 break
12083 elif $ac_last_try; then
12084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12085 else
12086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12087 fi
12088 done
12089
12090 # For the awk script, D is an array of macro values keyed by name,
12091 # likewise P contains macro parameters if any. Preserve backslash
12092 # newline sequences.
12093
12094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12095 sed -n '
12096 s/.\{148\}/&'"$ac_delim"'/g
12097 t rset
12098 :rset
12099 s/^[ ]*#[ ]*define[ ][ ]*/ /
12100 t def
12101 d
12102 :def
12103 s/\\$//
12104 t bsnl
12105 s/["\\]/\\&/g
12106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12107 D["\1"]=" \3"/p
12108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12109 d
12110 :bsnl
12111 s/["\\]/\\&/g
12112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12113 D["\1"]=" \3\\\\\\n"\\/p
12114 t cont
12115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12116 t cont
12117 d
12118 :cont
12119 n
12120 s/.\{148\}/&'"$ac_delim"'/g
12121 t clear
12122 :clear
12123 s/\\$//
12124 t bsnlc
12125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12126 d
12127 :bsnlc
12128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12129 b cont
12130 ' <confdefs.h | sed '
12131 s/'"$ac_delim"'/"\\\
12132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12133
12134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12135 for (key in D) D_is_set[key] = 1
12136 FS = ""
12137 }
12138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12139 line = \$ 0
12140 split(line, arg, " ")
12141 if (arg[1] == "#") {
12142 defundef = arg[2]
12143 mac1 = arg[3]
12144 } else {
12145 defundef = substr(arg[1], 2)
12146 mac1 = arg[2]
12147 }
12148 split(mac1, mac2, "(") #)
12149 macro = mac2[1]
12150 prefix = substr(line, 1, index(line, defundef) - 1)
12151 if (D_is_set[macro]) {
12152 # Preserve the white space surrounding the "#".
12153 print prefix "define", macro P[macro] D[macro]
12154 next
12155 } else {
12156 # Replace #undef with comments. This is necessary, for example,
12157 # in the case of _POSIX_SOURCE, which is predefined and required
12158 # on some systems where configure will not decide to define it.
12159 if (defundef == "undef") {
12160 print "/*", prefix defundef, macro, "*/"
12161 next
12162 }
12163 }
12164 }
12165 { print }
12166 _ACAWK
12167 _ACEOF
12168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12170 fi # test -n "$CONFIG_HEADERS"
12171
12172
12173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12174 shift
12175 for ac_tag
12176 do
12177 case $ac_tag in
12178 :[FHLC]) ac_mode=$ac_tag; continue;;
12179 esac
12180 case $ac_mode$ac_tag in
12181 :[FHL]*:*);;
12182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12183 :[FH]-) ac_tag=-:-;;
12184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12185 esac
12186 ac_save_IFS=$IFS
12187 IFS=:
12188 set x $ac_tag
12189 IFS=$ac_save_IFS
12190 shift
12191 ac_file=$1
12192 shift
12193
12194 case $ac_mode in
12195 :L) ac_source=$1;;
12196 :[FH])
12197 ac_file_inputs=
12198 for ac_f
12199 do
12200 case $ac_f in
12201 -) ac_f="$ac_tmp/stdin";;
12202 *) # Look for the file first in the build tree, then in the source tree
12203 # (if the path is not absolute). The absolute path cannot be DOS-style,
12204 # because $ac_f cannot contain `:'.
12205 test -f "$ac_f" ||
12206 case $ac_f in
12207 [\\/$]*) false;;
12208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12209 esac ||
12210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12211 esac
12212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12213 as_fn_append ac_file_inputs " '$ac_f'"
12214 done
12215
12216 # Let's still pretend it is `configure' which instantiates (i.e., don't
12217 # use $as_me), people would be surprised to read:
12218 # /* config.h. Generated by config.status. */
12219 configure_input='Generated from '`
12220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12221 `' by configure.'
12222 if test x"$ac_file" != x-; then
12223 configure_input="$ac_file. $configure_input"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12225 $as_echo "$as_me: creating $ac_file" >&6;}
12226 fi
12227 # Neutralize special characters interpreted by sed in replacement strings.
12228 case $configure_input in #(
12229 *\&* | *\|* | *\\* )
12230 ac_sed_conf_input=`$as_echo "$configure_input" |
12231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12232 *) ac_sed_conf_input=$configure_input;;
12233 esac
12234
12235 case $ac_tag in
12236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12238 esac
12239 ;;
12240 esac
12241
12242 ac_dir=`$as_dirname -- "$ac_file" ||
12243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12244 X"$ac_file" : 'X\(//\)[^/]' \| \
12245 X"$ac_file" : 'X\(//\)$' \| \
12246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12247 $as_echo X"$ac_file" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12249 s//\1/
12250 q
12251 }
12252 /^X\(\/\/\)[^/].*/{
12253 s//\1/
12254 q
12255 }
12256 /^X\(\/\/\)$/{
12257 s//\1/
12258 q
12259 }
12260 /^X\(\/\).*/{
12261 s//\1/
12262 q
12263 }
12264 s/.*/./; q'`
12265 as_dir="$ac_dir"; as_fn_mkdir_p
12266 ac_builddir=.
12267
12268 case "$ac_dir" in
12269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12270 *)
12271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12272 # A ".." for each directory in $ac_dir_suffix.
12273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12274 case $ac_top_builddir_sub in
12275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12277 esac ;;
12278 esac
12279 ac_abs_top_builddir=$ac_pwd
12280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12281 # for backward compatibility:
12282 ac_top_builddir=$ac_top_build_prefix
12283
12284 case $srcdir in
12285 .) # We are building in place.
12286 ac_srcdir=.
12287 ac_top_srcdir=$ac_top_builddir_sub
12288 ac_abs_top_srcdir=$ac_pwd ;;
12289 [\\/]* | ?:[\\/]* ) # Absolute name.
12290 ac_srcdir=$srcdir$ac_dir_suffix;
12291 ac_top_srcdir=$srcdir
12292 ac_abs_top_srcdir=$srcdir ;;
12293 *) # Relative name.
12294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12295 ac_top_srcdir=$ac_top_build_prefix$srcdir
12296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12297 esac
12298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12299
12300
12301 case $ac_mode in
12302 :F)
12303 #
12304 # CONFIG_FILE
12305 #
12306
12307 case $INSTALL in
12308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12310 esac
12311 ac_MKDIR_P=$MKDIR_P
12312 case $MKDIR_P in
12313 [\\/$]* | ?:[\\/]* ) ;;
12314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12315 esac
12316 _ACEOF
12317
12318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12319 # If the template does not know about datarootdir, expand it.
12320 # FIXME: This hack should be removed a few years after 2.60.
12321 ac_datarootdir_hack=; ac_datarootdir_seen=
12322 ac_sed_dataroot='
12323 /datarootdir/ {
12324 p
12325 q
12326 }
12327 /@datadir@/p
12328 /@docdir@/p
12329 /@infodir@/p
12330 /@localedir@/p
12331 /@mandir@/p'
12332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12333 *datarootdir*) ac_datarootdir_seen=yes;;
12334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12337 _ACEOF
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339 ac_datarootdir_hack='
12340 s&@datadir@&$datadir&g
12341 s&@docdir@&$docdir&g
12342 s&@infodir@&$infodir&g
12343 s&@localedir@&$localedir&g
12344 s&@mandir@&$mandir&g
12345 s&\\\${datarootdir}&$datarootdir&g' ;;
12346 esac
12347 _ACEOF
12348
12349 # Neutralize VPATH when `$srcdir' = `.'.
12350 # Shell code in configure.ac might set extrasub.
12351 # FIXME: do we really want to maintain this feature?
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 ac_sed_extra="$ac_vpsub
12354 $extrasub
12355 _ACEOF
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357 :t
12358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12359 s|@configure_input@|$ac_sed_conf_input|;t t
12360 s&@top_builddir@&$ac_top_builddir_sub&;t t
12361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12362 s&@srcdir@&$ac_srcdir&;t t
12363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12364 s&@top_srcdir@&$ac_top_srcdir&;t t
12365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12366 s&@builddir@&$ac_builddir&;t t
12367 s&@abs_builddir@&$ac_abs_builddir&;t t
12368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12369 s&@INSTALL@&$ac_INSTALL&;t t
12370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12371 $ac_datarootdir_hack
12372 "
12373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12375
12376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12381 which seems to be undefined. Please make sure it is defined" >&5
12382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12383 which seems to be undefined. Please make sure it is defined" >&2;}
12384
12385 rm -f "$ac_tmp/stdin"
12386 case $ac_file in
12387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12389 esac \
12390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12391 ;;
12392 :H)
12393 #
12394 # CONFIG_HEADER
12395 #
12396 if test x"$ac_file" != x-; then
12397 {
12398 $as_echo "/* $configure_input */" \
12399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12400 } >"$ac_tmp/config.h" \
12401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12405 else
12406 rm -f "$ac_file"
12407 mv "$ac_tmp/config.h" "$ac_file" \
12408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12409 fi
12410 else
12411 $as_echo "/* $configure_input */" \
12412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12413 || as_fn_error $? "could not create -" "$LINENO" 5
12414 fi
12415 # Compute "$ac_file"'s index in $config_headers.
12416 _am_arg="$ac_file"
12417 _am_stamp_count=1
12418 for _am_header in $config_headers :; do
12419 case $_am_header in
12420 $_am_arg | $_am_arg:* )
12421 break ;;
12422 * )
12423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12424 esac
12425 done
12426 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12427 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12428 X"$_am_arg" : 'X\(//\)[^/]' \| \
12429 X"$_am_arg" : 'X\(//\)$' \| \
12430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12431 $as_echo X"$_am_arg" |
12432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12433 s//\1/
12434 q
12435 }
12436 /^X\(\/\/\)[^/].*/{
12437 s//\1/
12438 q
12439 }
12440 /^X\(\/\/\)$/{
12441 s//\1/
12442 q
12443 }
12444 /^X\(\/\).*/{
12445 s//\1/
12446 q
12447 }
12448 s/.*/./; q'`/stamp-h$_am_stamp_count
12449 ;;
12450
12451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12452 $as_echo "$as_me: executing $ac_file commands" >&6;}
12453 ;;
12454 esac
12455
12456
12457 case $ac_file$ac_mode in
12458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12459 # Older Autoconf quotes --file arguments for eval, but not when files
12460 # are listed without --file. Let's play safe and only enable the eval
12461 # if we detect the quoting.
12462 case $CONFIG_FILES in
12463 *\'*) eval set x "$CONFIG_FILES" ;;
12464 *) set x $CONFIG_FILES ;;
12465 esac
12466 shift
12467 for mf
12468 do
12469 # Strip MF so we end up with the name of the file.
12470 mf=`echo "$mf" | sed -e 's/:.*$//'`
12471 # Check whether this is an Automake generated Makefile or not.
12472 # We used to match only the files named 'Makefile.in', but
12473 # some people rename them; so instead we look at the file content.
12474 # Grep'ing the first line is not enough: some people post-process
12475 # each Makefile.in and add a new line on top of each file to say so.
12476 # Grep'ing the whole file is not good either: AIX grep has a line
12477 # limit of 2048, but all sed's we know have understand at least 4000.
12478 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12479 dirpart=`$as_dirname -- "$mf" ||
12480 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12481 X"$mf" : 'X\(//\)[^/]' \| \
12482 X"$mf" : 'X\(//\)$' \| \
12483 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12484 $as_echo X"$mf" |
12485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12486 s//\1/
12487 q
12488 }
12489 /^X\(\/\/\)[^/].*/{
12490 s//\1/
12491 q
12492 }
12493 /^X\(\/\/\)$/{
12494 s//\1/
12495 q
12496 }
12497 /^X\(\/\).*/{
12498 s//\1/
12499 q
12500 }
12501 s/.*/./; q'`
12502 else
12503 continue
12504 fi
12505 # Extract the definition of DEPDIR, am__include, and am__quote
12506 # from the Makefile without running 'make'.
12507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12508 test -z "$DEPDIR" && continue
12509 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12510 test -z "$am__include" && continue
12511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12512 # Find all dependency output files, they are included files with
12513 # $(DEPDIR) in their names. We invoke sed twice because it is the
12514 # simplest approach to changing $(DEPDIR) to its actual value in the
12515 # expansion.
12516 for file in `sed -n "
12517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12519 # Make sure the directory exists.
12520 test -f "$dirpart/$file" && continue
12521 fdir=`$as_dirname -- "$file" ||
12522 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12523 X"$file" : 'X\(//\)[^/]' \| \
12524 X"$file" : 'X\(//\)$' \| \
12525 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12526 $as_echo X"$file" |
12527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12528 s//\1/
12529 q
12530 }
12531 /^X\(\/\/\)[^/].*/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\/\)$/{
12536 s//\1/
12537 q
12538 }
12539 /^X\(\/\).*/{
12540 s//\1/
12541 q
12542 }
12543 s/.*/./; q'`
12544 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12545 # echo "creating $dirpart/$file"
12546 echo '# dummy' > "$dirpart/$file"
12547 done
12548 done
12549 }
12550 ;;
12551
12552 esac
12553 done # for ac_tag
12554
12555
12556 as_fn_exit 0
12557 _ACEOF
12558 ac_clean_files=$ac_clean_files_save
12559
12560 test $ac_write_fail = 0 ||
12561 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12562
12563
12564 # configure is writing to config.log, and then calls config.status.
12565 # config.status does its own redirection, appending to config.log.
12566 # Unfortunately, on DOS this fails, as config.log is still kept open
12567 # by configure, so config.status won't be able to write to it; its
12568 # output is simply discarded. So we exec the FD to /dev/null,
12569 # effectively closing config.log, so it can be properly (re)opened and
12570 # appended to by config.status. When coming back to configure, we
12571 # need to make the FD available again.
12572 if test "$no_create" != yes; then
12573 ac_cs_success=:
12574 ac_config_status_args=
12575 test "$silent" = yes &&
12576 ac_config_status_args="$ac_config_status_args --quiet"
12577 exec 5>/dev/null
12578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12579 exec 5>>config.log
12580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12581 # would make configure fail if this is the last instruction.
12582 $ac_cs_success || as_fn_exit 1
12583 fi
12584 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12586 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12587 fi
12588
12589