configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xfontsel 1.0.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xfontsel'
563 PACKAGE_TARNAME='xfontsel'
564 PACKAGE_VERSION='1.0.5'
565 PACKAGE_STRING='xfontsel 1.0.5'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 appdefaultdir
610 APPDEFS_LIBS
611 APPDEFS_CFLAGS
612 XFONTSEL_LIBS
613 XFONTSEL_CFLAGS
614 MAN_SUBSTS
615 XORG_MAN_PAGE
616 ADMIN_MAN_DIR
617 DRIVER_MAN_DIR
618 MISC_MAN_DIR
619 FILE_MAN_DIR
620 LIB_MAN_DIR
621 APP_MAN_DIR
622 ADMIN_MAN_SUFFIX
623 DRIVER_MAN_SUFFIX
624 MISC_MAN_SUFFIX
625 FILE_MAN_SUFFIX
626 LIB_MAN_SUFFIX
627 APP_MAN_SUFFIX
628 SED
629 host_os
630 host_vendor
631 host_cpu
632 host
633 build_os
634 build_vendor
635 build_cpu
636 build
637 INSTALL_CMD
638 PKG_CONFIG
639 CHANGELOG_CMD
640 STRICT_CFLAGS
641 CWARNFLAGS
642 BASE_CFLAGS
643 EGREP
644 GREP
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 AM_BACKSLASH
667 AM_DEFAULT_VERBOSITY
668 AM_DEFAULT_V
669 AM_V
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_silent_rules
735 enable_maintainer_mode
736 enable_dependency_tracking
737 enable_selective_werror
738 enable_strict_compilation
739 with_appdefaultdir
740 '
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
744 CC
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP
750 PKG_CONFIG
751 XFONTSEL_CFLAGS
752 XFONTSEL_LIBS
753 APPDEFS_CFLAGS
754 APPDEFS_LIBS'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *=) ac_optarg= ;;
819 *) ac_optarg=yes ;;
820 esac
821
822 # Accept the important Cygnus configure options, so we can diagnose typos.
823
824 case $ac_dashdash$ac_option in
825 --)
826 ac_dashdash=yes ;;
827
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
832
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
837
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
844
845 --config-cache | -C)
846 cache_file=config.cache ;;
847
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
852
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
859
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
868 *"
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
875
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
880
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
885
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
901
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
910
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
914
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
921
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
926
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
932
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
939
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
944
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
949
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
956
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
961
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
968
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
973
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
977
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
981
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
985
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
994
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
999
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1006
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1013
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1030
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1035
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1040
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1044
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1050
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1061
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1066
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1071
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1078
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1083
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1086
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1089
1090 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=\$ac_optarg ;;
1105
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=no ;;
1121
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1125
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1132
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1139
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1142 ;;
1143
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 esac
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1153
1154 *)
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160 ;;
1161
1162 esac
1163 done
1164
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1172 no) ;;
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac
1176 fi
1177
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1186 case $ac_val in
1187 */ )
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1190 esac
1191 # Be sure to have absolute directory names.
1192 case $ac_val in
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 esac
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1198
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1205
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1214 fi
1215 fi
1216
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220 test "$silent" = yes && exec 6>/dev/null
1221
1222
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)[^/].*/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\).*/{
1254 s//\1/
1255 q
1256 }
1257 s/.*/./; q'`
1258 srcdir=$ac_confdir
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 srcdir=..
1261 fi
1262 else
1263 ac_srcdir_defaulted=no
1264 fi
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1276 fi
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1289
1290 #
1291 # Report the --help message.
1292 #
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures xfontsel 1.0.5 to adapt to many kinds of systems.
1298
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1303
1304 Defaults for the options are specified in brackets.
1305
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1322
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1327
1328 For better control, use the options below.
1329
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/xfontsel]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1350 _ACEOF
1351
1352 cat <<\_ACEOF
1353
1354 Program names:
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358
1359 System types:
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of xfontsel 1.0.5:";;
1368 esac
1369 cat <<\_ACEOF
1370
1371 Optional Features:
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-silent-rules less verbose build output (undo: "make V=1")
1376 --disable-silent-rules verbose build output (undo: "make V=0")
1377 --enable-maintainer-mode
1378 enable make rules and dependencies not useful (and
1379 sometimes confusing) to the casual installer
1380 --enable-dependency-tracking
1381 do not reject slow dependency extractors
1382 --disable-dependency-tracking
1383 speeds up one-time build
1384 --disable-selective-werror
1385 Turn off selective compiler errors. (default:
1386 enabled)
1387 --enable-strict-compilation
1388 Enable all warnings from compiler and make them
1389 errors (default: disabled)
1390
1391 Optional Packages:
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-appdefaultdir=<pathname>
1395 specify directory for app-defaults files (default is
1396 autodetected)
1397
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CPP C preprocessor
1407 PKG_CONFIG path to pkg-config utility
1408 XFONTSEL_CFLAGS
1409 C compiler flags for XFONTSEL, overriding pkg-config
1410 XFONTSEL_LIBS
1411 linker flags for XFONTSEL, overriding pkg-config
1412 APPDEFS_CFLAGS
1413 C compiler flags for APPDEFS, overriding pkg-config
1414 APPDEFS_LIBS
1415 linker flags for APPDEFS, overriding pkg-config
1416
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1419
1420 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421 _ACEOF
1422 ac_status=$?
1423 fi
1424
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1432
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *)
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1448
1449 case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478 fi
1479
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 xfontsel configure 1.0.5
1484 generated by GNU Autoconf 2.68
1485
1486 Copyright (C) 2010 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1491 fi
1492
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1496
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529 fi
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1532
1533 } # ac_fn_c_try_compile
1534
1535 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1536 # ---------------------------------------------
1537 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1538 # accordingly.
1539 ac_fn_c_check_decl ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 as_decl_name=`echo $2|sed 's/ *(.*//'`
1543 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1545 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1546 if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1548 else
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1551 $4
1552 int
1553 main ()
1554 {
1555 #ifndef $as_decl_name
1556 #ifdef __cplusplus
1557 (void) $as_decl_use;
1558 #else
1559 (void) $as_decl_name;
1560 #endif
1561 #endif
1562
1563 ;
1564 return 0;
1565 }
1566 _ACEOF
1567 if ac_fn_c_try_compile "$LINENO"; then :
1568 eval "$3=yes"
1569 else
1570 eval "$3=no"
1571 fi
1572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 fi
1574 eval ac_res=\$$3
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 $as_echo "$ac_res" >&6; }
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
1579 } # ac_fn_c_check_decl
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_try_run LINENO
1619 # ----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621 # that executables *can* be run.
1622 ac_fn_c_try_run ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>&5
1633 ac_status=$?
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1636 { { case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_try") 2>&5
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: program exited with status $ac_status" >&5
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=$ac_status
1653 fi
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_run
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 $as_test_x conftest$ac_exeext
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by xfontsel $as_me 1.0.5, which was
1741 generated by GNU Autoconf 2.68. Invocation command line was
1742
1743 $ $0 $@
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 $as_echo "PATH: $as_dir"
1778 done
1779 IFS=$as_save_IFS
1780
1781 } >&5
1782
1783 cat >&5 <<_ACEOF
1784
1785
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1789
1790 _ACEOF
1791
1792
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1803 do
1804 for ac_arg
1805 do
1806 case $ac_arg in
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1810 continue ;;
1811 *\'*)
1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 esac
1814 case $ac_pass in
1815 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1816 2)
1817 as_fn_append ac_configure_args1 " '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
1819 ac_must_keep_next=false # Got value, back to normal.
1820 else
1821 case $ac_arg in
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828 esac
1829 ;;
1830 -* ) ac_must_keep_next=true ;;
1831 esac
1832 fi
1833 as_fn_append ac_configure_args " '$ac_arg'"
1834 ;;
1835 esac
1836 done
1837 done
1838 { ac_configure_args0=; unset ac_configure_args0;}
1839 { ac_configure_args1=; unset ac_configure_args1;}
1840
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1848 {
1849 echo
1850
1851 $as_echo "## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##"
1854 echo
1855 # The following way of writing the cache mishandles newlines in values,
1856 (
1857 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858 eval ac_val=\$$ac_var
1859 case $ac_val in #(
1860 *${as_nl}*)
1861 case $ac_var in #(
1862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864 esac
1865 case $ac_var in #(
1866 _ | IFS | as_nl) ;; #(
1867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868 *) { eval $ac_var=; unset $ac_var;} ;;
1869 esac ;;
1870 esac
1871 done
1872 (set) 2>&1 |
1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874 *${as_nl}ac_space=\ *)
1875 sed -n \
1876 "s/'\''/'\''\\\\'\'''\''/g;
1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878 ;; #(
1879 *)
1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881 ;;
1882 esac |
1883 sort
1884 )
1885 echo
1886
1887 $as_echo "## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##"
1890 echo
1891 for ac_var in $ac_subst_vars
1892 do
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 $as_echo "$ac_var='\''$ac_val'\''"
1898 done | sort
1899 echo
1900
1901 if test -n "$ac_subst_files"; then
1902 $as_echo "## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##"
1905 echo
1906 for ac_var in $ac_subst_files
1907 do
1908 eval ac_val=\$$ac_var
1909 case $ac_val in
1910 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911 esac
1912 $as_echo "$ac_var='\''$ac_val'\''"
1913 done | sort
1914 echo
1915 fi
1916
1917 if test -s confdefs.h; then
1918 $as_echo "## ----------- ##
1919 ## confdefs.h. ##
1920 ## ----------- ##"
1921 echo
1922 cat confdefs.h
1923 echo
1924 fi
1925 test "$ac_signal" != 0 &&
1926 $as_echo "$as_me: caught signal $ac_signal"
1927 $as_echo "$as_me: exit $exit_status"
1928 } >&5
1929 rm -f core *.core core.conftest.* &&
1930 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931 exit $exit_status
1932 ' 0
1933 for ac_signal in 1 2 13 15; do
1934 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 done
1936 ac_signal=0
1937
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1940
1941 $as_echo "/* confdefs.h */" > confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951 _ACEOF
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1955 _ACEOF
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_URL "$PACKAGE_URL"
1967 _ACEOF
1968
1969
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1972 ac_site_file1=NONE
1973 ac_site_file2=NONE
1974 if test -n "$CONFIG_SITE"; then
1975 # We do not want a PATH search for config.site.
1976 case $CONFIG_SITE in #((
1977 -*) ac_site_file1=./$CONFIG_SITE;;
1978 */*) ac_site_file1=$CONFIG_SITE;;
1979 *) ac_site_file1=./$CONFIG_SITE;;
1980 esac
1981 elif test "x$prefix" != xNONE; then
1982 ac_site_file1=$prefix/share/config.site
1983 ac_site_file2=$prefix/etc/config.site
1984 else
1985 ac_site_file1=$ac_default_prefix/share/config.site
1986 ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990 test "x$ac_site_file" = xNONE && continue
1991 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994 sed 's/^/| /' "$ac_site_file" >&5
1995 . "$ac_site_file" \
1996 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See \`config.log' for more details" "$LINENO" 5; }
2000 fi
2001 done
2002
2003 if test -r "$cache_file"; then
2004 # Some versions of bash will fail to source /dev/null (special files
2005 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 $as_echo "$as_me: loading cache $cache_file" >&6;}
2009 case $cache_file in
2010 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011 *) . "./$cache_file";;
2012 esac
2013 fi
2014 else
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017 >$cache_file
2018 fi
2019
2020 # Check that the precious variables saved in the cache have kept the same
2021 # value.
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025 eval ac_new_set=\$ac_env_${ac_var}_set
2026 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027 eval ac_new_val=\$ac_env_${ac_var}_value
2028 case $ac_old_set,$ac_new_set in
2029 set,)
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032 ac_cache_corrupted=: ;;
2033 ,set)
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2037 ,);;
2038 *)
2039 if test "x$ac_old_val" != "x$ac_new_val"; then
2040 # differences in whitespace do not lead to failure.
2041 ac_old_val_w=`echo x $ac_old_val`
2042 ac_new_val_w=`echo x $ac_new_val`
2043 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046 ac_cache_corrupted=:
2047 else
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050 eval $ac_var=\$ac_old_val
2051 fi
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2053 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2055 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2056 fi;;
2057 esac
2058 # Pass precious variables to config.status.
2059 if test "$ac_new_set" = set; then
2060 case $ac_new_val in
2061 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 *) ac_arg=$ac_var=$ac_new_val ;;
2063 esac
2064 case " $ac_configure_args " in
2065 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2066 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067 esac
2068 fi
2069 done
2070 if $ac_cache_corrupted; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2076 fi
2077 ## -------------------- ##
2078 ## Main body of script. ##
2079 ## -------------------- ##
2080
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088 am__api_version='1.13'
2089
2090 ac_aux_dir=
2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Find a good install program. We prefer a C program (faster),
2120 # so one script is as good as another. But avoid the broken or
2121 # incompatible versions:
2122 # SysV /etc/install, /usr/sbin/install
2123 # SunOS /usr/etc/install
2124 # IRIX /sbin/install
2125 # AIX /bin/install
2126 # AmigaOS /C/install, which installs bootblocks on floppy discs
2127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2130 # OS/2's system install, which has a completely different semantic
2131 # ./install, which can be erroneously created by make from ./install.sh.
2132 # Reject install programs that cannot install multiple files.
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2134 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2135 if test -z "$INSTALL"; then
2136 if ${ac_cv_path_install+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 # Account for people who put trailing slashes in PATH elements.
2145 case $as_dir/ in #((
2146 ./ | .// | /[cC]/* | \
2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2149 /usr/ucb/* ) ;;
2150 *)
2151 # OSF1 and SCO ODT 3.0 have their own names for install.
2152 # Don't use installbsd from OSF since it installs stuff as root
2153 # by default.
2154 for ac_prog in ginstall scoinst install; do
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2157 if test $ac_prog = install &&
2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159 # AIX install. It has an incompatible calling convention.
2160 :
2161 elif test $ac_prog = install &&
2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # program-specific install script used by HP pwplus--don't use.
2164 :
2165 else
2166 rm -rf conftest.one conftest.two conftest.dir
2167 echo one > conftest.one
2168 echo two > conftest.two
2169 mkdir conftest.dir
2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2171 test -s conftest.one && test -s conftest.two &&
2172 test -s conftest.dir/conftest.one &&
2173 test -s conftest.dir/conftest.two
2174 then
2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2176 break 3
2177 fi
2178 fi
2179 fi
2180 done
2181 done
2182 ;;
2183 esac
2184
2185 done
2186 IFS=$as_save_IFS
2187
2188 rm -rf conftest.one conftest.two conftest.dir
2189
2190 fi
2191 if test "${ac_cv_path_install+set}" = set; then
2192 INSTALL=$ac_cv_path_install
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for INSTALL within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 INSTALL=$ac_install_sh
2199 fi
2200 fi
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2202 $as_echo "$INSTALL" >&6; }
2203
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2213 $as_echo_n "checking whether build environment is sane... " >&6; }
2214 # Reject unsafe characters in $srcdir or the absolute working directory
2215 # name. Accept space and tab only in the latter.
2216 am_lf='
2217 '
2218 case `pwd` in
2219 *[\\\"\#\$\&\'\`$am_lf]*)
2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2221 esac
2222 case $srcdir in
2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2225 esac
2226
2227 # Do 'set' in a subshell so we don't clobber the current shell's
2228 # arguments. Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2231 # directory).
2232 if (
2233 am_has_slept=no
2234 for am_try in 1 2; do
2235 echo "timestamp, slept: $am_has_slept" > conftest.file
2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237 if test "$*" = "X"; then
2238 # -L didn't work.
2239 set X `ls -t "$srcdir/configure" conftest.file`
2240 fi
2241 if test "$*" != "X $srcdir/configure conftest.file" \
2242 && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244 # If neither matched, then we have a broken ls. This can happen
2245 # if, for instance, CONFIG_SHELL is bash and it inherits a
2246 # broken ls alias from the environment. This has actually
2247 # happened. Such a system could not be considered "sane".
2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2249 alias in your environment" "$LINENO" 5
2250 fi
2251 if test "$2" = conftest.file || test $am_try -eq 2; then
2252 break
2253 fi
2254 # Just in case.
2255 sleep 1
2256 am_has_slept=yes
2257 done
2258 test "$2" = conftest.file
2259 )
2260 then
2261 # Ok.
2262 :
2263 else
2264 as_fn_error $? "newly created file is older than distributed files!
2265 Check your system clock" "$LINENO" 5
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268 $as_echo "yes" >&6; }
2269 # If we didn't sleep, we still need to ensure time stamps of config.status and
2270 # generated files are strictly newer.
2271 am_sleep_pid=
2272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2273 ( sleep 1 ) &
2274 am_sleep_pid=$!
2275 fi
2276
2277 rm -f conftest.file
2278
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.
2285 # By default was `s,x,x', remove it if useless.
2286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2287 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288
2289 # expand $ac_aux_dir to an absolute path
2290 am_aux_dir=`cd $ac_aux_dir && pwd`
2291
2292 if test x"${MISSING+set}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 *)
2297 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2298 esac
2299 fi
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --is-lightweight"; then
2302 am_missing_run="$MISSING "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2307 fi
2308
2309 if test x"${install_sh}" != xset; then
2310 case $am_aux_dir in
2311 *\ * | *\ *)
2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 *)
2314 install_sh="\${SHELL} $am_aux_dir/install-sh"
2315 esac
2316 fi
2317
2318 # Installed binaries are usually stripped using 'strip' when the user
2319 # run "make install-strip". However 'strip' might not be the right
2320 # tool to use in cross-compilation environments, therefore Automake
2321 # will honor the 'STRIP' environment variable to overrule this program.
2322 if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if ${ac_cv_prog_STRIP+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 STRIP=$ac_cv_prog_STRIP
2352 if test -n "$STRIP"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2354 $as_echo "$STRIP" >&6; }
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 fi
2362 if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365 set dummy strip; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392 if test -n "$ac_ct_STRIP"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2394 $as_echo "$ac_ct_STRIP" >&6; }
2395 else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2398 fi
2399
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 STRIP=$ac_ct_STRIP
2410 fi
2411 else
2412 STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420 if test -z "$MKDIR_P"; then
2421 if ${ac_cv_path_mkdir+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_prog in mkdir gmkdir; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433 'mkdir (GNU coreutils) '* | \
2434 'mkdir (coreutils) '* | \
2435 'mkdir (fileutils) '4.1*)
2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 break 3;;
2438 esac
2439 done
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445
2446 test -d ./--version && rmdir ./--version
2447 if test "${ac_cv_path_mkdir+set}" = set; then
2448 MKDIR_P="$ac_cv_path_mkdir -p"
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for MKDIR_P within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 MKDIR_P="$ac_install_sh -d"
2455 fi
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2458 $as_echo "$MKDIR_P" >&6; }
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 test -n "$AWK" && break
2500 done
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2504 set x ${MAKE-make}
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat >conftest.make <<\_ACEOF
2510 SHELL = /bin/sh
2511 all:
2512 @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 _ACEOF
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516 *@@@%%%=?*=@@@%%%*)
2517 eval ac_cv_prog_make_${ac_make}_set=yes;;
2518 *)
2519 eval ac_cv_prog_make_${ac_make}_set=no;;
2520 esac
2521 rm -f conftest.make
2522 fi
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 SET_MAKE=
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 SET_MAKE="MAKE=${MAKE-make}"
2531 fi
2532
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2536 am__leading_dot=.
2537 else
2538 am__leading_dot=_
2539 fi
2540 rmdir .tst 2>/dev/null
2541
2542 # Check whether --enable-silent-rules was given.
2543 if test "${enable_silent_rules+set}" = set; then :
2544 enableval=$enable_silent_rules;
2545 fi
2546
2547 case $enable_silent_rules in # (((
2548 yes) AM_DEFAULT_VERBOSITY=0;;
2549 no) AM_DEFAULT_VERBOSITY=1;;
2550 *) AM_DEFAULT_VERBOSITY=1;;
2551 esac
2552 am_make=${MAKE-make}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2555 if ${am_cv_make_support_nested_variables+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if $as_echo 'TRUE=$(BAR$(V))
2559 BAR0=false
2560 BAR1=true
2561 V=1
2562 am__doit:
2563 @$(TRUE)
2564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2565 am_cv_make_support_nested_variables=yes
2566 else
2567 am_cv_make_support_nested_variables=no
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2571 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2572 if test $am_cv_make_support_nested_variables = yes; then
2573 AM_V='$(V)'
2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2575 else
2576 AM_V=$AM_DEFAULT_VERBOSITY
2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2578 fi
2579 AM_BACKSLASH='\'
2580
2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2583 # is not polluted with repeated "-I."
2584 am__isrc=' -I$(srcdir)'
2585 # test to see if srcdir already configured
2586 if test -f $srcdir/config.status; then
2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2588 fi
2589 fi
2590
2591 # test whether we have cygpath
2592 if test -z "$CYGPATH_W"; then
2593 if (cygpath --version) >/dev/null 2>/dev/null; then
2594 CYGPATH_W='cygpath -w'
2595 else
2596 CYGPATH_W=echo
2597 fi
2598 fi
2599
2600
2601 # Define the identity of the package.
2602 PACKAGE='xfontsel'
2603 VERSION='1.0.5'
2604
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE "$PACKAGE"
2608 _ACEOF
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define VERSION "$VERSION"
2613 _ACEOF
2614
2615 # Some tools Automake needs.
2616
2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2618
2619
2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2621
2622
2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2624
2625
2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2627
2628
2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2631 # For better backward compatibility. To be removed once Automake 1.9.x
2632 # dies out for good. For more background, see:
2633 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2634 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2635 mkdir_p='$(MKDIR_P)'
2636
2637 # We need awk for the "check" target. The system "awk" is bad on
2638 # some platforms.
2639 # Always define AMTAR for backward compatibility. Yes, it's still used
2640 # in the wild :-( We should find a proper way to deprecate it ...
2641 AMTAR='$${TAR-tar}'
2642
2643
2644 # We'll loop over all known methods to create a tar archive until one works.
2645 _am_tools='gnutar pax cpio none'
2646
2647 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2648
2649
2650
2651
2652
2653
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2656 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2657 # Check whether --enable-maintainer-mode was given.
2658 if test "${enable_maintainer_mode+set}" = set; then :
2659 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2660 else
2661 USE_MAINTAINER_MODE=no
2662 fi
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2665 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2666 if test $USE_MAINTAINER_MODE = yes; then
2667 MAINTAINER_MODE_TRUE=
2668 MAINTAINER_MODE_FALSE='#'
2669 else
2670 MAINTAINER_MODE_TRUE='#'
2671 MAINTAINER_MODE_FALSE=
2672 fi
2673
2674 MAINT=$MAINTAINER_MODE_TRUE
2675
2676
2677
2678 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690 DEPDIR="${am__leading_dot}deps"
2691
2692 ac_config_commands="$ac_config_commands depfiles"
2693
2694
2695 am_make=${MAKE-make}
2696 cat > confinc << 'END'
2697 am__doit:
2698 @echo this is the am__doit target
2699 .PHONY: am__doit
2700 END
2701 # If we don't find an include directive, just comment out the code.
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2703 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2704 am__include="#"
2705 am__quote=
2706 _am_result=none
2707 # First try GNU make style include.
2708 echo "include confinc" > confmf
2709 # Ignore all kinds of additional output from 'make'.
2710 case `$am_make -s -f confmf 2> /dev/null` in #(
2711 *the\ am__doit\ target*)
2712 am__include=include
2713 am__quote=
2714 _am_result=GNU
2715 ;;
2716 esac
2717 # Now try BSD make style include.
2718 if test "$am__include" = "#"; then
2719 echo '.include "confinc"' > confmf
2720 case `$am_make -s -f confmf 2> /dev/null` in #(
2721 *the\ am__doit\ target*)
2722 am__include=.include
2723 am__quote="\""
2724 _am_result=BSD
2725 ;;
2726 esac
2727 fi
2728
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2731 $as_echo "$_am_result" >&6; }
2732 rm -f confinc confmf
2733
2734 # Check whether --enable-dependency-tracking was given.
2735 if test "${enable_dependency_tracking+set}" = set; then :
2736 enableval=$enable_dependency_tracking;
2737 fi
2738
2739 if test "x$enable_dependency_tracking" != xno; then
2740 am_depcomp="$ac_aux_dir/depcomp"
2741 AMDEPBACKSLASH='\'
2742 am__nodep='_no'
2743 fi
2744 if test "x$enable_dependency_tracking" != xno; then
2745 AMDEP_TRUE=
2746 AMDEP_FALSE='#'
2747 else
2748 AMDEP_TRUE='#'
2749 AMDEP_FALSE=
2750 fi
2751
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795
2796 fi
2797 if test -z "$ac_cv_prog_CC"; then
2798 ac_ct_CC=$CC
2799 # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_ac_ct_CC="gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2845 fi
2846 else
2847 CC="$ac_cv_prog_CC"
2848 fi
2849
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}cc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 fi
2890 fi
2891 if test -z "$CC"; then
2892 # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 ac_prog_rejected=no
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911 ac_prog_rejected=yes
2912 continue
2913 fi
2914 ac_cv_prog_CC="cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 if test $ac_prog_rejected = yes; then
2923 # We found a bogon in the path, so make sure we never use it.
2924 set dummy $ac_cv_prog_CC
2925 shift
2926 if test $# != 0; then
2927 # We chose a different compiler from the bogus one.
2928 # However, it has the same basename, so the bogon will be chosen
2929 # first if we set CC to just the basename; use the full file name.
2930 shift
2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2932 fi
2933 fi
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2950 do
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 test -n "$CC" && break
2989 done
2990 fi
2991 if test -z "$CC"; then
2992 ac_ct_CC=$CC
2993 for ac_prog in cl.exe
2994 do
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 test -n "$ac_ct_CC" && break
3033 done
3034
3035 if test "x$ac_ct_CC" = x; then
3036 CC=""
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CC=$ac_ct_CC
3045 fi
3046 fi
3047
3048 fi
3049
3050
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3055
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 set X $ac_compile
3059 ac_compiler=$2
3060 for ac_option in --version -v -V -qversion; do
3061 { { ac_try="$ac_compiler $ac_option >&5"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069 ac_status=$?
3070 if test -s conftest.err; then
3071 sed '10a\
3072 ... rest of stderr output deleted ...
3073 10q' conftest.err >conftest.er1
3074 cat conftest.er1 >&5
3075 fi
3076 rm -f conftest.er1 conftest.err
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 done
3080
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083
3084 int
3085 main ()
3086 {
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 ac_clean_files_save=$ac_clean_files
3093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3096 # of exeext.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3098 $as_echo_n "checking whether the C compiler works... " >&6; }
3099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100
3101 # The possible output files:
3102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103
3104 ac_rmfiles=
3105 for ac_file in $ac_files
3106 do
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110 esac
3111 done
3112 rm -f $ac_rmfiles
3113
3114 if { { ac_try="$ac_link_default"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_link_default") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; then :
3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3129 # Autoconf.
3130 for ac_file in $ac_files ''
3131 do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135 ;;
3136 [ab].out )
3137 # We found the default executable, but exeext='' is most
3138 # certainly right.
3139 break;;
3140 *.* )
3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 then :; else
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 fi
3145 # We set ac_cv_exeext here because the later test for it is not
3146 # safe: cross compilers may not add the suffix if given an `-o'
3147 # argument, so we may need to know it at that point already.
3148 # Even if this section looks crufty: it has the advantage of
3149 # actually working.
3150 break;;
3151 * )
3152 break;;
3153 esac
3154 done
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156
3157 else
3158 ac_file=''
3159 fi
3160 if test -z "$ac_file"; then :
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error 77 "C compiler cannot create executables
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 ac_exeext=$ac_cv_exeext
3179
3180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 $as_echo_n "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3198 # `rm'.
3199 for ac_file in conftest.exe conftest conftest.*; do
3200 test -f "$ac_file" || continue
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3204 break;;
3205 * ) break;;
3206 esac
3207 done
3208 else
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 rm -f conftest conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3217
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3220 ac_exeext=$EXEEXT
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223 #include <stdio.h>
3224 int
3225 main ()
3226 {
3227 FILE *f = fopen ("conftest.out", "w");
3228 return ferror (f) || fclose (f) != 0;
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 ac_clean_files="$ac_clean_files conftest.out"
3235 # Check that the compiler produces executables we can run. If not, either
3236 # the compiler is broken, or we cross compile.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3238 $as_echo_n "checking whether we are cross compiling... " >&6; }
3239 if test "$cross_compiling" != yes; then
3240 { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 if { ac_try='./conftest$ac_cv_exeext'
3252 { { case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; }; then
3262 cross_compiling=no
3263 else
3264 if test "$cross_compiling" = maybe; then
3265 cross_compiling=yes
3266 else
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details" "$LINENO" 5; }
3272 fi
3273 fi
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3276 $as_echo "$cross_compiling" >&6; }
3277
3278 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3281 $as_echo_n "checking for suffix of object files... " >&6; }
3282 if ${ac_cv_objext+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287
3288 int
3289 main ()
3290 {
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.o conftest.obj
3297 if { { ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compile") 2>&5
3305 ac_status=$?
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 for ac_file in conftest.o conftest.obj conftest.*; do
3309 test -f "$ac_file" || continue;
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3313 break;;
3314 esac
3315 done
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of object files: cannot compile
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3328 $as_echo "$ac_cv_objext" >&6; }
3329 OBJEXT=$ac_cv_objext
3330 ac_objext=$OBJEXT
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3333 if ${ac_cv_c_compiler_gnu+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342 #ifndef __GNUC__
3343 choke me
3344 #endif
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_compiler_gnu=yes
3352 else
3353 ac_compiler_gnu=no
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3361 if test $ac_compiler_gnu = yes; then
3362 GCC=yes
3363 else
3364 GCC=
3365 fi
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3370 if ${ac_cv_prog_cc_g+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3375 ac_cv_prog_cc_g=no
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390 else
3391 CFLAGS=""
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404
3405 else
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3407 CFLAGS="-g"
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_cv_prog_cc_g=yes
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_c_werror_flag=$ac_save_c_werror_flag
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 $as_echo "$ac_cv_prog_cc_g" >&6; }
3431 if test "$ac_test_CFLAGS" = set; then
3432 CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434 if test "$GCC" = yes; then
3435 CFLAGS="-g -O2"
3436 else
3437 CFLAGS="-g"
3438 fi
3439 else
3440 if test "$GCC" = yes; then
3441 CFLAGS="-O2"
3442 else
3443 CFLAGS=
3444 fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3448 if ${ac_cv_prog_cc_c89+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 ac_cv_prog_cc_c89=no
3452 ac_save_CC=$CC
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455 #include <stdarg.h>
3456 #include <stdio.h>
3457 #include <sys/types.h>
3458 #include <sys/stat.h>
3459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3460 struct buf { int x; };
3461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3462 static char *e (p, i)
3463 char **p;
3464 int i;
3465 {
3466 return p[i];
3467 }
3468 static char *f (char * (*g) (char **, int), char **p, ...)
3469 {
3470 char *s;
3471 va_list v;
3472 va_start (v,p);
3473 s = g (p, va_arg (v,int));
3474 va_end (v);
3475 return s;
3476 }
3477
3478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3479 function prototypes and stuff, but not '\xHH' hex character constants.
3480 These don't provoke an error unfortunately, instead are silently treated
3481 as 'x'. The following induces an error, until -std is added to get
3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3483 array size at least. It's necessary to write '\x00'==0 to get something
3484 that's true only with -std. */
3485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486
3487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3488 inside strings and character constants. */
3489 #define FOO(x) 'x'
3490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491
3492 int test (int i, double x);
3493 struct s1 {int (*f) (int a);};
3494 struct s2 {int (*f) (double a);};
3495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496 int argc;
3497 char **argv;
3498 int
3499 main ()
3500 {
3501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 do
3509 CC="$ac_save_CC $ac_arg"
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_c89=$ac_arg
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
3515 done
3516 rm -f conftest.$ac_ext
3517 CC=$ac_save_CC
3518
3519 fi
3520 # AC_CACHE_VAL
3521 case "x$ac_cv_prog_cc_c89" in
3522 x)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3524 $as_echo "none needed" >&6; } ;;
3525 xno)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3527 $as_echo "unsupported" >&6; } ;;
3528 *)
3529 CC="$CC $ac_cv_prog_cc_c89"
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3532 esac
3533 if test "x$ac_cv_prog_cc_c89" != xno; then :
3534
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542
3543 depcc="$CC" am_compiler_list=
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3546 $as_echo_n "checking dependency style of $depcc... " >&6; }
3547 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3551 # We make a subdir and do the tests there. Otherwise we can end up
3552 # making bogus files that we don't know about and never remove. For
3553 # instance it was reported that on HP-UX the gcc test will end up
3554 # making a dummy file named 'D' -- because '-MD' means "put the output
3555 # in D".
3556 rm -rf conftest.dir
3557 mkdir conftest.dir
3558 # Copy depcomp to subdir because otherwise we won't find it if we're
3559 # using a relative directory.
3560 cp "$am_depcomp" conftest.dir
3561 cd conftest.dir
3562 # We will build objects and dependencies in a subdirectory because
3563 # it helps to detect inapplicable dependency modes. For instance
3564 # both Tru64's cc and ICC support -MD to output dependencies as a
3565 # side effect of compilation, but ICC will put the dependencies in
3566 # the current directory while Tru64 will put them in the object
3567 # directory.
3568 mkdir sub
3569
3570 am_cv_CC_dependencies_compiler_type=none
3571 if test "$am_compiler_list" = ""; then
3572 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573 fi
3574 am__universal=false
3575 case " $depcc " in #(
3576 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3577 esac
3578
3579 for depmode in $am_compiler_list; do
3580 # Setup a source with many dependencies, because some compilers
3581 # like to wrap large dependency lists on column 80 (with \), and
3582 # we should not choose a depcomp mode which is confused by this.
3583 #
3584 # We need to recreate these files for each test, as the compiler may
3585 # overwrite some of them when testing with obscure command lines.
3586 # This happens at least with the AIX C compiler.
3587 : > sub/conftest.c
3588 for i in 1 2 3 4 5 6; do
3589 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3590 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3591 # Solaris 10 /bin/sh.
3592 echo '/* dummy */' > sub/conftst$i.h
3593 done
3594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3595
3596 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle '-M -o', and we need to detect this. Also, some Intel
3599 # versions had trouble with output in subdirs.
3600 am__obj=sub/conftest.${OBJEXT-o}
3601 am__minus_obj="-o $am__obj"
3602 case $depmode in
3603 gcc)
3604 # This depmode causes a compiler race in universal mode.
3605 test "$am__universal" = false || continue
3606 ;;
3607 nosideeffect)
3608 # After this tag, mechanisms are not by side-effect, so they'll
3609 # only be used when explicitly requested.
3610 if test "x$enable_dependency_tracking" = xyes; then
3611 continue
3612 else
3613 break
3614 fi
3615 ;;
3616 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3617 # This compiler won't grok '-c -o', but also, the minuso test has
3618 # not run yet. These depmodes are late enough in the game, and
3619 # so weak that their functioning should not be impacted.
3620 am__obj=conftest.${OBJEXT-o}
3621 am__minus_obj=
3622 ;;
3623 none) break ;;
3624 esac
3625 if depmode=$depmode \
3626 source=sub/conftest.c object=$am__obj \
3627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3628 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3629 >/dev/null 2>conftest.err &&
3630 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3632 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3634 # icc doesn't choke on unknown options, it will just issue warnings
3635 # or remarks (even with -Werror). So we grep stderr for any message
3636 # that says an option was ignored or not supported.
3637 # When given -MP, icc 7.0 and 7.1 complain thusly:
3638 # icc: Command line warning: ignoring option '-M'; no argument required
3639 # The diagnosis changed in icc 8.0:
3640 # icc: Command line remark: option '-MP' not supported
3641 if (grep 'ignoring option' conftest.err ||
3642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3643 am_cv_CC_dependencies_compiler_type=$depmode
3644 break
3645 fi
3646 fi
3647 done
3648
3649 cd ..
3650 rm -rf conftest.dir
3651 else
3652 am_cv_CC_dependencies_compiler_type=none
3653 fi
3654
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3657 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3658 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3659
3660 if
3661 test "x$enable_dependency_tracking" != xno \
3662 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663 am__fastdepCC_TRUE=
3664 am__fastdepCC_FALSE='#'
3665 else
3666 am__fastdepCC_TRUE='#'
3667 am__fastdepCC_FALSE=
3668 fi
3669
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3673 if ${ac_cv_prog_cc_c99+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_cv_prog_cc_c99=no
3677 ac_save_CC=$CC
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <stdarg.h>
3681 #include <stdbool.h>
3682 #include <stdlib.h>
3683 #include <wchar.h>
3684 #include <stdio.h>
3685
3686 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3687 #define debug(...) fprintf (stderr, __VA_ARGS__)
3688 #define showlist(...) puts (#__VA_ARGS__)
3689 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3690 static void
3691 test_varargs_macros (void)
3692 {
3693 int x = 1234;
3694 int y = 5678;
3695 debug ("Flag");
3696 debug ("X = %d\n", x);
3697 showlist (The first, second, and third items.);
3698 report (x>y, "x is %d but y is %d", x, y);
3699 }
3700
3701 // Check long long types.
3702 #define BIG64 18446744073709551615ull
3703 #define BIG32 4294967295ul
3704 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3705 #if !BIG_OK
3706 your preprocessor is broken;
3707 #endif
3708 #if BIG_OK
3709 #else
3710 your preprocessor is broken;
3711 #endif
3712 static long long int bignum = -9223372036854775807LL;
3713 static unsigned long long int ubignum = BIG64;
3714
3715 struct incomplete_array
3716 {
3717 int datasize;
3718 double data[];
3719 };
3720
3721 struct named_init {
3722 int number;
3723 const wchar_t *name;
3724 double average;
3725 };
3726
3727 typedef const char *ccp;
3728
3729 static inline int
3730 test_restrict (ccp restrict text)
3731 {
3732 // See if C++-style comments work.
3733 // Iterate through items via the restricted pointer.
3734 // Also check for declarations in for loops.
3735 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3736 continue;
3737 return 0;
3738 }
3739
3740 // Check varargs and va_copy.
3741 static void
3742 test_varargs (const char *format, ...)
3743 {
3744 va_list args;
3745 va_start (args, format);
3746 va_list args_copy;
3747 va_copy (args_copy, args);
3748
3749 const char *str;
3750 int number;
3751 float fnumber;
3752
3753 while (*format)
3754 {
3755 switch (*format++)
3756 {
3757 case 's': // string
3758 str = va_arg (args_copy, const char *);
3759 break;
3760 case 'd': // int
3761 number = va_arg (args_copy, int);
3762 break;
3763 case 'f': // float
3764 fnumber = va_arg (args_copy, double);
3765 break;
3766 default:
3767 break;
3768 }
3769 }
3770 va_end (args_copy);
3771 va_end (args);
3772 }
3773
3774 int
3775 main ()
3776 {
3777
3778 // Check bool.
3779 _Bool success = false;
3780
3781 // Check restrict.
3782 if (test_restrict ("String literal") == 0)
3783 success = true;
3784 char *restrict newvar = "Another string";
3785
3786 // Check varargs.
3787 test_varargs ("s, d' f .", "string", 65, 34.234);
3788 test_varargs_macros ();
3789
3790 // Check flexible array members.
3791 struct incomplete_array *ia =
3792 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3793 ia->datasize = 10;
3794 for (int i = 0; i < ia->datasize; ++i)
3795 ia->data[i] = i * 1.234;
3796
3797 // Check named initializers.
3798 struct named_init ni = {
3799 .number = 34,
3800 .name = L"Test wide string",
3801 .average = 543.34343,
3802 };
3803
3804 ni.number = 58;
3805
3806 int dynamic_array[ni.number];
3807 dynamic_array[ni.number - 1] = 543;
3808
3809 // work around unused variable warnings
3810 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3811 || dynamic_array[ni.number - 1] != 543);
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_c99=$ac_arg
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext
3824 test "x$ac_cv_prog_cc_c99" != "xno" && break
3825 done
3826 rm -f conftest.$ac_ext
3827 CC=$ac_save_CC
3828
3829 fi
3830 # AC_CACHE_VAL
3831 case "x$ac_cv_prog_cc_c99" in
3832 x)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;;
3835 xno)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3837 $as_echo "unsupported" >&6; } ;;
3838 *)
3839 CC="$CC $ac_cv_prog_cc_c99"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3841 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3842 esac
3843 if test "x$ac_cv_prog_cc_c99" != xno; then :
3844
3845 fi
3846
3847
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3856 # On Suns, sometimes $CPP names a directory.
3857 if test -n "$CPP" && test -d "$CPP"; then
3858 CPP=
3859 fi
3860 if test -z "$CPP"; then
3861 if ${ac_cv_prog_CPP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 # Double quotes because CPP needs to be expanded
3865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3866 do
3867 ac_preproc_ok=false
3868 for ac_c_preproc_warn_flag in '' yes
3869 do
3870 # Use a header file that comes with gcc, so configuring glibc
3871 # with a fresh cross-compiler works.
3872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873 # <limits.h> exists even on freestanding compilers.
3874 # On the NeXT, cc -E runs the code through the compiler's parser,
3875 # not just through cpp. "Syntax error" is here to catch this case.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #ifdef __STDC__
3879 # include <limits.h>
3880 #else
3881 # include <assert.h>
3882 #endif
3883 Syntax error
3884 _ACEOF
3885 if ac_fn_c_try_cpp "$LINENO"; then :
3886
3887 else
3888 # Broken: fails on valid input.
3889 continue
3890 fi
3891 rm -f conftest.err conftest.i conftest.$ac_ext
3892
3893 # OK, works on sane cases. Now check whether nonexistent headers
3894 # can be detected and how.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <ac_nonexistent.h>
3898 _ACEOF
3899 if ac_fn_c_try_cpp "$LINENO"; then :
3900 # Broken: success on invalid input.
3901 continue
3902 else
3903 # Passes both tests.
3904 ac_preproc_ok=:
3905 break
3906 fi
3907 rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909 done
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.i conftest.err conftest.$ac_ext
3912 if $ac_preproc_ok; then :
3913 break
3914 fi
3915
3916 done
3917 ac_cv_prog_CPP=$CPP
3918
3919 fi
3920 CPP=$ac_cv_prog_CPP
3921 else
3922 ac_cv_prog_CPP=$CPP
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3925 $as_echo "$CPP" >&6; }
3926 ac_preproc_ok=false
3927 for ac_c_preproc_warn_flag in '' yes
3928 do
3929 # Use a header file that comes with gcc, so configuring glibc
3930 # with a fresh cross-compiler works.
3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932 # <limits.h> exists even on freestanding compilers.
3933 # On the NeXT, cc -E runs the code through the compiler's parser,
3934 # not just through cpp. "Syntax error" is here to catch this case.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #ifdef __STDC__
3938 # include <limits.h>
3939 #else
3940 # include <assert.h>
3941 #endif
3942 Syntax error
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3945
3946 else
3947 # Broken: fails on valid input.
3948 continue
3949 fi
3950 rm -f conftest.err conftest.i conftest.$ac_ext
3951
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: success on invalid input.
3960 continue
3961 else
3962 # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3965 fi
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.i conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then :
3972
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3977 See \`config.log' for more details" "$LINENO" 5; }
3978 fi
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3989 if ${ac_cv_path_GREP+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -z "$GREP"; then
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010 ac_count=0
4011 $as_echo_n 0123456789 >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 as_fn_arith $ac_count + 1 && ac_count=$as_val
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032 $ac_path_GREP_found && break 3
4033 done
4034 done
4035 done
4036 IFS=$as_save_IFS
4037 if test -z "$ac_cv_path_GREP"; then
4038 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039 fi
4040 else
4041 ac_cv_path_GREP=$GREP
4042 fi
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4046 $as_echo "$ac_cv_path_GREP" >&6; }
4047 GREP="$ac_cv_path_GREP"
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4051 $as_echo_n "checking for egrep... " >&6; }
4052 if ${ac_cv_path_EGREP+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4056 then ac_cv_path_EGREP="$GREP -E"
4057 else
4058 if test -z "$EGREP"; then
4059 ac_path_EGREP_found=false
4060 # Loop through the user's path and test for each of PROGNAME-LIST
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4063 do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_prog in egrep; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4070 # Check for GNU ac_path_EGREP and select it if it is found.
4071 # Check for GNU $ac_path_EGREP
4072 case `"$ac_path_EGREP" --version 2>&1` in
4073 *GNU*)
4074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4075 *)
4076 ac_count=0
4077 $as_echo_n 0123456789 >"conftest.in"
4078 while :
4079 do
4080 cat "conftest.in" "conftest.in" >"conftest.tmp"
4081 mv "conftest.tmp" "conftest.in"
4082 cp "conftest.in" "conftest.nl"
4083 $as_echo 'EGREP' >> "conftest.nl"
4084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086 as_fn_arith $ac_count + 1 && ac_count=$as_val
4087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4088 # Best one so far, save it but keep looking for a better one
4089 ac_cv_path_EGREP="$ac_path_EGREP"
4090 ac_path_EGREP_max=$ac_count
4091 fi
4092 # 10*(2^10) chars as input seems more than enough
4093 test $ac_count -gt 10 && break
4094 done
4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 esac
4097
4098 $ac_path_EGREP_found && break 3
4099 done
4100 done
4101 done
4102 IFS=$as_save_IFS
4103 if test -z "$ac_cv_path_EGREP"; then
4104 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4105 fi
4106 else
4107 ac_cv_path_EGREP=$EGREP
4108 fi
4109
4110 fi
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4113 $as_echo "$ac_cv_path_EGREP" >&6; }
4114 EGREP="$ac_cv_path_EGREP"
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4118 $as_echo_n "checking for ANSI C header files... " >&6; }
4119 if ${ac_cv_header_stdc+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <stdlib.h>
4125 #include <stdarg.h>
4126 #include <string.h>
4127 #include <float.h>
4128
4129 int
4130 main ()
4131 {
4132
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_header_stdc=yes
4139 else
4140 ac_cv_header_stdc=no
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143
4144 if test $ac_cv_header_stdc = yes; then
4145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <string.h>
4149
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "memchr" >/dev/null 2>&1; then :
4153
4154 else
4155 ac_cv_header_stdc=no
4156 fi
4157 rm -f conftest*
4158
4159 fi
4160
4161 if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdlib.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "free" >/dev/null 2>&1; then :
4170
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180 if test "$cross_compiling" = yes; then :
4181 :
4182 else
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ctype.h>
4186 #include <stdlib.h>
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190 #else
4191 # define ISLOWER(c) \
4192 (('a' <= (c) && (c) <= 'i') \
4193 || ('j' <= (c) && (c) <= 'r') \
4194 || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196 #endif
4197
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 int
4200 main ()
4201 {
4202 int i;
4203 for (i = 0; i < 256; i++)
4204 if (XOR (islower (i), ISLOWER (i))
4205 || toupper (i) != TOUPPER (i))
4206 return 2;
4207 return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_run "$LINENO"; then :
4211
4212 else
4213 ac_cv_header_stdc=no
4214 fi
4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4216 conftest.$ac_objext conftest.beam conftest.$ac_ext
4217 fi
4218
4219 fi
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4222 $as_echo "$ac_cv_header_stdc" >&6; }
4223 if test $ac_cv_header_stdc = yes; then
4224
4225 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4226
4227 fi
4228
4229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231 inttypes.h stdint.h unistd.h
4232 do :
4233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4235 "
4236 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4237 cat >>confdefs.h <<_ACEOF
4238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 _ACEOF
4240
4241 fi
4242
4243 done
4244
4245
4246
4247
4248
4249
4250 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4251 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4252 CLANGCC="yes"
4253 else
4254 CLANGCC="no"
4255 fi
4256
4257 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4258 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4259 INTELCC="yes"
4260 else
4261 INTELCC="no"
4262 fi
4263
4264 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4265 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4266 SUNCC="yes"
4267 else
4268 SUNCC="no"
4269 fi
4270
4271
4272
4273
4274 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 case $PKG_CONFIG in
4284 [\\/]* | ?:[\\/]*)
4285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4286 ;;
4287 *)
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299 done
4300 done
4301 IFS=$as_save_IFS
4302
4303 ;;
4304 esac
4305 fi
4306 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4307 if test -n "$PKG_CONFIG"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4309 $as_echo "$PKG_CONFIG" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314
4315
4316 fi
4317 if test -z "$ac_cv_path_PKG_CONFIG"; then
4318 ac_pt_PKG_CONFIG=$PKG_CONFIG
4319 # Extract the first word of "pkg-config", so it can be a program name with args.
4320 set dummy pkg-config; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 case $ac_pt_PKG_CONFIG in
4327 [\\/]* | ?:[\\/]*)
4328 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4329 ;;
4330 *)
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342 done
4343 done
4344 IFS=$as_save_IFS
4345
4346 ;;
4347 esac
4348 fi
4349 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4350 if test -n "$ac_pt_PKG_CONFIG"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4352 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358 if test "x$ac_pt_PKG_CONFIG" = x; then
4359 PKG_CONFIG=""
4360 else
4361 case $cross_compiling:$ac_tool_warned in
4362 yes:)
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365 ac_tool_warned=yes ;;
4366 esac
4367 PKG_CONFIG=$ac_pt_PKG_CONFIG
4368 fi
4369 else
4370 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4371 fi
4372
4373 fi
4374 if test -n "$PKG_CONFIG"; then
4375 _pkg_min_version=0.9.0
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4377 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4378 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380 $as_echo "yes" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 PKG_CONFIG=""
4385 fi
4386
4387 fi
4388 # Make sure we can run config.sub.
4389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4393 $as_echo_n "checking build system type... " >&6; }
4394 if ${ac_cv_build+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 ac_build_alias=$build_alias
4398 test "x$ac_build_alias" = x &&
4399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4400 test "x$ac_build_alias" = x &&
4401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4404
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4407 $as_echo "$ac_cv_build" >&6; }
4408 case $ac_cv_build in
4409 *-*-*) ;;
4410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4411 esac
4412 build=$ac_cv_build
4413 ac_save_IFS=$IFS; IFS='-'
4414 set x $ac_cv_build
4415 shift
4416 build_cpu=$1
4417 build_vendor=$2
4418 shift; shift
4419 # Remember, the first character of IFS is used to create $*,
4420 # except with old shells:
4421 build_os=$*
4422 IFS=$ac_save_IFS
4423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4424
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4427 $as_echo_n "checking host system type... " >&6; }
4428 if ${ac_cv_host+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test "x$host_alias" = x; then
4432 ac_cv_host=$ac_cv_build
4433 else
4434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4436 fi
4437
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4440 $as_echo "$ac_cv_host" >&6; }
4441 case $ac_cv_host in
4442 *-*-*) ;;
4443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4444 esac
4445 host=$ac_cv_host
4446 ac_save_IFS=$IFS; IFS='-'
4447 set x $ac_cv_host
4448 shift
4449 host_cpu=$1
4450 host_vendor=$2
4451 shift; shift
4452 # Remember, the first character of IFS is used to create $*,
4453 # except with old shells:
4454 host_os=$*
4455 IFS=$ac_save_IFS
4456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4460 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4461 if ${ac_cv_path_SED+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4465 for ac_i in 1 2 3 4 5 6 7; do
4466 ac_script="$ac_script$as_nl$ac_script"
4467 done
4468 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4469 { ac_script=; unset ac_script;}
4470 if test -z "$SED"; then
4471 ac_path_SED_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in sed gsed; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4482 # Check for GNU ac_path_SED and select it if it is found.
4483 # Check for GNU $ac_path_SED
4484 case `"$ac_path_SED" --version 2>&1` in
4485 *GNU*)
4486 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4487 *)
4488 ac_count=0
4489 $as_echo_n 0123456789 >"conftest.in"
4490 while :
4491 do
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo '' >> "conftest.nl"
4496 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 as_fn_arith $ac_count + 1 && ac_count=$as_val
4499 if test $ac_count -gt ${ac_path_SED_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_SED="$ac_path_SED"
4502 ac_path_SED_max=$ac_count
4503 fi
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4506 done
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 esac
4509
4510 $ac_path_SED_found && break 3
4511 done
4512 done
4513 done
4514 IFS=$as_save_IFS
4515 if test -z "$ac_cv_path_SED"; then
4516 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4517 fi
4518 else
4519 ac_cv_path_SED=$SED
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4524 $as_echo "$ac_cv_path_SED" >&6; }
4525 SED="$ac_cv_path_SED"
4526 rm -f conftest.sed
4527
4528
4529
4530
4531
4532
4533 # Check whether --enable-selective-werror was given.
4534 if test "${enable_selective_werror+set}" = set; then :
4535 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4536 else
4537 SELECTIVE_WERROR=yes
4538 fi
4539
4540
4541
4542
4543
4544 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4545 if test "x$SUNCC" = "xyes"; then
4546 BASE_CFLAGS="-v"
4547 else
4548 BASE_CFLAGS=""
4549 fi
4550
4551 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 xorg_testset_save_CFLAGS="$CFLAGS"
4566
4567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 int i;
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579 xorg_cv_cc_flag_unknown_warning_option=yes
4580 else
4581 xorg_cv_cc_flag_unknown_warning_option=no
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4588 CFLAGS="$xorg_testset_save_CFLAGS"
4589 fi
4590
4591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4594 fi
4595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 int i;
4604 _ACEOF
4605 if ac_fn_c_try_compile "$LINENO"; then :
4606 xorg_cv_cc_flag_unused_command_line_argument=yes
4607 else
4608 xorg_cv_cc_flag_unused_command_line_argument=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4615 CFLAGS="$xorg_testset_save_CFLAGS"
4616 fi
4617
4618 found="no"
4619
4620 if test $found = "no" ; then
4621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4623 fi
4624
4625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4627 fi
4628
4629 CFLAGS="$CFLAGS -Wall"
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4632 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4633 cacheid=xorg_cv_cc_flag__Wall
4634 if eval \${$cacheid+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 int i;
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_link "$LINENO"; then :
4649 eval $cacheid=yes
4650 else
4651 eval $cacheid=no
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655 fi
4656
4657
4658 CFLAGS="$xorg_testset_save_CFLAGS"
4659
4660 eval supported=\$$cacheid
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4662 $as_echo "$supported" >&6; }
4663 if test "$supported" = "yes" ; then
4664 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4665 found="yes"
4666 fi
4667 fi
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 xorg_testset_save_CFLAGS="$CFLAGS"
4684
4685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 int i;
4695 _ACEOF
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 xorg_cv_cc_flag_unknown_warning_option=yes
4698 else
4699 xorg_cv_cc_flag_unknown_warning_option=no
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4706 CFLAGS="$xorg_testset_save_CFLAGS"
4707 fi
4708
4709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4712 fi
4713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 int i;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 xorg_cv_cc_flag_unused_command_line_argument=yes
4725 else
4726 xorg_cv_cc_flag_unused_command_line_argument=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4733 CFLAGS="$xorg_testset_save_CFLAGS"
4734 fi
4735
4736 found="no"
4737
4738 if test $found = "no" ; then
4739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741 fi
4742
4743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4745 fi
4746
4747 CFLAGS="$CFLAGS -Wpointer-arith"
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4750 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4751 cacheid=xorg_cv_cc_flag__Wpointer_arith
4752 if eval \${$cacheid+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 int i;
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_link "$LINENO"; then :
4767 eval $cacheid=yes
4768 else
4769 eval $cacheid=no
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext \
4772 conftest$ac_exeext conftest.$ac_ext
4773 fi
4774
4775
4776 CFLAGS="$xorg_testset_save_CFLAGS"
4777
4778 eval supported=\$$cacheid
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4780 $as_echo "$supported" >&6; }
4781 if test "$supported" = "yes" ; then
4782 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4783 found="yes"
4784 fi
4785 fi
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 xorg_testset_save_CFLAGS="$CFLAGS"
4802
4803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 int i;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4815 xorg_cv_cc_flag_unknown_warning_option=yes
4816 else
4817 xorg_cv_cc_flag_unknown_warning_option=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4824 CFLAGS="$xorg_testset_save_CFLAGS"
4825 fi
4826
4827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830 fi
4831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 int i;
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 xorg_cv_cc_flag_unused_command_line_argument=yes
4843 else
4844 xorg_cv_cc_flag_unused_command_line_argument=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4851 CFLAGS="$xorg_testset_save_CFLAGS"
4852 fi
4853
4854 found="no"
4855
4856 if test $found = "no" ; then
4857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859 fi
4860
4861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4863 fi
4864
4865 CFLAGS="$CFLAGS -Wmissing-declarations"
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4868 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4869 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4870 if eval \${$cacheid+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 int i;
4876 int
4877 main ()
4878 {
4879
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_link "$LINENO"; then :
4885 eval $cacheid=yes
4886 else
4887 eval $cacheid=no
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext \
4890 conftest$ac_exeext conftest.$ac_ext
4891 fi
4892
4893
4894 CFLAGS="$xorg_testset_save_CFLAGS"
4895
4896 eval supported=\$$cacheid
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4898 $as_echo "$supported" >&6; }
4899 if test "$supported" = "yes" ; then
4900 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4901 found="yes"
4902 fi
4903 fi
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 xorg_testset_save_CFLAGS="$CFLAGS"
4920
4921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 int i;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 xorg_cv_cc_flag_unknown_warning_option=yes
4934 else
4935 xorg_cv_cc_flag_unknown_warning_option=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943 fi
4944
4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948 fi
4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 int i;
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 xorg_cv_cc_flag_unused_command_line_argument=yes
4961 else
4962 xorg_cv_cc_flag_unused_command_line_argument=no
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4969 CFLAGS="$xorg_testset_save_CFLAGS"
4970 fi
4971
4972 found="no"
4973
4974 if test $found = "no" ; then
4975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977 fi
4978
4979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4981 fi
4982
4983 CFLAGS="$CFLAGS -Wformat=2"
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4986 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4987 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4988 if eval \${$cacheid+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_link "$LINENO"; then :
5003 eval $cacheid=yes
5004 else
5005 eval $cacheid=no
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext \
5008 conftest$ac_exeext conftest.$ac_ext
5009 fi
5010
5011
5012 CFLAGS="$xorg_testset_save_CFLAGS"
5013
5014 eval supported=\$$cacheid
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5016 $as_echo "$supported" >&6; }
5017 if test "$supported" = "yes" ; then
5018 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5019 found="yes"
5020 fi
5021 fi
5022
5023 if test $found = "no" ; then
5024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026 fi
5027
5028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5030 fi
5031
5032 CFLAGS="$CFLAGS -Wformat"
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5035 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5036 cacheid=xorg_cv_cc_flag__Wformat
5037 if eval \${$cacheid+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 int
5044 main ()
5045 {
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 if ac_fn_c_try_link "$LINENO"; then :
5052 eval $cacheid=yes
5053 else
5054 eval $cacheid=no
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 fi
5059
5060
5061 CFLAGS="$xorg_testset_save_CFLAGS"
5062
5063 eval supported=\$$cacheid
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5065 $as_echo "$supported" >&6; }
5066 if test "$supported" = "yes" ; then
5067 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5068 found="yes"
5069 fi
5070 fi
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 xorg_testset_save_CFLAGS="$CFLAGS"
5089
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 int i;
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 xorg_cv_cc_flag_unknown_warning_option=yes
5103 else
5104 xorg_cv_cc_flag_unknown_warning_option=no
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5111 CFLAGS="$xorg_testset_save_CFLAGS"
5112 fi
5113
5114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117 fi
5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 xorg_cv_cc_flag_unused_command_line_argument=yes
5130 else
5131 xorg_cv_cc_flag_unused_command_line_argument=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5138 CFLAGS="$xorg_testset_save_CFLAGS"
5139 fi
5140
5141 found="no"
5142
5143 if test $found = "no" ; then
5144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146 fi
5147
5148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150 fi
5151
5152 CFLAGS="$CFLAGS -Wstrict-prototypes"
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5155 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5156 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5157 if eval \${$cacheid+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 int
5164 main ()
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_link "$LINENO"; then :
5172 eval $cacheid=yes
5173 else
5174 eval $cacheid=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext \
5177 conftest$ac_exeext conftest.$ac_ext
5178 fi
5179
5180
5181 CFLAGS="$xorg_testset_save_CFLAGS"
5182
5183 eval supported=\$$cacheid
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5185 $as_echo "$supported" >&6; }
5186 if test "$supported" = "yes" ; then
5187 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5188 found="yes"
5189 fi
5190 fi
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206 xorg_testset_save_CFLAGS="$CFLAGS"
5207
5208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 int i;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 xorg_cv_cc_flag_unknown_warning_option=yes
5221 else
5222 xorg_cv_cc_flag_unknown_warning_option=no
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5229 CFLAGS="$xorg_testset_save_CFLAGS"
5230 fi
5231
5232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 fi
5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 int i;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247 xorg_cv_cc_flag_unused_command_line_argument=yes
5248 else
5249 xorg_cv_cc_flag_unused_command_line_argument=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5256 CFLAGS="$xorg_testset_save_CFLAGS"
5257 fi
5258
5259 found="no"
5260
5261 if test $found = "no" ; then
5262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264 fi
5265
5266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5268 fi
5269
5270 CFLAGS="$CFLAGS -Wmissing-prototypes"
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5273 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5274 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5275 if eval \${$cacheid+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 int i;
5281 int
5282 main ()
5283 {
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 eval $cacheid=yes
5291 else
5292 eval $cacheid=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 fi
5297
5298
5299 CFLAGS="$xorg_testset_save_CFLAGS"
5300
5301 eval supported=\$$cacheid
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5303 $as_echo "$supported" >&6; }
5304 if test "$supported" = "yes" ; then
5305 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5306 found="yes"
5307 fi
5308 fi
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 xorg_testset_save_CFLAGS="$CFLAGS"
5325
5326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 int i;
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338 xorg_cv_cc_flag_unknown_warning_option=yes
5339 else
5340 xorg_cv_cc_flag_unknown_warning_option=no
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5347 CFLAGS="$xorg_testset_save_CFLAGS"
5348 fi
5349
5350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353 fi
5354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 int i;
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 xorg_cv_cc_flag_unused_command_line_argument=yes
5366 else
5367 xorg_cv_cc_flag_unused_command_line_argument=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5375 fi
5376
5377 found="no"
5378
5379 if test $found = "no" ; then
5380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382 fi
5383
5384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5386 fi
5387
5388 CFLAGS="$CFLAGS -Wnested-externs"
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5391 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5392 cacheid=xorg_cv_cc_flag__Wnested_externs
5393 if eval \${$cacheid+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_link "$LINENO"; then :
5408 eval $cacheid=yes
5409 else
5410 eval $cacheid=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext \
5413 conftest$ac_exeext conftest.$ac_ext
5414 fi
5415
5416
5417 CFLAGS="$xorg_testset_save_CFLAGS"
5418
5419 eval supported=\$$cacheid
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5421 $as_echo "$supported" >&6; }
5422 if test "$supported" = "yes" ; then
5423 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5424 found="yes"
5425 fi
5426 fi
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 int i;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 xorg_cv_cc_flag_unknown_warning_option=yes
5457 else
5458 xorg_cv_cc_flag_unknown_warning_option=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466 fi
5467
5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 fi
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 xorg_cv_cc_flag_unused_command_line_argument=yes
5484 else
5485 xorg_cv_cc_flag_unused_command_line_argument=no
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5492 CFLAGS="$xorg_testset_save_CFLAGS"
5493 fi
5494
5495 found="no"
5496
5497 if test $found = "no" ; then
5498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 fi
5501
5502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5504 fi
5505
5506 CFLAGS="$CFLAGS -Wbad-function-cast"
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5509 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5510 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5511 if eval \${$cacheid+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 int
5518 main ()
5519 {
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 if ac_fn_c_try_link "$LINENO"; then :
5526 eval $cacheid=yes
5527 else
5528 eval $cacheid=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5532 fi
5533
5534
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537 eval supported=\$$cacheid
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539 $as_echo "$supported" >&6; }
5540 if test "$supported" = "yes" ; then
5541 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5542 found="yes"
5543 fi
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 xorg_cv_cc_flag_unknown_warning_option=yes
5575 else
5576 xorg_cv_cc_flag_unknown_warning_option=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 int i;
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 xorg_cv_cc_flag_unused_command_line_argument=yes
5602 else
5603 xorg_cv_cc_flag_unused_command_line_argument=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5610 CFLAGS="$xorg_testset_save_CFLAGS"
5611 fi
5612
5613 found="no"
5614
5615 if test $found = "no" ; then
5616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 fi
5619
5620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5622 fi
5623
5624 CFLAGS="$CFLAGS -Wold-style-definition"
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5627 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5628 cacheid=xorg_cv_cc_flag__Wold_style_definition
5629 if eval \${$cacheid+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 int
5636 main ()
5637 {
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_link "$LINENO"; then :
5644 eval $cacheid=yes
5645 else
5646 eval $cacheid=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650 fi
5651
5652
5653 CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655 eval supported=\$$cacheid
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657 $as_echo "$supported" >&6; }
5658 if test "$supported" = "yes" ; then
5659 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5660 found="yes"
5661 fi
5662 fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 xorg_cv_cc_flag_unknown_warning_option=yes
5693 else
5694 xorg_cv_cc_flag_unknown_warning_option=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 int i;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 xorg_cv_cc_flag_unused_command_line_argument=yes
5720 else
5721 xorg_cv_cc_flag_unused_command_line_argument=no
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729 fi
5730
5731 found="no"
5732
5733 if test $found = "no" ; then
5734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 fi
5737
5738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740 fi
5741
5742 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5745 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5746 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5747 if eval \${$cacheid+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 int
5754 main ()
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_link "$LINENO"; then :
5762 eval $cacheid=yes
5763 else
5764 eval $cacheid=no
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 fi
5769
5770
5771 CFLAGS="$xorg_testset_save_CFLAGS"
5772
5773 eval supported=\$$cacheid
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5775 $as_echo "$supported" >&6; }
5776 if test "$supported" = "yes" ; then
5777 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5778 found="yes"
5779 fi
5780 fi
5781
5782
5783
5784
5785
5786 # This chunk adds additional warnings that could catch undesired effects.
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 xorg_testset_save_CFLAGS="$CFLAGS"
5801
5802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 int i;
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"; then :
5814 xorg_cv_cc_flag_unknown_warning_option=yes
5815 else
5816 xorg_cv_cc_flag_unknown_warning_option=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5824 fi
5825
5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829 fi
5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 int i;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 xorg_cv_cc_flag_unused_command_line_argument=yes
5842 else
5843 xorg_cv_cc_flag_unused_command_line_argument=no
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5850 CFLAGS="$xorg_testset_save_CFLAGS"
5851 fi
5852
5853 found="no"
5854
5855 if test $found = "no" ; then
5856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858 fi
5859
5860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5862 fi
5863
5864 CFLAGS="$CFLAGS -Wunused"
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5867 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5868 cacheid=xorg_cv_cc_flag__Wunused
5869 if eval \${$cacheid+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 int
5876 main ()
5877 {
5878
5879 ;
5880 return 0;
5881 }
5882 _ACEOF
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 eval $cacheid=yes
5885 else
5886 eval $cacheid=no
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 fi
5891
5892
5893 CFLAGS="$xorg_testset_save_CFLAGS"
5894
5895 eval supported=\$$cacheid
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5897 $as_echo "$supported" >&6; }
5898 if test "$supported" = "yes" ; then
5899 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5900 found="yes"
5901 fi
5902 fi
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 xorg_testset_save_CFLAGS="$CFLAGS"
5919
5920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 xorg_cv_cc_flag_unknown_warning_option=yes
5933 else
5934 xorg_cv_cc_flag_unknown_warning_option=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5941 CFLAGS="$xorg_testset_save_CFLAGS"
5942 fi
5943
5944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947 fi
5948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 xorg_cv_cc_flag_unused_command_line_argument=yes
5960 else
5961 xorg_cv_cc_flag_unused_command_line_argument=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5968 CFLAGS="$xorg_testset_save_CFLAGS"
5969 fi
5970
5971 found="no"
5972
5973 if test $found = "no" ; then
5974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976 fi
5977
5978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980 fi
5981
5982 CFLAGS="$CFLAGS -Wuninitialized"
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5985 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5986 cacheid=xorg_cv_cc_flag__Wuninitialized
5987 if eval \${$cacheid+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 int
5994 main ()
5995 {
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"; then :
6002 eval $cacheid=yes
6003 else
6004 eval $cacheid=no
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6008 fi
6009
6010
6011 CFLAGS="$xorg_testset_save_CFLAGS"
6012
6013 eval supported=\$$cacheid
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6015 $as_echo "$supported" >&6; }
6016 if test "$supported" = "yes" ; then
6017 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6018 found="yes"
6019 fi
6020 fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 xorg_testset_save_CFLAGS="$CFLAGS"
6037
6038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int i;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 xorg_cv_cc_flag_unknown_warning_option=yes
6051 else
6052 xorg_cv_cc_flag_unknown_warning_option=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077 xorg_cv_cc_flag_unused_command_line_argument=yes
6078 else
6079 xorg_cv_cc_flag_unused_command_line_argument=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6086 CFLAGS="$xorg_testset_save_CFLAGS"
6087 fi
6088
6089 found="no"
6090
6091 if test $found = "no" ; then
6092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 fi
6095
6096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098 fi
6099
6100 CFLAGS="$CFLAGS -Wshadow"
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6103 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6104 cacheid=xorg_cv_cc_flag__Wshadow
6105 if eval \${$cacheid+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 eval $cacheid=yes
6121 else
6122 eval $cacheid=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 fi
6127
6128
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131 eval supported=\$$cacheid
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133 $as_echo "$supported" >&6; }
6134 if test "$supported" = "yes" ; then
6135 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6136 found="yes"
6137 fi
6138 fi
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 xorg_cv_cc_flag_unknown_warning_option=yes
6169 else
6170 xorg_cv_cc_flag_unknown_warning_option=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 fi
6184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 xorg_cv_cc_flag_unused_command_line_argument=yes
6196 else
6197 xorg_cv_cc_flag_unused_command_line_argument=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205 fi
6206
6207 found="no"
6208
6209 if test $found = "no" ; then
6210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213
6214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216 fi
6217
6218 CFLAGS="$CFLAGS -Wcast-qual"
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6221 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6222 cacheid=xorg_cv_cc_flag__Wcast_qual
6223 if eval \${$cacheid+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 int
6230 main ()
6231 {
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 eval $cacheid=yes
6239 else
6240 eval $cacheid=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6244 fi
6245
6246
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249 eval supported=\$$cacheid
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251 $as_echo "$supported" >&6; }
6252 if test "$supported" = "yes" ; then
6253 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6254 found="yes"
6255 fi
6256 fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 xorg_cv_cc_flag_unknown_warning_option=yes
6287 else
6288 xorg_cv_cc_flag_unknown_warning_option=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301 fi
6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 xorg_cv_cc_flag_unused_command_line_argument=yes
6314 else
6315 xorg_cv_cc_flag_unused_command_line_argument=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322 CFLAGS="$xorg_testset_save_CFLAGS"
6323 fi
6324
6325 found="no"
6326
6327 if test $found = "no" ; then
6328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 fi
6331
6332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334 fi
6335
6336 CFLAGS="$CFLAGS -Wmissing-noreturn"
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6339 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6340 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6341 if eval \${$cacheid+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 int
6348 main ()
6349 {
6350
6351 ;
6352 return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 eval $cacheid=yes
6357 else
6358 eval $cacheid=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 fi
6363
6364
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367 eval supported=\$$cacheid
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369 $as_echo "$supported" >&6; }
6370 if test "$supported" = "yes" ; then
6371 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6372 found="yes"
6373 fi
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int i;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 xorg_cv_cc_flag_unknown_warning_option=yes
6405 else
6406 xorg_cv_cc_flag_unknown_warning_option=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414 fi
6415
6416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 xorg_cv_cc_flag_unused_command_line_argument=yes
6432 else
6433 xorg_cv_cc_flag_unused_command_line_argument=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441 fi
6442
6443 found="no"
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6457 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6458 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6459 if eval \${$cacheid+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 int
6466 main ()
6467 {
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 eval $cacheid=yes
6475 else
6476 eval $cacheid=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 fi
6481
6482
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485 eval supported=\$$cacheid
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487 $as_echo "$supported" >&6; }
6488 if test "$supported" = "yes" ; then
6489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6490 found="yes"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 int i;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 xorg_cv_cc_flag_unknown_warning_option=yes
6523 else
6524 xorg_cv_cc_flag_unknown_warning_option=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 else
6551 xorg_cv_cc_flag_unused_command_line_argument=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 found="no"
6562
6563 if test $found = "no" ; then
6564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 fi
6567
6568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570 fi
6571
6572 CFLAGS="$CFLAGS -Wredundant-decls"
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6575 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6576 cacheid=xorg_cv_cc_flag__Wredundant_decls
6577 if eval \${$cacheid+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 eval $cacheid=yes
6593 else
6594 eval $cacheid=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 fi
6599
6600
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603 eval supported=\$$cacheid
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605 $as_echo "$supported" >&6; }
6606 if test "$supported" = "yes" ; then
6607 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6608 found="yes"
6609 fi
6610 fi
6611
6612
6613
6614 # These are currently disabled because they are noisy. They will be enabled
6615 # in the future once the codebase is sufficiently modernized to silence
6616 # them. For now, I don't want them to drown out the other warnings.
6617 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6618 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6619 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6620
6621 # Turn some warnings into errors, so we don't accidently get successful builds
6622 # when there are problems that should be fixed.
6623
6624 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 xorg_testset_save_CFLAGS="$CFLAGS"
6639
6640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 int i;
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"; then :
6652 xorg_cv_cc_flag_unknown_warning_option=yes
6653 else
6654 xorg_cv_cc_flag_unknown_warning_option=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 fi
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662 fi
6663
6664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667 fi
6668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 int i;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 xorg_cv_cc_flag_unused_command_line_argument=yes
6680 else
6681 xorg_cv_cc_flag_unused_command_line_argument=no
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6688 CFLAGS="$xorg_testset_save_CFLAGS"
6689 fi
6690
6691 found="no"
6692
6693 if test $found = "no" ; then
6694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 fi
6697
6698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700 fi
6701
6702 CFLAGS="$CFLAGS -Werror=implicit"
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6705 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6706 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6707 if eval \${$cacheid+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 int i;
6713 int
6714 main ()
6715 {
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_link "$LINENO"; then :
6722 eval $cacheid=yes
6723 else
6724 eval $cacheid=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 fi
6729
6730
6731 CFLAGS="$xorg_testset_save_CFLAGS"
6732
6733 eval supported=\$$cacheid
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6735 $as_echo "$supported" >&6; }
6736 if test "$supported" = "yes" ; then
6737 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6738 found="yes"
6739 fi
6740 fi
6741
6742 if test $found = "no" ; then
6743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746
6747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749 fi
6750
6751 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6754 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6755 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6756 if eval \${$cacheid+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 int i;
6762 int
6763 main ()
6764 {
6765
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 eval $cacheid=yes
6772 else
6773 eval $cacheid=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 fi
6778
6779
6780 CFLAGS="$xorg_testset_save_CFLAGS"
6781
6782 eval supported=\$$cacheid
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6784 $as_echo "$supported" >&6; }
6785 if test "$supported" = "yes" ; then
6786 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6787 found="yes"
6788 fi
6789 fi
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 xorg_testset_save_CFLAGS="$CFLAGS"
6806
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 xorg_cv_cc_flag_unknown_warning_option=yes
6820 else
6821 xorg_cv_cc_flag_unknown_warning_option=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829 fi
6830
6831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 fi
6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 int i;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 xorg_cv_cc_flag_unused_command_line_argument=yes
6847 else
6848 xorg_cv_cc_flag_unused_command_line_argument=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856 fi
6857
6858 found="no"
6859
6860 if test $found = "no" ; then
6861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863 fi
6864
6865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6867 fi
6868
6869 CFLAGS="$CFLAGS -Werror=nonnull"
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6872 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6873 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6874 if eval \${$cacheid+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 int
6881 main ()
6882 {
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 eval $cacheid=yes
6890 else
6891 eval $cacheid=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 fi
6896
6897
6898 CFLAGS="$xorg_testset_save_CFLAGS"
6899
6900 eval supported=\$$cacheid
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6902 $as_echo "$supported" >&6; }
6903 if test "$supported" = "yes" ; then
6904 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6905 found="yes"
6906 fi
6907 fi
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 xorg_testset_save_CFLAGS="$CFLAGS"
6924
6925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 int i;
6935 _ACEOF
6936 if ac_fn_c_try_compile "$LINENO"; then :
6937 xorg_cv_cc_flag_unknown_warning_option=yes
6938 else
6939 xorg_cv_cc_flag_unknown_warning_option=no
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6946 CFLAGS="$xorg_testset_save_CFLAGS"
6947 fi
6948
6949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 fi
6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 _ACEOF
6963 if ac_fn_c_try_compile "$LINENO"; then :
6964 xorg_cv_cc_flag_unused_command_line_argument=yes
6965 else
6966 xorg_cv_cc_flag_unused_command_line_argument=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974 fi
6975
6976 found="no"
6977
6978 if test $found = "no" ; then
6979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981 fi
6982
6983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985 fi
6986
6987 CFLAGS="$CFLAGS -Werror=init-self"
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6990 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6991 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6992 if eval \${$cacheid+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 int
6999 main ()
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_c_try_link "$LINENO"; then :
7007 eval $cacheid=yes
7008 else
7009 eval $cacheid=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 fi
7014
7015
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017
7018 eval supported=\$$cacheid
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7020 $as_echo "$supported" >&6; }
7021 if test "$supported" = "yes" ; then
7022 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7023 found="yes"
7024 fi
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 xorg_cv_cc_flag_unknown_warning_option=yes
7056 else
7057 xorg_cv_cc_flag_unknown_warning_option=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064 CFLAGS="$xorg_testset_save_CFLAGS"
7065 fi
7066
7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070 fi
7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082 xorg_cv_cc_flag_unused_command_line_argument=yes
7083 else
7084 xorg_cv_cc_flag_unused_command_line_argument=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092 fi
7093
7094 found="no"
7095
7096 if test $found = "no" ; then
7097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 fi
7100
7101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 fi
7104
7105 CFLAGS="$CFLAGS -Werror=main"
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7108 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7109 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7110 if eval \${$cacheid+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_link "$LINENO"; then :
7125 eval $cacheid=yes
7126 else
7127 eval $cacheid=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 fi
7132
7133
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136 eval supported=\$$cacheid
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138 $as_echo "$supported" >&6; }
7139 if test "$supported" = "yes" ; then
7140 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7141 found="yes"
7142 fi
7143 fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 int i;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 xorg_cv_cc_flag_unknown_warning_option=yes
7174 else
7175 xorg_cv_cc_flag_unknown_warning_option=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int i;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 xorg_cv_cc_flag_unused_command_line_argument=yes
7201 else
7202 xorg_cv_cc_flag_unused_command_line_argument=no
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210 fi
7211
7212 found="no"
7213
7214 if test $found = "no" ; then
7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 fi
7218
7219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221 fi
7222
7223 CFLAGS="$CFLAGS -Werror=missing-braces"
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7226 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7227 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7228 if eval \${$cacheid+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 int
7235 main ()
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 eval $cacheid=yes
7244 else
7245 eval $cacheid=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 fi
7250
7251
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254 eval supported=\$$cacheid
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256 $as_echo "$supported" >&6; }
7257 if test "$supported" = "yes" ; then
7258 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7259 found="yes"
7260 fi
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 xorg_testset_save_CFLAGS="$CFLAGS"
7278
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 xorg_cv_cc_flag_unknown_warning_option=yes
7292 else
7293 xorg_cv_cc_flag_unknown_warning_option=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7300 CFLAGS="$xorg_testset_save_CFLAGS"
7301 fi
7302
7303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 fi
7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7318 xorg_cv_cc_flag_unused_command_line_argument=yes
7319 else
7320 xorg_cv_cc_flag_unused_command_line_argument=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327 CFLAGS="$xorg_testset_save_CFLAGS"
7328 fi
7329
7330 found="no"
7331
7332 if test $found = "no" ; then
7333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 fi
7336
7337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 fi
7340
7341 CFLAGS="$CFLAGS -Werror=sequence-point"
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7344 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7346 if eval \${$cacheid+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 int
7353 main ()
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"; then :
7361 eval $cacheid=yes
7362 else
7363 eval $cacheid=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 fi
7368
7369
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371
7372 eval supported=\$$cacheid
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7374 $as_echo "$supported" >&6; }
7375 if test "$supported" = "yes" ; then
7376 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7377 found="yes"
7378 fi
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 xorg_testset_save_CFLAGS="$CFLAGS"
7396
7397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 xorg_cv_cc_flag_unknown_warning_option=yes
7410 else
7411 xorg_cv_cc_flag_unknown_warning_option=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419 fi
7420
7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 xorg_cv_cc_flag_unused_command_line_argument=yes
7437 else
7438 xorg_cv_cc_flag_unused_command_line_argument=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 found="no"
7449
7450 if test $found = "no" ; then
7451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 fi
7454
7455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457 fi
7458
7459 CFLAGS="$CFLAGS -Werror=return-type"
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7462 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7463 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7464 if eval \${$cacheid+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 int i;
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 eval $cacheid=yes
7480 else
7481 eval $cacheid=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 fi
7486
7487
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490 eval supported=\$$cacheid
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492 $as_echo "$supported" >&6; }
7493 if test "$supported" = "yes" ; then
7494 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7495 found="yes"
7496 fi
7497 fi
7498
7499 if test $found = "no" ; then
7500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 fi
7503
7504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7506 fi
7507
7508 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7511 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7512 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7513 if eval \${$cacheid+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 int
7520 main ()
7521 {
7522
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 eval $cacheid=yes
7529 else
7530 eval $cacheid=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 fi
7535
7536
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538
7539 eval supported=\$$cacheid
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7541 $as_echo "$supported" >&6; }
7542 if test "$supported" = "yes" ; then
7543 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7544 found="yes"
7545 fi
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 xorg_testset_save_CFLAGS="$CFLAGS"
7563
7564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 xorg_cv_cc_flag_unknown_warning_option=yes
7577 else
7578 xorg_cv_cc_flag_unknown_warning_option=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586 fi
7587
7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 xorg_cv_cc_flag_unused_command_line_argument=yes
7604 else
7605 xorg_cv_cc_flag_unused_command_line_argument=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7612 CFLAGS="$xorg_testset_save_CFLAGS"
7613 fi
7614
7615 found="no"
7616
7617 if test $found = "no" ; then
7618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620 fi
7621
7622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7624 fi
7625
7626 CFLAGS="$CFLAGS -Werror=trigraphs"
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7629 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7631 if eval \${$cacheid+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 int
7638 main ()
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 eval $cacheid=yes
7647 else
7648 eval $cacheid=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 fi
7653
7654
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657 eval supported=\$$cacheid
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659 $as_echo "$supported" >&6; }
7660 if test "$supported" = "yes" ; then
7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7662 found="yes"
7663 fi
7664 fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 xorg_testset_save_CFLAGS="$CFLAGS"
7681
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 int i;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 xorg_cv_cc_flag_unknown_warning_option=yes
7695 else
7696 xorg_cv_cc_flag_unknown_warning_option=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 xorg_cv_cc_flag_unused_command_line_argument=yes
7722 else
7723 xorg_cv_cc_flag_unused_command_line_argument=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7730 CFLAGS="$xorg_testset_save_CFLAGS"
7731 fi
7732
7733 found="no"
7734
7735 if test $found = "no" ; then
7736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738 fi
7739
7740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742 fi
7743
7744 CFLAGS="$CFLAGS -Werror=array-bounds"
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7747 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7748 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7749 if eval \${$cacheid+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 int
7756 main ()
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 eval $cacheid=yes
7765 else
7766 eval $cacheid=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 fi
7771
7772
7773 CFLAGS="$xorg_testset_save_CFLAGS"
7774
7775 eval supported=\$$cacheid
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7777 $as_echo "$supported" >&6; }
7778 if test "$supported" = "yes" ; then
7779 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7780 found="yes"
7781 fi
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 xorg_testset_save_CFLAGS="$CFLAGS"
7799
7800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 xorg_cv_cc_flag_unknown_warning_option=yes
7813 else
7814 xorg_cv_cc_flag_unknown_warning_option=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822 fi
7823
7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int i;
7837 _ACEOF
7838 if ac_fn_c_try_compile "$LINENO"; then :
7839 xorg_cv_cc_flag_unused_command_line_argument=yes
7840 else
7841 xorg_cv_cc_flag_unused_command_line_argument=no
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 found="no"
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -Werror=write-strings"
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7865 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7866 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7867 if eval \${$cacheid+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 int
7874 main ()
7875 {
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 eval $cacheid=yes
7883 else
7884 eval $cacheid=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7888 fi
7889
7890
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893 eval supported=\$$cacheid
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895 $as_echo "$supported" >&6; }
7896 if test "$supported" = "yes" ; then
7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7898 found="yes"
7899 fi
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 xorg_cv_cc_flag_unknown_warning_option=yes
7931 else
7932 xorg_cv_cc_flag_unknown_warning_option=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957 xorg_cv_cc_flag_unused_command_line_argument=yes
7958 else
7959 xorg_cv_cc_flag_unused_command_line_argument=no
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966 CFLAGS="$xorg_testset_save_CFLAGS"
7967 fi
7968
7969 found="no"
7970
7971 if test $found = "no" ; then
7972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 fi
7975
7976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 fi
7979
7980 CFLAGS="$CFLAGS -Werror=address"
7981
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7983 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7984 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7985 if eval \${$cacheid+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 int
7992 main ()
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_link "$LINENO"; then :
8000 eval $cacheid=yes
8001 else
8002 eval $cacheid=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 fi
8007
8008
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011 eval supported=\$$cacheid
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013 $as_echo "$supported" >&6; }
8014 if test "$supported" = "yes" ; then
8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8016 found="yes"
8017 fi
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 xorg_testset_save_CFLAGS="$CFLAGS"
8035
8036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 xorg_cv_cc_flag_unknown_warning_option=yes
8049 else
8050 xorg_cv_cc_flag_unknown_warning_option=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058 fi
8059
8060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 fi
8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 xorg_cv_cc_flag_unused_command_line_argument=yes
8076 else
8077 xorg_cv_cc_flag_unused_command_line_argument=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8101 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8102 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8103 if eval \${$cacheid+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int i;
8109 int
8110 main ()
8111 {
8112
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 eval $cacheid=yes
8119 else
8120 eval $cacheid=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 fi
8125
8126
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129 eval supported=\$$cacheid
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131 $as_echo "$supported" >&6; }
8132 if test "$supported" = "yes" ; then
8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8134 found="yes"
8135 fi
8136 fi
8137
8138 if test $found = "no" ; then
8139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 fi
8142
8143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8145 fi
8146
8147 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8150 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8151 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8152 if eval \${$cacheid+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 int
8159 main ()
8160 {
8161
8162 ;
8163 return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_link "$LINENO"; then :
8167 eval $cacheid=yes
8168 else
8169 eval $cacheid=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8173 fi
8174
8175
8176 CFLAGS="$xorg_testset_save_CFLAGS"
8177
8178 eval supported=\$$cacheid
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8180 $as_echo "$supported" >&6; }
8181 if test "$supported" = "yes" ; then
8182 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8183 found="yes"
8184 fi
8185 fi
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201 xorg_testset_save_CFLAGS="$CFLAGS"
8202
8203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 int i;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 xorg_cv_cc_flag_unknown_warning_option=yes
8216 else
8217 xorg_cv_cc_flag_unknown_warning_option=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 fi
8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 _ACEOF
8241 if ac_fn_c_try_compile "$LINENO"; then :
8242 xorg_cv_cc_flag_unused_command_line_argument=yes
8243 else
8244 xorg_cv_cc_flag_unused_command_line_argument=no
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8251 CFLAGS="$xorg_testset_save_CFLAGS"
8252 fi
8253
8254 found="no"
8255
8256 if test $found = "no" ; then
8257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 fi
8260
8261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263 fi
8264
8265 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8268 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8270 if eval \${$cacheid+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int i;
8276 int
8277 main ()
8278 {
8279
8280 ;
8281 return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 eval $cacheid=yes
8286 else
8287 eval $cacheid=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 fi
8292
8293
8294 CFLAGS="$xorg_testset_save_CFLAGS"
8295
8296 eval supported=\$$cacheid
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8298 $as_echo "$supported" >&6; }
8299 if test "$supported" = "yes" ; then
8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8301 found="yes"
8302 fi
8303 fi
8304
8305 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8306 else
8307 { $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
8308 $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;}
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 xorg_testset_save_CFLAGS="$CFLAGS"
8323
8324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 int i;
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 xorg_cv_cc_flag_unknown_warning_option=yes
8337 else
8338 xorg_cv_cc_flag_unknown_warning_option=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8345 CFLAGS="$xorg_testset_save_CFLAGS"
8346 fi
8347
8348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351 fi
8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 int i;
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363 xorg_cv_cc_flag_unused_command_line_argument=yes
8364 else
8365 xorg_cv_cc_flag_unused_command_line_argument=no
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8372 CFLAGS="$xorg_testset_save_CFLAGS"
8373 fi
8374
8375 found="no"
8376
8377 if test $found = "no" ; then
8378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380 fi
8381
8382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384 fi
8385
8386 CFLAGS="$CFLAGS -Wimplicit"
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8389 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8390 cacheid=xorg_cv_cc_flag__Wimplicit
8391 if eval \${$cacheid+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 int i;
8397 int
8398 main ()
8399 {
8400
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 if ac_fn_c_try_link "$LINENO"; then :
8406 eval $cacheid=yes
8407 else
8408 eval $cacheid=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 $as_echo "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 int i;
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 xorg_cv_cc_flag_unknown_warning_option=yes
8455 else
8456 xorg_cv_cc_flag_unknown_warning_option=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8461 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8463 CFLAGS="$xorg_testset_save_CFLAGS"
8464 fi
8465
8466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 fi
8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8472 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8473 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 int i;
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481 xorg_cv_cc_flag_unused_command_line_argument=yes
8482 else
8483 xorg_cv_cc_flag_unused_command_line_argument=no
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8488 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8490 CFLAGS="$xorg_testset_save_CFLAGS"
8491 fi
8492
8493 found="no"
8494
8495 if test $found = "no" ; then
8496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498 fi
8499
8500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502 fi
8503
8504 CFLAGS="$CFLAGS -Wnonnull"
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8507 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8508 cacheid=xorg_cv_cc_flag__Wnonnull
8509 if eval \${$cacheid+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 int
8516 main ()
8517 {
8518
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 if ac_fn_c_try_link "$LINENO"; then :
8524 eval $cacheid=yes
8525 else
8526 eval $cacheid=no
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530 fi
8531
8532
8533 CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535 eval supported=\$$cacheid
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537 $as_echo "$supported" >&6; }
8538 if test "$supported" = "yes" ; then
8539 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8540 found="yes"
8541 fi
8542 fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 int i;
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"; then :
8572 xorg_cv_cc_flag_unknown_warning_option=yes
8573 else
8574 xorg_cv_cc_flag_unknown_warning_option=no
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 fi
8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 xorg_cv_cc_flag_unused_command_line_argument=yes
8600 else
8601 xorg_cv_cc_flag_unused_command_line_argument=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609 fi
8610
8611 found="no"
8612
8613 if test $found = "no" ; then
8614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 fi
8617
8618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620 fi
8621
8622 CFLAGS="$CFLAGS -Winit-self"
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8625 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8626 cacheid=xorg_cv_cc_flag__Winit_self
8627 if eval \${$cacheid+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 int
8634 main ()
8635 {
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_link "$LINENO"; then :
8642 eval $cacheid=yes
8643 else
8644 eval $cacheid=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 fi
8649
8650
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653 eval supported=\$$cacheid
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655 $as_echo "$supported" >&6; }
8656 if test "$supported" = "yes" ; then
8657 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8658 found="yes"
8659 fi
8660 fi
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676 xorg_testset_save_CFLAGS="$CFLAGS"
8677
8678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8681 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8682 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"; then :
8690 xorg_cv_cc_flag_unknown_warning_option=yes
8691 else
8692 xorg_cv_cc_flag_unknown_warning_option=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8697 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700 fi
8701
8702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 fi
8706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8709 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 xorg_cv_cc_flag_unused_command_line_argument=yes
8718 else
8719 xorg_cv_cc_flag_unused_command_line_argument=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8724 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8726 CFLAGS="$xorg_testset_save_CFLAGS"
8727 fi
8728
8729 found="no"
8730
8731 if test $found = "no" ; then
8732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734 fi
8735
8736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8738 fi
8739
8740 CFLAGS="$CFLAGS -Wmain"
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8743 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8744 cacheid=xorg_cv_cc_flag__Wmain
8745 if eval \${$cacheid+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 int
8752 main ()
8753 {
8754
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 eval $cacheid=yes
8761 else
8762 eval $cacheid=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 fi
8767
8768
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770
8771 eval supported=\$$cacheid
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8773 $as_echo "$supported" >&6; }
8774 if test "$supported" = "yes" ; then
8775 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8776 found="yes"
8777 fi
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 xorg_testset_save_CFLAGS="$CFLAGS"
8795
8796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 int i;
8806 _ACEOF
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808 xorg_cv_cc_flag_unknown_warning_option=yes
8809 else
8810 xorg_cv_cc_flag_unknown_warning_option=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818 fi
8819
8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 fi
8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int i;
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 xorg_cv_cc_flag_unused_command_line_argument=yes
8836 else
8837 xorg_cv_cc_flag_unused_command_line_argument=no
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844 CFLAGS="$xorg_testset_save_CFLAGS"
8845 fi
8846
8847 found="no"
8848
8849 if test $found = "no" ; then
8850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852 fi
8853
8854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856 fi
8857
8858 CFLAGS="$CFLAGS -Wmissing-braces"
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8861 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8862 cacheid=xorg_cv_cc_flag__Wmissing_braces
8863 if eval \${$cacheid+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 int
8870 main ()
8871 {
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 eval $cacheid=yes
8879 else
8880 eval $cacheid=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 fi
8885
8886
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889 eval supported=\$$cacheid
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891 $as_echo "$supported" >&6; }
8892 if test "$supported" = "yes" ; then
8893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8894 found="yes"
8895 fi
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 xorg_testset_save_CFLAGS="$CFLAGS"
8913
8914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"; then :
8926 xorg_cv_cc_flag_unknown_warning_option=yes
8927 else
8928 xorg_cv_cc_flag_unknown_warning_option=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936 fi
8937
8938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 int i;
8951 _ACEOF
8952 if ac_fn_c_try_compile "$LINENO"; then :
8953 xorg_cv_cc_flag_unused_command_line_argument=yes
8954 else
8955 xorg_cv_cc_flag_unused_command_line_argument=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963 fi
8964
8965 found="no"
8966
8967 if test $found = "no" ; then
8968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970 fi
8971
8972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8974 fi
8975
8976 CFLAGS="$CFLAGS -Wsequence-point"
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8979 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8980 cacheid=xorg_cv_cc_flag__Wsequence_point
8981 if eval \${$cacheid+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 int
8988 main ()
8989 {
8990
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996 eval $cacheid=yes
8997 else
8998 eval $cacheid=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 fi
9003
9004
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007 eval supported=\$$cacheid
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009 $as_echo "$supported" >&6; }
9010 if test "$supported" = "yes" ; then
9011 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9012 found="yes"
9013 fi
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 xorg_cv_cc_flag_unknown_warning_option=yes
9045 else
9046 xorg_cv_cc_flag_unknown_warning_option=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054 fi
9055
9056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 _ACEOF
9070 if ac_fn_c_try_compile "$LINENO"; then :
9071 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 else
9073 xorg_cv_cc_flag_unused_command_line_argument=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081 fi
9082
9083 found="no"
9084
9085 if test $found = "no" ; then
9086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 fi
9089
9090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092 fi
9093
9094 CFLAGS="$CFLAGS -Wreturn-type"
9095
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9097 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9098 cacheid=xorg_cv_cc_flag__Wreturn_type
9099 if eval \${$cacheid+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 int
9106 main ()
9107 {
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 eval $cacheid=yes
9115 else
9116 eval $cacheid=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 fi
9121
9122
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124
9125 eval supported=\$$cacheid
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9127 $as_echo "$supported" >&6; }
9128 if test "$supported" = "yes" ; then
9129 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9130 found="yes"
9131 fi
9132 fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 xorg_testset_save_CFLAGS="$CFLAGS"
9149
9150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 xorg_cv_cc_flag_unknown_warning_option=yes
9163 else
9164 xorg_cv_cc_flag_unknown_warning_option=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172 fi
9173
9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 fi
9178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 xorg_cv_cc_flag_unused_command_line_argument=yes
9190 else
9191 xorg_cv_cc_flag_unused_command_line_argument=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198 CFLAGS="$xorg_testset_save_CFLAGS"
9199 fi
9200
9201 found="no"
9202
9203 if test $found = "no" ; then
9204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206 fi
9207
9208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210 fi
9211
9212 CFLAGS="$CFLAGS -Wtrigraphs"
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9215 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9216 cacheid=xorg_cv_cc_flag__Wtrigraphs
9217 if eval \${$cacheid+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 int
9224 main ()
9225 {
9226
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 eval $cacheid=yes
9233 else
9234 eval $cacheid=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 fi
9239
9240
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243 eval supported=\$$cacheid
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245 $as_echo "$supported" >&6; }
9246 if test "$supported" = "yes" ; then
9247 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9248 found="yes"
9249 fi
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int i;
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 xorg_cv_cc_flag_unknown_warning_option=yes
9281 else
9282 xorg_cv_cc_flag_unknown_warning_option=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9289 CFLAGS="$xorg_testset_save_CFLAGS"
9290 fi
9291
9292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 fi
9296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307 xorg_cv_cc_flag_unused_command_line_argument=yes
9308 else
9309 xorg_cv_cc_flag_unused_command_line_argument=no
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9316 CFLAGS="$xorg_testset_save_CFLAGS"
9317 fi
9318
9319 found="no"
9320
9321 if test $found = "no" ; then
9322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324 fi
9325
9326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328 fi
9329
9330 CFLAGS="$CFLAGS -Warray-bounds"
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9333 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9334 cacheid=xorg_cv_cc_flag__Warray_bounds
9335 if eval \${$cacheid+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 int
9342 main ()
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350 eval $cacheid=yes
9351 else
9352 eval $cacheid=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 fi
9357
9358
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360
9361 eval supported=\$$cacheid
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9363 $as_echo "$supported" >&6; }
9364 if test "$supported" = "yes" ; then
9365 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9366 found="yes"
9367 fi
9368 fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384 xorg_testset_save_CFLAGS="$CFLAGS"
9385
9386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 xorg_cv_cc_flag_unknown_warning_option=yes
9399 else
9400 xorg_cv_cc_flag_unknown_warning_option=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408 fi
9409
9410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 _ACEOF
9424 if ac_fn_c_try_compile "$LINENO"; then :
9425 xorg_cv_cc_flag_unused_command_line_argument=yes
9426 else
9427 xorg_cv_cc_flag_unused_command_line_argument=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435 fi
9436
9437 found="no"
9438
9439 if test $found = "no" ; then
9440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442 fi
9443
9444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446 fi
9447
9448 CFLAGS="$CFLAGS -Wwrite-strings"
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9451 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9452 cacheid=xorg_cv_cc_flag__Wwrite_strings
9453 if eval \${$cacheid+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468 eval $cacheid=yes
9469 else
9470 eval $cacheid=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 fi
9475
9476
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479 eval supported=\$$cacheid
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481 $as_echo "$supported" >&6; }
9482 if test "$supported" = "yes" ; then
9483 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9484 found="yes"
9485 fi
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 xorg_cv_cc_flag_unknown_warning_option=yes
9517 else
9518 xorg_cv_cc_flag_unknown_warning_option=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526 fi
9527
9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 fi
9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 _ACEOF
9542 if ac_fn_c_try_compile "$LINENO"; then :
9543 xorg_cv_cc_flag_unused_command_line_argument=yes
9544 else
9545 xorg_cv_cc_flag_unused_command_line_argument=no
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553 fi
9554
9555 found="no"
9556
9557 if test $found = "no" ; then
9558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560 fi
9561
9562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9564 fi
9565
9566 CFLAGS="$CFLAGS -Waddress"
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9569 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9570 cacheid=xorg_cv_cc_flag__Waddress
9571 if eval \${$cacheid+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 int
9578 main ()
9579 {
9580
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 eval $cacheid=yes
9587 else
9588 eval $cacheid=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 fi
9593
9594
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596
9597 eval supported=\$$cacheid
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9599 $as_echo "$supported" >&6; }
9600 if test "$supported" = "yes" ; then
9601 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9602 found="yes"
9603 fi
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620 xorg_testset_save_CFLAGS="$CFLAGS"
9621
9622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"; then :
9634 xorg_cv_cc_flag_unknown_warning_option=yes
9635 else
9636 xorg_cv_cc_flag_unknown_warning_option=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644 fi
9645
9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 xorg_cv_cc_flag_unused_command_line_argument=yes
9662 else
9663 xorg_cv_cc_flag_unused_command_line_argument=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671 fi
9672
9673 found="no"
9674
9675 if test $found = "no" ; then
9676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678 fi
9679
9680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682 fi
9683
9684 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9687 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9688 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9689 if eval \${$cacheid+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 int
9696 main ()
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 eval $cacheid=yes
9705 else
9706 eval $cacheid=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 fi
9711
9712
9713 CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715 eval supported=\$$cacheid
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717 $as_echo "$supported" >&6; }
9718 if test "$supported" = "yes" ; then
9719 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9720 found="yes"
9721 fi
9722 fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738 xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unknown_warning_option=yes
9753 else
9754 xorg_cv_cc_flag_unknown_warning_option=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 fi
9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9805 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9807 if eval \${$cacheid+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 int
9814 main ()
9815 {
9816
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 eval $cacheid=yes
9823 else
9824 eval $cacheid=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi
9829
9830
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833 eval supported=\$$cacheid
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 $as_echo "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9838 found="yes"
9839 fi
9840 fi
9841
9842
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851 CWARNFLAGS="$BASE_CFLAGS"
9852 if test "x$GCC" = xyes ; then
9853 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862
9863 # Check whether --enable-strict-compilation was given.
9864 if test "${enable_strict_compilation+set}" = set; then :
9865 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9866 else
9867 STRICT_COMPILE=no
9868 fi
9869
9870
9871
9872
9873
9874
9875 STRICT_CFLAGS=""
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 xorg_testset_save_CFLAGS="$CFLAGS"
9890
9891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 int i;
9901 _ACEOF
9902 if ac_fn_c_try_compile "$LINENO"; then :
9903 xorg_cv_cc_flag_unknown_warning_option=yes
9904 else
9905 xorg_cv_cc_flag_unknown_warning_option=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913 fi
9914
9915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 fi
9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int i;
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 xorg_cv_cc_flag_unused_command_line_argument=yes
9931 else
9932 xorg_cv_cc_flag_unused_command_line_argument=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940 fi
9941
9942 found="no"
9943
9944 if test $found = "no" ; then
9945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947 fi
9948
9949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9951 fi
9952
9953 CFLAGS="$CFLAGS -pedantic"
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9956 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9957 cacheid=xorg_cv_cc_flag__pedantic
9958 if eval \${$cacheid+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 int i;
9964 int
9965 main ()
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 eval $cacheid=yes
9974 else
9975 eval $cacheid=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980
9981
9982 CFLAGS="$xorg_testset_save_CFLAGS"
9983
9984 eval supported=\$$cacheid
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9986 $as_echo "$supported" >&6; }
9987 if test "$supported" = "yes" ; then
9988 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9989 found="yes"
9990 fi
9991 fi
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007 xorg_testset_save_CFLAGS="$CFLAGS"
10008
10009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int i;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021 xorg_cv_cc_flag_unknown_warning_option=yes
10022 else
10023 xorg_cv_cc_flag_unknown_warning_option=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10030 CFLAGS="$xorg_testset_save_CFLAGS"
10031 fi
10032
10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 _ACEOF
10047 if ac_fn_c_try_compile "$LINENO"; then :
10048 xorg_cv_cc_flag_unused_command_line_argument=yes
10049 else
10050 xorg_cv_cc_flag_unused_command_line_argument=no
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10057 CFLAGS="$xorg_testset_save_CFLAGS"
10058 fi
10059
10060 found="no"
10061
10062 if test $found = "no" ; then
10063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 fi
10066
10067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10069 fi
10070
10071 CFLAGS="$CFLAGS -Werror"
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10074 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10075 cacheid=xorg_cv_cc_flag__Werror
10076 if eval \${$cacheid+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 int
10083 main ()
10084 {
10085
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 eval $cacheid=yes
10092 else
10093 eval $cacheid=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 fi
10098
10099
10100 CFLAGS="$xorg_testset_save_CFLAGS"
10101
10102 eval supported=\$$cacheid
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10104 $as_echo "$supported" >&6; }
10105 if test "$supported" = "yes" ; then
10106 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10107 found="yes"
10108 fi
10109 fi
10110
10111 if test $found = "no" ; then
10112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 fi
10115
10116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118 fi
10119
10120 CFLAGS="$CFLAGS -errwarn"
10121
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10123 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10124 cacheid=xorg_cv_cc_flag__errwarn
10125 if eval \${$cacheid+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 int i;
10131 int
10132 main ()
10133 {
10134
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140 eval $cacheid=yes
10141 else
10142 eval $cacheid=no
10143 fi
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10146 fi
10147
10148
10149 CFLAGS="$xorg_testset_save_CFLAGS"
10150
10151 eval supported=\$$cacheid
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10153 $as_echo "$supported" >&6; }
10154 if test "$supported" = "yes" ; then
10155 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10156 found="yes"
10157 fi
10158 fi
10159
10160
10161
10162 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10163 # activate it with -Werror, so we add it here explicitly.
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177 xorg_testset_save_CFLAGS="$CFLAGS"
10178
10179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10182 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10183 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188 int i;
10189 _ACEOF
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191 xorg_cv_cc_flag_unknown_warning_option=yes
10192 else
10193 xorg_cv_cc_flag_unknown_warning_option=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10198 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201 fi
10202
10203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 fi
10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10209 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10210 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int i;
10216 _ACEOF
10217 if ac_fn_c_try_compile "$LINENO"; then :
10218 xorg_cv_cc_flag_unused_command_line_argument=yes
10219 else
10220 xorg_cv_cc_flag_unused_command_line_argument=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223 fi
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10225 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10227 CFLAGS="$xorg_testset_save_CFLAGS"
10228 fi
10229
10230 found="no"
10231
10232 if test $found = "no" ; then
10233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235 fi
10236
10237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239 fi
10240
10241 CFLAGS="$CFLAGS -Werror=attributes"
10242
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10244 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10245 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10246 if eval \${$cacheid+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 int i;
10252 int
10253 main ()
10254 {
10255
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 eval $cacheid=yes
10262 else
10263 eval $cacheid=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 fi
10268
10269
10270 CFLAGS="$xorg_testset_save_CFLAGS"
10271
10272 eval supported=\$$cacheid
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10274 $as_echo "$supported" >&6; }
10275 if test "$supported" = "yes" ; then
10276 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10277 found="yes"
10278 fi
10279 fi
10280
10281
10282
10283 if test "x$STRICT_COMPILE" = "xyes"; then
10284 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10285 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10286 fi
10287
10288
10289
10290
10291
10292
10293 cat >>confdefs.h <<_ACEOF
10294 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10295 _ACEOF
10296
10297 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10298 if test "x$PVM" = "x"; then
10299 PVM="0"
10300 fi
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define PACKAGE_VERSION_MINOR $PVM
10304 _ACEOF
10305
10306 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10307 if test "x$PVP" = "x"; then
10308 PVP="0"
10309 fi
10310
10311 cat >>confdefs.h <<_ACEOF
10312 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10313 _ACEOF
10314
10315
10316
10317 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10318 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10319 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10320 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10321
10322
10323
10324
10325 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10326 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10327 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10328 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10329 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10330
10331
10332
10333
10334
10335
10336 if test x$APP_MAN_SUFFIX = x ; then
10337 APP_MAN_SUFFIX=1
10338 fi
10339 if test x$APP_MAN_DIR = x ; then
10340 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10341 fi
10342
10343 if test x$LIB_MAN_SUFFIX = x ; then
10344 LIB_MAN_SUFFIX=3
10345 fi
10346 if test x$LIB_MAN_DIR = x ; then
10347 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10348 fi
10349
10350 if test x$FILE_MAN_SUFFIX = x ; then
10351 case $host_os in
10352 solaris*) FILE_MAN_SUFFIX=4 ;;
10353 *) FILE_MAN_SUFFIX=5 ;;
10354 esac
10355 fi
10356 if test x$FILE_MAN_DIR = x ; then
10357 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10358 fi
10359
10360 if test x$MISC_MAN_SUFFIX = x ; then
10361 case $host_os in
10362 solaris*) MISC_MAN_SUFFIX=5 ;;
10363 *) MISC_MAN_SUFFIX=7 ;;
10364 esac
10365 fi
10366 if test x$MISC_MAN_DIR = x ; then
10367 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10368 fi
10369
10370 if test x$DRIVER_MAN_SUFFIX = x ; then
10371 case $host_os in
10372 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10373 *) DRIVER_MAN_SUFFIX=4 ;;
10374 esac
10375 fi
10376 if test x$DRIVER_MAN_DIR = x ; then
10377 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10378 fi
10379
10380 if test x$ADMIN_MAN_SUFFIX = x ; then
10381 case $host_os in
10382 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10383 *) ADMIN_MAN_SUFFIX=8 ;;
10384 esac
10385 fi
10386 if test x$ADMIN_MAN_DIR = x ; then
10387 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10388 fi
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404 XORG_MAN_PAGE="X Version 11"
10405
10406 MAN_SUBSTS="\
10407 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10408 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10409 -e 's|__xservername__|Xorg|g' \
10410 -e 's|__xconfigfile__|xorg.conf|g' \
10411 -e 's|__projectroot__|\$(prefix)|g' \
10412 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10413 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10414 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10415 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10416 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10417 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10418 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10419
10420
10421
10422 # Check whether --enable-silent-rules was given.
10423 if test "${enable_silent_rules+set}" = set; then :
10424 enableval=$enable_silent_rules;
10425 fi
10426
10427 case $enable_silent_rules in # (((
10428 yes) AM_DEFAULT_VERBOSITY=0;;
10429 no) AM_DEFAULT_VERBOSITY=1;;
10430 *) AM_DEFAULT_VERBOSITY=0;;
10431 esac
10432 am_make=${MAKE-make}
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10434 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10435 if ${am_cv_make_support_nested_variables+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 if $as_echo 'TRUE=$(BAR$(V))
10439 BAR0=false
10440 BAR1=true
10441 V=1
10442 am__doit:
10443 @$(TRUE)
10444 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10445 am_cv_make_support_nested_variables=yes
10446 else
10447 am_cv_make_support_nested_variables=no
10448 fi
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10451 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10452 if test $am_cv_make_support_nested_variables = yes; then
10453 AM_V='$(V)'
10454 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10455 else
10456 AM_V=$AM_DEFAULT_VERBOSITY
10457 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10458 fi
10459 AM_BACKSLASH='\'
10460
10461
10462
10463 ac_config_headers="$ac_config_headers config.h"
10464
10465
10466
10467 pkg_failed=no
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONTSEL" >&5
10469 $as_echo_n "checking for XFONTSEL... " >&6; }
10470
10471 if test -n "$XFONTSEL_CFLAGS"; then
10472 pkg_cv_XFONTSEL_CFLAGS="$XFONTSEL_CFLAGS"
10473 elif test -n "$PKG_CONFIG"; then
10474 if test -n "$PKG_CONFIG" && \
10475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10476 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10477 ac_status=$?
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; }; then
10480 pkg_cv_XFONTSEL_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
10481 else
10482 pkg_failed=yes
10483 fi
10484 else
10485 pkg_failed=untried
10486 fi
10487 if test -n "$XFONTSEL_LIBS"; then
10488 pkg_cv_XFONTSEL_LIBS="$XFONTSEL_LIBS"
10489 elif test -n "$PKG_CONFIG"; then
10490 if test -n "$PKG_CONFIG" && \
10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10492 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10493 ac_status=$?
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; }; then
10496 pkg_cv_XFONTSEL_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
10497 else
10498 pkg_failed=yes
10499 fi
10500 else
10501 pkg_failed=untried
10502 fi
10503
10504
10505
10506 if test $pkg_failed = yes; then
10507
10508 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10509 _pkg_short_errors_supported=yes
10510 else
10511 _pkg_short_errors_supported=no
10512 fi
10513 if test $_pkg_short_errors_supported = yes; then
10514 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
10515 else
10516 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
10517 fi
10518 # Put the nasty error message in config.log where it belongs
10519 echo "$XFONTSEL_PKG_ERRORS" >&5
10520
10521 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
10522
10523 $XFONTSEL_PKG_ERRORS
10524
10525 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10526 installed software in a non-standard prefix.
10527
10528 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
10529 and XFONTSEL_LIBS to avoid the need to call pkg-config.
10530 See the pkg-config man page for more details.
10531 " "$LINENO" 5
10532 elif test $pkg_failed = untried; then
10533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10535 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10536 is in your PATH or set the PKG_CONFIG environment variable to the full
10537 path to pkg-config.
10538
10539 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
10540 and XFONTSEL_LIBS to avoid the need to call pkg-config.
10541 See the pkg-config man page for more details.
10542
10543 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10544 See \`config.log' for more details" "$LINENO" 5; }
10545 else
10546 XFONTSEL_CFLAGS=$pkg_cv_XFONTSEL_CFLAGS
10547 XFONTSEL_LIBS=$pkg_cv_XFONTSEL_LIBS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549 $as_echo "yes" >&6; }
10550 :
10551 fi
10552
10553
10554 pkg_failed=no
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10556 $as_echo_n "checking for APPDEFS... " >&6; }
10557
10558 if test -n "$APPDEFS_CFLAGS"; then
10559 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10560 elif test -n "$PKG_CONFIG"; then
10561 if test -n "$PKG_CONFIG" && \
10562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10563 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10564 ac_status=$?
10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; }; then
10567 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10568 else
10569 pkg_failed=yes
10570 fi
10571 else
10572 pkg_failed=untried
10573 fi
10574 if test -n "$APPDEFS_LIBS"; then
10575 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10576 elif test -n "$PKG_CONFIG"; then
10577 if test -n "$PKG_CONFIG" && \
10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10579 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10580 ac_status=$?
10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582 test $ac_status = 0; }; then
10583 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10584 else
10585 pkg_failed=yes
10586 fi
10587 else
10588 pkg_failed=untried
10589 fi
10590
10591
10592
10593 if test $pkg_failed = yes; then
10594
10595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10596 _pkg_short_errors_supported=yes
10597 else
10598 _pkg_short_errors_supported=no
10599 fi
10600 if test $_pkg_short_errors_supported = yes; then
10601 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10602 else
10603 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10604 fi
10605 # Put the nasty error message in config.log where it belongs
10606 echo "$APPDEFS_PKG_ERRORS" >&5
10607
10608 as_fn_error $? "Package requirements (xt) were not met:
10609
10610 $APPDEFS_PKG_ERRORS
10611
10612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10613 installed software in a non-standard prefix.
10614
10615 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10616 and APPDEFS_LIBS to avoid the need to call pkg-config.
10617 See the pkg-config man page for more details.
10618 " "$LINENO" 5
10619 elif test $pkg_failed = untried; then
10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10623 is in your PATH or set the PKG_CONFIG environment variable to the full
10624 path to pkg-config.
10625
10626 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10627 and APPDEFS_LIBS to avoid the need to call pkg-config.
10628 See the pkg-config man page for more details.
10629
10630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10631 See \`config.log' for more details" "$LINENO" 5; }
10632 else
10633 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10634 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; }
10637 :
10638 fi
10639 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10640
10641 # Check whether --with-appdefaultdir was given.
10642 if test "${with_appdefaultdir+set}" = set; then :
10643 withval=$with_appdefaultdir; appdefaultdir="$withval"
10644 else
10645 appdefaultdir="${xt_appdefaultdir}"
10646 fi
10647
10648
10649
10650
10651 ac_config_files="$ac_config_files Makefile man/Makefile"
10652
10653 cat >confcache <<\_ACEOF
10654 # This file is a shell script that caches the results of configure
10655 # tests run on this system so they can be shared between configure
10656 # scripts and configure runs, see configure's option --config-cache.
10657 # It is not useful on other systems. If it contains results you don't
10658 # want to keep, you may remove or edit it.
10659 #
10660 # config.status only pays attention to the cache file if you give it
10661 # the --recheck option to rerun configure.
10662 #
10663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10665 # following values.
10666
10667 _ACEOF
10668
10669 # The following way of writing the cache mishandles newlines in values,
10670 # but we know of no workaround that is simple, portable, and efficient.
10671 # So, we kill variables containing newlines.
10672 # Ultrix sh set writes to stderr and can't be redirected directly,
10673 # and sets the high bit in the cache file unless we assign to the vars.
10674 (
10675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10676 eval ac_val=\$$ac_var
10677 case $ac_val in #(
10678 *${as_nl}*)
10679 case $ac_var in #(
10680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10682 esac
10683 case $ac_var in #(
10684 _ | IFS | as_nl) ;; #(
10685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10686 *) { eval $ac_var=; unset $ac_var;} ;;
10687 esac ;;
10688 esac
10689 done
10690
10691 (set) 2>&1 |
10692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10693 *${as_nl}ac_space=\ *)
10694 # `set' does not quote correctly, so add quotes: double-quote
10695 # substitution turns \\\\ into \\, and sed turns \\ into \.
10696 sed -n \
10697 "s/'/'\\\\''/g;
10698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10699 ;; #(
10700 *)
10701 # `set' quotes correctly as required by POSIX, so do not add quotes.
10702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10703 ;;
10704 esac |
10705 sort
10706 ) |
10707 sed '
10708 /^ac_cv_env_/b end
10709 t clear
10710 :clear
10711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10712 t end
10713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10714 :end' >>confcache
10715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10716 if test -w "$cache_file"; then
10717 if test "x$cache_file" != "x/dev/null"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10719 $as_echo "$as_me: updating cache $cache_file" >&6;}
10720 if test ! -f "$cache_file" || test -h "$cache_file"; then
10721 cat confcache >"$cache_file"
10722 else
10723 case $cache_file in #(
10724 */* | ?:*)
10725 mv -f confcache "$cache_file"$$ &&
10726 mv -f "$cache_file"$$ "$cache_file" ;; #(
10727 *)
10728 mv -f confcache "$cache_file" ;;
10729 esac
10730 fi
10731 fi
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10734 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10735 fi
10736 fi
10737 rm -f confcache
10738
10739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10740 # Let make expand exec_prefix.
10741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10742
10743 DEFS=-DHAVE_CONFIG_H
10744
10745 ac_libobjs=
10746 ac_ltlibobjs=
10747 U=
10748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10749 # 1. Remove the extension, and $U if already installed.
10750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10753 # will be set to the directory where LIBOBJS objects are built.
10754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10756 done
10757 LIBOBJS=$ac_libobjs
10758
10759 LTLIBOBJS=$ac_ltlibobjs
10760
10761
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10763 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10764 if test -n "$am_sleep_pid"; then
10765 # Hide warnings about reused PIDs.
10766 wait $am_sleep_pid 2>/dev/null
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10769 $as_echo "done" >&6; }
10770 if test -n "$EXEEXT"; then
10771 am__EXEEXT_TRUE=
10772 am__EXEEXT_FALSE='#'
10773 else
10774 am__EXEEXT_TRUE='#'
10775 am__EXEEXT_FALSE=
10776 fi
10777
10778 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10779 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10781 fi
10782 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10783 as_fn_error $? "conditional \"AMDEP\" was never defined.
10784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10785 fi
10786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10787 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10789 fi
10790
10791 : "${CONFIG_STATUS=./config.status}"
10792 ac_write_fail=0
10793 ac_clean_files_save=$ac_clean_files
10794 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10796 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10797 as_write_fail=0
10798 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10799 #! $SHELL
10800 # Generated by $as_me.
10801 # Run this file to recreate the current configuration.
10802 # Compiler output produced by configure, useful for debugging
10803 # configure, is in config.log if it exists.
10804
10805 debug=false
10806 ac_cs_recheck=false
10807 ac_cs_silent=false
10808
10809 SHELL=\${CONFIG_SHELL-$SHELL}
10810 export SHELL
10811 _ASEOF
10812 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10813 ## -------------------- ##
10814 ## M4sh Initialization. ##
10815 ## -------------------- ##
10816
10817 # Be more Bourne compatible
10818 DUALCASE=1; export DUALCASE # for MKS sh
10819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10820 emulate sh
10821 NULLCMD=:
10822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10823 # is contrary to our usage. Disable this feature.
10824 alias -g '${1+"$@"}'='"$@"'
10825 setopt NO_GLOB_SUBST
10826 else
10827 case `(set -o) 2>/dev/null` in #(
10828 *posix*) :
10829 set -o posix ;; #(
10830 *) :
10831 ;;
10832 esac
10833 fi
10834
10835
10836 as_nl='
10837 '
10838 export as_nl
10839 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10840 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10843 # Prefer a ksh shell builtin over an external printf program on Solaris,
10844 # but without wasting forks for bash or zsh.
10845 if test -z "$BASH_VERSION$ZSH_VERSION" \
10846 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10847 as_echo='print -r --'
10848 as_echo_n='print -rn --'
10849 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10850 as_echo='printf %s\n'
10851 as_echo_n='printf %s'
10852 else
10853 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10854 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10855 as_echo_n='/usr/ucb/echo -n'
10856 else
10857 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10858 as_echo_n_body='eval
10859 arg=$1;
10860 case $arg in #(
10861 *"$as_nl"*)
10862 expr "X$arg" : "X\\(.*\\)$as_nl";
10863 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10864 esac;
10865 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10866 '
10867 export as_echo_n_body
10868 as_echo_n='sh -c $as_echo_n_body as_echo'
10869 fi
10870 export as_echo_body
10871 as_echo='sh -c $as_echo_body as_echo'
10872 fi
10873
10874 # The user is always right.
10875 if test "${PATH_SEPARATOR+set}" != set; then
10876 PATH_SEPARATOR=:
10877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10879 PATH_SEPARATOR=';'
10880 }
10881 fi
10882
10883
10884 # IFS
10885 # We need space, tab and new line, in precisely that order. Quoting is
10886 # there to prevent editors from complaining about space-tab.
10887 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10888 # splitting by setting IFS to empty value.)
10889 IFS=" "" $as_nl"
10890
10891 # Find who we are. Look in the path if we contain no directory separator.
10892 as_myself=
10893 case $0 in #((
10894 *[\\/]* ) as_myself=$0 ;;
10895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10901 done
10902 IFS=$as_save_IFS
10903
10904 ;;
10905 esac
10906 # We did not find ourselves, most probably we were run as `sh COMMAND'
10907 # in which case we are not to be found in the path.
10908 if test "x$as_myself" = x; then
10909 as_myself=$0
10910 fi
10911 if test ! -f "$as_myself"; then
10912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10913 exit 1
10914 fi
10915
10916 # Unset variables that we do not need and which cause bugs (e.g. in
10917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10918 # suppresses any "Segmentation fault" message there. '((' could
10919 # trigger a bug in pdksh 5.2.14.
10920 for as_var in BASH_ENV ENV MAIL MAILPATH
10921 do eval test x\${$as_var+set} = xset \
10922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10923 done
10924 PS1='$ '
10925 PS2='> '
10926 PS4='+ '
10927
10928 # NLS nuisances.
10929 LC_ALL=C
10930 export LC_ALL
10931 LANGUAGE=C
10932 export LANGUAGE
10933
10934 # CDPATH.
10935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10936
10937
10938 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10939 # ----------------------------------------
10940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10942 # script with STATUS, using 1 if that was 0.
10943 as_fn_error ()
10944 {
10945 as_status=$1; test $as_status -eq 0 && as_status=1
10946 if test "$4"; then
10947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10949 fi
10950 $as_echo "$as_me: error: $2" >&2
10951 as_fn_exit $as_status
10952 } # as_fn_error
10953
10954
10955 # as_fn_set_status STATUS
10956 # -----------------------
10957 # Set $? to STATUS, without forking.
10958 as_fn_set_status ()
10959 {
10960 return $1
10961 } # as_fn_set_status
10962
10963 # as_fn_exit STATUS
10964 # -----------------
10965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10966 as_fn_exit ()
10967 {
10968 set +e
10969 as_fn_set_status $1
10970 exit $1
10971 } # as_fn_exit
10972
10973 # as_fn_unset VAR
10974 # ---------------
10975 # Portably unset VAR.
10976 as_fn_unset ()
10977 {
10978 { eval $1=; unset $1;}
10979 }
10980 as_unset=as_fn_unset
10981 # as_fn_append VAR VALUE
10982 # ----------------------
10983 # Append the text in VALUE to the end of the definition contained in VAR. Take
10984 # advantage of any shell optimizations that allow amortized linear growth over
10985 # repeated appends, instead of the typical quadratic growth present in naive
10986 # implementations.
10987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10988 eval 'as_fn_append ()
10989 {
10990 eval $1+=\$2
10991 }'
10992 else
10993 as_fn_append ()
10994 {
10995 eval $1=\$$1\$2
10996 }
10997 fi # as_fn_append
10998
10999 # as_fn_arith ARG...
11000 # ------------------
11001 # Perform arithmetic evaluation on the ARGs, and store the result in the
11002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11003 # must be portable across $(()) and expr.
11004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11005 eval 'as_fn_arith ()
11006 {
11007 as_val=$(( $* ))
11008 }'
11009 else
11010 as_fn_arith ()
11011 {
11012 as_val=`expr "$@" || test $? -eq 1`
11013 }
11014 fi # as_fn_arith
11015
11016
11017 if expr a : '\(a\)' >/dev/null 2>&1 &&
11018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11019 as_expr=expr
11020 else
11021 as_expr=false
11022 fi
11023
11024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11025 as_basename=basename
11026 else
11027 as_basename=false
11028 fi
11029
11030 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11031 as_dirname=dirname
11032 else
11033 as_dirname=false
11034 fi
11035
11036 as_me=`$as_basename -- "$0" ||
11037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11038 X"$0" : 'X\(//\)$' \| \
11039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11040 $as_echo X/"$0" |
11041 sed '/^.*\/\([^/][^/]*\)\/*$/{
11042 s//\1/
11043 q
11044 }
11045 /^X\/\(\/\/\)$/{
11046 s//\1/
11047 q
11048 }
11049 /^X\/\(\/\).*/{
11050 s//\1/
11051 q
11052 }
11053 s/.*/./; q'`
11054
11055 # Avoid depending upon Character Ranges.
11056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11059 as_cr_digits='0123456789'
11060 as_cr_alnum=$as_cr_Letters$as_cr_digits
11061
11062 ECHO_C= ECHO_N= ECHO_T=
11063 case `echo -n x` in #(((((
11064 -n*)
11065 case `echo 'xy\c'` in
11066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11067 xy) ECHO_C='\c';;
11068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11069 ECHO_T=' ';;
11070 esac;;
11071 *)
11072 ECHO_N='-n';;
11073 esac
11074
11075 rm -f conf$$ conf$$.exe conf$$.file
11076 if test -d conf$$.dir; then
11077 rm -f conf$$.dir/conf$$.file
11078 else
11079 rm -f conf$$.dir
11080 mkdir conf$$.dir 2>/dev/null
11081 fi
11082 if (echo >conf$$.file) 2>/dev/null; then
11083 if ln -s conf$$.file conf$$ 2>/dev/null; then
11084 as_ln_s='ln -s'
11085 # ... but there are two gotchas:
11086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11088 # In both cases, we have to default to `cp -p'.
11089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11090 as_ln_s='cp -p'
11091 elif ln conf$$.file conf$$ 2>/dev/null; then
11092 as_ln_s=ln
11093 else
11094 as_ln_s='cp -p'
11095 fi
11096 else
11097 as_ln_s='cp -p'
11098 fi
11099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11100 rmdir conf$$.dir 2>/dev/null
11101
11102
11103 # as_fn_mkdir_p
11104 # -------------
11105 # Create "$as_dir" as a directory, including parents if necessary.
11106 as_fn_mkdir_p ()
11107 {
11108
11109 case $as_dir in #(
11110 -*) as_dir=./$as_dir;;
11111 esac
11112 test -d "$as_dir" || eval $as_mkdir_p || {
11113 as_dirs=
11114 while :; do
11115 case $as_dir in #(
11116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11117 *) as_qdir=$as_dir;;
11118 esac
11119 as_dirs="'$as_qdir' $as_dirs"
11120 as_dir=`$as_dirname -- "$as_dir" ||
11121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11122 X"$as_dir" : 'X\(//\)[^/]' \| \
11123 X"$as_dir" : 'X\(//\)$' \| \
11124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11125 $as_echo X"$as_dir" |
11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11127 s//\1/
11128 q
11129 }
11130 /^X\(\/\/\)[^/].*/{
11131 s//\1/
11132 q
11133 }
11134 /^X\(\/\/\)$/{
11135 s//\1/
11136 q
11137 }
11138 /^X\(\/\).*/{
11139 s//\1/
11140 q
11141 }
11142 s/.*/./; q'`
11143 test -d "$as_dir" && break
11144 done
11145 test -z "$as_dirs" || eval "mkdir $as_dirs"
11146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11147
11148
11149 } # as_fn_mkdir_p
11150 if mkdir -p . 2>/dev/null; then
11151 as_mkdir_p='mkdir -p "$as_dir"'
11152 else
11153 test -d ./-p && rmdir ./-p
11154 as_mkdir_p=false
11155 fi
11156
11157 if test -x / >/dev/null 2>&1; then
11158 as_test_x='test -x'
11159 else
11160 if ls -dL / >/dev/null 2>&1; then
11161 as_ls_L_option=L
11162 else
11163 as_ls_L_option=
11164 fi
11165 as_test_x='
11166 eval sh -c '\''
11167 if test -d "$1"; then
11168 test -d "$1/.";
11169 else
11170 case $1 in #(
11171 -*)set "./$1";;
11172 esac;
11173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11174 ???[sx]*):;;*)false;;esac;fi
11175 '\'' sh
11176 '
11177 fi
11178 as_executable_p=$as_test_x
11179
11180 # Sed expression to map a string onto a valid CPP name.
11181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11182
11183 # Sed expression to map a string onto a valid variable name.
11184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11185
11186
11187 exec 6>&1
11188 ## ----------------------------------- ##
11189 ## Main body of $CONFIG_STATUS script. ##
11190 ## ----------------------------------- ##
11191 _ASEOF
11192 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11193
11194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11195 # Save the log message, to keep $0 and so on meaningful, and to
11196 # report actual input values of CONFIG_FILES etc. instead of their
11197 # values after options handling.
11198 ac_log="
11199 This file was extended by xfontsel $as_me 1.0.5, which was
11200 generated by GNU Autoconf 2.68. Invocation command line was
11201
11202 CONFIG_FILES = $CONFIG_FILES
11203 CONFIG_HEADERS = $CONFIG_HEADERS
11204 CONFIG_LINKS = $CONFIG_LINKS
11205 CONFIG_COMMANDS = $CONFIG_COMMANDS
11206 $ $0 $@
11207
11208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11209 "
11210
11211 _ACEOF
11212
11213 case $ac_config_files in *"
11214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11215 esac
11216
11217 case $ac_config_headers in *"
11218 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11219 esac
11220
11221
11222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11223 # Files that config.status was made for.
11224 config_files="$ac_config_files"
11225 config_headers="$ac_config_headers"
11226 config_commands="$ac_config_commands"
11227
11228 _ACEOF
11229
11230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11231 ac_cs_usage="\
11232 \`$as_me' instantiates files and other configuration actions
11233 from templates according to the current configuration. Unless the files
11234 and actions are specified as TAGs, all are instantiated by default.
11235
11236 Usage: $0 [OPTION]... [TAG]...
11237
11238 -h, --help print this help, then exit
11239 -V, --version print version number and configuration settings, then exit
11240 --config print configuration, then exit
11241 -q, --quiet, --silent
11242 do not print progress messages
11243 -d, --debug don't remove temporary files
11244 --recheck update $as_me by reconfiguring in the same conditions
11245 --file=FILE[:TEMPLATE]
11246 instantiate the configuration file FILE
11247 --header=FILE[:TEMPLATE]
11248 instantiate the configuration header FILE
11249
11250 Configuration files:
11251 $config_files
11252
11253 Configuration headers:
11254 $config_headers
11255
11256 Configuration commands:
11257 $config_commands
11258
11259 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11260
11261 _ACEOF
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11264 ac_cs_version="\\
11265 xfontsel config.status 1.0.5
11266 configured by $0, generated by GNU Autoconf 2.68,
11267 with options \\"\$ac_cs_config\\"
11268
11269 Copyright (C) 2010 Free Software Foundation, Inc.
11270 This config.status script is free software; the Free Software Foundation
11271 gives unlimited permission to copy, distribute and modify it."
11272
11273 ac_pwd='$ac_pwd'
11274 srcdir='$srcdir'
11275 INSTALL='$INSTALL'
11276 MKDIR_P='$MKDIR_P'
11277 AWK='$AWK'
11278 test -n "\$AWK" || AWK=awk
11279 _ACEOF
11280
11281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11282 # The default lists apply if the user does not specify any file.
11283 ac_need_defaults=:
11284 while test $# != 0
11285 do
11286 case $1 in
11287 --*=?*)
11288 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11290 ac_shift=:
11291 ;;
11292 --*=)
11293 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11294 ac_optarg=
11295 ac_shift=:
11296 ;;
11297 *)
11298 ac_option=$1
11299 ac_optarg=$2
11300 ac_shift=shift
11301 ;;
11302 esac
11303
11304 case $ac_option in
11305 # Handling of the options.
11306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11307 ac_cs_recheck=: ;;
11308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11309 $as_echo "$ac_cs_version"; exit ;;
11310 --config | --confi | --conf | --con | --co | --c )
11311 $as_echo "$ac_cs_config"; exit ;;
11312 --debug | --debu | --deb | --de | --d | -d )
11313 debug=: ;;
11314 --file | --fil | --fi | --f )
11315 $ac_shift
11316 case $ac_optarg in
11317 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11318 '') as_fn_error $? "missing file argument" ;;
11319 esac
11320 as_fn_append CONFIG_FILES " '$ac_optarg'"
11321 ac_need_defaults=false;;
11322 --header | --heade | --head | --hea )
11323 $ac_shift
11324 case $ac_optarg in
11325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11326 esac
11327 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11328 ac_need_defaults=false;;
11329 --he | --h)
11330 # Conflict between --help and --header
11331 as_fn_error $? "ambiguous option: \`$1'
11332 Try \`$0 --help' for more information.";;
11333 --help | --hel | -h )
11334 $as_echo "$ac_cs_usage"; exit ;;
11335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11337 ac_cs_silent=: ;;
11338
11339 # This is an error.
11340 -*) as_fn_error $? "unrecognized option: \`$1'
11341 Try \`$0 --help' for more information." ;;
11342
11343 *) as_fn_append ac_config_targets " $1"
11344 ac_need_defaults=false ;;
11345
11346 esac
11347 shift
11348 done
11349
11350 ac_configure_extra_args=
11351
11352 if $ac_cs_silent; then
11353 exec 6>/dev/null
11354 ac_configure_extra_args="$ac_configure_extra_args --silent"
11355 fi
11356
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11359 if \$ac_cs_recheck; then
11360 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11361 shift
11362 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11363 CONFIG_SHELL='$SHELL'
11364 export CONFIG_SHELL
11365 exec "\$@"
11366 fi
11367
11368 _ACEOF
11369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11370 exec 5>>config.log
11371 {
11372 echo
11373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11374 ## Running $as_me. ##
11375 _ASBOX
11376 $as_echo "$ac_log"
11377 } >&5
11378
11379 _ACEOF
11380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11381 #
11382 # INIT-COMMANDS
11383 #
11384 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11385
11386 _ACEOF
11387
11388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11389
11390 # Handling of arguments.
11391 for ac_config_target in $ac_config_targets
11392 do
11393 case $ac_config_target in
11394 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11397 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11398
11399 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11400 esac
11401 done
11402
11403
11404 # If the user did not use the arguments to specify the items to instantiate,
11405 # then the envvar interface is used. Set only those that are not.
11406 # We use the long form for the default assignment because of an extremely
11407 # bizarre bug on SunOS 4.1.3.
11408 if $ac_need_defaults; then
11409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11412 fi
11413
11414 # Have a temporary directory for convenience. Make it in the build tree
11415 # simply because there is no reason against having it here, and in addition,
11416 # creating and moving files from /tmp can sometimes cause problems.
11417 # Hook for its removal unless debugging.
11418 # Note that there is a small window in which the directory will not be cleaned:
11419 # after its creation but before its name has been assigned to `$tmp'.
11420 $debug ||
11421 {
11422 tmp= ac_tmp=
11423 trap 'exit_status=$?
11424 : "${ac_tmp:=$tmp}"
11425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11426 ' 0
11427 trap 'as_fn_exit 1' 1 2 13 15
11428 }
11429 # Create a (secure) tmp directory for tmp files.
11430
11431 {
11432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11433 test -d "$tmp"
11434 } ||
11435 {
11436 tmp=./conf$$-$RANDOM
11437 (umask 077 && mkdir "$tmp")
11438 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11439 ac_tmp=$tmp
11440
11441 # Set up the scripts for CONFIG_FILES section.
11442 # No need to generate them if there are no CONFIG_FILES.
11443 # This happens for instance with `./config.status config.h'.
11444 if test -n "$CONFIG_FILES"; then
11445
11446
11447 ac_cr=`echo X | tr X '\015'`
11448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11449 # But we know of no other shell where ac_cr would be empty at this
11450 # point, so we can use a bashism as a fallback.
11451 if test "x$ac_cr" = x; then
11452 eval ac_cr=\$\'\\r\'
11453 fi
11454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11456 ac_cs_awk_cr='\\r'
11457 else
11458 ac_cs_awk_cr=$ac_cr
11459 fi
11460
11461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11462 _ACEOF
11463
11464
11465 {
11466 echo "cat >conf$$subs.awk <<_ACEOF" &&
11467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11468 echo "_ACEOF"
11469 } >conf$$subs.sh ||
11470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11472 ac_delim='%!_!# '
11473 for ac_last_try in false false false false false :; do
11474 . ./conf$$subs.sh ||
11475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11476
11477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11478 if test $ac_delim_n = $ac_delim_num; then
11479 break
11480 elif $ac_last_try; then
11481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11482 else
11483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11484 fi
11485 done
11486 rm -f conf$$subs.sh
11487
11488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11489 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11490 _ACEOF
11491 sed -n '
11492 h
11493 s/^/S["/; s/!.*/"]=/
11494 p
11495 g
11496 s/^[^!]*!//
11497 :repl
11498 t repl
11499 s/'"$ac_delim"'$//
11500 t delim
11501 :nl
11502 h
11503 s/\(.\{148\}\)..*/\1/
11504 t more1
11505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11506 p
11507 n
11508 b repl
11509 :more1
11510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11511 p
11512 g
11513 s/.\{148\}//
11514 t nl
11515 :delim
11516 h
11517 s/\(.\{148\}\)..*/\1/
11518 t more2
11519 s/["\\]/\\&/g; s/^/"/; s/$/"/
11520 p
11521 b
11522 :more2
11523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11524 p
11525 g
11526 s/.\{148\}//
11527 t delim
11528 ' <conf$$subs.awk | sed '
11529 /^[^""]/{
11530 N
11531 s/\n//
11532 }
11533 ' >>$CONFIG_STATUS || ac_write_fail=1
11534 rm -f conf$$subs.awk
11535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11536 _ACAWK
11537 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11538 for (key in S) S_is_set[key] = 1
11539 FS = ""
11540
11541 }
11542 {
11543 line = $ 0
11544 nfields = split(line, field, "@")
11545 substed = 0
11546 len = length(field[1])
11547 for (i = 2; i < nfields; i++) {
11548 key = field[i]
11549 keylen = length(key)
11550 if (S_is_set[key]) {
11551 value = S[key]
11552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11553 len += length(value) + length(field[++i])
11554 substed = 1
11555 } else
11556 len += 1 + keylen
11557 }
11558
11559 print line
11560 }
11561
11562 _ACAWK
11563 _ACEOF
11564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11567 else
11568 cat
11569 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11571 _ACEOF
11572
11573 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11574 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11575 # trailing colons and then remove the whole line if VPATH becomes empty
11576 # (actually we leave an empty line to preserve line numbers).
11577 if test "x$srcdir" = x.; then
11578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11579 h
11580 s///
11581 s/^/:/
11582 s/[ ]*$/:/
11583 s/:\$(srcdir):/:/g
11584 s/:\${srcdir}:/:/g
11585 s/:@srcdir@:/:/g
11586 s/^:*//
11587 s/:*$//
11588 x
11589 s/\(=[ ]*\).*/\1/
11590 G
11591 s/\n//
11592 s/^[^=]*=[ ]*$//
11593 }'
11594 fi
11595
11596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11597 fi # test -n "$CONFIG_FILES"
11598
11599 # Set up the scripts for CONFIG_HEADERS section.
11600 # No need to generate them if there are no CONFIG_HEADERS.
11601 # This happens for instance with `./config.status Makefile'.
11602 if test -n "$CONFIG_HEADERS"; then
11603 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11604 BEGIN {
11605 _ACEOF
11606
11607 # Transform confdefs.h into an awk script `defines.awk', embedded as
11608 # here-document in config.status, that substitutes the proper values into
11609 # config.h.in to produce config.h.
11610
11611 # Create a delimiter string that does not exist in confdefs.h, to ease
11612 # handling of long lines.
11613 ac_delim='%!_!# '
11614 for ac_last_try in false false :; do
11615 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11616 if test -z "$ac_tt"; then
11617 break
11618 elif $ac_last_try; then
11619 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11620 else
11621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11622 fi
11623 done
11624
11625 # For the awk script, D is an array of macro values keyed by name,
11626 # likewise P contains macro parameters if any. Preserve backslash
11627 # newline sequences.
11628
11629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11630 sed -n '
11631 s/.\{148\}/&'"$ac_delim"'/g
11632 t rset
11633 :rset
11634 s/^[ ]*#[ ]*define[ ][ ]*/ /
11635 t def
11636 d
11637 :def
11638 s/\\$//
11639 t bsnl
11640 s/["\\]/\\&/g
11641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11642 D["\1"]=" \3"/p
11643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11644 d
11645 :bsnl
11646 s/["\\]/\\&/g
11647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11648 D["\1"]=" \3\\\\\\n"\\/p
11649 t cont
11650 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11651 t cont
11652 d
11653 :cont
11654 n
11655 s/.\{148\}/&'"$ac_delim"'/g
11656 t clear
11657 :clear
11658 s/\\$//
11659 t bsnlc
11660 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11661 d
11662 :bsnlc
11663 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11664 b cont
11665 ' <confdefs.h | sed '
11666 s/'"$ac_delim"'/"\\\
11667 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11668
11669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11670 for (key in D) D_is_set[key] = 1
11671 FS = ""
11672 }
11673 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11674 line = \$ 0
11675 split(line, arg, " ")
11676 if (arg[1] == "#") {
11677 defundef = arg[2]
11678 mac1 = arg[3]
11679 } else {
11680 defundef = substr(arg[1], 2)
11681 mac1 = arg[2]
11682 }
11683 split(mac1, mac2, "(") #)
11684 macro = mac2[1]
11685 prefix = substr(line, 1, index(line, defundef) - 1)
11686 if (D_is_set[macro]) {
11687 # Preserve the white space surrounding the "#".
11688 print prefix "define", macro P[macro] D[macro]
11689 next
11690 } else {
11691 # Replace #undef with comments. This is necessary, for example,
11692 # in the case of _POSIX_SOURCE, which is predefined and required
11693 # on some systems where configure will not decide to define it.
11694 if (defundef == "undef") {
11695 print "/*", prefix defundef, macro, "*/"
11696 next
11697 }
11698 }
11699 }
11700 { print }
11701 _ACAWK
11702 _ACEOF
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11705 fi # test -n "$CONFIG_HEADERS"
11706
11707
11708 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11709 shift
11710 for ac_tag
11711 do
11712 case $ac_tag in
11713 :[FHLC]) ac_mode=$ac_tag; continue;;
11714 esac
11715 case $ac_mode$ac_tag in
11716 :[FHL]*:*);;
11717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11718 :[FH]-) ac_tag=-:-;;
11719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11720 esac
11721 ac_save_IFS=$IFS
11722 IFS=:
11723 set x $ac_tag
11724 IFS=$ac_save_IFS
11725 shift
11726 ac_file=$1
11727 shift
11728
11729 case $ac_mode in
11730 :L) ac_source=$1;;
11731 :[FH])
11732 ac_file_inputs=
11733 for ac_f
11734 do
11735 case $ac_f in
11736 -) ac_f="$ac_tmp/stdin";;
11737 *) # Look for the file first in the build tree, then in the source tree
11738 # (if the path is not absolute). The absolute path cannot be DOS-style,
11739 # because $ac_f cannot contain `:'.
11740 test -f "$ac_f" ||
11741 case $ac_f in
11742 [\\/$]*) false;;
11743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11744 esac ||
11745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11746 esac
11747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11748 as_fn_append ac_file_inputs " '$ac_f'"
11749 done
11750
11751 # Let's still pretend it is `configure' which instantiates (i.e., don't
11752 # use $as_me), people would be surprised to read:
11753 # /* config.h. Generated by config.status. */
11754 configure_input='Generated from '`
11755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11756 `' by configure.'
11757 if test x"$ac_file" != x-; then
11758 configure_input="$ac_file. $configure_input"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11760 $as_echo "$as_me: creating $ac_file" >&6;}
11761 fi
11762 # Neutralize special characters interpreted by sed in replacement strings.
11763 case $configure_input in #(
11764 *\&* | *\|* | *\\* )
11765 ac_sed_conf_input=`$as_echo "$configure_input" |
11766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11767 *) ac_sed_conf_input=$configure_input;;
11768 esac
11769
11770 case $ac_tag in
11771 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11773 esac
11774 ;;
11775 esac
11776
11777 ac_dir=`$as_dirname -- "$ac_file" ||
11778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11779 X"$ac_file" : 'X\(//\)[^/]' \| \
11780 X"$ac_file" : 'X\(//\)$' \| \
11781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11782 $as_echo X"$ac_file" |
11783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11784 s//\1/
11785 q
11786 }
11787 /^X\(\/\/\)[^/].*/{
11788 s//\1/
11789 q
11790 }
11791 /^X\(\/\/\)$/{
11792 s//\1/
11793 q
11794 }
11795 /^X\(\/\).*/{
11796 s//\1/
11797 q
11798 }
11799 s/.*/./; q'`
11800 as_dir="$ac_dir"; as_fn_mkdir_p
11801 ac_builddir=.
11802
11803 case "$ac_dir" in
11804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11805 *)
11806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11807 # A ".." for each directory in $ac_dir_suffix.
11808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11809 case $ac_top_builddir_sub in
11810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11812 esac ;;
11813 esac
11814 ac_abs_top_builddir=$ac_pwd
11815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11816 # for backward compatibility:
11817 ac_top_builddir=$ac_top_build_prefix
11818
11819 case $srcdir in
11820 .) # We are building in place.
11821 ac_srcdir=.
11822 ac_top_srcdir=$ac_top_builddir_sub
11823 ac_abs_top_srcdir=$ac_pwd ;;
11824 [\\/]* | ?:[\\/]* ) # Absolute name.
11825 ac_srcdir=$srcdir$ac_dir_suffix;
11826 ac_top_srcdir=$srcdir
11827 ac_abs_top_srcdir=$srcdir ;;
11828 *) # Relative name.
11829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11830 ac_top_srcdir=$ac_top_build_prefix$srcdir
11831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11832 esac
11833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11834
11835
11836 case $ac_mode in
11837 :F)
11838 #
11839 # CONFIG_FILE
11840 #
11841
11842 case $INSTALL in
11843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11845 esac
11846 ac_MKDIR_P=$MKDIR_P
11847 case $MKDIR_P in
11848 [\\/$]* | ?:[\\/]* ) ;;
11849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11850 esac
11851 _ACEOF
11852
11853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11854 # If the template does not know about datarootdir, expand it.
11855 # FIXME: This hack should be removed a few years after 2.60.
11856 ac_datarootdir_hack=; ac_datarootdir_seen=
11857 ac_sed_dataroot='
11858 /datarootdir/ {
11859 p
11860 q
11861 }
11862 /@datadir@/p
11863 /@docdir@/p
11864 /@infodir@/p
11865 /@localedir@/p
11866 /@mandir@/p'
11867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11868 *datarootdir*) ac_datarootdir_seen=yes;;
11869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11872 _ACEOF
11873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874 ac_datarootdir_hack='
11875 s&@datadir@&$datadir&g
11876 s&@docdir@&$docdir&g
11877 s&@infodir@&$infodir&g
11878 s&@localedir@&$localedir&g
11879 s&@mandir@&$mandir&g
11880 s&\\\${datarootdir}&$datarootdir&g' ;;
11881 esac
11882 _ACEOF
11883
11884 # Neutralize VPATH when `$srcdir' = `.'.
11885 # Shell code in configure.ac might set extrasub.
11886 # FIXME: do we really want to maintain this feature?
11887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11888 ac_sed_extra="$ac_vpsub
11889 $extrasub
11890 _ACEOF
11891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892 :t
11893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11894 s|@configure_input@|$ac_sed_conf_input|;t t
11895 s&@top_builddir@&$ac_top_builddir_sub&;t t
11896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11897 s&@srcdir@&$ac_srcdir&;t t
11898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11899 s&@top_srcdir@&$ac_top_srcdir&;t t
11900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11901 s&@builddir@&$ac_builddir&;t t
11902 s&@abs_builddir@&$ac_abs_builddir&;t t
11903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11904 s&@INSTALL@&$ac_INSTALL&;t t
11905 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11906 $ac_datarootdir_hack
11907 "
11908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11910
11911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11914 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11916 which seems to be undefined. Please make sure it is defined" >&5
11917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11918 which seems to be undefined. Please make sure it is defined" >&2;}
11919
11920 rm -f "$ac_tmp/stdin"
11921 case $ac_file in
11922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11924 esac \
11925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11926 ;;
11927 :H)
11928 #
11929 # CONFIG_HEADER
11930 #
11931 if test x"$ac_file" != x-; then
11932 {
11933 $as_echo "/* $configure_input */" \
11934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11935 } >"$ac_tmp/config.h" \
11936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11937 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11939 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11940 else
11941 rm -f "$ac_file"
11942 mv "$ac_tmp/config.h" "$ac_file" \
11943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11944 fi
11945 else
11946 $as_echo "/* $configure_input */" \
11947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11948 || as_fn_error $? "could not create -" "$LINENO" 5
11949 fi
11950 # Compute "$ac_file"'s index in $config_headers.
11951 _am_arg="$ac_file"
11952 _am_stamp_count=1
11953 for _am_header in $config_headers :; do
11954 case $_am_header in
11955 $_am_arg | $_am_arg:* )
11956 break ;;
11957 * )
11958 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11959 esac
11960 done
11961 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11962 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11963 X"$_am_arg" : 'X\(//\)[^/]' \| \
11964 X"$_am_arg" : 'X\(//\)$' \| \
11965 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11966 $as_echo X"$_am_arg" |
11967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11968 s//\1/
11969 q
11970 }
11971 /^X\(\/\/\)[^/].*/{
11972 s//\1/
11973 q
11974 }
11975 /^X\(\/\/\)$/{
11976 s//\1/
11977 q
11978 }
11979 /^X\(\/\).*/{
11980 s//\1/
11981 q
11982 }
11983 s/.*/./; q'`/stamp-h$_am_stamp_count
11984 ;;
11985
11986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11987 $as_echo "$as_me: executing $ac_file commands" >&6;}
11988 ;;
11989 esac
11990
11991
11992 case $ac_file$ac_mode in
11993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11994 # Older Autoconf quotes --file arguments for eval, but not when files
11995 # are listed without --file. Let's play safe and only enable the eval
11996 # if we detect the quoting.
11997 case $CONFIG_FILES in
11998 *\'*) eval set x "$CONFIG_FILES" ;;
11999 *) set x $CONFIG_FILES ;;
12000 esac
12001 shift
12002 for mf
12003 do
12004 # Strip MF so we end up with the name of the file.
12005 mf=`echo "$mf" | sed -e 's/:.*$//'`
12006 # Check whether this is an Automake generated Makefile or not.
12007 # We used to match only the files named 'Makefile.in', but
12008 # some people rename them; so instead we look at the file content.
12009 # Grep'ing the first line is not enough: some people post-process
12010 # each Makefile.in and add a new line on top of each file to say so.
12011 # Grep'ing the whole file is not good either: AIX grep has a line
12012 # limit of 2048, but all sed's we know have understand at least 4000.
12013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12014 dirpart=`$as_dirname -- "$mf" ||
12015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12016 X"$mf" : 'X\(//\)[^/]' \| \
12017 X"$mf" : 'X\(//\)$' \| \
12018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12019 $as_echo X"$mf" |
12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12021 s//\1/
12022 q
12023 }
12024 /^X\(\/\/\)[^/].*/{
12025 s//\1/
12026 q
12027 }
12028 /^X\(\/\/\)$/{
12029 s//\1/
12030 q
12031 }
12032 /^X\(\/\).*/{
12033 s//\1/
12034 q
12035 }
12036 s/.*/./; q'`
12037 else
12038 continue
12039 fi
12040 # Extract the definition of DEPDIR, am__include, and am__quote
12041 # from the Makefile without running 'make'.
12042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12043 test -z "$DEPDIR" && continue
12044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12045 test -z "$am__include" && continue
12046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12047 # Find all dependency output files, they are included files with
12048 # $(DEPDIR) in their names. We invoke sed twice because it is the
12049 # simplest approach to changing $(DEPDIR) to its actual value in the
12050 # expansion.
12051 for file in `sed -n "
12052 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12053 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12054 # Make sure the directory exists.
12055 test -f "$dirpart/$file" && continue
12056 fdir=`$as_dirname -- "$file" ||
12057 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12058 X"$file" : 'X\(//\)[^/]' \| \
12059 X"$file" : 'X\(//\)$' \| \
12060 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12061 $as_echo X"$file" |
12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)[^/].*/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\/\)$/{
12071 s//\1/
12072 q
12073 }
12074 /^X\(\/\).*/{
12075 s//\1/
12076 q
12077 }
12078 s/.*/./; q'`
12079 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12080 # echo "creating $dirpart/$file"
12081 echo '# dummy' > "$dirpart/$file"
12082 done
12083 done
12084 }
12085 ;;
12086
12087 esac
12088 done # for ac_tag
12089
12090
12091 as_fn_exit 0
12092 _ACEOF
12093 ac_clean_files=$ac_clean_files_save
12094
12095 test $ac_write_fail = 0 ||
12096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12097
12098
12099 # configure is writing to config.log, and then calls config.status.
12100 # config.status does its own redirection, appending to config.log.
12101 # Unfortunately, on DOS this fails, as config.log is still kept open
12102 # by configure, so config.status won't be able to write to it; its
12103 # output is simply discarded. So we exec the FD to /dev/null,
12104 # effectively closing config.log, so it can be properly (re)opened and
12105 # appended to by config.status. When coming back to configure, we
12106 # need to make the FD available again.
12107 if test "$no_create" != yes; then
12108 ac_cs_success=:
12109 ac_config_status_args=
12110 test "$silent" = yes &&
12111 ac_config_status_args="$ac_config_status_args --quiet"
12112 exec 5>/dev/null
12113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12114 exec 5>>config.log
12115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12116 # would make configure fail if this is the last instruction.
12117 $ac_cs_success || as_fn_exit 1
12118 fi
12119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12122 fi
12123
12124