configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mkfontscale 1.1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='mkfontscale'
583 PACKAGE_TARNAME='mkfontscale'
584 PACKAGE_VERSION='1.1.3'
585 PACKAGE_STRING='mkfontscale 1.1.3'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 LINT_FALSE
631 LINT_TRUE
632 LINT_FLAGS
633 LINT
634 X11_LIBS
635 X11_CFLAGS
636 MKFONTSCALE_LIBS
637 MKFONTSCALE_CFLAGS
638 MAN_SUBSTS
639 XORG_MAN_PAGE
640 ADMIN_MAN_DIR
641 DRIVER_MAN_DIR
642 MISC_MAN_DIR
643 FILE_MAN_DIR
644 LIB_MAN_DIR
645 APP_MAN_DIR
646 ADMIN_MAN_SUFFIX
647 DRIVER_MAN_SUFFIX
648 MISC_MAN_SUFFIX
649 FILE_MAN_SUFFIX
650 LIB_MAN_SUFFIX
651 APP_MAN_SUFFIX
652 SED
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 INSTALL_CMD
662 PKG_CONFIG_LIBDIR
663 PKG_CONFIG_PATH
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 AM_BACKSLASH
670 AM_DEFAULT_VERBOSITY
671 AM_DEFAULT_V
672 AM_V
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 EGREP
707 GREP
708 CPP
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_dependency_tracking
758 enable_silent_rules
759 enable_selective_werror
760 enable_strict_compilation
761 with_bzip2
762 with_lint
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 MKFONTSCALE_CFLAGS
777 MKFONTSCALE_LIBS
778 X11_CFLAGS
779 X11_LIBS
780 LINT
781 LINT_FLAGS'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287 else
1288 ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures mkfontscale 1.1.3 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1376
1377 cat <<\_ACEOF
1378
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of mkfontscale 1.1.3:";;
1393 esac
1394 cat <<\_ACEOF
1395
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-silent-rules less verbose build output (undo: "make V=1")
1405 --disable-silent-rules verbose build output (undo: "make V=0")
1406 --disable-selective-werror
1407 Turn off selective compiler errors. (default:
1408 enabled)
1409 --enable-strict-compilation
1410 Enable all warnings from compiler and make them
1411 errors (default: disabled)
1412
1413 Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-bzip2 Support bzip2 compressed bitmap fonts
1417 --with-lint Use a lint-style source code checker (default:
1418 disabled)
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 MKFONTSCALE_CFLAGS
1435 C compiler flags for MKFONTSCALE, overriding pkg-config
1436 MKFONTSCALE_LIBS
1437 linker flags for MKFONTSCALE, overriding pkg-config
1438 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1439 X11_LIBS linker flags for X11, overriding pkg-config
1440 LINT Path to a lint-style command
1441 LINT_FLAGS Flags for the lint-style command
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 mkfontscale configure 1.1.3
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_cpp ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_cpp
1597
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1602 # accordingly.
1603 ac_fn_c_check_header_mongrel ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if eval \${$3+:} false; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611 fi
1612 eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1615 else
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1626 else
1627 ac_header_compiler=no
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1632
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1642 else
1643 ac_header_preproc=no
1644 fi
1645 rm -f conftest.err conftest.i conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1648
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 yes:no: )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ;;
1657 no:yes:* )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ( $as_echo "## ---------------------------------------------------------------------- ##
1669 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1670 ## ---------------------------------------------------------------------- ##"
1671 ) | sed "s/^/$as_me: WARNING: /" >&2
1672 ;;
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_mongrel
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1763 # ---------------------------------------------
1764 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1765 # accordingly.
1766 ac_fn_c_check_decl ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 as_decl_name=`echo $2|sed 's/ *(.*//'`
1770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1772 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main ()
1781 {
1782 #ifndef $as_decl_name
1783 #ifdef __cplusplus
1784 (void) $as_decl_use;
1785 #else
1786 (void) $as_decl_name;
1787 #endif
1788 #endif
1789
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_decl
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_link
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1856
1857 It was created by mkfontscale $as_me 1.1.3, which was
1858 generated by GNU Autoconf 2.69. Invocation command line was
1859
1860 $ $0 $@
1861
1862 _ACEOF
1863 exec 5>>config.log
1864 {
1865 cat <<_ASUNAME
1866 ## --------- ##
1867 ## Platform. ##
1868 ## --------- ##
1869
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1878
1879 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1880 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1883 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1884 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1885 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1886
1887 _ASUNAME
1888
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 $as_echo "PATH: $as_dir"
1895 done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921 for ac_arg
1922 do
1923 case $ac_arg in
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 continue ;;
1928 *\'*)
1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 esac
1931 case $ac_pass in
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933 2)
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1937 else
1938 case $ac_arg in
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945 esac
1946 ;;
1947 -* ) ac_must_keep_next=true ;;
1948 esac
1949 fi
1950 as_fn_append ac_configure_args " '$ac_arg'"
1951 ;;
1952 esac
1953 done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Save into config.log some information that might help in debugging.
1965 {
1966 echo
1967
1968 $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1971 echo
1972 # The following way of writing the cache mishandles newlines in values,
1973 (
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in #(
1977 *${as_nl}*)
1978 case $ac_var in #(
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 esac
1982 case $ac_var in #(
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1986 esac ;;
1987 esac
1988 done
1989 (set) 2>&1 |
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1992 sed -n \
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 ;; #(
1996 *)
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ;;
1999 esac |
2000 sort
2001 )
2002 echo
2003
2004 $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2007 echo
2008 for ac_var in $ac_subst_vars
2009 do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 esac
2014 $as_echo "$ac_var='\''$ac_val'\''"
2015 done | sort
2016 echo
2017
2018 if test -n "$ac_subst_files"; then
2019 $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2022 echo
2023 for ac_var in $ac_subst_files
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032 fi
2033
2034 if test -s confdefs.h; then
2035 $as_echo "## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##"
2038 echo
2039 cat confdefs.h
2040 echo
2041 fi
2042 test "$ac_signal" != 0 &&
2043 $as_echo "$as_me: caught signal $ac_signal"
2044 $as_echo "$as_me: exit $exit_status"
2045 } >&5
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048 exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 $as_echo "/* confdefs.h */" > confdefs.h
2059
2060 # Predefined preprocessor variables.
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2084 _ACEOF
2085
2086
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 ac_site_file1=NONE
2090 ac_site_file2=NONE
2091 if test -n "$CONFIG_SITE"; then
2092 # We do not want a PATH search for config.site.
2093 case $CONFIG_SITE in #((
2094 -*) ac_site_file1=./$CONFIG_SITE;;
2095 */*) ac_site_file1=$CONFIG_SITE;;
2096 *) ac_site_file1=./$CONFIG_SITE;;
2097 esac
2098 elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2101 else
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2104 fi
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106 do
2107 test "x$ac_site_file" = xNONE && continue
2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2112 . "$ac_site_file" \
2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2117 fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126 case $cache_file in
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2129 esac
2130 fi
2131 else
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2146 set,)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,set)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,);;
2155 *)
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2168 fi
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2173 fi;;
2174 esac
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2177 case $ac_new_val in
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2180 esac
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184 esac
2185 fi
2186 done
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193 fi
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205
2206 ac_config_headers="$ac_config_headers config.h"
2207
2208 ac_aux_dir=
2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 if test -f "$ac_dir/install-sh"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/install-sh -c"
2213 break
2214 elif test -f "$ac_dir/install.sh"; then
2215 ac_aux_dir=$ac_dir
2216 ac_install_sh="$ac_aux_dir/install.sh -c"
2217 break
2218 elif test -f "$ac_dir/shtool"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 break
2222 fi
2223 done
2224 if test -z "$ac_aux_dir"; then
2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226 fi
2227
2228 # These three variables are undocumented and unsupported,
2229 # and are intended to be withdrawn in a future Autoconf release.
2230 # They can cause serious problems if a builder's source tree is in a directory
2231 # whose full name contains unusual characters.
2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235
2236
2237 # Expand $ac_aux_dir to an absolute path.
2238 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2239
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if ${ac_cv_prog_CC+:} false; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2266 fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271 fi
2272 fi
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279 $as_echo "no" >&6; }
2280 fi
2281
2282
2283 fi
2284 if test -z "$ac_cv_prog_CC"; then
2285 ac_ct_CC=$CC
2286 # Extract the first word of "gcc", so it can be a program name with args.
2287 set dummy gcc; ac_word=$2
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="gcc"
2304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2316 $as_echo "$ac_ct_CC" >&6; }
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319 $as_echo "no" >&6; }
2320 fi
2321
2322 if test "x$ac_ct_CC" = x; then
2323 CC=""
2324 else
2325 case $cross_compiling:$ac_tool_warned in
2326 yes:)
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331 CC=$ac_ct_CC
2332 fi
2333 else
2334 CC="$ac_cv_prog_CC"
2335 fi
2336
2337 if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}cc; ac_word=$2
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if ${ac_cv_prog_CC+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_CC="${ac_tool_prefix}cc"
2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369 $as_echo "$CC" >&6; }
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376 fi
2377 fi
2378 if test -z "$CC"; then
2379 # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382 $as_echo_n "checking for $ac_word... " >&6; }
2383 if ${ac_cv_prog_CC+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2388 else
2389 ac_prog_rejected=no
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398 ac_prog_rejected=yes
2399 continue
2400 fi
2401 ac_cv_prog_CC="cc"
2402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 if test $ac_prog_rejected = yes; then
2410 # We found a bogon in the path, so make sure we never use it.
2411 set dummy $ac_cv_prog_CC
2412 shift
2413 if test $# != 0; then
2414 # We chose a different compiler from the bogus one.
2415 # However, it has the same basename, so the bogon will be chosen
2416 # first if we set CC to just the basename; use the full file name.
2417 shift
2418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419 fi
2420 fi
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2426 $as_echo "$CC" >&6; }
2427 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2430 fi
2431
2432
2433 fi
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 for ac_prog in cl.exe
2437 do
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_CC+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474
2475 test -n "$CC" && break
2476 done
2477 fi
2478 if test -z "$CC"; then
2479 ac_ct_CC=$CC
2480 for ac_prog in cl.exe
2481 do
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_ac_ct_CC="$ac_prog"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2512 $as_echo "$ac_ct_CC" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 test -n "$ac_ct_CC" && break
2520 done
2521
2522 if test "x$ac_ct_CC" = x; then
2523 CC=""
2524 else
2525 case $cross_compiling:$ac_tool_warned in
2526 yes:)
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529 ac_tool_warned=yes ;;
2530 esac
2531 CC=$ac_ct_CC
2532 fi
2533 fi
2534
2535 fi
2536
2537
2538 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 as_fn_error $? "no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details" "$LINENO" 5; }
2542
2543 # Provide some information about the compiler.
2544 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2545 set X $ac_compile
2546 ac_compiler=$2
2547 for ac_option in --version -v -V -qversion; do
2548 { { ac_try="$ac_compiler $ac_option >&5"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554 $as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2556 ac_status=$?
2557 if test -s conftest.err; then
2558 sed '10a\
2559 ... rest of stderr output deleted ...
2560 10q' conftest.err >conftest.er1
2561 cat conftest.er1 >&5
2562 fi
2563 rm -f conftest.er1 conftest.err
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }
2566 done
2567
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570
2571 int
2572 main ()
2573 {
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 ac_clean_files_save=$ac_clean_files
2580 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2581 # Try to create an executable without -o first, disregard a.out.
2582 # It will help us diagnose broken compilers, and finding out an intuition
2583 # of exeext.
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2585 $as_echo_n "checking whether the C compiler works... " >&6; }
2586 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587
2588 # The possible output files:
2589 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2590
2591 ac_rmfiles=
2592 for ac_file in $ac_files
2593 do
2594 case $ac_file in
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2596 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597 esac
2598 done
2599 rm -f $ac_rmfiles
2600
2601 if { { ac_try="$ac_link_default"
2602 case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605 esac
2606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607 $as_echo "$ac_try_echo"; } >&5
2608 (eval "$ac_link_default") 2>&5
2609 ac_status=$?
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; }; then :
2612 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2613 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2614 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2615 # so that the user can short-circuit this test for compilers unknown to
2616 # Autoconf.
2617 for ac_file in $ac_files ''
2618 do
2619 test -f "$ac_file" || continue
2620 case $ac_file in
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2622 ;;
2623 [ab].out )
2624 # We found the default executable, but exeext='' is most
2625 # certainly right.
2626 break;;
2627 *.* )
2628 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2629 then :; else
2630 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631 fi
2632 # We set ac_cv_exeext here because the later test for it is not
2633 # safe: cross compilers may not add the suffix if given an `-o'
2634 # argument, so we may need to know it at that point already.
2635 # Even if this section looks crufty: it has the advantage of
2636 # actually working.
2637 break;;
2638 * )
2639 break;;
2640 esac
2641 done
2642 test "$ac_cv_exeext" = no && ac_cv_exeext=
2643
2644 else
2645 ac_file=''
2646 fi
2647 if test -z "$ac_file"; then :
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 $as_echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 as_fn_error 77 "C compiler cannot create executables
2656 See \`config.log' for more details" "$LINENO" 5; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 $as_echo "yes" >&6; }
2660 fi
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2662 $as_echo_n "checking for C compiler default output file name... " >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2664 $as_echo "$ac_file" >&6; }
2665 ac_exeext=$ac_cv_exeext
2666
2667 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2668 ac_clean_files=$ac_clean_files_save
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2670 $as_echo_n "checking for suffix of executables... " >&6; }
2671 if { { ac_try="$ac_link"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_link") 2>&5
2679 ac_status=$?
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; }; then :
2682 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2683 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2684 # work properly (i.e., refer to `conftest.exe'), while it won't with
2685 # `rm'.
2686 for ac_file in conftest.exe conftest conftest.*; do
2687 test -f "$ac_file" || continue
2688 case $ac_file in
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2690 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2691 break;;
2692 * ) break;;
2693 esac
2694 done
2695 else
2696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2699 See \`config.log' for more details" "$LINENO" 5; }
2700 fi
2701 rm -f conftest conftest$ac_cv_exeext
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2703 $as_echo "$ac_cv_exeext" >&6; }
2704
2705 rm -f conftest.$ac_ext
2706 EXEEXT=$ac_cv_exeext
2707 ac_exeext=$EXEEXT
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <stdio.h>
2711 int
2712 main ()
2713 {
2714 FILE *f = fopen ("conftest.out", "w");
2715 return ferror (f) || fclose (f) != 0;
2716
2717 ;
2718 return 0;
2719 }
2720 _ACEOF
2721 ac_clean_files="$ac_clean_files conftest.out"
2722 # Check that the compiler produces executables we can run. If not, either
2723 # the compiler is broken, or we cross compile.
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2725 $as_echo_n "checking whether we are cross compiling... " >&6; }
2726 if test "$cross_compiling" != yes; then
2727 { { ac_try="$ac_link"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734 (eval "$ac_link") 2>&5
2735 ac_status=$?
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; }
2738 if { ac_try='./conftest$ac_cv_exeext'
2739 { { case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_try") 2>&5
2746 ac_status=$?
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; }; then
2749 cross_compiling=no
2750 else
2751 if test "$cross_compiling" = maybe; then
2752 cross_compiling=yes
2753 else
2754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756 as_fn_error $? "cannot run C compiled programs.
2757 If you meant to cross compile, use \`--host'.
2758 See \`config.log' for more details" "$LINENO" 5; }
2759 fi
2760 fi
2761 fi
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2763 $as_echo "$cross_compiling" >&6; }
2764
2765 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2766 ac_clean_files=$ac_clean_files_save
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2768 $as_echo_n "checking for suffix of object files... " >&6; }
2769 if ${ac_cv_objext+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2774
2775 int
2776 main ()
2777 {
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { { ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_compile") 2>&5
2792 ac_status=$?
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; }; then :
2795 for ac_file in conftest.o conftest.obj conftest.*; do
2796 test -f "$ac_file" || continue;
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2799 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2800 break;;
2801 esac
2802 done
2803 else
2804 $as_echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809 as_fn_error $? "cannot compute suffix of object files: cannot compile
2810 See \`config.log' for more details" "$LINENO" 5; }
2811 fi
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2815 $as_echo "$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2817 ac_objext=$OBJEXT
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2819 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2820 if ${ac_cv_c_compiler_gnu+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2825
2826 int
2827 main ()
2828 {
2829 #ifndef __GNUC__
2830 choke me
2831 #endif
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 if ac_fn_c_try_compile "$LINENO"; then :
2838 ac_compiler_gnu=yes
2839 else
2840 ac_compiler_gnu=no
2841 fi
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2847 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2848 if test $ac_compiler_gnu = yes; then
2849 GCC=yes
2850 else
2851 GCC=
2852 fi
2853 ac_test_CFLAGS=${CFLAGS+set}
2854 ac_save_CFLAGS=$CFLAGS
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2856 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2857 if ${ac_cv_prog_cc_g+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 ac_save_c_werror_flag=$ac_c_werror_flag
2861 ac_c_werror_flag=yes
2862 ac_cv_prog_cc_g=no
2863 CFLAGS="-g"
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2866
2867 int
2868 main ()
2869 {
2870
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 if ac_fn_c_try_compile "$LINENO"; then :
2876 ac_cv_prog_cc_g=yes
2877 else
2878 CFLAGS=""
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2881
2882 int
2883 main ()
2884 {
2885
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_c_try_compile "$LINENO"; then :
2891
2892 else
2893 ac_c_werror_flag=$ac_save_c_werror_flag
2894 CFLAGS="-g"
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_compile "$LINENO"; then :
2907 ac_cv_prog_cc_g=yes
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 fi
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2915 fi
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2917 $as_echo "$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-g"
2925 fi
2926 else
2927 if test "$GCC" = yes; then
2928 CFLAGS="-O2"
2929 else
2930 CFLAGS=
2931 fi
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2934 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2935 if ${ac_cv_prog_cc_c89+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 ac_cv_prog_cc_c89=no
2939 ac_save_CC=$CC
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2942 #include <stdarg.h>
2943 #include <stdio.h>
2944 struct stat;
2945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2946 struct buf { int x; };
2947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948 static char *e (p, i)
2949 char **p;
2950 int i;
2951 {
2952 return p[i];
2953 }
2954 static char *f (char * (*g) (char **, int), char **p, ...)
2955 {
2956 char *s;
2957 va_list v;
2958 va_start (v,p);
2959 s = g (p, va_arg (v,int));
2960 va_end (v);
2961 return s;
2962 }
2963
2964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2965 function prototypes and stuff, but not '\xHH' hex character constants.
2966 These don't provoke an error unfortunately, instead are silently treated
2967 as 'x'. The following induces an error, until -std is added to get
2968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2969 array size at least. It's necessary to write '\x00'==0 to get something
2970 that's true only with -std. */
2971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972
2973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974 inside strings and character constants. */
2975 #define FOO(x) 'x'
2976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977
2978 int test (int i, double x);
2979 struct s1 {int (*f) (int a);};
2980 struct s2 {int (*f) (double a);};
2981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2982 int argc;
2983 char **argv;
2984 int
2985 main ()
2986 {
2987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 do
2995 CC="$ac_save_CC $ac_arg"
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_cv_prog_cc_c89=$ac_arg
2998 fi
2999 rm -f core conftest.err conftest.$ac_objext
3000 test "x$ac_cv_prog_cc_c89" != "xno" && break
3001 done
3002 rm -f conftest.$ac_ext
3003 CC=$ac_save_CC
3004
3005 fi
3006 # AC_CACHE_VAL
3007 case "x$ac_cv_prog_cc_c89" in
3008 x)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3010 $as_echo "none needed" >&6; } ;;
3011 xno)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3013 $as_echo "unsupported" >&6; } ;;
3014 *)
3015 CC="$CC $ac_cv_prog_cc_c89"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3017 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3018 esac
3019 if test "x$ac_cv_prog_cc_c89" != xno; then :
3020
3021 fi
3022
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3035 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3036 if ${am_cv_prog_cc_c_o+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3041
3042 int
3043 main ()
3044 {
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 # Make sure it works both with $CC and with simple cc.
3051 # Following AC_PROG_CC_C_O, we do the test twice because some
3052 # compilers refuse to overwrite an existing .o file with -o,
3053 # though they will create one.
3054 am_cv_prog_cc_c_o=yes
3055 for am_i in 1 2; do
3056 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3057 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } \
3061 && test -f conftest2.$ac_objext; then
3062 : OK
3063 else
3064 am_cv_prog_cc_c_o=no
3065 break
3066 fi
3067 done
3068 rm -f core conftest*
3069 unset am_i
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3072 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3073 if test "$am_cv_prog_cc_c_o" != yes; then
3074 # Losing compiler, so override with the script.
3075 # FIXME: It is wrong to rewrite CC.
3076 # But if we don't then we get into trouble of one sort or another.
3077 # A longer-term fix would be to have automake use am__CC in this case,
3078 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3079 CC="$am_aux_dir/compile $CC"
3080 fi
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086
3087
3088
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3095 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3098 CPP=
3099 fi
3100 if test -z "$CPP"; then
3101 if ${ac_cv_prog_CPP+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106 do
3107 ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118 #ifdef __STDC__
3119 # include <limits.h>
3120 #else
3121 # include <assert.h>
3122 #endif
3123 Syntax error
3124 _ACEOF
3125 if ac_fn_c_try_cpp "$LINENO"; then :
3126
3127 else
3128 # Broken: fails on valid input.
3129 continue
3130 fi
3131 rm -f conftest.err conftest.i conftest.$ac_ext
3132
3133 # OK, works on sane cases. Now check whether nonexistent headers
3134 # can be detected and how.
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3138 _ACEOF
3139 if ac_fn_c_try_cpp "$LINENO"; then :
3140 # Broken: success on invalid input.
3141 continue
3142 else
3143 # Passes both tests.
3144 ac_preproc_ok=:
3145 break
3146 fi
3147 rm -f conftest.err conftest.i conftest.$ac_ext
3148
3149 done
3150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3151 rm -f conftest.i conftest.err conftest.$ac_ext
3152 if $ac_preproc_ok; then :
3153 break
3154 fi
3155
3156 done
3157 ac_cv_prog_CPP=$CPP
3158
3159 fi
3160 CPP=$ac_cv_prog_CPP
3161 else
3162 ac_cv_prog_CPP=$CPP
3163 fi
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3165 $as_echo "$CPP" >&6; }
3166 ac_preproc_ok=false
3167 for ac_c_preproc_warn_flag in '' yes
3168 do
3169 # Use a header file that comes with gcc, so configuring glibc
3170 # with a fresh cross-compiler works.
3171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3172 # <limits.h> exists even on freestanding compilers.
3173 # On the NeXT, cc -E runs the code through the compiler's parser,
3174 # not just through cpp. "Syntax error" is here to catch this case.
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177 #ifdef __STDC__
3178 # include <limits.h>
3179 #else
3180 # include <assert.h>
3181 #endif
3182 Syntax error
3183 _ACEOF
3184 if ac_fn_c_try_cpp "$LINENO"; then :
3185
3186 else
3187 # Broken: fails on valid input.
3188 continue
3189 fi
3190 rm -f conftest.err conftest.i conftest.$ac_ext
3191
3192 # OK, works on sane cases. Now check whether nonexistent headers
3193 # can be detected and how.
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196 #include <ac_nonexistent.h>
3197 _ACEOF
3198 if ac_fn_c_try_cpp "$LINENO"; then :
3199 # Broken: success on invalid input.
3200 continue
3201 else
3202 # Passes both tests.
3203 ac_preproc_ok=:
3204 break
3205 fi
3206 rm -f conftest.err conftest.i conftest.$ac_ext
3207
3208 done
3209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3210 rm -f conftest.i conftest.err conftest.$ac_ext
3211 if $ac_preproc_ok; then :
3212
3213 else
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 fi
3219
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3229 if ${ac_cv_path_GREP+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -z "$GREP"; then
3233 ac_path_GREP_found=false
3234 # Loop through the user's path and test for each of PROGNAME-LIST
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in grep ggrep; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3243 as_fn_executable_p "$ac_path_GREP" || continue
3244 # Check for GNU ac_path_GREP and select it if it is found.
3245 # Check for GNU $ac_path_GREP
3246 case `"$ac_path_GREP" --version 2>&1` in
3247 *GNU*)
3248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249 *)
3250 ac_count=0
3251 $as_echo_n 0123456789 >"conftest.in"
3252 while :
3253 do
3254 cat "conftest.in" "conftest.in" >"conftest.tmp"
3255 mv "conftest.tmp" "conftest.in"
3256 cp "conftest.in" "conftest.nl"
3257 $as_echo 'GREP' >> "conftest.nl"
3258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260 as_fn_arith $ac_count + 1 && ac_count=$as_val
3261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3262 # Best one so far, save it but keep looking for a better one
3263 ac_cv_path_GREP="$ac_path_GREP"
3264 ac_path_GREP_max=$ac_count
3265 fi
3266 # 10*(2^10) chars as input seems more than enough
3267 test $ac_count -gt 10 && break
3268 done
3269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270 esac
3271
3272 $ac_path_GREP_found && break 3
3273 done
3274 done
3275 done
3276 IFS=$as_save_IFS
3277 if test -z "$ac_cv_path_GREP"; then
3278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3279 fi
3280 else
3281 ac_cv_path_GREP=$GREP
3282 fi
3283
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3286 $as_echo "$ac_cv_path_GREP" >&6; }
3287 GREP="$ac_cv_path_GREP"
3288
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3291 $as_echo_n "checking for egrep... " >&6; }
3292 if ${ac_cv_path_EGREP+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3296 then ac_cv_path_EGREP="$GREP -E"
3297 else
3298 if test -z "$EGREP"; then
3299 ac_path_EGREP_found=false
3300 # Loop through the user's path and test for each of PROGNAME-LIST
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303 do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_prog in egrep; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3309 as_fn_executable_p "$ac_path_EGREP" || continue
3310 # Check for GNU ac_path_EGREP and select it if it is found.
3311 # Check for GNU $ac_path_EGREP
3312 case `"$ac_path_EGREP" --version 2>&1` in
3313 *GNU*)
3314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3315 *)
3316 ac_count=0
3317 $as_echo_n 0123456789 >"conftest.in"
3318 while :
3319 do
3320 cat "conftest.in" "conftest.in" >"conftest.tmp"
3321 mv "conftest.tmp" "conftest.in"
3322 cp "conftest.in" "conftest.nl"
3323 $as_echo 'EGREP' >> "conftest.nl"
3324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326 as_fn_arith $ac_count + 1 && ac_count=$as_val
3327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3328 # Best one so far, save it but keep looking for a better one
3329 ac_cv_path_EGREP="$ac_path_EGREP"
3330 ac_path_EGREP_max=$ac_count
3331 fi
3332 # 10*(2^10) chars as input seems more than enough
3333 test $ac_count -gt 10 && break
3334 done
3335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336 esac
3337
3338 $ac_path_EGREP_found && break 3
3339 done
3340 done
3341 done
3342 IFS=$as_save_IFS
3343 if test -z "$ac_cv_path_EGREP"; then
3344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3345 fi
3346 else
3347 ac_cv_path_EGREP=$EGREP
3348 fi
3349
3350 fi
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3353 $as_echo "$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3358 $as_echo_n "checking for ANSI C header files... " >&6; }
3359 if ${ac_cv_header_stdc+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 #include <stdlib.h>
3365 #include <stdarg.h>
3366 #include <string.h>
3367 #include <float.h>
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_header_stdc=yes
3379 else
3380 ac_cv_header_stdc=no
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383
3384 if test $ac_cv_header_stdc = yes; then
3385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388 #include <string.h>
3389
3390 _ACEOF
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 $EGREP "memchr" >/dev/null 2>&1; then :
3393
3394 else
3395 ac_cv_header_stdc=no
3396 fi
3397 rm -f conftest*
3398
3399 fi
3400
3401 if test $ac_cv_header_stdc = yes; then
3402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405 #include <stdlib.h>
3406
3407 _ACEOF
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "free" >/dev/null 2>&1; then :
3410
3411 else
3412 ac_cv_header_stdc=no
3413 fi
3414 rm -f conftest*
3415
3416 fi
3417
3418 if test $ac_cv_header_stdc = yes; then
3419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3420 if test "$cross_compiling" = yes; then :
3421 :
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425 #include <ctype.h>
3426 #include <stdlib.h>
3427 #if ((' ' & 0x0FF) == 0x020)
3428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3430 #else
3431 # define ISLOWER(c) \
3432 (('a' <= (c) && (c) <= 'i') \
3433 || ('j' <= (c) && (c) <= 'r') \
3434 || ('s' <= (c) && (c) <= 'z'))
3435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3436 #endif
3437
3438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439 int
3440 main ()
3441 {
3442 int i;
3443 for (i = 0; i < 256; i++)
3444 if (XOR (islower (i), ISLOWER (i))
3445 || toupper (i) != TOUPPER (i))
3446 return 2;
3447 return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_run "$LINENO"; then :
3451
3452 else
3453 ac_cv_header_stdc=no
3454 fi
3455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3456 conftest.$ac_objext conftest.beam conftest.$ac_ext
3457 fi
3458
3459 fi
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3462 $as_echo "$ac_cv_header_stdc" >&6; }
3463 if test $ac_cv_header_stdc = yes; then
3464
3465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3466
3467 fi
3468
3469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3471 inttypes.h stdint.h unistd.h
3472 do :
3473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3475 "
3476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3477 cat >>confdefs.h <<_ACEOF
3478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3479 _ACEOF
3480
3481 fi
3482
3483 done
3484
3485
3486
3487 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3488 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3489 MINIX=yes
3490 else
3491 MINIX=
3492 fi
3493
3494
3495 if test "$MINIX" = yes; then
3496
3497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3498
3499
3500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3501
3502
3503 $as_echo "#define _MINIX 1" >>confdefs.h
3504
3505 fi
3506
3507
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3510 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515
3516 # define __EXTENSIONS__ 1
3517 $ac_includes_default
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_cv_safe_to_define___extensions__=yes
3528 else
3529 ac_cv_safe_to_define___extensions__=no
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3535 test $ac_cv_safe_to_define___extensions__ = yes &&
3536 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3537
3538 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3539
3540 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3541
3542 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3543
3544 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3545
3546
3547
3548 # Initialize Automake
3549 am__api_version='1.15'
3550
3551 # Find a good install program. We prefer a C program (faster),
3552 # so one script is as good as another. But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3557 # AIX /bin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # OS/2's system install, which has a completely different semantic
3563 # ./install, which can be erroneously created by make from ./install.sh.
3564 # Reject install programs that cannot install multiple files.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3566 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3567 if test -z "$INSTALL"; then
3568 if ${ac_cv_path_install+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 # Account for people who put trailing slashes in PATH elements.
3577 case $as_dir/ in #((
3578 ./ | .// | /[cC]/* | \
3579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3581 /usr/ucb/* ) ;;
3582 *)
3583 # OSF1 and SCO ODT 3.0 have their own names for install.
3584 # Don't use installbsd from OSF since it installs stuff as root
3585 # by default.
3586 for ac_prog in ginstall scoinst install; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589 if test $ac_prog = install &&
3590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591 # AIX install. It has an incompatible calling convention.
3592 :
3593 elif test $ac_prog = install &&
3594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595 # program-specific install script used by HP pwplus--don't use.
3596 :
3597 else
3598 rm -rf conftest.one conftest.two conftest.dir
3599 echo one > conftest.one
3600 echo two > conftest.two
3601 mkdir conftest.dir
3602 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3603 test -s conftest.one && test -s conftest.two &&
3604 test -s conftest.dir/conftest.one &&
3605 test -s conftest.dir/conftest.two
3606 then
3607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3608 break 3
3609 fi
3610 fi
3611 fi
3612 done
3613 done
3614 ;;
3615 esac
3616
3617 done
3618 IFS=$as_save_IFS
3619
3620 rm -rf conftest.one conftest.two conftest.dir
3621
3622 fi
3623 if test "${ac_cv_path_install+set}" = set; then
3624 INSTALL=$ac_cv_path_install
3625 else
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for INSTALL within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 INSTALL=$ac_install_sh
3631 fi
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3634 $as_echo "$INSTALL" >&6; }
3635
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3639
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3641
3642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3645 $as_echo_n "checking whether build environment is sane... " >&6; }
3646 # Reject unsafe characters in $srcdir or the absolute working directory
3647 # name. Accept space and tab only in the latter.
3648 am_lf='
3649 '
3650 case `pwd` in
3651 *[\\\"\#\$\&\'\`$am_lf]*)
3652 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3653 esac
3654 case $srcdir in
3655 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3656 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3657 esac
3658
3659 # Do 'set' in a subshell so we don't clobber the current shell's
3660 # arguments. Must try -L first in case configure is actually a
3661 # symlink; some systems play weird games with the mod time of symlinks
3662 # (eg FreeBSD returns the mod time of the symlink's containing
3663 # directory).
3664 if (
3665 am_has_slept=no
3666 for am_try in 1 2; do
3667 echo "timestamp, slept: $am_has_slept" > conftest.file
3668 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3669 if test "$*" = "X"; then
3670 # -L didn't work.
3671 set X `ls -t "$srcdir/configure" conftest.file`
3672 fi
3673 if test "$*" != "X $srcdir/configure conftest.file" \
3674 && test "$*" != "X conftest.file $srcdir/configure"; then
3675
3676 # If neither matched, then we have a broken ls. This can happen
3677 # if, for instance, CONFIG_SHELL is bash and it inherits a
3678 # broken ls alias from the environment. This has actually
3679 # happened. Such a system could not be considered "sane".
3680 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3681 alias in your environment" "$LINENO" 5
3682 fi
3683 if test "$2" = conftest.file || test $am_try -eq 2; then
3684 break
3685 fi
3686 # Just in case.
3687 sleep 1
3688 am_has_slept=yes
3689 done
3690 test "$2" = conftest.file
3691 )
3692 then
3693 # Ok.
3694 :
3695 else
3696 as_fn_error $? "newly created file is older than distributed files!
3697 Check your system clock" "$LINENO" 5
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3700 $as_echo "yes" >&6; }
3701 # If we didn't sleep, we still need to ensure time stamps of config.status and
3702 # generated files are strictly newer.
3703 am_sleep_pid=
3704 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3705 ( sleep 1 ) &
3706 am_sleep_pid=$!
3707 fi
3708
3709 rm -f conftest.file
3710
3711 test "$program_prefix" != NONE &&
3712 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3713 # Use a double $ so make ignores it.
3714 test "$program_suffix" != NONE &&
3715 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3716 # Double any \ or $.
3717 # By default was `s,x,x', remove it if useless.
3718 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3719 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3720
3721 if test x"${MISSING+set}" != xset; then
3722 case $am_aux_dir in
3723 *\ * | *\ *)
3724 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3725 *)
3726 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3727 esac
3728 fi
3729 # Use eval to expand $SHELL
3730 if eval "$MISSING --is-lightweight"; then
3731 am_missing_run="$MISSING "
3732 else
3733 am_missing_run=
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3735 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3736 fi
3737
3738 if test x"${install_sh+set}" != xset; then
3739 case $am_aux_dir in
3740 *\ * | *\ *)
3741 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3742 *)
3743 install_sh="\${SHELL} $am_aux_dir/install-sh"
3744 esac
3745 fi
3746
3747 # Installed binaries are usually stripped using 'strip' when the user
3748 # run "make install-strip". However 'strip' might not be the right
3749 # tool to use in cross-compilation environments, therefore Automake
3750 # will honor the 'STRIP' environment variable to overrule this program.
3751 if test "$cross_compiling" != no; then
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}strip; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_STRIP+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$STRIP"; then
3761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 STRIP=$ac_cv_prog_STRIP
3781 if test -n "$STRIP"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3783 $as_echo "$STRIP" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 if test -z "$ac_cv_prog_STRIP"; then
3792 ac_ct_STRIP=$STRIP
3793 # Extract the first word of "strip", so it can be a program name with args.
3794 set dummy strip; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_STRIP="strip"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821 if test -n "$ac_ct_STRIP"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3823 $as_echo "$ac_ct_STRIP" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829 if test "x$ac_ct_STRIP" = x; then
3830 STRIP=":"
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833 yes:)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3837 esac
3838 STRIP=$ac_ct_STRIP
3839 fi
3840 else
3841 STRIP="$ac_cv_prog_STRIP"
3842 fi
3843
3844 fi
3845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3848 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3849 if test -z "$MKDIR_P"; then
3850 if ${ac_cv_path_mkdir+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3855 do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_prog in mkdir gmkdir; do
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3861 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3862 'mkdir (GNU coreutils) '* | \
3863 'mkdir (coreutils) '* | \
3864 'mkdir (fileutils) '4.1*)
3865 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3866 break 3;;
3867 esac
3868 done
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874
3875 test -d ./--version && rmdir ./--version
3876 if test "${ac_cv_path_mkdir+set}" = set; then
3877 MKDIR_P="$ac_cv_path_mkdir -p"
3878 else
3879 # As a last resort, use the slow shell script. Don't cache a
3880 # value for MKDIR_P within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the value is a relative name.
3883 MKDIR_P="$ac_install_sh -d"
3884 fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3887 $as_echo "$MKDIR_P" >&6; }
3888
3889 for ac_prog in gawk mawk nawk awk
3890 do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_AWK+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$AWK"; then
3899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_AWK="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 AWK=$ac_cv_prog_AWK
3919 if test -n "$AWK"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921 $as_echo "$AWK" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928 test -n "$AWK" && break
3929 done
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3933 set x ${MAKE-make}
3934 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3935 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat >conftest.make <<\_ACEOF
3939 SHELL = /bin/sh
3940 all:
3941 @echo '@@@%%%=$(MAKE)=@@@%%%'
3942 _ACEOF
3943 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3944 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3945 *@@@%%%=?*=@@@%%%*)
3946 eval ac_cv_prog_make_${ac_make}_set=yes;;
3947 *)
3948 eval ac_cv_prog_make_${ac_make}_set=no;;
3949 esac
3950 rm -f conftest.make
3951 fi
3952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 SET_MAKE=
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 SET_MAKE="MAKE=${MAKE-make}"
3960 fi
3961
3962 rm -rf .tst 2>/dev/null
3963 mkdir .tst 2>/dev/null
3964 if test -d .tst; then
3965 am__leading_dot=.
3966 else
3967 am__leading_dot=_
3968 fi
3969 rmdir .tst 2>/dev/null
3970
3971 DEPDIR="${am__leading_dot}deps"
3972
3973 ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976 am_make=${MAKE-make}
3977 cat > confinc << 'END'
3978 am__doit:
3979 @echo this is the am__doit target
3980 .PHONY: am__doit
3981 END
3982 # If we don't find an include directive, just comment out the code.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3984 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3985 am__include="#"
3986 am__quote=
3987 _am_result=none
3988 # First try GNU make style include.
3989 echo "include confinc" > confmf
3990 # Ignore all kinds of additional output from 'make'.
3991 case `$am_make -s -f confmf 2> /dev/null` in #(
3992 *the\ am__doit\ target*)
3993 am__include=include
3994 am__quote=
3995 _am_result=GNU
3996 ;;
3997 esac
3998 # Now try BSD make style include.
3999 if test "$am__include" = "#"; then
4000 echo '.include "confinc"' > confmf
4001 case `$am_make -s -f confmf 2> /dev/null` in #(
4002 *the\ am__doit\ target*)
4003 am__include=.include
4004 am__quote="\""
4005 _am_result=BSD
4006 ;;
4007 esac
4008 fi
4009
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4012 $as_echo "$_am_result" >&6; }
4013 rm -f confinc confmf
4014
4015 # Check whether --enable-dependency-tracking was given.
4016 if test "${enable_dependency_tracking+set}" = set; then :
4017 enableval=$enable_dependency_tracking;
4018 fi
4019
4020 if test "x$enable_dependency_tracking" != xno; then
4021 am_depcomp="$ac_aux_dir/depcomp"
4022 AMDEPBACKSLASH='\'
4023 am__nodep='_no'
4024 fi
4025 if test "x$enable_dependency_tracking" != xno; then
4026 AMDEP_TRUE=
4027 AMDEP_FALSE='#'
4028 else
4029 AMDEP_TRUE='#'
4030 AMDEP_FALSE=
4031 fi
4032
4033
4034 # Check whether --enable-silent-rules was given.
4035 if test "${enable_silent_rules+set}" = set; then :
4036 enableval=$enable_silent_rules;
4037 fi
4038
4039 case $enable_silent_rules in # (((
4040 yes) AM_DEFAULT_VERBOSITY=0;;
4041 no) AM_DEFAULT_VERBOSITY=1;;
4042 *) AM_DEFAULT_VERBOSITY=1;;
4043 esac
4044 am_make=${MAKE-make}
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4046 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4047 if ${am_cv_make_support_nested_variables+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if $as_echo 'TRUE=$(BAR$(V))
4051 BAR0=false
4052 BAR1=true
4053 V=1
4054 am__doit:
4055 @$(TRUE)
4056 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4057 am_cv_make_support_nested_variables=yes
4058 else
4059 am_cv_make_support_nested_variables=no
4060 fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4063 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4064 if test $am_cv_make_support_nested_variables = yes; then
4065 AM_V='$(V)'
4066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4067 else
4068 AM_V=$AM_DEFAULT_VERBOSITY
4069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4070 fi
4071 AM_BACKSLASH='\'
4072
4073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4075 # is not polluted with repeated "-I."
4076 am__isrc=' -I$(srcdir)'
4077 # test to see if srcdir already configured
4078 if test -f $srcdir/config.status; then
4079 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4080 fi
4081 fi
4082
4083 # test whether we have cygpath
4084 if test -z "$CYGPATH_W"; then
4085 if (cygpath --version) >/dev/null 2>/dev/null; then
4086 CYGPATH_W='cygpath -w'
4087 else
4088 CYGPATH_W=echo
4089 fi
4090 fi
4091
4092
4093 # Define the identity of the package.
4094 PACKAGE='mkfontscale'
4095 VERSION='1.1.3'
4096
4097
4098 cat >>confdefs.h <<_ACEOF
4099 #define PACKAGE "$PACKAGE"
4100 _ACEOF
4101
4102
4103 cat >>confdefs.h <<_ACEOF
4104 #define VERSION "$VERSION"
4105 _ACEOF
4106
4107 # Some tools Automake needs.
4108
4109 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4110
4111
4112 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4113
4114
4115 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4116
4117
4118 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4119
4120
4121 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4122
4123 # For better backward compatibility. To be removed once Automake 1.9.x
4124 # dies out for good. For more background, see:
4125 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4126 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4127 mkdir_p='$(MKDIR_P)'
4128
4129 # We need awk for the "check" target (and possibly the TAP driver). The
4130 # system "awk" is bad on some platforms.
4131 # Always define AMTAR for backward compatibility. Yes, it's still used
4132 # in the wild :-( We should find a proper way to deprecate it ...
4133 AMTAR='$${TAR-tar}'
4134
4135
4136 # We'll loop over all known methods to create a tar archive until one works.
4137 _am_tools='gnutar pax cpio none'
4138
4139 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4140
4141
4142
4143
4144
4145 depcc="$CC" am_compiler_list=
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148 $as_echo_n "checking dependency style of $depcc... " >&6; }
4149 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153 # We make a subdir and do the tests there. Otherwise we can end up
4154 # making bogus files that we don't know about and never remove. For
4155 # instance it was reported that on HP-UX the gcc test will end up
4156 # making a dummy file named 'D' -- because '-MD' means "put the output
4157 # in D".
4158 rm -rf conftest.dir
4159 mkdir conftest.dir
4160 # Copy depcomp to subdir because otherwise we won't find it if we're
4161 # using a relative directory.
4162 cp "$am_depcomp" conftest.dir
4163 cd conftest.dir
4164 # We will build objects and dependencies in a subdirectory because
4165 # it helps to detect inapplicable dependency modes. For instance
4166 # both Tru64's cc and ICC support -MD to output dependencies as a
4167 # side effect of compilation, but ICC will put the dependencies in
4168 # the current directory while Tru64 will put them in the object
4169 # directory.
4170 mkdir sub
4171
4172 am_cv_CC_dependencies_compiler_type=none
4173 if test "$am_compiler_list" = ""; then
4174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4175 fi
4176 am__universal=false
4177 case " $depcc " in #(
4178 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4179 esac
4180
4181 for depmode in $am_compiler_list; do
4182 # Setup a source with many dependencies, because some compilers
4183 # like to wrap large dependency lists on column 80 (with \), and
4184 # we should not choose a depcomp mode which is confused by this.
4185 #
4186 # We need to recreate these files for each test, as the compiler may
4187 # overwrite some of them when testing with obscure command lines.
4188 # This happens at least with the AIX C compiler.
4189 : > sub/conftest.c
4190 for i in 1 2 3 4 5 6; do
4191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4192 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4193 # Solaris 10 /bin/sh.
4194 echo '/* dummy */' > sub/conftst$i.h
4195 done
4196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197
4198 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4199 # mode. It turns out that the SunPro C++ compiler does not properly
4200 # handle '-M -o', and we need to detect this. Also, some Intel
4201 # versions had trouble with output in subdirs.
4202 am__obj=sub/conftest.${OBJEXT-o}
4203 am__minus_obj="-o $am__obj"
4204 case $depmode in
4205 gcc)
4206 # This depmode causes a compiler race in universal mode.
4207 test "$am__universal" = false || continue
4208 ;;
4209 nosideeffect)
4210 # After this tag, mechanisms are not by side-effect, so they'll
4211 # only be used when explicitly requested.
4212 if test "x$enable_dependency_tracking" = xyes; then
4213 continue
4214 else
4215 break
4216 fi
4217 ;;
4218 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4219 # This compiler won't grok '-c -o', but also, the minuso test has
4220 # not run yet. These depmodes are late enough in the game, and
4221 # so weak that their functioning should not be impacted.
4222 am__obj=conftest.${OBJEXT-o}
4223 am__minus_obj=
4224 ;;
4225 none) break ;;
4226 esac
4227 if depmode=$depmode \
4228 source=sub/conftest.c object=$am__obj \
4229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4231 >/dev/null 2>conftest.err &&
4232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4236 # icc doesn't choke on unknown options, it will just issue warnings
4237 # or remarks (even with -Werror). So we grep stderr for any message
4238 # that says an option was ignored or not supported.
4239 # When given -MP, icc 7.0 and 7.1 complain thusly:
4240 # icc: Command line warning: ignoring option '-M'; no argument required
4241 # The diagnosis changed in icc 8.0:
4242 # icc: Command line remark: option '-MP' not supported
4243 if (grep 'ignoring option' conftest.err ||
4244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4245 am_cv_CC_dependencies_compiler_type=$depmode
4246 break
4247 fi
4248 fi
4249 done
4250
4251 cd ..
4252 rm -rf conftest.dir
4253 else
4254 am_cv_CC_dependencies_compiler_type=none
4255 fi
4256
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4259 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4260 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4261
4262 if
4263 test "x$enable_dependency_tracking" != xno \
4264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4265 am__fastdepCC_TRUE=
4266 am__fastdepCC_FALSE='#'
4267 else
4268 am__fastdepCC_TRUE='#'
4269 am__fastdepCC_FALSE=
4270 fi
4271
4272
4273
4274 # POSIX will say in a future version that running "rm -f" with no argument
4275 # is OK; and we want to be able to make that assumption in our Makefile
4276 # recipes. So use an aggressive probe to check that the usage we want is
4277 # actually supported "in the wild" to an acceptable degree.
4278 # See automake bug#10828.
4279 # To make any issue more visible, cause the running configure to be aborted
4280 # by default if the 'rm' program in use doesn't match our expectations; the
4281 # user can still override this though.
4282 if rm -f && rm -fr && rm -rf; then : OK; else
4283 cat >&2 <<'END'
4284 Oops!
4285
4286 Your 'rm' program seems unable to run without file operands specified
4287 on the command line, even when the '-f' option is present. This is contrary
4288 to the behaviour of most rm programs out there, and not conforming with
4289 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4290
4291 Please tell bug-automake@gnu.org about your system, including the value
4292 of your $PATH and any error possibly output before this message. This
4293 can help us improve future automake versions.
4294
4295 END
4296 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4297 echo 'Configuration will proceed anyway, since you have set the' >&2
4298 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4299 echo >&2
4300 else
4301 cat >&2 <<'END'
4302 Aborting the configuration process, to ensure you take notice of the issue.
4303
4304 You can download and install GNU coreutils to get an 'rm' implementation
4305 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4306
4307 If you want to complete the configuration process using your problematic
4308 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4309 to "yes", and re-run configure.
4310
4311 END
4312 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4313 fi
4314 fi
4315
4316
4317 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4330 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4331 if ${ac_cv_prog_cc_c99+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 ac_cv_prog_cc_c99=no
4335 ac_save_CC=$CC
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <stdarg.h>
4339 #include <stdbool.h>
4340 #include <stdlib.h>
4341 #include <wchar.h>
4342 #include <stdio.h>
4343
4344 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4345 #define debug(...) fprintf (stderr, __VA_ARGS__)
4346 #define showlist(...) puts (#__VA_ARGS__)
4347 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4348 static void
4349 test_varargs_macros (void)
4350 {
4351 int x = 1234;
4352 int y = 5678;
4353 debug ("Flag");
4354 debug ("X = %d\n", x);
4355 showlist (The first, second, and third items.);
4356 report (x>y, "x is %d but y is %d", x, y);
4357 }
4358
4359 // Check long long types.
4360 #define BIG64 18446744073709551615ull
4361 #define BIG32 4294967295ul
4362 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4363 #if !BIG_OK
4364 your preprocessor is broken;
4365 #endif
4366 #if BIG_OK
4367 #else
4368 your preprocessor is broken;
4369 #endif
4370 static long long int bignum = -9223372036854775807LL;
4371 static unsigned long long int ubignum = BIG64;
4372
4373 struct incomplete_array
4374 {
4375 int datasize;
4376 double data[];
4377 };
4378
4379 struct named_init {
4380 int number;
4381 const wchar_t *name;
4382 double average;
4383 };
4384
4385 typedef const char *ccp;
4386
4387 static inline int
4388 test_restrict (ccp restrict text)
4389 {
4390 // See if C++-style comments work.
4391 // Iterate through items via the restricted pointer.
4392 // Also check for declarations in for loops.
4393 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4394 continue;
4395 return 0;
4396 }
4397
4398 // Check varargs and va_copy.
4399 static void
4400 test_varargs (const char *format, ...)
4401 {
4402 va_list args;
4403 va_start (args, format);
4404 va_list args_copy;
4405 va_copy (args_copy, args);
4406
4407 const char *str;
4408 int number;
4409 float fnumber;
4410
4411 while (*format)
4412 {
4413 switch (*format++)
4414 {
4415 case 's': // string
4416 str = va_arg (args_copy, const char *);
4417 break;
4418 case 'd': // int
4419 number = va_arg (args_copy, int);
4420 break;
4421 case 'f': // float
4422 fnumber = va_arg (args_copy, double);
4423 break;
4424 default:
4425 break;
4426 }
4427 }
4428 va_end (args_copy);
4429 va_end (args);
4430 }
4431
4432 int
4433 main ()
4434 {
4435
4436 // Check bool.
4437 _Bool success = false;
4438
4439 // Check restrict.
4440 if (test_restrict ("String literal") == 0)
4441 success = true;
4442 char *restrict newvar = "Another string";
4443
4444 // Check varargs.
4445 test_varargs ("s, d' f .", "string", 65, 34.234);
4446 test_varargs_macros ();
4447
4448 // Check flexible array members.
4449 struct incomplete_array *ia =
4450 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4451 ia->datasize = 10;
4452 for (int i = 0; i < ia->datasize; ++i)
4453 ia->data[i] = i * 1.234;
4454
4455 // Check named initializers.
4456 struct named_init ni = {
4457 .number = 34,
4458 .name = L"Test wide string",
4459 .average = 543.34343,
4460 };
4461
4462 ni.number = 58;
4463
4464 int dynamic_array[ni.number];
4465 dynamic_array[ni.number - 1] = 543;
4466
4467 // work around unused variable warnings
4468 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4469 || dynamic_array[ni.number - 1] != 543);
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4476 do
4477 CC="$ac_save_CC $ac_arg"
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_cv_prog_cc_c99=$ac_arg
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext
4482 test "x$ac_cv_prog_cc_c99" != "xno" && break
4483 done
4484 rm -f conftest.$ac_ext
4485 CC=$ac_save_CC
4486
4487 fi
4488 # AC_CACHE_VAL
4489 case "x$ac_cv_prog_cc_c99" in
4490 x)
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492 $as_echo "none needed" >&6; } ;;
4493 xno)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4495 $as_echo "unsupported" >&6; } ;;
4496 *)
4497 CC="$CC $ac_cv_prog_cc_c99"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4499 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4500 esac
4501 if test "x$ac_cv_prog_cc_c99" != xno; then :
4502
4503 fi
4504
4505
4506
4507
4508
4509
4510 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4511 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4512 CLANGCC="yes"
4513 else
4514 CLANGCC="no"
4515 fi
4516
4517 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4518 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4519 INTELCC="yes"
4520 else
4521 INTELCC="no"
4522 fi
4523
4524 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4525 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4526 SUNCC="yes"
4527 else
4528 SUNCC="no"
4529 fi
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 case $PKG_CONFIG in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 ;;
4569 esac
4570 fi
4571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4572 if test -n "$PKG_CONFIG"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4574 $as_echo "$PKG_CONFIG" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 if test -z "$ac_cv_path_PKG_CONFIG"; then
4583 ac_pt_PKG_CONFIG=$PKG_CONFIG
4584 # Extract the first word of "pkg-config", so it can be a program name with args.
4585 set dummy pkg-config; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 case $ac_pt_PKG_CONFIG in
4592 [\\/]* | ?:[\\/]*)
4593 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4594 ;;
4595 *)
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4606 fi
4607 done
4608 done
4609 IFS=$as_save_IFS
4610
4611 ;;
4612 esac
4613 fi
4614 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4615 if test -n "$ac_pt_PKG_CONFIG"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4617 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623 if test "x$ac_pt_PKG_CONFIG" = x; then
4624 PKG_CONFIG=""
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632 PKG_CONFIG=$ac_pt_PKG_CONFIG
4633 fi
4634 else
4635 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4636 fi
4637
4638 fi
4639 if test -n "$PKG_CONFIG"; then
4640 _pkg_min_version=0.9.0
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4642 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4643 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645 $as_echo "yes" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 PKG_CONFIG=""
4650 fi
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 as_fn_executable_p "$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_cc_unknown_warning_option" = "xyes" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 fi
4888
4889 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005 fi
5006
5007 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 fi
5124
5125 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241 fi
5242
5243 if test "x$xorg_testset_cc_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=xorg_cv_cc_flag__Wformat_2
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_cc_unknown_warning_option" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 fi
5291
5292 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411
5412 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528 fi
5529
5530 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 fi
5647
5648 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 fi
5765
5766 if test "x$xorg_testset_cc_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_cc_unknown_warning_option" = "xyes" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 fi
5883
5884 if test "x$xorg_testset_cc_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 if test $found = "no" ; then
5929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5931 fi
5932
5933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5935 fi
5936
5937 CFLAGS="$CFLAGS -fd"
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5940 $as_echo_n "checking if $CC supports -fd... " >&6; }
5941 cacheid=xorg_cv_cc_flag__fd
5942 if eval \${$cacheid+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 int i;
5948 int
5949 main ()
5950 {
5951
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_link "$LINENO"; then :
5957 eval $cacheid=yes
5958 else
5959 eval $cacheid=no
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext \
5962 conftest$ac_exeext conftest.$ac_ext
5963 fi
5964
5965
5966 CFLAGS="$xorg_testset_save_CFLAGS"
5967
5968 eval supported=\$$cacheid
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5970 $as_echo "$supported" >&6; }
5971 if test "$supported" = "yes" ; then
5972 BASE_CFLAGS="$BASE_CFLAGS -fd"
5973 found="yes"
5974 fi
5975 fi
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 xorg_testset_save_CFLAGS="$CFLAGS"
5992
5993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5996 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5997 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 int i;
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 xorg_cv_cc_flag_unknown_warning_option=yes
6006 else
6007 xorg_cv_cc_flag_unknown_warning_option=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6012 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015 fi
6016
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6023 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6024 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 int i;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 xorg_cv_cc_flag_unused_command_line_argument=yes
6033 else
6034 xorg_cv_cc_flag_unused_command_line_argument=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6039 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6041 CFLAGS="$xorg_testset_save_CFLAGS"
6042 fi
6043
6044 found="no"
6045
6046 if test $found = "no" ; then
6047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6049 fi
6050
6051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053 fi
6054
6055 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6058 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6059 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6060 if eval \${$cacheid+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 int i;
6066 int
6067 main ()
6068 {
6069
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 eval $cacheid=yes
6076 else
6077 eval $cacheid=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081 fi
6082
6083
6084 CFLAGS="$xorg_testset_save_CFLAGS"
6085
6086 eval supported=\$$cacheid
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6088 $as_echo "$supported" >&6; }
6089 if test "$supported" = "yes" ; then
6090 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6091 found="yes"
6092 fi
6093 fi
6094
6095
6096
6097
6098
6099 # This chunk adds additional warnings that could catch undesired effects.
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 xorg_testset_save_CFLAGS="$CFLAGS"
6114
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 int i;
6125 _ACEOF
6126 if ac_fn_c_try_compile "$LINENO"; then :
6127 xorg_cv_cc_flag_unknown_warning_option=yes
6128 else
6129 xorg_cv_cc_flag_unknown_warning_option=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6136 CFLAGS="$xorg_testset_save_CFLAGS"
6137 fi
6138
6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142 fi
6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 xorg_cv_cc_flag_unused_command_line_argument=yes
6155 else
6156 xorg_cv_cc_flag_unused_command_line_argument=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 fi
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6164 fi
6165
6166 found="no"
6167
6168 if test $found = "no" ; then
6169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171 fi
6172
6173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175 fi
6176
6177 CFLAGS="$CFLAGS -Wunused"
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6180 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6181 cacheid=xorg_cv_cc_flag__Wunused
6182 if eval \${$cacheid+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 int i;
6188 int
6189 main ()
6190 {
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_link "$LINENO"; then :
6197 eval $cacheid=yes
6198 else
6199 eval $cacheid=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext \
6202 conftest$ac_exeext conftest.$ac_ext
6203 fi
6204
6205
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208 eval supported=\$$cacheid
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210 $as_echo "$supported" >&6; }
6211 if test "$supported" = "yes" ; then
6212 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6213 found="yes"
6214 fi
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 xorg_testset_save_CFLAGS="$CFLAGS"
6232
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6236 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6237 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 int i;
6243 _ACEOF
6244 if ac_fn_c_try_compile "$LINENO"; then :
6245 xorg_cv_cc_flag_unknown_warning_option=yes
6246 else
6247 xorg_cv_cc_flag_unknown_warning_option=no
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6252 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6254 CFLAGS="$xorg_testset_save_CFLAGS"
6255 fi
6256
6257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260 fi
6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6263 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6264 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 int i;
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 xorg_cv_cc_flag_unused_command_line_argument=yes
6273 else
6274 xorg_cv_cc_flag_unused_command_line_argument=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6281 CFLAGS="$xorg_testset_save_CFLAGS"
6282 fi
6283
6284 found="no"
6285
6286 if test $found = "no" ; then
6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289 fi
6290
6291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293 fi
6294
6295 CFLAGS="$CFLAGS -Wuninitialized"
6296
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6298 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6299 cacheid=xorg_cv_cc_flag__Wuninitialized
6300 if eval \${$cacheid+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 int i;
6306 int
6307 main ()
6308 {
6309
6310 ;
6311 return 0;
6312 }
6313 _ACEOF
6314 if ac_fn_c_try_link "$LINENO"; then :
6315 eval $cacheid=yes
6316 else
6317 eval $cacheid=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6321 fi
6322
6323
6324 CFLAGS="$xorg_testset_save_CFLAGS"
6325
6326 eval supported=\$$cacheid
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6328 $as_echo "$supported" >&6; }
6329 if test "$supported" = "yes" ; then
6330 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6331 found="yes"
6332 fi
6333 fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 xorg_testset_save_CFLAGS="$CFLAGS"
6350
6351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6354 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6355 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363 xorg_cv_cc_flag_unknown_warning_option=yes
6364 else
6365 xorg_cv_cc_flag_unknown_warning_option=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6370 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6372 CFLAGS="$xorg_testset_save_CFLAGS"
6373 fi
6374
6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378 fi
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 xorg_cv_cc_flag_unused_command_line_argument=yes
6391 else
6392 xorg_cv_cc_flag_unused_command_line_argument=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6397 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6399 CFLAGS="$xorg_testset_save_CFLAGS"
6400 fi
6401
6402 found="no"
6403
6404 if test $found = "no" ; then
6405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407 fi
6408
6409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411 fi
6412
6413 CFLAGS="$CFLAGS -Wshadow"
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6416 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6417 cacheid=xorg_cv_cc_flag__Wshadow
6418 if eval \${$cacheid+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 int
6425 main ()
6426 {
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"; then :
6433 eval $cacheid=yes
6434 else
6435 eval $cacheid=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 fi
6440
6441
6442 CFLAGS="$xorg_testset_save_CFLAGS"
6443
6444 eval supported=\$$cacheid
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6446 $as_echo "$supported" >&6; }
6447 if test "$supported" = "yes" ; then
6448 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6449 found="yes"
6450 fi
6451 fi
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 xorg_testset_save_CFLAGS="$CFLAGS"
6468
6469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6472 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6473 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 xorg_cv_cc_flag_unknown_warning_option=yes
6482 else
6483 xorg_cv_cc_flag_unknown_warning_option=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6488 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6491 fi
6492
6493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496 fi
6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6499 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6500 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 int i;
6506 _ACEOF
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508 xorg_cv_cc_flag_unused_command_line_argument=yes
6509 else
6510 xorg_cv_cc_flag_unused_command_line_argument=no
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6515 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6517 CFLAGS="$xorg_testset_save_CFLAGS"
6518 fi
6519
6520 found="no"
6521
6522 if test $found = "no" ; then
6523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525 fi
6526
6527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6529 fi
6530
6531 CFLAGS="$CFLAGS -Wmissing-noreturn"
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6534 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6535 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6536 if eval \${$cacheid+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 int
6543 main ()
6544 {
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_link "$LINENO"; then :
6551 eval $cacheid=yes
6552 else
6553 eval $cacheid=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext \
6556 conftest$ac_exeext conftest.$ac_ext
6557 fi
6558
6559
6560 CFLAGS="$xorg_testset_save_CFLAGS"
6561
6562 eval supported=\$$cacheid
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6564 $as_echo "$supported" >&6; }
6565 if test "$supported" = "yes" ; then
6566 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6567 found="yes"
6568 fi
6569 fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 xorg_testset_save_CFLAGS="$CFLAGS"
6586
6587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6590 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6591 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 xorg_cv_cc_flag_unknown_warning_option=yes
6600 else
6601 xorg_cv_cc_flag_unknown_warning_option=no
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6606 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6608 CFLAGS="$xorg_testset_save_CFLAGS"
6609 fi
6610
6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614 fi
6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6617 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6618 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int i;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 xorg_cv_cc_flag_unused_command_line_argument=yes
6627 else
6628 xorg_cv_cc_flag_unused_command_line_argument=no
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6633 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6635 CFLAGS="$xorg_testset_save_CFLAGS"
6636 fi
6637
6638 found="no"
6639
6640 if test $found = "no" ; then
6641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643 fi
6644
6645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6647 fi
6648
6649 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6650
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6652 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6653 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6654 if eval \${$cacheid+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 int
6661 main ()
6662 {
6663
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"; then :
6669 eval $cacheid=yes
6670 else
6671 eval $cacheid=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext \
6674 conftest$ac_exeext conftest.$ac_ext
6675 fi
6676
6677
6678 CFLAGS="$xorg_testset_save_CFLAGS"
6679
6680 eval supported=\$$cacheid
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6682 $as_echo "$supported" >&6; }
6683 if test "$supported" = "yes" ; then
6684 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6685 found="yes"
6686 fi
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 xorg_testset_save_CFLAGS="$CFLAGS"
6704
6705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6709 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int i;
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 xorg_cv_cc_flag_unknown_warning_option=yes
6718 else
6719 xorg_cv_cc_flag_unknown_warning_option=no
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6724 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6726 CFLAGS="$xorg_testset_save_CFLAGS"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732 fi
6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6735 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6736 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 int i;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 xorg_cv_cc_flag_unused_command_line_argument=yes
6745 else
6746 xorg_cv_cc_flag_unused_command_line_argument=no
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6751 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6753 CFLAGS="$xorg_testset_save_CFLAGS"
6754 fi
6755
6756 found="no"
6757
6758 if test $found = "no" ; then
6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6761 fi
6762
6763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6765 fi
6766
6767 CFLAGS="$CFLAGS -Wredundant-decls"
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6770 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6771 cacheid=xorg_cv_cc_flag__Wredundant_decls
6772 if eval \${$cacheid+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 eval $cacheid=yes
6788 else
6789 eval $cacheid=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 fi
6794
6795
6796 CFLAGS="$xorg_testset_save_CFLAGS"
6797
6798 eval supported=\$$cacheid
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6800 $as_echo "$supported" >&6; }
6801 if test "$supported" = "yes" ; then
6802 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6803 found="yes"
6804 fi
6805 fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 int i;
6833 _ACEOF
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 xorg_cv_cc_flag_unknown_warning_option=yes
6836 else
6837 xorg_cv_cc_flag_unknown_warning_option=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6844 CFLAGS="$xorg_testset_save_CFLAGS"
6845 fi
6846
6847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 fi
6851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 int i;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 xorg_cv_cc_flag_unused_command_line_argument=yes
6863 else
6864 xorg_cv_cc_flag_unused_command_line_argument=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 fi
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6871 CFLAGS="$xorg_testset_save_CFLAGS"
6872 fi
6873
6874 found="no"
6875
6876 if test $found = "no" ; then
6877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879 fi
6880
6881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883 fi
6884
6885 CFLAGS="$CFLAGS -Wlogical-op"
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6888 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6889 cacheid=xorg_cv_cc_flag__Wlogical_op
6890 if eval \${$cacheid+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 int
6897 main ()
6898 {
6899
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 eval $cacheid=yes
6906 else
6907 eval $cacheid=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 fi
6912
6913
6914 CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916 eval supported=\$$cacheid
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918 $as_echo "$supported" >&6; }
6919 if test "$supported" = "yes" ; then
6920 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6921 found="yes"
6922 fi
6923 fi
6924
6925
6926
6927 # These are currently disabled because they are noisy. They will be enabled
6928 # in the future once the codebase is sufficiently modernized to silence
6929 # them. For now, I don't want them to drown out the other warnings.
6930 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6931 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6932 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6933
6934 # Turn some warnings into errors, so we don't accidently get successful builds
6935 # when there are problems that should be fixed.
6936
6937 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 xorg_testset_save_CFLAGS="$CFLAGS"
6952
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 int i;
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 xorg_cv_cc_flag_unknown_warning_option=yes
6966 else
6967 xorg_cv_cc_flag_unknown_warning_option=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6974 CFLAGS="$xorg_testset_save_CFLAGS"
6975 fi
6976
6977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980 fi
6981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 int i;
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"; then :
6992 xorg_cv_cc_flag_unused_command_line_argument=yes
6993 else
6994 xorg_cv_cc_flag_unused_command_line_argument=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002 fi
7003
7004 found="no"
7005
7006 if test $found = "no" ; then
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010
7011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 fi
7014
7015 CFLAGS="$CFLAGS -Werror=implicit"
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7018 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7019 cacheid=xorg_cv_cc_flag__Werror_implicit
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 -Werror=implicit"
7051 found="yes"
7052 fi
7053 fi
7054
7055 if test $found = "no" ; then
7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 fi
7059
7060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062 fi
7063
7064 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7067 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7068 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7069 if eval \${$cacheid+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 int i;
7075 int
7076 main ()
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"; then :
7084 eval $cacheid=yes
7085 else
7086 eval $cacheid=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 fi
7091
7092
7093 CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095 eval supported=\$$cacheid
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097 $as_echo "$supported" >&6; }
7098 if test "$supported" = "yes" ; then
7099 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7100 found="yes"
7101 fi
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 xorg_testset_save_CFLAGS="$CFLAGS"
7119
7120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 int i;
7130 _ACEOF
7131 if ac_fn_c_try_compile "$LINENO"; then :
7132 xorg_cv_cc_flag_unknown_warning_option=yes
7133 else
7134 xorg_cv_cc_flag_unknown_warning_option=no
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7141 CFLAGS="$xorg_testset_save_CFLAGS"
7142 fi
7143
7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147 fi
7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159 xorg_cv_cc_flag_unused_command_line_argument=yes
7160 else
7161 xorg_cv_cc_flag_unused_command_line_argument=no
7162 fi
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7168 CFLAGS="$xorg_testset_save_CFLAGS"
7169 fi
7170
7171 found="no"
7172
7173 if test $found = "no" ; then
7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176 fi
7177
7178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7180 fi
7181
7182 CFLAGS="$CFLAGS -Werror=nonnull"
7183
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7185 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7186 cacheid=xorg_cv_cc_flag__Werror_nonnull
7187 if eval \${$cacheid+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 int
7194 main ()
7195 {
7196
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_link "$LINENO"; then :
7202 eval $cacheid=yes
7203 else
7204 eval $cacheid=no
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 fi
7209
7210
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7212
7213 eval supported=\$$cacheid
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7215 $as_echo "$supported" >&6; }
7216 if test "$supported" = "yes" ; then
7217 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7218 found="yes"
7219 fi
7220 fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 xorg_testset_save_CFLAGS="$CFLAGS"
7237
7238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 int i;
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"; then :
7250 xorg_cv_cc_flag_unknown_warning_option=yes
7251 else
7252 xorg_cv_cc_flag_unknown_warning_option=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7259 CFLAGS="$xorg_testset_save_CFLAGS"
7260 fi
7261
7262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265 fi
7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277 xorg_cv_cc_flag_unused_command_line_argument=yes
7278 else
7279 xorg_cv_cc_flag_unused_command_line_argument=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287 fi
7288
7289 found="no"
7290
7291 if test $found = "no" ; then
7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 fi
7295
7296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7298 fi
7299
7300 CFLAGS="$CFLAGS -Werror=init-self"
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7303 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7304 cacheid=xorg_cv_cc_flag__Werror_init_self
7305 if eval \${$cacheid+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 int
7312 main ()
7313 {
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"; then :
7320 eval $cacheid=yes
7321 else
7322 eval $cacheid=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7326 fi
7327
7328
7329 CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331 eval supported=\$$cacheid
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333 $as_echo "$supported" >&6; }
7334 if test "$supported" = "yes" ; then
7335 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7336 found="yes"
7337 fi
7338 fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354 xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 int i;
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 xorg_cv_cc_flag_unknown_warning_option=yes
7369 else
7370 xorg_cv_cc_flag_unknown_warning_option=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7375 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7377 CFLAGS="$xorg_testset_save_CFLAGS"
7378 fi
7379
7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383 fi
7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7386 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7387 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 _ACEOF
7394 if ac_fn_c_try_compile "$LINENO"; then :
7395 xorg_cv_cc_flag_unused_command_line_argument=yes
7396 else
7397 xorg_cv_cc_flag_unused_command_line_argument=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7402 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7404 CFLAGS="$xorg_testset_save_CFLAGS"
7405 fi
7406
7407 found="no"
7408
7409 if test $found = "no" ; then
7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 fi
7413
7414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7416 fi
7417
7418 CFLAGS="$CFLAGS -Werror=main"
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7421 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7422 cacheid=xorg_cv_cc_flag__Werror_main
7423 if eval \${$cacheid+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"; then :
7438 eval $cacheid=yes
7439 else
7440 eval $cacheid=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
7444 fi
7445
7446
7447 CFLAGS="$xorg_testset_save_CFLAGS"
7448
7449 eval supported=\$$cacheid
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7451 $as_echo "$supported" >&6; }
7452 if test "$supported" = "yes" ; then
7453 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7454 found="yes"
7455 fi
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 xorg_testset_save_CFLAGS="$CFLAGS"
7473
7474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 int i;
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 xorg_cv_cc_flag_unknown_warning_option=yes
7487 else
7488 xorg_cv_cc_flag_unknown_warning_option=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495 CFLAGS="$xorg_testset_save_CFLAGS"
7496 fi
7497
7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501 fi
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 xorg_cv_cc_flag_unused_command_line_argument=yes
7514 else
7515 xorg_cv_cc_flag_unused_command_line_argument=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7522 CFLAGS="$xorg_testset_save_CFLAGS"
7523 fi
7524
7525 found="no"
7526
7527 if test $found = "no" ; then
7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530 fi
7531
7532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534 fi
7535
7536 CFLAGS="$CFLAGS -Werror=missing-braces"
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7539 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7540 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7541 if eval \${$cacheid+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 int i;
7547 int
7548 main ()
7549 {
7550
7551 ;
7552 return 0;
7553 }
7554 _ACEOF
7555 if ac_fn_c_try_link "$LINENO"; then :
7556 eval $cacheid=yes
7557 else
7558 eval $cacheid=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7562 fi
7563
7564
7565 CFLAGS="$xorg_testset_save_CFLAGS"
7566
7567 eval supported=\$$cacheid
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7569 $as_echo "$supported" >&6; }
7570 if test "$supported" = "yes" ; then
7571 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7572 found="yes"
7573 fi
7574 fi
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 xorg_testset_save_CFLAGS="$CFLAGS"
7591
7592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7595 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7596 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 int i;
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"; then :
7604 xorg_cv_cc_flag_unknown_warning_option=yes
7605 else
7606 xorg_cv_cc_flag_unknown_warning_option=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7611 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614 fi
7615
7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619 fi
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7622 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7623 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 int i;
7629 _ACEOF
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631 xorg_cv_cc_flag_unused_command_line_argument=yes
7632 else
7633 xorg_cv_cc_flag_unused_command_line_argument=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7638 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7640 CFLAGS="$xorg_testset_save_CFLAGS"
7641 fi
7642
7643 found="no"
7644
7645 if test $found = "no" ; then
7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648 fi
7649
7650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652 fi
7653
7654 CFLAGS="$CFLAGS -Werror=sequence-point"
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7657 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7658 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7659 if eval \${$cacheid+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 int
7666 main ()
7667 {
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"; then :
7674 eval $cacheid=yes
7675 else
7676 eval $cacheid=no
7677 fi
7678 rm -f core conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7680 fi
7681
7682
7683 CFLAGS="$xorg_testset_save_CFLAGS"
7684
7685 eval supported=\$$cacheid
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7687 $as_echo "$supported" >&6; }
7688 if test "$supported" = "yes" ; then
7689 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7690 found="yes"
7691 fi
7692 fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708 xorg_testset_save_CFLAGS="$CFLAGS"
7709
7710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7713 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7714 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 _ACEOF
7721 if ac_fn_c_try_compile "$LINENO"; then :
7722 xorg_cv_cc_flag_unknown_warning_option=yes
7723 else
7724 xorg_cv_cc_flag_unknown_warning_option=no
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7729 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7731 CFLAGS="$xorg_testset_save_CFLAGS"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737 fi
7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7740 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7741 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 int i;
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 xorg_cv_cc_flag_unused_command_line_argument=yes
7750 else
7751 xorg_cv_cc_flag_unused_command_line_argument=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7756 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7758 CFLAGS="$xorg_testset_save_CFLAGS"
7759 fi
7760
7761 found="no"
7762
7763 if test $found = "no" ; then
7764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 fi
7767
7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770 fi
7771
7772 CFLAGS="$CFLAGS -Werror=return-type"
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7775 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7776 cacheid=xorg_cv_cc_flag__Werror_return_type
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 -Werror=return-type"
7808 found="yes"
7809 fi
7810 fi
7811
7812 if test $found = "no" ; then
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 fi
7816
7817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819 fi
7820
7821 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7822
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7824 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7825 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7826 if eval \${$cacheid+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 int i;
7832 int
7833 main ()
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841 eval $cacheid=yes
7842 else
7843 eval $cacheid=no
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 fi
7848
7849
7850 CFLAGS="$xorg_testset_save_CFLAGS"
7851
7852 eval supported=\$$cacheid
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7854 $as_echo "$supported" >&6; }
7855 if test "$supported" = "yes" ; then
7856 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7857 found="yes"
7858 fi
7859 fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 xorg_testset_save_CFLAGS="$CFLAGS"
7876
7877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 int i;
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 xorg_cv_cc_flag_unknown_warning_option=yes
7890 else
7891 xorg_cv_cc_flag_unknown_warning_option=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7898 CFLAGS="$xorg_testset_save_CFLAGS"
7899 fi
7900
7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904 fi
7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 int i;
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 xorg_cv_cc_flag_unused_command_line_argument=yes
7917 else
7918 xorg_cv_cc_flag_unused_command_line_argument=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7925 CFLAGS="$xorg_testset_save_CFLAGS"
7926 fi
7927
7928 found="no"
7929
7930 if test $found = "no" ; then
7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933 fi
7934
7935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937 fi
7938
7939 CFLAGS="$CFLAGS -Werror=trigraphs"
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7942 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7943 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7944 if eval \${$cacheid+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 int
7951 main ()
7952 {
7953
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 eval $cacheid=yes
7960 else
7961 eval $cacheid=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 fi
7966
7967
7968 CFLAGS="$xorg_testset_save_CFLAGS"
7969
7970 eval supported=\$$cacheid
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7972 $as_echo "$supported" >&6; }
7973 if test "$supported" = "yes" ; then
7974 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7975 found="yes"
7976 fi
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993 xorg_testset_save_CFLAGS="$CFLAGS"
7994
7995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 int i;
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 xorg_cv_cc_flag_unknown_warning_option=yes
8008 else
8009 xorg_cv_cc_flag_unknown_warning_option=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8016 CFLAGS="$xorg_testset_save_CFLAGS"
8017 fi
8018
8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022 fi
8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 xorg_cv_cc_flag_unused_command_line_argument=yes
8035 else
8036 xorg_cv_cc_flag_unused_command_line_argument=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8044 fi
8045
8046 found="no"
8047
8048 if test $found = "no" ; then
8049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051 fi
8052
8053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8055 fi
8056
8057 CFLAGS="$CFLAGS -Werror=array-bounds"
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8060 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8061 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8062 if eval \${$cacheid+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 int
8069 main ()
8070 {
8071
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 eval $cacheid=yes
8078 else
8079 eval $cacheid=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 fi
8084
8085
8086 CFLAGS="$xorg_testset_save_CFLAGS"
8087
8088 eval supported=\$$cacheid
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8090 $as_echo "$supported" >&6; }
8091 if test "$supported" = "yes" ; then
8092 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8093 found="yes"
8094 fi
8095 fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 xorg_testset_save_CFLAGS="$CFLAGS"
8112
8113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8116 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8117 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 int i;
8123 _ACEOF
8124 if ac_fn_c_try_compile "$LINENO"; then :
8125 xorg_cv_cc_flag_unknown_warning_option=yes
8126 else
8127 xorg_cv_cc_flag_unknown_warning_option=no
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8132 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8134 CFLAGS="$xorg_testset_save_CFLAGS"
8135 fi
8136
8137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140 fi
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8144 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 _ACEOF
8151 if ac_fn_c_try_compile "$LINENO"; then :
8152 xorg_cv_cc_flag_unused_command_line_argument=yes
8153 else
8154 xorg_cv_cc_flag_unused_command_line_argument=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8159 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8161 CFLAGS="$xorg_testset_save_CFLAGS"
8162 fi
8163
8164 found="no"
8165
8166 if test $found = "no" ; then
8167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169 fi
8170
8171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173 fi
8174
8175 CFLAGS="$CFLAGS -Werror=write-strings"
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8178 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8179 cacheid=xorg_cv_cc_flag__Werror_write_strings
8180 if eval \${$cacheid+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 int
8187 main ()
8188 {
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 eval $cacheid=yes
8196 else
8197 eval $cacheid=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 fi
8202
8203
8204 CFLAGS="$xorg_testset_save_CFLAGS"
8205
8206 eval supported=\$$cacheid
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8208 $as_echo "$supported" >&6; }
8209 if test "$supported" = "yes" ; then
8210 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8211 found="yes"
8212 fi
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 xorg_testset_save_CFLAGS="$CFLAGS"
8230
8231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8234 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8235 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 int i;
8241 _ACEOF
8242 if ac_fn_c_try_compile "$LINENO"; then :
8243 xorg_cv_cc_flag_unknown_warning_option=yes
8244 else
8245 xorg_cv_cc_flag_unknown_warning_option=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8250 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8252 CFLAGS="$xorg_testset_save_CFLAGS"
8253 fi
8254
8255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 fi
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8261 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8262 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 xorg_cv_cc_flag_unused_command_line_argument=yes
8271 else
8272 xorg_cv_cc_flag_unused_command_line_argument=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 found="no"
8283
8284 if test $found = "no" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288
8289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291 fi
8292
8293 CFLAGS="$CFLAGS -Werror=address"
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8296 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8297 cacheid=xorg_cv_cc_flag__Werror_address
8298 if eval \${$cacheid+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 int i;
8304 int
8305 main ()
8306 {
8307
8308 ;
8309 return 0;
8310 }
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 eval $cacheid=yes
8314 else
8315 eval $cacheid=no
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 fi
8320
8321
8322 CFLAGS="$xorg_testset_save_CFLAGS"
8323
8324 eval supported=\$$cacheid
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8326 $as_echo "$supported" >&6; }
8327 if test "$supported" = "yes" ; then
8328 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8329 found="yes"
8330 fi
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 xorg_testset_save_CFLAGS="$CFLAGS"
8348
8349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8352 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8353 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 int i;
8359 _ACEOF
8360 if ac_fn_c_try_compile "$LINENO"; then :
8361 xorg_cv_cc_flag_unknown_warning_option=yes
8362 else
8363 xorg_cv_cc_flag_unknown_warning_option=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8368 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8370 CFLAGS="$xorg_testset_save_CFLAGS"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8379 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8380 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 xorg_cv_cc_flag_unused_command_line_argument=yes
8389 else
8390 xorg_cv_cc_flag_unused_command_line_argument=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398 fi
8399
8400 found="no"
8401
8402 if test $found = "no" ; then
8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 fi
8406
8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409 fi
8410
8411 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8414 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8415 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
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 -Werror=int-to-pointer-cast"
8447 found="yes"
8448 fi
8449 fi
8450
8451 if test $found = "no" ; then
8452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454 fi
8455
8456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458 fi
8459
8460 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8461
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8463 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8464 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8465 if eval \${$cacheid+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 int i;
8471 int
8472 main ()
8473 {
8474
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 eval $cacheid=yes
8481 else
8482 eval $cacheid=no
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 fi
8487
8488
8489 CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491 eval supported=\$$cacheid
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493 $as_echo "$supported" >&6; }
8494 if test "$supported" = "yes" ; then
8495 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8496 found="yes"
8497 fi
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 int i;
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528 xorg_cv_cc_flag_unknown_warning_option=yes
8529 else
8530 xorg_cv_cc_flag_unknown_warning_option=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537 CFLAGS="$xorg_testset_save_CFLAGS"
8538 fi
8539
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543 fi
8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555 xorg_cv_cc_flag_unused_command_line_argument=yes
8556 else
8557 xorg_cv_cc_flag_unused_command_line_argument=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8564 CFLAGS="$xorg_testset_save_CFLAGS"
8565 fi
8566
8567 found="no"
8568
8569 if test $found = "no" ; then
8570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572 fi
8573
8574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8576 fi
8577
8578 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8581 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8582 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8583 if eval \${$cacheid+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 int i;
8589 int
8590 main ()
8591 {
8592
8593 ;
8594 return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_c_try_link "$LINENO"; then :
8598 eval $cacheid=yes
8599 else
8600 eval $cacheid=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 fi
8605
8606
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8608
8609 eval supported=\$$cacheid
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611 $as_echo "$supported" >&6; }
8612 if test "$supported" = "yes" ; then
8613 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8614 found="yes"
8615 fi
8616 fi
8617
8618 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8619 else
8620 { $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
8621 $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;}
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 xorg_testset_save_CFLAGS="$CFLAGS"
8636
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 int i;
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"; then :
8649 xorg_cv_cc_flag_unknown_warning_option=yes
8650 else
8651 xorg_cv_cc_flag_unknown_warning_option=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8658 CFLAGS="$xorg_testset_save_CFLAGS"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664 fi
8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 xorg_cv_cc_flag_unused_command_line_argument=yes
8677 else
8678 xorg_cv_cc_flag_unused_command_line_argument=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 found="no"
8689
8690 if test $found = "no" ; then
8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693 fi
8694
8695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697 fi
8698
8699 CFLAGS="$CFLAGS -Wimplicit"
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8702 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8703 cacheid=xorg_cv_cc_flag__Wimplicit
8704 if eval \${$cacheid+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 int
8711 main ()
8712 {
8713
8714 ;
8715 return 0;
8716 }
8717 _ACEOF
8718 if ac_fn_c_try_link "$LINENO"; then :
8719 eval $cacheid=yes
8720 else
8721 eval $cacheid=no
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8725 fi
8726
8727
8728 CFLAGS="$xorg_testset_save_CFLAGS"
8729
8730 eval supported=\$$cacheid
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732 $as_echo "$supported" >&6; }
8733 if test "$supported" = "yes" ; then
8734 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8735 found="yes"
8736 fi
8737 fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753 xorg_testset_save_CFLAGS="$CFLAGS"
8754
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 int i;
8765 _ACEOF
8766 if ac_fn_c_try_compile "$LINENO"; then :
8767 xorg_cv_cc_flag_unknown_warning_option=yes
8768 else
8769 xorg_cv_cc_flag_unknown_warning_option=no
8770 fi
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8776 CFLAGS="$xorg_testset_save_CFLAGS"
8777 fi
8778
8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8782 fi
8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 xorg_cv_cc_flag_unused_command_line_argument=yes
8795 else
8796 xorg_cv_cc_flag_unused_command_line_argument=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804 fi
8805
8806 found="no"
8807
8808 if test $found = "no" ; then
8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811 fi
8812
8813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815 fi
8816
8817 CFLAGS="$CFLAGS -Wnonnull"
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8820 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8821 cacheid=xorg_cv_cc_flag__Wnonnull
8822 if eval \${$cacheid+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 int i;
8828 int
8829 main ()
8830 {
8831
8832 ;
8833 return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837 eval $cacheid=yes
8838 else
8839 eval $cacheid=no
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 fi
8844
8845
8846 CFLAGS="$xorg_testset_save_CFLAGS"
8847
8848 eval supported=\$$cacheid
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8850 $as_echo "$supported" >&6; }
8851 if test "$supported" = "yes" ; then
8852 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8853 found="yes"
8854 fi
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871 xorg_testset_save_CFLAGS="$CFLAGS"
8872
8873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 int i;
8883 _ACEOF
8884 if ac_fn_c_try_compile "$LINENO"; then :
8885 xorg_cv_cc_flag_unknown_warning_option=yes
8886 else
8887 xorg_cv_cc_flag_unknown_warning_option=no
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8894 CFLAGS="$xorg_testset_save_CFLAGS"
8895 fi
8896
8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900 fi
8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 xorg_cv_cc_flag_unused_command_line_argument=yes
8913 else
8914 xorg_cv_cc_flag_unused_command_line_argument=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8921 CFLAGS="$xorg_testset_save_CFLAGS"
8922 fi
8923
8924 found="no"
8925
8926 if test $found = "no" ; then
8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929 fi
8930
8931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8933 fi
8934
8935 CFLAGS="$CFLAGS -Winit-self"
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8938 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8939 cacheid=xorg_cv_cc_flag__Winit_self
8940 if eval \${$cacheid+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 int
8947 main ()
8948 {
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_link "$LINENO"; then :
8955 eval $cacheid=yes
8956 else
8957 eval $cacheid=no
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 fi
8962
8963
8964 CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966 eval supported=\$$cacheid
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968 $as_echo "$supported" >&6; }
8969 if test "$supported" = "yes" ; then
8970 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8971 found="yes"
8972 fi
8973 fi
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 xorg_testset_save_CFLAGS="$CFLAGS"
8990
8991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 int i;
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"; then :
9003 xorg_cv_cc_flag_unknown_warning_option=yes
9004 else
9005 xorg_cv_cc_flag_unknown_warning_option=no
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9012 CFLAGS="$xorg_testset_save_CFLAGS"
9013 fi
9014
9015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018 fi
9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"; then :
9030 xorg_cv_cc_flag_unused_command_line_argument=yes
9031 else
9032 xorg_cv_cc_flag_unused_command_line_argument=no
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9039 CFLAGS="$xorg_testset_save_CFLAGS"
9040 fi
9041
9042 found="no"
9043
9044 if test $found = "no" ; then
9045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9047 fi
9048
9049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9051 fi
9052
9053 CFLAGS="$CFLAGS -Wmain"
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9056 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9057 cacheid=xorg_cv_cc_flag__Wmain
9058 if eval \${$cacheid+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063 int i;
9064 int
9065 main ()
9066 {
9067
9068 ;
9069 return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_link "$LINENO"; then :
9073 eval $cacheid=yes
9074 else
9075 eval $cacheid=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9079 fi
9080
9081
9082 CFLAGS="$xorg_testset_save_CFLAGS"
9083
9084 eval supported=\$$cacheid
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9086 $as_echo "$supported" >&6; }
9087 if test "$supported" = "yes" ; then
9088 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9089 found="yes"
9090 fi
9091 fi
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 xorg_testset_save_CFLAGS="$CFLAGS"
9108
9109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 int i;
9119 _ACEOF
9120 if ac_fn_c_try_compile "$LINENO"; then :
9121 xorg_cv_cc_flag_unknown_warning_option=yes
9122 else
9123 xorg_cv_cc_flag_unknown_warning_option=no
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9130 CFLAGS="$xorg_testset_save_CFLAGS"
9131 fi
9132
9133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136 fi
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 _ACEOF
9147 if ac_fn_c_try_compile "$LINENO"; then :
9148 xorg_cv_cc_flag_unused_command_line_argument=yes
9149 else
9150 xorg_cv_cc_flag_unused_command_line_argument=no
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157 CFLAGS="$xorg_testset_save_CFLAGS"
9158 fi
9159
9160 found="no"
9161
9162 if test $found = "no" ; then
9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165 fi
9166
9167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169 fi
9170
9171 CFLAGS="$CFLAGS -Wmissing-braces"
9172
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9174 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9175 cacheid=xorg_cv_cc_flag__Wmissing_braces
9176 if eval \${$cacheid+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 int i;
9182 int
9183 main ()
9184 {
9185
9186 ;
9187 return 0;
9188 }
9189 _ACEOF
9190 if ac_fn_c_try_link "$LINENO"; then :
9191 eval $cacheid=yes
9192 else
9193 eval $cacheid=no
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext conftest.$ac_ext
9197 fi
9198
9199
9200 CFLAGS="$xorg_testset_save_CFLAGS"
9201
9202 eval supported=\$$cacheid
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9204 $as_echo "$supported" >&6; }
9205 if test "$supported" = "yes" ; then
9206 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9207 found="yes"
9208 fi
9209 fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 xorg_testset_save_CFLAGS="$CFLAGS"
9226
9227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 int i;
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239 xorg_cv_cc_flag_unknown_warning_option=yes
9240 else
9241 xorg_cv_cc_flag_unknown_warning_option=no
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249 fi
9250
9251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254 fi
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"; then :
9266 xorg_cv_cc_flag_unused_command_line_argument=yes
9267 else
9268 xorg_cv_cc_flag_unused_command_line_argument=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276 fi
9277
9278 found="no"
9279
9280 if test $found = "no" ; then
9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283 fi
9284
9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287 fi
9288
9289 CFLAGS="$CFLAGS -Wsequence-point"
9290
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9292 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9293 cacheid=xorg_cv_cc_flag__Wsequence_point
9294 if eval \${$cacheid+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 int i;
9300 int
9301 main ()
9302 {
9303
9304 ;
9305 return 0;
9306 }
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"; then :
9309 eval $cacheid=yes
9310 else
9311 eval $cacheid=no
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 fi
9316
9317
9318 CFLAGS="$xorg_testset_save_CFLAGS"
9319
9320 eval supported=\$$cacheid
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9322 $as_echo "$supported" >&6; }
9323 if test "$supported" = "yes" ; then
9324 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9325 found="yes"
9326 fi
9327 fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 xorg_testset_save_CFLAGS="$CFLAGS"
9344
9345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9348 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 int i;
9355 _ACEOF
9356 if ac_fn_c_try_compile "$LINENO"; then :
9357 xorg_cv_cc_flag_unknown_warning_option=yes
9358 else
9359 xorg_cv_cc_flag_unknown_warning_option=no
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9364 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9366 CFLAGS="$xorg_testset_save_CFLAGS"
9367 fi
9368
9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372 fi
9373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9375 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384 xorg_cv_cc_flag_unused_command_line_argument=yes
9385 else
9386 xorg_cv_cc_flag_unused_command_line_argument=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9391 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9393 CFLAGS="$xorg_testset_save_CFLAGS"
9394 fi
9395
9396 found="no"
9397
9398 if test $found = "no" ; then
9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401 fi
9402
9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9405 fi
9406
9407 CFLAGS="$CFLAGS -Wreturn-type"
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9410 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9411 cacheid=xorg_cv_cc_flag__Wreturn_type
9412 if eval \${$cacheid+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 int i;
9418 int
9419 main ()
9420 {
9421
9422 ;
9423 return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427 eval $cacheid=yes
9428 else
9429 eval $cacheid=no
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 fi
9434
9435
9436 CFLAGS="$xorg_testset_save_CFLAGS"
9437
9438 eval supported=\$$cacheid
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9440 $as_echo "$supported" >&6; }
9441 if test "$supported" = "yes" ; then
9442 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9443 found="yes"
9444 fi
9445 fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461 xorg_testset_save_CFLAGS="$CFLAGS"
9462
9463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 int i;
9473 _ACEOF
9474 if ac_fn_c_try_compile "$LINENO"; then :
9475 xorg_cv_cc_flag_unknown_warning_option=yes
9476 else
9477 xorg_cv_cc_flag_unknown_warning_option=no
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484 CFLAGS="$xorg_testset_save_CFLAGS"
9485 fi
9486
9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 fi
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"; then :
9502 xorg_cv_cc_flag_unused_command_line_argument=yes
9503 else
9504 xorg_cv_cc_flag_unused_command_line_argument=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 fi
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512 fi
9513
9514 found="no"
9515
9516 if test $found = "no" ; then
9517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519 fi
9520
9521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523 fi
9524
9525 CFLAGS="$CFLAGS -Wtrigraphs"
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9528 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9529 cacheid=xorg_cv_cc_flag__Wtrigraphs
9530 if eval \${$cacheid+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 int i;
9536 int
9537 main ()
9538 {
9539
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 eval $cacheid=yes
9546 else
9547 eval $cacheid=no
9548 fi
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 fi
9552
9553
9554 CFLAGS="$xorg_testset_save_CFLAGS"
9555
9556 eval supported=\$$cacheid
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558 $as_echo "$supported" >&6; }
9559 if test "$supported" = "yes" ; then
9560 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9561 found="yes"
9562 fi
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579 xorg_testset_save_CFLAGS="$CFLAGS"
9580
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 int i;
9591 _ACEOF
9592 if ac_fn_c_try_compile "$LINENO"; then :
9593 xorg_cv_cc_flag_unknown_warning_option=yes
9594 else
9595 xorg_cv_cc_flag_unknown_warning_option=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9602 CFLAGS="$xorg_testset_save_CFLAGS"
9603 fi
9604
9605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608 fi
9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 _ACEOF
9619 if ac_fn_c_try_compile "$LINENO"; then :
9620 xorg_cv_cc_flag_unused_command_line_argument=yes
9621 else
9622 xorg_cv_cc_flag_unused_command_line_argument=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 fi
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9629 CFLAGS="$xorg_testset_save_CFLAGS"
9630 fi
9631
9632 found="no"
9633
9634 if test $found = "no" ; then
9635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637 fi
9638
9639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9641 fi
9642
9643 CFLAGS="$CFLAGS -Warray-bounds"
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9646 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9647 cacheid=xorg_cv_cc_flag__Warray_bounds
9648 if eval \${$cacheid+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 int i;
9654 int
9655 main ()
9656 {
9657
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_c_try_link "$LINENO"; then :
9663 eval $cacheid=yes
9664 else
9665 eval $cacheid=no
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 fi
9670
9671
9672 CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674 eval supported=\$$cacheid
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676 $as_echo "$supported" >&6; }
9677 if test "$supported" = "yes" ; then
9678 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9679 found="yes"
9680 fi
9681 fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697 xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 int i;
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9711 xorg_cv_cc_flag_unknown_warning_option=yes
9712 else
9713 xorg_cv_cc_flag_unknown_warning_option=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9720 CFLAGS="$xorg_testset_save_CFLAGS"
9721 fi
9722
9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726 fi
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738 xorg_cv_cc_flag_unused_command_line_argument=yes
9739 else
9740 xorg_cv_cc_flag_unused_command_line_argument=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9747 CFLAGS="$xorg_testset_save_CFLAGS"
9748 fi
9749
9750 found="no"
9751
9752 if test $found = "no" ; then
9753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755 fi
9756
9757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9759 fi
9760
9761 CFLAGS="$CFLAGS -Wwrite-strings"
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9764 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9765 cacheid=xorg_cv_cc_flag__Wwrite_strings
9766 if eval \${$cacheid+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int i;
9772 int
9773 main ()
9774 {
9775
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 eval $cacheid=yes
9782 else
9783 eval $cacheid=no
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 fi
9788
9789
9790 CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792 eval supported=\$$cacheid
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794 $as_echo "$supported" >&6; }
9795 if test "$supported" = "yes" ; then
9796 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9797 found="yes"
9798 fi
9799 fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815 xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 int i;
9827 _ACEOF
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829 xorg_cv_cc_flag_unknown_warning_option=yes
9830 else
9831 xorg_cv_cc_flag_unknown_warning_option=no
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9838 CFLAGS="$xorg_testset_save_CFLAGS"
9839 fi
9840
9841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9844 fi
9845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 _ACEOF
9855 if ac_fn_c_try_compile "$LINENO"; then :
9856 xorg_cv_cc_flag_unused_command_line_argument=yes
9857 else
9858 xorg_cv_cc_flag_unused_command_line_argument=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865 CFLAGS="$xorg_testset_save_CFLAGS"
9866 fi
9867
9868 found="no"
9869
9870 if test $found = "no" ; then
9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873 fi
9874
9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877 fi
9878
9879 CFLAGS="$CFLAGS -Waddress"
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9882 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9883 cacheid=xorg_cv_cc_flag__Waddress
9884 if eval \${$cacheid+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 int
9891 main ()
9892 {
9893
9894 ;
9895 return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 eval $cacheid=yes
9900 else
9901 eval $cacheid=no
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 fi
9906
9907
9908 CFLAGS="$xorg_testset_save_CFLAGS"
9909
9910 eval supported=\$$cacheid
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9912 $as_echo "$supported" >&6; }
9913 if test "$supported" = "yes" ; then
9914 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9915 found="yes"
9916 fi
9917 fi
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933 xorg_testset_save_CFLAGS="$CFLAGS"
9934
9935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944 int i;
9945 _ACEOF
9946 if ac_fn_c_try_compile "$LINENO"; then :
9947 xorg_cv_cc_flag_unknown_warning_option=yes
9948 else
9949 xorg_cv_cc_flag_unknown_warning_option=no
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9956 CFLAGS="$xorg_testset_save_CFLAGS"
9957 fi
9958
9959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962 fi
9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int i;
9972 _ACEOF
9973 if ac_fn_c_try_compile "$LINENO"; then :
9974 xorg_cv_cc_flag_unused_command_line_argument=yes
9975 else
9976 xorg_cv_cc_flag_unused_command_line_argument=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984 fi
9985
9986 found="no"
9987
9988 if test $found = "no" ; then
9989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991 fi
9992
9993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9995 fi
9996
9997 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10000 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10001 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10002 if eval \${$cacheid+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int i;
10008 int
10009 main ()
10010 {
10011
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 eval $cacheid=yes
10018 else
10019 eval $cacheid=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 fi
10024
10025
10026 CFLAGS="$xorg_testset_save_CFLAGS"
10027
10028 eval supported=\$$cacheid
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10030 $as_echo "$supported" >&6; }
10031 if test "$supported" = "yes" ; then
10032 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10033 found="yes"
10034 fi
10035 fi
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051 xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 int i;
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 xorg_cv_cc_flag_unknown_warning_option=yes
10066 else
10067 xorg_cv_cc_flag_unknown_warning_option=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 int i;
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 xorg_cv_cc_flag_unused_command_line_argument=yes
10093 else
10094 xorg_cv_cc_flag_unused_command_line_argument=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101 CFLAGS="$xorg_testset_save_CFLAGS"
10102 fi
10103
10104 found="no"
10105
10106 if test $found = "no" ; then
10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109 fi
10110
10111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113 fi
10114
10115 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10118 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10119 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10120 if eval \${$cacheid+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 eval $cacheid=yes
10136 else
10137 eval $cacheid=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 fi
10142
10143
10144 CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146 eval supported=\$$cacheid
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148 $as_echo "$supported" >&6; }
10149 if test "$supported" = "yes" ; then
10150 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10151 found="yes"
10152 fi
10153 fi
10154
10155
10156 fi
10157
10158
10159
10160
10161
10162
10163
10164 CWARNFLAGS="$BASE_CFLAGS"
10165 if test "x$GCC" = xyes ; then
10166 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10167 fi
10168
10169
10170
10171
10172
10173
10174
10175
10176 # Check whether --enable-strict-compilation was given.
10177 if test "${enable_strict_compilation+set}" = set; then :
10178 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10179 else
10180 STRICT_COMPILE=no
10181 fi
10182
10183
10184
10185
10186
10187
10188 STRICT_CFLAGS=""
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202 xorg_testset_save_CFLAGS="$CFLAGS"
10203
10204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213 int i;
10214 _ACEOF
10215 if ac_fn_c_try_compile "$LINENO"; then :
10216 xorg_cv_cc_flag_unknown_warning_option=yes
10217 else
10218 xorg_cv_cc_flag_unknown_warning_option=no
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221 fi
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10225 CFLAGS="$xorg_testset_save_CFLAGS"
10226 fi
10227
10228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10231 fi
10232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 int i;
10241 _ACEOF
10242 if ac_fn_c_try_compile "$LINENO"; then :
10243 xorg_cv_cc_flag_unused_command_line_argument=yes
10244 else
10245 xorg_cv_cc_flag_unused_command_line_argument=no
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10252 CFLAGS="$xorg_testset_save_CFLAGS"
10253 fi
10254
10255 found="no"
10256
10257 if test $found = "no" ; then
10258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260 fi
10261
10262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10264 fi
10265
10266 CFLAGS="$CFLAGS -pedantic"
10267
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10269 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10270 cacheid=xorg_cv_cc_flag__pedantic
10271 if eval \${$cacheid+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int i;
10277 int
10278 main ()
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 eval $cacheid=yes
10287 else
10288 eval $cacheid=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 fi
10293
10294
10295 CFLAGS="$xorg_testset_save_CFLAGS"
10296
10297 eval supported=\$$cacheid
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10299 $as_echo "$supported" >&6; }
10300 if test "$supported" = "yes" ; then
10301 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10302 found="yes"
10303 fi
10304 fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 xorg_testset_save_CFLAGS="$CFLAGS"
10321
10322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10331 int i;
10332 _ACEOF
10333 if ac_fn_c_try_compile "$LINENO"; then :
10334 xorg_cv_cc_flag_unknown_warning_option=yes
10335 else
10336 xorg_cv_cc_flag_unknown_warning_option=no
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10343 CFLAGS="$xorg_testset_save_CFLAGS"
10344 fi
10345
10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349 fi
10350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 int i;
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"; then :
10361 xorg_cv_cc_flag_unused_command_line_argument=yes
10362 else
10363 xorg_cv_cc_flag_unused_command_line_argument=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10370 CFLAGS="$xorg_testset_save_CFLAGS"
10371 fi
10372
10373 found="no"
10374
10375 if test $found = "no" ; then
10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379
10380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382 fi
10383
10384 CFLAGS="$CFLAGS -Werror"
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10387 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10388 cacheid=xorg_cv_cc_flag__Werror
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 -Werror"
10420 found="yes"
10421 fi
10422 fi
10423
10424 if test $found = "no" ; then
10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427 fi
10428
10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431 fi
10432
10433 CFLAGS="$CFLAGS -errwarn"
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10436 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10437 cacheid=xorg_cv_cc_flag__errwarn
10438 if eval \${$cacheid+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443 int i;
10444 int
10445 main ()
10446 {
10447
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 eval $cacheid=yes
10454 else
10455 eval $cacheid=no
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 fi
10460
10461
10462 CFLAGS="$xorg_testset_save_CFLAGS"
10463
10464 eval supported=\$$cacheid
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10466 $as_echo "$supported" >&6; }
10467 if test "$supported" = "yes" ; then
10468 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10469 found="yes"
10470 fi
10471 fi
10472
10473
10474
10475 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10476 # activate it with -Werror, so we add it here explicitly.
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490 xorg_testset_save_CFLAGS="$CFLAGS"
10491
10492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 int i;
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"; then :
10504 xorg_cv_cc_flag_unknown_warning_option=yes
10505 else
10506 xorg_cv_cc_flag_unknown_warning_option=no
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10513 CFLAGS="$xorg_testset_save_CFLAGS"
10514 fi
10515
10516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10519 fi
10520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 int i;
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 xorg_cv_cc_flag_unused_command_line_argument=yes
10532 else
10533 xorg_cv_cc_flag_unused_command_line_argument=no
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536 fi
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10540 CFLAGS="$xorg_testset_save_CFLAGS"
10541 fi
10542
10543 found="no"
10544
10545 if test $found = "no" ; then
10546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548 fi
10549
10550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552 fi
10553
10554 CFLAGS="$CFLAGS -Werror=attributes"
10555
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10557 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10558 cacheid=xorg_cv_cc_flag__Werror_attributes
10559 if eval \${$cacheid+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 int i;
10565 int
10566 main ()
10567 {
10568
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 eval $cacheid=yes
10575 else
10576 eval $cacheid=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 fi
10581
10582
10583 CFLAGS="$xorg_testset_save_CFLAGS"
10584
10585 eval supported=\$$cacheid
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10587 $as_echo "$supported" >&6; }
10588 if test "$supported" = "yes" ; then
10589 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10590 found="yes"
10591 fi
10592 fi
10593
10594
10595
10596 if test "x$STRICT_COMPILE" = "xyes"; then
10597 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10598 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10599 fi
10600
10601
10602
10603
10604
10605
10606 cat >>confdefs.h <<_ACEOF
10607 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10608 _ACEOF
10609
10610 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10611 if test "x$PVM" = "x"; then
10612 PVM="0"
10613 fi
10614
10615 cat >>confdefs.h <<_ACEOF
10616 #define PACKAGE_VERSION_MINOR $PVM
10617 _ACEOF
10618
10619 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10620 if test "x$PVP" = "x"; then
10621 PVP="0"
10622 fi
10623
10624 cat >>confdefs.h <<_ACEOF
10625 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10626 _ACEOF
10627
10628
10629
10630 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10631 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10632 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10633 touch \$(top_srcdir)/ChangeLog; \
10634 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10635
10636
10637
10638
10639 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10640 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10641 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10642 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10643 touch \$(top_srcdir)/INSTALL; \
10644 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10645
10646
10647
10648
10649
10650
10651 case $host_os in
10652 solaris*)
10653 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10654 # check for a man page file found in later versions that use
10655 # traditional section numbers instead
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10657 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10658 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 test "$cross_compiling" = yes &&
10662 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10663 if test -r "/usr/share/man/man7/attributes.7"; then
10664 ac_cv_file__usr_share_man_man7_attributes_7=yes
10665 else
10666 ac_cv_file__usr_share_man_man7_attributes_7=no
10667 fi
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10670 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10671 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10672 SYSV_MAN_SECTIONS=false
10673 else
10674 SYSV_MAN_SECTIONS=true
10675 fi
10676
10677 ;;
10678 *) SYSV_MAN_SECTIONS=false ;;
10679 esac
10680
10681 if test x$APP_MAN_SUFFIX = x ; then
10682 APP_MAN_SUFFIX=1
10683 fi
10684 if test x$APP_MAN_DIR = x ; then
10685 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10686 fi
10687
10688 if test x$LIB_MAN_SUFFIX = x ; then
10689 LIB_MAN_SUFFIX=3
10690 fi
10691 if test x$LIB_MAN_DIR = x ; then
10692 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10693 fi
10694
10695 if test x$FILE_MAN_SUFFIX = x ; then
10696 case $SYSV_MAN_SECTIONS in
10697 true) FILE_MAN_SUFFIX=4 ;;
10698 *) FILE_MAN_SUFFIX=5 ;;
10699 esac
10700 fi
10701 if test x$FILE_MAN_DIR = x ; then
10702 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10703 fi
10704
10705 if test x$MISC_MAN_SUFFIX = x ; then
10706 case $SYSV_MAN_SECTIONS in
10707 true) MISC_MAN_SUFFIX=5 ;;
10708 *) MISC_MAN_SUFFIX=7 ;;
10709 esac
10710 fi
10711 if test x$MISC_MAN_DIR = x ; then
10712 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10713 fi
10714
10715 if test x$DRIVER_MAN_SUFFIX = x ; then
10716 case $SYSV_MAN_SECTIONS in
10717 true) DRIVER_MAN_SUFFIX=7 ;;
10718 *) DRIVER_MAN_SUFFIX=4 ;;
10719 esac
10720 fi
10721 if test x$DRIVER_MAN_DIR = x ; then
10722 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10723 fi
10724
10725 if test x$ADMIN_MAN_SUFFIX = x ; then
10726 case $SYSV_MAN_SECTIONS in
10727 true) ADMIN_MAN_SUFFIX=1m ;;
10728 *) ADMIN_MAN_SUFFIX=8 ;;
10729 esac
10730 fi
10731 if test x$ADMIN_MAN_DIR = x ; then
10732 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10733 fi
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 XORG_MAN_PAGE="X Version 11"
10750
10751 MAN_SUBSTS="\
10752 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10753 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10754 -e 's|__xservername__|Xorg|g' \
10755 -e 's|__xconfigfile__|xorg.conf|g' \
10756 -e 's|__projectroot__|\$(prefix)|g' \
10757 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10758 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10759 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10760 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10761 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10762 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10763 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10764
10765
10766
10767 # Check whether --enable-silent-rules was given.
10768 if test "${enable_silent_rules+set}" = set; then :
10769 enableval=$enable_silent_rules;
10770 fi
10771
10772 case $enable_silent_rules in # (((
10773 yes) AM_DEFAULT_VERBOSITY=0;;
10774 no) AM_DEFAULT_VERBOSITY=1;;
10775 *) AM_DEFAULT_VERBOSITY=0;;
10776 esac
10777 am_make=${MAKE-make}
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10779 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10780 if ${am_cv_make_support_nested_variables+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 if $as_echo 'TRUE=$(BAR$(V))
10784 BAR0=false
10785 BAR1=true
10786 V=1
10787 am__doit:
10788 @$(TRUE)
10789 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10790 am_cv_make_support_nested_variables=yes
10791 else
10792 am_cv_make_support_nested_variables=no
10793 fi
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10796 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10797 if test $am_cv_make_support_nested_variables = yes; then
10798 AM_V='$(V)'
10799 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10800 else
10801 AM_V=$AM_DEFAULT_VERBOSITY
10802 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10803 fi
10804 AM_BACKSLASH='\'
10805
10806
10807
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
10809 $as_echo_n "checking for gzopen in -lz... " >&6; }
10810 if ${ac_cv_lib_z_gzopen+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lz $LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char gzopen ();
10825 int
10826 main ()
10827 {
10828 return gzopen ();
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_z_gzopen=yes
10835 else
10836 ac_cv_lib_z_gzopen=no
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10843 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
10844 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10845 cat >>confdefs.h <<_ACEOF
10846 #define HAVE_LIBZ 1
10847 _ACEOF
10848
10849 LIBS="-lz $LIBS"
10850
10851 else
10852 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10853 fi
10854
10855
10856
10857 # Check whether --with-bzip2 was given.
10858 if test "${with_bzip2+set}" = set; then :
10859 withval=$with_bzip2;
10860 else
10861 with_bzip2=no
10862 fi
10863
10864 if test "x$with_bzip2" = xyes; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10866 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10867 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lbz2 $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char BZ2_bzopen ();
10882 int
10883 main ()
10884 {
10885 return BZ2_bzopen ();
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_bz2_BZ2_bzopen=yes
10892 else
10893 ac_cv_lib_bz2_BZ2_bzopen=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10900 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10901 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_LIBBZ2 1
10904 _ACEOF
10905
10906 LIBS="-lbz2 $LIBS"
10907
10908 else
10909 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10910 fi
10911
10912
10913 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10914
10915 fi
10916
10917 # Checks for pkg-config packages
10918
10919 pkg_failed=no
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10921 $as_echo_n "checking for MKFONTSCALE... " >&6; }
10922
10923 if test -n "$MKFONTSCALE_CFLAGS"; then
10924 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10925 elif test -n "$PKG_CONFIG"; then
10926 if test -n "$PKG_CONFIG" && \
10927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10928 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10929 ac_status=$?
10930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10931 test $ac_status = 0; }; then
10932 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10933 test "x$?" != "x0" && pkg_failed=yes
10934 else
10935 pkg_failed=yes
10936 fi
10937 else
10938 pkg_failed=untried
10939 fi
10940 if test -n "$MKFONTSCALE_LIBS"; then
10941 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10942 elif test -n "$PKG_CONFIG"; then
10943 if test -n "$PKG_CONFIG" && \
10944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10945 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948 test $ac_status = 0; }; then
10949 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10950 test "x$?" != "x0" && pkg_failed=yes
10951 else
10952 pkg_failed=yes
10953 fi
10954 else
10955 pkg_failed=untried
10956 fi
10957
10958
10959
10960 if test $pkg_failed = yes; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10963
10964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10965 _pkg_short_errors_supported=yes
10966 else
10967 _pkg_short_errors_supported=no
10968 fi
10969 if test $_pkg_short_errors_supported = yes; then
10970 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontenc freetype2" 2>&1`
10971 else
10972 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontenc freetype2" 2>&1`
10973 fi
10974 # Put the nasty error message in config.log where it belongs
10975 echo "$MKFONTSCALE_PKG_ERRORS" >&5
10976
10977 as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10978
10979 $MKFONTSCALE_PKG_ERRORS
10980
10981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10982 installed software in a non-standard prefix.
10983
10984 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10985 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10986 See the pkg-config man page for more details." "$LINENO" 5
10987 elif test $pkg_failed = untried; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
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 MKFONTSCALE_CFLAGS
10997 and MKFONTSCALE_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 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
11004 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006 $as_echo "yes" >&6; }
11007
11008 fi
11009
11010 pkg_failed=no
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
11012 $as_echo_n "checking for X11... " >&6; }
11013
11014 if test -n "$X11_CFLAGS"; then
11015 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
11016 elif test -n "$PKG_CONFIG"; then
11017 if test -n "$PKG_CONFIG" && \
11018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11019 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11020 ac_status=$?
11021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022 test $ac_status = 0; }; then
11023 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
11024 test "x$?" != "x0" && pkg_failed=yes
11025 else
11026 pkg_failed=yes
11027 fi
11028 else
11029 pkg_failed=untried
11030 fi
11031 if test -n "$X11_LIBS"; then
11032 pkg_cv_X11_LIBS="$X11_LIBS"
11033 elif test -n "$PKG_CONFIG"; then
11034 if test -n "$PKG_CONFIG" && \
11035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11036 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11037 ac_status=$?
11038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039 test $ac_status = 0; }; then
11040 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
11041 test "x$?" != "x0" && pkg_failed=yes
11042 else
11043 pkg_failed=yes
11044 fi
11045 else
11046 pkg_failed=untried
11047 fi
11048
11049
11050
11051 if test $pkg_failed = yes; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054
11055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11056 _pkg_short_errors_supported=yes
11057 else
11058 _pkg_short_errors_supported=no
11059 fi
11060 if test $_pkg_short_errors_supported = yes; then
11061 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11062 else
11063 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11064 fi
11065 # Put the nasty error message in config.log where it belongs
11066 echo "$X11_PKG_ERRORS" >&5
11067
11068 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
11069
11070 $X11_PKG_ERRORS
11071
11072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11073 installed software in a non-standard prefix.
11074
11075 Alternatively, you may set the environment variables X11_CFLAGS
11076 and X11_LIBS to avoid the need to call pkg-config.
11077 See the pkg-config man page for more details." "$LINENO" 5
11078 elif test $pkg_failed = untried; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11083 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11084 is in your PATH or set the PKG_CONFIG environment variable to the full
11085 path to pkg-config.
11086
11087 Alternatively, you may set the environment variables X11_CFLAGS
11088 and X11_LIBS to avoid the need to call pkg-config.
11089 See the pkg-config man page for more details.
11090
11091 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11092 See \`config.log' for more details" "$LINENO" 5; }
11093 else
11094 X11_CFLAGS=$pkg_cv_X11_CFLAGS
11095 X11_LIBS=$pkg_cv_X11_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11097 $as_echo "yes" >&6; }
11098
11099 fi
11100
11101
11102
11103
11104
11105
11106 # Check whether --with-lint was given.
11107 if test "${with_lint+set}" = set; then :
11108 withval=$with_lint; use_lint=$withval
11109 else
11110 use_lint=no
11111 fi
11112
11113
11114 # Obtain platform specific info like program name and options
11115 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11116 case $host_os in
11117 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11118 lint_name=splint
11119 lint_options="-badflag"
11120 ;;
11121 *freebsd* | *netbsd*)
11122 lint_name=lint
11123 lint_options="-u -b"
11124 ;;
11125 *solaris*)
11126 lint_name=lint
11127 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11128 ;;
11129 esac
11130
11131 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11132 if test "x$use_lint" = x"yes" ; then
11133 # Extract the first word of "$lint_name", so it can be a program name with args.
11134 set dummy $lint_name; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_LINT+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 case $LINT in
11141 [\\/]* | ?:[\\/]*)
11142 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11143 ;;
11144 *)
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156 done
11157 done
11158 IFS=$as_save_IFS
11159
11160 ;;
11161 esac
11162 fi
11163 LINT=$ac_cv_path_LINT
11164 if test -n "$LINT"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11166 $as_echo "$LINT" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172
11173 if test "x$LINT" = "x"; then
11174 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11175 fi
11176 elif test "x$use_lint" = x"no" ; then
11177 if test "x$LINT" != "x"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11179 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11180 fi
11181 else
11182 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11183 fi
11184
11185 # User supplied flags override default flags
11186 if test "x$LINT_FLAGS" != "x"; then
11187 lint_options=$LINT_FLAGS
11188 fi
11189
11190 LINT_FLAGS=$lint_options
11191
11192 if test "x$LINT" != x; then
11193 LINT_TRUE=
11194 LINT_FALSE='#'
11195 else
11196 LINT_TRUE='#'
11197 LINT_FALSE=
11198 fi
11199
11200
11201
11202
11203 ac_config_files="$ac_config_files Makefile man/Makefile"
11204
11205 cat >confcache <<\_ACEOF
11206 # This file is a shell script that caches the results of configure
11207 # tests run on this system so they can be shared between configure
11208 # scripts and configure runs, see configure's option --config-cache.
11209 # It is not useful on other systems. If it contains results you don't
11210 # want to keep, you may remove or edit it.
11211 #
11212 # config.status only pays attention to the cache file if you give it
11213 # the --recheck option to rerun configure.
11214 #
11215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11217 # following values.
11218
11219 _ACEOF
11220
11221 # The following way of writing the cache mishandles newlines in values,
11222 # but we know of no workaround that is simple, portable, and efficient.
11223 # So, we kill variables containing newlines.
11224 # Ultrix sh set writes to stderr and can't be redirected directly,
11225 # and sets the high bit in the cache file unless we assign to the vars.
11226 (
11227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11228 eval ac_val=\$$ac_var
11229 case $ac_val in #(
11230 *${as_nl}*)
11231 case $ac_var in #(
11232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11234 esac
11235 case $ac_var in #(
11236 _ | IFS | as_nl) ;; #(
11237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11238 *) { eval $ac_var=; unset $ac_var;} ;;
11239 esac ;;
11240 esac
11241 done
11242
11243 (set) 2>&1 |
11244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11245 *${as_nl}ac_space=\ *)
11246 # `set' does not quote correctly, so add quotes: double-quote
11247 # substitution turns \\\\ into \\, and sed turns \\ into \.
11248 sed -n \
11249 "s/'/'\\\\''/g;
11250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11251 ;; #(
11252 *)
11253 # `set' quotes correctly as required by POSIX, so do not add quotes.
11254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11255 ;;
11256 esac |
11257 sort
11258 ) |
11259 sed '
11260 /^ac_cv_env_/b end
11261 t clear
11262 :clear
11263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11264 t end
11265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11266 :end' >>confcache
11267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11268 if test -w "$cache_file"; then
11269 if test "x$cache_file" != "x/dev/null"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11271 $as_echo "$as_me: updating cache $cache_file" >&6;}
11272 if test ! -f "$cache_file" || test -h "$cache_file"; then
11273 cat confcache >"$cache_file"
11274 else
11275 case $cache_file in #(
11276 */* | ?:*)
11277 mv -f confcache "$cache_file"$$ &&
11278 mv -f "$cache_file"$$ "$cache_file" ;; #(
11279 *)
11280 mv -f confcache "$cache_file" ;;
11281 esac
11282 fi
11283 fi
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11286 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11287 fi
11288 fi
11289 rm -f confcache
11290
11291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11292 # Let make expand exec_prefix.
11293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11294
11295 DEFS=-DHAVE_CONFIG_H
11296
11297 ac_libobjs=
11298 ac_ltlibobjs=
11299 U=
11300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11301 # 1. Remove the extension, and $U if already installed.
11302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11305 # will be set to the directory where LIBOBJS objects are built.
11306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11308 done
11309 LIBOBJS=$ac_libobjs
11310
11311 LTLIBOBJS=$ac_ltlibobjs
11312
11313
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11315 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11316 if test -n "$am_sleep_pid"; then
11317 # Hide warnings about reused PIDs.
11318 wait $am_sleep_pid 2>/dev/null
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11321 $as_echo "done" >&6; }
11322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11323 as_fn_error $? "conditional \"AMDEP\" was never defined.
11324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11325 fi
11326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11327 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11329 fi
11330 if test -n "$EXEEXT"; then
11331 am__EXEEXT_TRUE=
11332 am__EXEEXT_FALSE='#'
11333 else
11334 am__EXEEXT_TRUE='#'
11335 am__EXEEXT_FALSE=
11336 fi
11337
11338 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11339 as_fn_error $? "conditional \"LINT\" was never defined.
11340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11341 fi
11342
11343 : "${CONFIG_STATUS=./config.status}"
11344 ac_write_fail=0
11345 ac_clean_files_save=$ac_clean_files
11346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11348 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11349 as_write_fail=0
11350 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11351 #! $SHELL
11352 # Generated by $as_me.
11353 # Run this file to recreate the current configuration.
11354 # Compiler output produced by configure, useful for debugging
11355 # configure, is in config.log if it exists.
11356
11357 debug=false
11358 ac_cs_recheck=false
11359 ac_cs_silent=false
11360
11361 SHELL=\${CONFIG_SHELL-$SHELL}
11362 export SHELL
11363 _ASEOF
11364 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11365 ## -------------------- ##
11366 ## M4sh Initialization. ##
11367 ## -------------------- ##
11368
11369 # Be more Bourne compatible
11370 DUALCASE=1; export DUALCASE # for MKS sh
11371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11372 emulate sh
11373 NULLCMD=:
11374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11375 # is contrary to our usage. Disable this feature.
11376 alias -g '${1+"$@"}'='"$@"'
11377 setopt NO_GLOB_SUBST
11378 else
11379 case `(set -o) 2>/dev/null` in #(
11380 *posix*) :
11381 set -o posix ;; #(
11382 *) :
11383 ;;
11384 esac
11385 fi
11386
11387
11388 as_nl='
11389 '
11390 export as_nl
11391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11395 # Prefer a ksh shell builtin over an external printf program on Solaris,
11396 # but without wasting forks for bash or zsh.
11397 if test -z "$BASH_VERSION$ZSH_VERSION" \
11398 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11399 as_echo='print -r --'
11400 as_echo_n='print -rn --'
11401 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11402 as_echo='printf %s\n'
11403 as_echo_n='printf %s'
11404 else
11405 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11406 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11407 as_echo_n='/usr/ucb/echo -n'
11408 else
11409 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11410 as_echo_n_body='eval
11411 arg=$1;
11412 case $arg in #(
11413 *"$as_nl"*)
11414 expr "X$arg" : "X\\(.*\\)$as_nl";
11415 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11416 esac;
11417 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11418 '
11419 export as_echo_n_body
11420 as_echo_n='sh -c $as_echo_n_body as_echo'
11421 fi
11422 export as_echo_body
11423 as_echo='sh -c $as_echo_body as_echo'
11424 fi
11425
11426 # The user is always right.
11427 if test "${PATH_SEPARATOR+set}" != set; then
11428 PATH_SEPARATOR=:
11429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11430 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11431 PATH_SEPARATOR=';'
11432 }
11433 fi
11434
11435
11436 # IFS
11437 # We need space, tab and new line, in precisely that order. Quoting is
11438 # there to prevent editors from complaining about space-tab.
11439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11440 # splitting by setting IFS to empty value.)
11441 IFS=" "" $as_nl"
11442
11443 # Find who we are. Look in the path if we contain no directory separator.
11444 as_myself=
11445 case $0 in #((
11446 *[\\/]* ) as_myself=$0 ;;
11447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11453 done
11454 IFS=$as_save_IFS
11455
11456 ;;
11457 esac
11458 # We did not find ourselves, most probably we were run as `sh COMMAND'
11459 # in which case we are not to be found in the path.
11460 if test "x$as_myself" = x; then
11461 as_myself=$0
11462 fi
11463 if test ! -f "$as_myself"; then
11464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11465 exit 1
11466 fi
11467
11468 # Unset variables that we do not need and which cause bugs (e.g. in
11469 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11470 # suppresses any "Segmentation fault" message there. '((' could
11471 # trigger a bug in pdksh 5.2.14.
11472 for as_var in BASH_ENV ENV MAIL MAILPATH
11473 do eval test x\${$as_var+set} = xset \
11474 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11475 done
11476 PS1='$ '
11477 PS2='> '
11478 PS4='+ '
11479
11480 # NLS nuisances.
11481 LC_ALL=C
11482 export LC_ALL
11483 LANGUAGE=C
11484 export LANGUAGE
11485
11486 # CDPATH.
11487 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11488
11489
11490 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11491 # ----------------------------------------
11492 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11493 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11494 # script with STATUS, using 1 if that was 0.
11495 as_fn_error ()
11496 {
11497 as_status=$1; test $as_status -eq 0 && as_status=1
11498 if test "$4"; then
11499 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11500 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11501 fi
11502 $as_echo "$as_me: error: $2" >&2
11503 as_fn_exit $as_status
11504 } # as_fn_error
11505
11506
11507 # as_fn_set_status STATUS
11508 # -----------------------
11509 # Set $? to STATUS, without forking.
11510 as_fn_set_status ()
11511 {
11512 return $1
11513 } # as_fn_set_status
11514
11515 # as_fn_exit STATUS
11516 # -----------------
11517 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11518 as_fn_exit ()
11519 {
11520 set +e
11521 as_fn_set_status $1
11522 exit $1
11523 } # as_fn_exit
11524
11525 # as_fn_unset VAR
11526 # ---------------
11527 # Portably unset VAR.
11528 as_fn_unset ()
11529 {
11530 { eval $1=; unset $1;}
11531 }
11532 as_unset=as_fn_unset
11533 # as_fn_append VAR VALUE
11534 # ----------------------
11535 # Append the text in VALUE to the end of the definition contained in VAR. Take
11536 # advantage of any shell optimizations that allow amortized linear growth over
11537 # repeated appends, instead of the typical quadratic growth present in naive
11538 # implementations.
11539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11540 eval 'as_fn_append ()
11541 {
11542 eval $1+=\$2
11543 }'
11544 else
11545 as_fn_append ()
11546 {
11547 eval $1=\$$1\$2
11548 }
11549 fi # as_fn_append
11550
11551 # as_fn_arith ARG...
11552 # ------------------
11553 # Perform arithmetic evaluation on the ARGs, and store the result in the
11554 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11555 # must be portable across $(()) and expr.
11556 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11557 eval 'as_fn_arith ()
11558 {
11559 as_val=$(( $* ))
11560 }'
11561 else
11562 as_fn_arith ()
11563 {
11564 as_val=`expr "$@" || test $? -eq 1`
11565 }
11566 fi # as_fn_arith
11567
11568
11569 if expr a : '\(a\)' >/dev/null 2>&1 &&
11570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11571 as_expr=expr
11572 else
11573 as_expr=false
11574 fi
11575
11576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11577 as_basename=basename
11578 else
11579 as_basename=false
11580 fi
11581
11582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11583 as_dirname=dirname
11584 else
11585 as_dirname=false
11586 fi
11587
11588 as_me=`$as_basename -- "$0" ||
11589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11590 X"$0" : 'X\(//\)$' \| \
11591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11592 $as_echo X/"$0" |
11593 sed '/^.*\/\([^/][^/]*\)\/*$/{
11594 s//\1/
11595 q
11596 }
11597 /^X\/\(\/\/\)$/{
11598 s//\1/
11599 q
11600 }
11601 /^X\/\(\/\).*/{
11602 s//\1/
11603 q
11604 }
11605 s/.*/./; q'`
11606
11607 # Avoid depending upon Character Ranges.
11608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11611 as_cr_digits='0123456789'
11612 as_cr_alnum=$as_cr_Letters$as_cr_digits
11613
11614 ECHO_C= ECHO_N= ECHO_T=
11615 case `echo -n x` in #(((((
11616 -n*)
11617 case `echo 'xy\c'` in
11618 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11619 xy) ECHO_C='\c';;
11620 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11621 ECHO_T=' ';;
11622 esac;;
11623 *)
11624 ECHO_N='-n';;
11625 esac
11626
11627 rm -f conf$$ conf$$.exe conf$$.file
11628 if test -d conf$$.dir; then
11629 rm -f conf$$.dir/conf$$.file
11630 else
11631 rm -f conf$$.dir
11632 mkdir conf$$.dir 2>/dev/null
11633 fi
11634 if (echo >conf$$.file) 2>/dev/null; then
11635 if ln -s conf$$.file conf$$ 2>/dev/null; then
11636 as_ln_s='ln -s'
11637 # ... but there are two gotchas:
11638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11640 # In both cases, we have to default to `cp -pR'.
11641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11642 as_ln_s='cp -pR'
11643 elif ln conf$$.file conf$$ 2>/dev/null; then
11644 as_ln_s=ln
11645 else
11646 as_ln_s='cp -pR'
11647 fi
11648 else
11649 as_ln_s='cp -pR'
11650 fi
11651 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11652 rmdir conf$$.dir 2>/dev/null
11653
11654
11655 # as_fn_mkdir_p
11656 # -------------
11657 # Create "$as_dir" as a directory, including parents if necessary.
11658 as_fn_mkdir_p ()
11659 {
11660
11661 case $as_dir in #(
11662 -*) as_dir=./$as_dir;;
11663 esac
11664 test -d "$as_dir" || eval $as_mkdir_p || {
11665 as_dirs=
11666 while :; do
11667 case $as_dir in #(
11668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11669 *) as_qdir=$as_dir;;
11670 esac
11671 as_dirs="'$as_qdir' $as_dirs"
11672 as_dir=`$as_dirname -- "$as_dir" ||
11673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11674 X"$as_dir" : 'X\(//\)[^/]' \| \
11675 X"$as_dir" : 'X\(//\)$' \| \
11676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11677 $as_echo X"$as_dir" |
11678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\(\/\/\)[^/].*/{
11683 s//\1/
11684 q
11685 }
11686 /^X\(\/\/\)$/{
11687 s//\1/
11688 q
11689 }
11690 /^X\(\/\).*/{
11691 s//\1/
11692 q
11693 }
11694 s/.*/./; q'`
11695 test -d "$as_dir" && break
11696 done
11697 test -z "$as_dirs" || eval "mkdir $as_dirs"
11698 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11699
11700
11701 } # as_fn_mkdir_p
11702 if mkdir -p . 2>/dev/null; then
11703 as_mkdir_p='mkdir -p "$as_dir"'
11704 else
11705 test -d ./-p && rmdir ./-p
11706 as_mkdir_p=false
11707 fi
11708
11709
11710 # as_fn_executable_p FILE
11711 # -----------------------
11712 # Test if FILE is an executable regular file.
11713 as_fn_executable_p ()
11714 {
11715 test -f "$1" && test -x "$1"
11716 } # as_fn_executable_p
11717 as_test_x='test -x'
11718 as_executable_p=as_fn_executable_p
11719
11720 # Sed expression to map a string onto a valid CPP name.
11721 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11722
11723 # Sed expression to map a string onto a valid variable name.
11724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11725
11726
11727 exec 6>&1
11728 ## ----------------------------------- ##
11729 ## Main body of $CONFIG_STATUS script. ##
11730 ## ----------------------------------- ##
11731 _ASEOF
11732 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11733
11734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11735 # Save the log message, to keep $0 and so on meaningful, and to
11736 # report actual input values of CONFIG_FILES etc. instead of their
11737 # values after options handling.
11738 ac_log="
11739 This file was extended by mkfontscale $as_me 1.1.3, which was
11740 generated by GNU Autoconf 2.69. Invocation command line was
11741
11742 CONFIG_FILES = $CONFIG_FILES
11743 CONFIG_HEADERS = $CONFIG_HEADERS
11744 CONFIG_LINKS = $CONFIG_LINKS
11745 CONFIG_COMMANDS = $CONFIG_COMMANDS
11746 $ $0 $@
11747
11748 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11749 "
11750
11751 _ACEOF
11752
11753 case $ac_config_files in *"
11754 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11755 esac
11756
11757 case $ac_config_headers in *"
11758 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11759 esac
11760
11761
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 # Files that config.status was made for.
11764 config_files="$ac_config_files"
11765 config_headers="$ac_config_headers"
11766 config_commands="$ac_config_commands"
11767
11768 _ACEOF
11769
11770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11771 ac_cs_usage="\
11772 \`$as_me' instantiates files and other configuration actions
11773 from templates according to the current configuration. Unless the files
11774 and actions are specified as TAGs, all are instantiated by default.
11775
11776 Usage: $0 [OPTION]... [TAG]...
11777
11778 -h, --help print this help, then exit
11779 -V, --version print version number and configuration settings, then exit
11780 --config print configuration, then exit
11781 -q, --quiet, --silent
11782 do not print progress messages
11783 -d, --debug don't remove temporary files
11784 --recheck update $as_me by reconfiguring in the same conditions
11785 --file=FILE[:TEMPLATE]
11786 instantiate the configuration file FILE
11787 --header=FILE[:TEMPLATE]
11788 instantiate the configuration header FILE
11789
11790 Configuration files:
11791 $config_files
11792
11793 Configuration headers:
11794 $config_headers
11795
11796 Configuration commands:
11797 $config_commands
11798
11799 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11800
11801 _ACEOF
11802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11804 ac_cs_version="\\
11805 mkfontscale config.status 1.1.3
11806 configured by $0, generated by GNU Autoconf 2.69,
11807 with options \\"\$ac_cs_config\\"
11808
11809 Copyright (C) 2012 Free Software Foundation, Inc.
11810 This config.status script is free software; the Free Software Foundation
11811 gives unlimited permission to copy, distribute and modify it."
11812
11813 ac_pwd='$ac_pwd'
11814 srcdir='$srcdir'
11815 INSTALL='$INSTALL'
11816 MKDIR_P='$MKDIR_P'
11817 AWK='$AWK'
11818 test -n "\$AWK" || AWK=awk
11819 _ACEOF
11820
11821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11822 # The default lists apply if the user does not specify any file.
11823 ac_need_defaults=:
11824 while test $# != 0
11825 do
11826 case $1 in
11827 --*=?*)
11828 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11829 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11830 ac_shift=:
11831 ;;
11832 --*=)
11833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11834 ac_optarg=
11835 ac_shift=:
11836 ;;
11837 *)
11838 ac_option=$1
11839 ac_optarg=$2
11840 ac_shift=shift
11841 ;;
11842 esac
11843
11844 case $ac_option in
11845 # Handling of the options.
11846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11847 ac_cs_recheck=: ;;
11848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11849 $as_echo "$ac_cs_version"; exit ;;
11850 --config | --confi | --conf | --con | --co | --c )
11851 $as_echo "$ac_cs_config"; exit ;;
11852 --debug | --debu | --deb | --de | --d | -d )
11853 debug=: ;;
11854 --file | --fil | --fi | --f )
11855 $ac_shift
11856 case $ac_optarg in
11857 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11858 '') as_fn_error $? "missing file argument" ;;
11859 esac
11860 as_fn_append CONFIG_FILES " '$ac_optarg'"
11861 ac_need_defaults=false;;
11862 --header | --heade | --head | --hea )
11863 $ac_shift
11864 case $ac_optarg in
11865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11866 esac
11867 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11868 ac_need_defaults=false;;
11869 --he | --h)
11870 # Conflict between --help and --header
11871 as_fn_error $? "ambiguous option: \`$1'
11872 Try \`$0 --help' for more information.";;
11873 --help | --hel | -h )
11874 $as_echo "$ac_cs_usage"; exit ;;
11875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11877 ac_cs_silent=: ;;
11878
11879 # This is an error.
11880 -*) as_fn_error $? "unrecognized option: \`$1'
11881 Try \`$0 --help' for more information." ;;
11882
11883 *) as_fn_append ac_config_targets " $1"
11884 ac_need_defaults=false ;;
11885
11886 esac
11887 shift
11888 done
11889
11890 ac_configure_extra_args=
11891
11892 if $ac_cs_silent; then
11893 exec 6>/dev/null
11894 ac_configure_extra_args="$ac_configure_extra_args --silent"
11895 fi
11896
11897 _ACEOF
11898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899 if \$ac_cs_recheck; then
11900 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11901 shift
11902 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11903 CONFIG_SHELL='$SHELL'
11904 export CONFIG_SHELL
11905 exec "\$@"
11906 fi
11907
11908 _ACEOF
11909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11910 exec 5>>config.log
11911 {
11912 echo
11913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11914 ## Running $as_me. ##
11915 _ASBOX
11916 $as_echo "$ac_log"
11917 } >&5
11918
11919 _ACEOF
11920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11921 #
11922 # INIT-COMMANDS
11923 #
11924 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11925
11926 _ACEOF
11927
11928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929
11930 # Handling of arguments.
11931 for ac_config_target in $ac_config_targets
11932 do
11933 case $ac_config_target in
11934 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11935 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11937 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11938
11939 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11940 esac
11941 done
11942
11943
11944 # If the user did not use the arguments to specify the items to instantiate,
11945 # then the envvar interface is used. Set only those that are not.
11946 # We use the long form for the default assignment because of an extremely
11947 # bizarre bug on SunOS 4.1.3.
11948 if $ac_need_defaults; then
11949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11952 fi
11953
11954 # Have a temporary directory for convenience. Make it in the build tree
11955 # simply because there is no reason against having it here, and in addition,
11956 # creating and moving files from /tmp can sometimes cause problems.
11957 # Hook for its removal unless debugging.
11958 # Note that there is a small window in which the directory will not be cleaned:
11959 # after its creation but before its name has been assigned to `$tmp'.
11960 $debug ||
11961 {
11962 tmp= ac_tmp=
11963 trap 'exit_status=$?
11964 : "${ac_tmp:=$tmp}"
11965 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11966 ' 0
11967 trap 'as_fn_exit 1' 1 2 13 15
11968 }
11969 # Create a (secure) tmp directory for tmp files.
11970
11971 {
11972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11973 test -d "$tmp"
11974 } ||
11975 {
11976 tmp=./conf$$-$RANDOM
11977 (umask 077 && mkdir "$tmp")
11978 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11979 ac_tmp=$tmp
11980
11981 # Set up the scripts for CONFIG_FILES section.
11982 # No need to generate them if there are no CONFIG_FILES.
11983 # This happens for instance with `./config.status config.h'.
11984 if test -n "$CONFIG_FILES"; then
11985
11986
11987 ac_cr=`echo X | tr X '\015'`
11988 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11989 # But we know of no other shell where ac_cr would be empty at this
11990 # point, so we can use a bashism as a fallback.
11991 if test "x$ac_cr" = x; then
11992 eval ac_cr=\$\'\\r\'
11993 fi
11994 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11995 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11996 ac_cs_awk_cr='\\r'
11997 else
11998 ac_cs_awk_cr=$ac_cr
11999 fi
12000
12001 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12002 _ACEOF
12003
12004
12005 {
12006 echo "cat >conf$$subs.awk <<_ACEOF" &&
12007 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12008 echo "_ACEOF"
12009 } >conf$$subs.sh ||
12010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12011 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12012 ac_delim='%!_!# '
12013 for ac_last_try in false false false false false :; do
12014 . ./conf$$subs.sh ||
12015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12016
12017 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12018 if test $ac_delim_n = $ac_delim_num; then
12019 break
12020 elif $ac_last_try; then
12021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12022 else
12023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12024 fi
12025 done
12026 rm -f conf$$subs.sh
12027
12028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12029 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12030 _ACEOF
12031 sed -n '
12032 h
12033 s/^/S["/; s/!.*/"]=/
12034 p
12035 g
12036 s/^[^!]*!//
12037 :repl
12038 t repl
12039 s/'"$ac_delim"'$//
12040 t delim
12041 :nl
12042 h
12043 s/\(.\{148\}\)..*/\1/
12044 t more1
12045 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12046 p
12047 n
12048 b repl
12049 :more1
12050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12051 p
12052 g
12053 s/.\{148\}//
12054 t nl
12055 :delim
12056 h
12057 s/\(.\{148\}\)..*/\1/
12058 t more2
12059 s/["\\]/\\&/g; s/^/"/; s/$/"/
12060 p
12061 b
12062 :more2
12063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12064 p
12065 g
12066 s/.\{148\}//
12067 t delim
12068 ' <conf$$subs.awk | sed '
12069 /^[^""]/{
12070 N
12071 s/\n//
12072 }
12073 ' >>$CONFIG_STATUS || ac_write_fail=1
12074 rm -f conf$$subs.awk
12075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076 _ACAWK
12077 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12078 for (key in S) S_is_set[key] = 1
12079 FS = ""
12080
12081 }
12082 {
12083 line = $ 0
12084 nfields = split(line, field, "@")
12085 substed = 0
12086 len = length(field[1])
12087 for (i = 2; i < nfields; i++) {
12088 key = field[i]
12089 keylen = length(key)
12090 if (S_is_set[key]) {
12091 value = S[key]
12092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12093 len += length(value) + length(field[++i])
12094 substed = 1
12095 } else
12096 len += 1 + keylen
12097 }
12098
12099 print line
12100 }
12101
12102 _ACAWK
12103 _ACEOF
12104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12105 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12107 else
12108 cat
12109 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12110 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12111 _ACEOF
12112
12113 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12114 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12115 # trailing colons and then remove the whole line if VPATH becomes empty
12116 # (actually we leave an empty line to preserve line numbers).
12117 if test "x$srcdir" = x.; then
12118 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12119 h
12120 s///
12121 s/^/:/
12122 s/[ ]*$/:/
12123 s/:\$(srcdir):/:/g
12124 s/:\${srcdir}:/:/g
12125 s/:@srcdir@:/:/g
12126 s/^:*//
12127 s/:*$//
12128 x
12129 s/\(=[ ]*\).*/\1/
12130 G
12131 s/\n//
12132 s/^[^=]*=[ ]*$//
12133 }'
12134 fi
12135
12136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12137 fi # test -n "$CONFIG_FILES"
12138
12139 # Set up the scripts for CONFIG_HEADERS section.
12140 # No need to generate them if there are no CONFIG_HEADERS.
12141 # This happens for instance with `./config.status Makefile'.
12142 if test -n "$CONFIG_HEADERS"; then
12143 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12144 BEGIN {
12145 _ACEOF
12146
12147 # Transform confdefs.h into an awk script `defines.awk', embedded as
12148 # here-document in config.status, that substitutes the proper values into
12149 # config.h.in to produce config.h.
12150
12151 # Create a delimiter string that does not exist in confdefs.h, to ease
12152 # handling of long lines.
12153 ac_delim='%!_!# '
12154 for ac_last_try in false false :; do
12155 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12156 if test -z "$ac_tt"; then
12157 break
12158 elif $ac_last_try; then
12159 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12160 else
12161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12162 fi
12163 done
12164
12165 # For the awk script, D is an array of macro values keyed by name,
12166 # likewise P contains macro parameters if any. Preserve backslash
12167 # newline sequences.
12168
12169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12170 sed -n '
12171 s/.\{148\}/&'"$ac_delim"'/g
12172 t rset
12173 :rset
12174 s/^[ ]*#[ ]*define[ ][ ]*/ /
12175 t def
12176 d
12177 :def
12178 s/\\$//
12179 t bsnl
12180 s/["\\]/\\&/g
12181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12182 D["\1"]=" \3"/p
12183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12184 d
12185 :bsnl
12186 s/["\\]/\\&/g
12187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12188 D["\1"]=" \3\\\\\\n"\\/p
12189 t cont
12190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12191 t cont
12192 d
12193 :cont
12194 n
12195 s/.\{148\}/&'"$ac_delim"'/g
12196 t clear
12197 :clear
12198 s/\\$//
12199 t bsnlc
12200 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12201 d
12202 :bsnlc
12203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12204 b cont
12205 ' <confdefs.h | sed '
12206 s/'"$ac_delim"'/"\\\
12207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12208
12209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210 for (key in D) D_is_set[key] = 1
12211 FS = ""
12212 }
12213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12214 line = \$ 0
12215 split(line, arg, " ")
12216 if (arg[1] == "#") {
12217 defundef = arg[2]
12218 mac1 = arg[3]
12219 } else {
12220 defundef = substr(arg[1], 2)
12221 mac1 = arg[2]
12222 }
12223 split(mac1, mac2, "(") #)
12224 macro = mac2[1]
12225 prefix = substr(line, 1, index(line, defundef) - 1)
12226 if (D_is_set[macro]) {
12227 # Preserve the white space surrounding the "#".
12228 print prefix "define", macro P[macro] D[macro]
12229 next
12230 } else {
12231 # Replace #undef with comments. This is necessary, for example,
12232 # in the case of _POSIX_SOURCE, which is predefined and required
12233 # on some systems where configure will not decide to define it.
12234 if (defundef == "undef") {
12235 print "/*", prefix defundef, macro, "*/"
12236 next
12237 }
12238 }
12239 }
12240 { print }
12241 _ACAWK
12242 _ACEOF
12243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12245 fi # test -n "$CONFIG_HEADERS"
12246
12247
12248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12249 shift
12250 for ac_tag
12251 do
12252 case $ac_tag in
12253 :[FHLC]) ac_mode=$ac_tag; continue;;
12254 esac
12255 case $ac_mode$ac_tag in
12256 :[FHL]*:*);;
12257 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12258 :[FH]-) ac_tag=-:-;;
12259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12260 esac
12261 ac_save_IFS=$IFS
12262 IFS=:
12263 set x $ac_tag
12264 IFS=$ac_save_IFS
12265 shift
12266 ac_file=$1
12267 shift
12268
12269 case $ac_mode in
12270 :L) ac_source=$1;;
12271 :[FH])
12272 ac_file_inputs=
12273 for ac_f
12274 do
12275 case $ac_f in
12276 -) ac_f="$ac_tmp/stdin";;
12277 *) # Look for the file first in the build tree, then in the source tree
12278 # (if the path is not absolute). The absolute path cannot be DOS-style,
12279 # because $ac_f cannot contain `:'.
12280 test -f "$ac_f" ||
12281 case $ac_f in
12282 [\\/$]*) false;;
12283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12284 esac ||
12285 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12286 esac
12287 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12288 as_fn_append ac_file_inputs " '$ac_f'"
12289 done
12290
12291 # Let's still pretend it is `configure' which instantiates (i.e., don't
12292 # use $as_me), people would be surprised to read:
12293 # /* config.h. Generated by config.status. */
12294 configure_input='Generated from '`
12295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12296 `' by configure.'
12297 if test x"$ac_file" != x-; then
12298 configure_input="$ac_file. $configure_input"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12300 $as_echo "$as_me: creating $ac_file" >&6;}
12301 fi
12302 # Neutralize special characters interpreted by sed in replacement strings.
12303 case $configure_input in #(
12304 *\&* | *\|* | *\\* )
12305 ac_sed_conf_input=`$as_echo "$configure_input" |
12306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12307 *) ac_sed_conf_input=$configure_input;;
12308 esac
12309
12310 case $ac_tag in
12311 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12313 esac
12314 ;;
12315 esac
12316
12317 ac_dir=`$as_dirname -- "$ac_file" ||
12318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12319 X"$ac_file" : 'X\(//\)[^/]' \| \
12320 X"$ac_file" : 'X\(//\)$' \| \
12321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12322 $as_echo X"$ac_file" |
12323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12324 s//\1/
12325 q
12326 }
12327 /^X\(\/\/\)[^/].*/{
12328 s//\1/
12329 q
12330 }
12331 /^X\(\/\/\)$/{
12332 s//\1/
12333 q
12334 }
12335 /^X\(\/\).*/{
12336 s//\1/
12337 q
12338 }
12339 s/.*/./; q'`
12340 as_dir="$ac_dir"; as_fn_mkdir_p
12341 ac_builddir=.
12342
12343 case "$ac_dir" in
12344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12345 *)
12346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12347 # A ".." for each directory in $ac_dir_suffix.
12348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12349 case $ac_top_builddir_sub in
12350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12352 esac ;;
12353 esac
12354 ac_abs_top_builddir=$ac_pwd
12355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12356 # for backward compatibility:
12357 ac_top_builddir=$ac_top_build_prefix
12358
12359 case $srcdir in
12360 .) # We are building in place.
12361 ac_srcdir=.
12362 ac_top_srcdir=$ac_top_builddir_sub
12363 ac_abs_top_srcdir=$ac_pwd ;;
12364 [\\/]* | ?:[\\/]* ) # Absolute name.
12365 ac_srcdir=$srcdir$ac_dir_suffix;
12366 ac_top_srcdir=$srcdir
12367 ac_abs_top_srcdir=$srcdir ;;
12368 *) # Relative name.
12369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12370 ac_top_srcdir=$ac_top_build_prefix$srcdir
12371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12372 esac
12373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12374
12375
12376 case $ac_mode in
12377 :F)
12378 #
12379 # CONFIG_FILE
12380 #
12381
12382 case $INSTALL in
12383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12384 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12385 esac
12386 ac_MKDIR_P=$MKDIR_P
12387 case $MKDIR_P in
12388 [\\/$]* | ?:[\\/]* ) ;;
12389 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12390 esac
12391 _ACEOF
12392
12393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394 # If the template does not know about datarootdir, expand it.
12395 # FIXME: This hack should be removed a few years after 2.60.
12396 ac_datarootdir_hack=; ac_datarootdir_seen=
12397 ac_sed_dataroot='
12398 /datarootdir/ {
12399 p
12400 q
12401 }
12402 /@datadir@/p
12403 /@docdir@/p
12404 /@infodir@/p
12405 /@localedir@/p
12406 /@mandir@/p'
12407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12408 *datarootdir*) ac_datarootdir_seen=yes;;
12409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12412 _ACEOF
12413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12414 ac_datarootdir_hack='
12415 s&@datadir@&$datadir&g
12416 s&@docdir@&$docdir&g
12417 s&@infodir@&$infodir&g
12418 s&@localedir@&$localedir&g
12419 s&@mandir@&$mandir&g
12420 s&\\\${datarootdir}&$datarootdir&g' ;;
12421 esac
12422 _ACEOF
12423
12424 # Neutralize VPATH when `$srcdir' = `.'.
12425 # Shell code in configure.ac might set extrasub.
12426 # FIXME: do we really want to maintain this feature?
12427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12428 ac_sed_extra="$ac_vpsub
12429 $extrasub
12430 _ACEOF
12431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12432 :t
12433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12434 s|@configure_input@|$ac_sed_conf_input|;t t
12435 s&@top_builddir@&$ac_top_builddir_sub&;t t
12436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12437 s&@srcdir@&$ac_srcdir&;t t
12438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12439 s&@top_srcdir@&$ac_top_srcdir&;t t
12440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12441 s&@builddir@&$ac_builddir&;t t
12442 s&@abs_builddir@&$ac_abs_builddir&;t t
12443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12444 s&@INSTALL@&$ac_INSTALL&;t t
12445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12446 $ac_datarootdir_hack
12447 "
12448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12449 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12450
12451 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12452 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12454 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12456 which seems to be undefined. Please make sure it is defined" >&5
12457 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12458 which seems to be undefined. Please make sure it is defined" >&2;}
12459
12460 rm -f "$ac_tmp/stdin"
12461 case $ac_file in
12462 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12463 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12464 esac \
12465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12466 ;;
12467 :H)
12468 #
12469 # CONFIG_HEADER
12470 #
12471 if test x"$ac_file" != x-; then
12472 {
12473 $as_echo "/* $configure_input */" \
12474 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12475 } >"$ac_tmp/config.h" \
12476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12477 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12479 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12480 else
12481 rm -f "$ac_file"
12482 mv "$ac_tmp/config.h" "$ac_file" \
12483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12484 fi
12485 else
12486 $as_echo "/* $configure_input */" \
12487 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12488 || as_fn_error $? "could not create -" "$LINENO" 5
12489 fi
12490 # Compute "$ac_file"'s index in $config_headers.
12491 _am_arg="$ac_file"
12492 _am_stamp_count=1
12493 for _am_header in $config_headers :; do
12494 case $_am_header in
12495 $_am_arg | $_am_arg:* )
12496 break ;;
12497 * )
12498 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12499 esac
12500 done
12501 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12502 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12503 X"$_am_arg" : 'X\(//\)[^/]' \| \
12504 X"$_am_arg" : 'X\(//\)$' \| \
12505 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12506 $as_echo X"$_am_arg" |
12507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12508 s//\1/
12509 q
12510 }
12511 /^X\(\/\/\)[^/].*/{
12512 s//\1/
12513 q
12514 }
12515 /^X\(\/\/\)$/{
12516 s//\1/
12517 q
12518 }
12519 /^X\(\/\).*/{
12520 s//\1/
12521 q
12522 }
12523 s/.*/./; q'`/stamp-h$_am_stamp_count
12524 ;;
12525
12526 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12527 $as_echo "$as_me: executing $ac_file commands" >&6;}
12528 ;;
12529 esac
12530
12531
12532 case $ac_file$ac_mode in
12533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12534 # Older Autoconf quotes --file arguments for eval, but not when files
12535 # are listed without --file. Let's play safe and only enable the eval
12536 # if we detect the quoting.
12537 case $CONFIG_FILES in
12538 *\'*) eval set x "$CONFIG_FILES" ;;
12539 *) set x $CONFIG_FILES ;;
12540 esac
12541 shift
12542 for mf
12543 do
12544 # Strip MF so we end up with the name of the file.
12545 mf=`echo "$mf" | sed -e 's/:.*$//'`
12546 # Check whether this is an Automake generated Makefile or not.
12547 # We used to match only the files named 'Makefile.in', but
12548 # some people rename them; so instead we look at the file content.
12549 # Grep'ing the first line is not enough: some people post-process
12550 # each Makefile.in and add a new line on top of each file to say so.
12551 # Grep'ing the whole file is not good either: AIX grep has a line
12552 # limit of 2048, but all sed's we know have understand at least 4000.
12553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12554 dirpart=`$as_dirname -- "$mf" ||
12555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556 X"$mf" : 'X\(//\)[^/]' \| \
12557 X"$mf" : 'X\(//\)$' \| \
12558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12559 $as_echo X"$mf" |
12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12561 s//\1/
12562 q
12563 }
12564 /^X\(\/\/\)[^/].*/{
12565 s//\1/
12566 q
12567 }
12568 /^X\(\/\/\)$/{
12569 s//\1/
12570 q
12571 }
12572 /^X\(\/\).*/{
12573 s//\1/
12574 q
12575 }
12576 s/.*/./; q'`
12577 else
12578 continue
12579 fi
12580 # Extract the definition of DEPDIR, am__include, and am__quote
12581 # from the Makefile without running 'make'.
12582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12583 test -z "$DEPDIR" && continue
12584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12585 test -z "$am__include" && continue
12586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12587 # Find all dependency output files, they are included files with
12588 # $(DEPDIR) in their names. We invoke sed twice because it is the
12589 # simplest approach to changing $(DEPDIR) to its actual value in the
12590 # expansion.
12591 for file in `sed -n "
12592 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12593 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12594 # Make sure the directory exists.
12595 test -f "$dirpart/$file" && continue
12596 fdir=`$as_dirname -- "$file" ||
12597 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12598 X"$file" : 'X\(//\)[^/]' \| \
12599 X"$file" : 'X\(//\)$' \| \
12600 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12601 $as_echo X"$file" |
12602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12603 s//\1/
12604 q
12605 }
12606 /^X\(\/\/\)[^/].*/{
12607 s//\1/
12608 q
12609 }
12610 /^X\(\/\/\)$/{
12611 s//\1/
12612 q
12613 }
12614 /^X\(\/\).*/{
12615 s//\1/
12616 q
12617 }
12618 s/.*/./; q'`
12619 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12620 # echo "creating $dirpart/$file"
12621 echo '# dummy' > "$dirpart/$file"
12622 done
12623 done
12624 }
12625 ;;
12626
12627 esac
12628 done # for ac_tag
12629
12630
12631 as_fn_exit 0
12632 _ACEOF
12633 ac_clean_files=$ac_clean_files_save
12634
12635 test $ac_write_fail = 0 ||
12636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12637
12638
12639 # configure is writing to config.log, and then calls config.status.
12640 # config.status does its own redirection, appending to config.log.
12641 # Unfortunately, on DOS this fails, as config.log is still kept open
12642 # by configure, so config.status won't be able to write to it; its
12643 # output is simply discarded. So we exec the FD to /dev/null,
12644 # effectively closing config.log, so it can be properly (re)opened and
12645 # appended to by config.status. When coming back to configure, we
12646 # need to make the FD available again.
12647 if test "$no_create" != yes; then
12648 ac_cs_success=:
12649 ac_config_status_args=
12650 test "$silent" = yes &&
12651 ac_config_status_args="$ac_config_status_args --quiet"
12652 exec 5>/dev/null
12653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12654 exec 5>>config.log
12655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12656 # would make configure fail if this is the last instruction.
12657 $ac_cs_success || as_fn_exit 1
12658 fi
12659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12662 fi
12663
12664