configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xcalc 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='xcalc'
563 PACKAGE_TARNAME='xcalc'
564 PACKAGE_VERSION='1.0.5'
565 PACKAGE_STRING='xcalc 1.0.5'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 appdefaultdir
611 APPDEFS_LIBS
612 APPDEFS_CFLAGS
613 XCALC_LIBS
614 XCALC_CFLAGS
615 AM_BACKSLASH
616 AM_DEFAULT_VERBOSITY
617 MAN_SUBSTS
618 XORG_MAN_PAGE
619 ADMIN_MAN_DIR
620 DRIVER_MAN_DIR
621 MISC_MAN_DIR
622 FILE_MAN_DIR
623 LIB_MAN_DIR
624 APP_MAN_DIR
625 ADMIN_MAN_SUFFIX
626 DRIVER_MAN_SUFFIX
627 MISC_MAN_SUFFIX
628 FILE_MAN_SUFFIX
629 LIB_MAN_SUFFIX
630 APP_MAN_SUFFIX
631 SED
632 host_os
633 host_vendor
634 host_cpu
635 host
636 build_os
637 build_vendor
638 build_cpu
639 build
640 INSTALL_CMD
641 PKG_CONFIG
642 CHANGELOG_CMD
643 STRICT_CFLAGS
644 CWARNFLAGS
645 BASE_CFLAGS
646 EGREP
647 GREP
648 CPP
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 am__nodep
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
674 AWK
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_selective_werror
736 enable_strict_compilation
737 enable_silent_rules
738 with_appdefaultdir
739 '
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 PKG_CONFIG
750 XCALC_CFLAGS
751 XCALC_LIBS
752 APPDEFS_CFLAGS
753 APPDEFS_LIBS'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *=) ac_optarg= ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868 "enable_$ac_useropt"
869 "*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=no ;;
874
875 -docdir | --docdir | --docdi | --doc | --do)
876 ac_prev=docdir ;;
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 docdir=$ac_optarg ;;
879
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 ac_prev=dvidir ;;
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 dvidir=$ac_optarg ;;
884
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=\$ac_optarg ;;
900
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
909
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
912 with_gas=yes ;;
913
914 -help | --help | --hel | --he | -h)
915 ac_init_help=long ;;
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
920
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
925
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 ac_prev=htmldir ;;
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 | --ht=*)
930 htmldir=$ac_optarg ;;
931
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
938
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 ac_prev=infodir ;;
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
943
944 -libdir | --libdir | --libdi | --libd)
945 ac_prev=libdir ;;
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 libdir=$ac_optarg ;;
948
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
955
956 -localedir | --localedir | --localedi | --localed | --locale)
957 ac_prev=localedir ;;
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
960
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
967
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 ac_prev=mandir ;;
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 mandir=$ac_optarg ;;
972
973 -nfp | --nfp | --nf)
974 # Obsolete; use --without-fp.
975 with_fp=no ;;
976
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
979 no_create=yes ;;
980
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 no_recursion=yes ;;
984
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
993
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 ac_prev=prefix ;;
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 prefix=$ac_optarg ;;
998
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1005
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1012
1013 -program-transform-name | --program-transform-name \
1014 | --program-transform-nam | --program-transform-na \
1015 | --program-transform-n | --program-transform- \
1016 | --program-transform | --program-transfor \
1017 | --program-transfo | --program-transf \
1018 | --program-trans | --program-tran \
1019 | --progr-tra | --program-tr | --program-t)
1020 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1029
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 ac_prev=pdfdir ;;
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1034
1035 -psdir | --psdir | --psdi | --psd | --ps)
1036 ac_prev=psdir ;;
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 psdir=$ac_optarg ;;
1039
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 silent=yes ;;
1043
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 ac_prev=sbindir ;;
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 | --sbi=* | --sb=*)
1048 sbindir=$ac_optarg ;;
1049
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1053 | --sha | --sh)
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 | --sha=* | --sh=*)
1059 sharedstatedir=$ac_optarg ;;
1060
1061 -site | --site | --sit)
1062 ac_prev=site ;;
1063 -site=* | --site=* | --sit=*)
1064 site=$ac_optarg ;;
1065
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 ac_prev=srcdir ;;
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1070
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1077
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1082
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 verbose=yes ;;
1085
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1088
1089 -with-* | --with-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid package name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval with_$ac_useropt=\$ac_optarg ;;
1104
1105 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=no ;;
1120
1121 --x)
1122 # Obsolete; use --with-x.
1123 with_x=yes ;;
1124
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1131
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1138
1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1141 ;;
1142
1143 *=*)
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 esac
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1152
1153 *)
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 ;;
1160
1161 esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error $? "missing argument to $ac_option"
1167 fi
1168
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1171 no) ;;
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1175 fi
1176
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1182 do
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes
1213 fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)[^/].*/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\).*/{
1253 s//\1/
1254 q
1255 }
1256 s/.*/./; q'`
1257 srcdir=$ac_confdir
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 srcdir=..
1260 fi
1261 else
1262 ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 fi
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1275 fi
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1288
1289 #
1290 # Report the --help message.
1291 #
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296 \`configure' configures xcalc 1.0.5 to adapt to many kinds of systems.
1297
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1302
1303 Defaults for the options are specified in brackets.
1304
1305 Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking ...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1321
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1326
1327 For better control, use the options below.
1328
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/xcalc]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1349 _ACEOF
1350
1351 cat <<\_ACEOF
1352
1353 Program names:
1354 --program-prefix=PREFIX prepend PREFIX to installed program names
1355 --program-suffix=SUFFIX append SUFFIX to installed program names
1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of xcalc 1.0.5:";;
1367 esac
1368 cat <<\_ACEOF
1369
1370 Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
1378 --disable-selective-werror
1379 Turn off selective compiler errors. (default:
1380 enabled)
1381 --enable-strict-compilation
1382 Enable all warnings from compiler and make them
1383 errors (default: disabled)
1384 --enable-silent-rules less verbose build output (undo: `make V=1')
1385 --disable-silent-rules verbose build output (undo: `make V=0')
1386
1387 Optional Packages:
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-appdefaultdir=<pathname>
1391 specify directory for app-defaults files (default is
1392 autodetected)
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 PKG_CONFIG path to pkg-config utility
1404 XCALC_CFLAGS
1405 C compiler flags for XCALC, overriding pkg-config
1406 XCALC_LIBS linker flags for XCALC, overriding pkg-config
1407 APPDEFS_CFLAGS
1408 C compiler flags for APPDEFS, overriding pkg-config
1409 APPDEFS_LIBS
1410 linker flags for APPDEFS, overriding pkg-config
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 xcalc configure 1.0.5
1479 generated by GNU Autoconf 2.68
1480
1481 Copyright (C) 2010 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524 fi
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 # accordingly.
1534 ac_fn_c_check_decl ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1543 else
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 $4
1547 int
1548 main ()
1549 {
1550 #ifndef $as_decl_name
1551 #ifdef __cplusplus
1552 (void) $as_decl_use;
1553 #else
1554 (void) $as_decl_name;
1555 #endif
1556 #endif
1557
1558 ;
1559 return 0;
1560 }
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564 else
1565 eval "$3=no"
1566 fi
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574 } # ac_fn_c_check_decl
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=$ac_status
1648 fi
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_run
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1734
1735 It was created by xcalc $as_me 1.0.5, which was
1736 generated by GNU Autoconf 2.68. Invocation command line was
1737
1738 $ $0 $@
1739
1740 _ACEOF
1741 exec 5>>config.log
1742 {
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1747
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764
1765 _ASUNAME
1766
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 $as_echo "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 $as_echo "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 $as_echo "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 $as_echo "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 $as_echo "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 $as_echo "$as_me: caught signal $ac_signal"
1922 $as_echo "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 $as_echo "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 _ACEOF
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 _ACEOF
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_URL "$PACKAGE_URL"
1962 _ACEOF
1963
1964
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1967 ac_site_file1=NONE
1968 ac_site_file2=NONE
1969 if test -n "$CONFIG_SITE"; then
1970 # We do not want a PATH search for config.site.
1971 case $CONFIG_SITE in #((
1972 -*) ac_site_file1=./$CONFIG_SITE;;
1973 */*) ac_site_file1=$CONFIG_SITE;;
1974 *) ac_site_file1=./$CONFIG_SITE;;
1975 esac
1976 elif test "x$prefix" != xNONE; then
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
1979 else
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
1982 fi
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984 do
1985 test "x$ac_site_file" = xNONE && continue
1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1990 . "$ac_site_file" \
1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993 as_fn_error $? "failed to load site script $ac_site_file
1994 See \`config.log' for more details" "$LINENO" 5; }
1995 fi
1996 done
1997
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special files
2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2008 fi
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2013 fi
2014
2015 # Check that the precious variables saved in the cache have kept the same
2016 # value.
2017 ac_cache_corrupted=false
2018 for ac_var in $ac_precious_vars; do
2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020 eval ac_new_set=\$ac_env_${ac_var}_set
2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022 eval ac_new_val=\$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2024 set,)
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2028 ,set)
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted=: ;;
2032 ,);;
2033 *)
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w=`echo x $ac_old_val`
2037 ac_new_val_w=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted=:
2042 else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\$ac_old_val
2046 fi
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 fi;;
2052 esac
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2055 case $ac_new_val in
2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg=$ac_var=$ac_new_val ;;
2058 esac
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062 esac
2063 fi
2064 done
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071 fi
2072 ## -------------------- ##
2073 ## Main body of script. ##
2074 ## -------------------- ##
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083
2084 ac_config_headers="$ac_config_headers config.h"
2085
2086
2087 # Initialize Automake
2088 am__api_version='1.11'
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 # Just in case
2215 sleep 1
2216 echo timestamp > conftest.file
2217 # Reject unsafe characters in $srcdir or the absolute working directory
2218 # name. Accept space and tab only in the latter.
2219 am_lf='
2220 '
2221 case `pwd` in
2222 *[\\\"\#\$\&\'\`$am_lf]*)
2223 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2224 esac
2225 case $srcdir in
2226 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2227 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2228 esac
2229
2230 # Do `set' in a subshell so we don't clobber the current shell's
2231 # arguments. Must try -L first in case configure is actually a
2232 # symlink; some systems play weird games with the mod time of symlinks
2233 # (eg FreeBSD returns the mod time of the symlink's containing
2234 # directory).
2235 if (
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 rm -f conftest.file
2242 if test "$*" != "X $srcdir/configure conftest.file" \
2243 && test "$*" != "X conftest.file $srcdir/configure"; then
2244
2245 # If neither matched, then we have a broken ls. This can happen
2246 # if, for instance, CONFIG_SHELL is bash and it inherits a
2247 # broken ls alias from the environment. This has actually
2248 # happened. Such a system could not be considered "sane".
2249 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2250 alias in your environment" "$LINENO" 5
2251 fi
2252
2253 test "$2" = conftest.file
2254 )
2255 then
2256 # Ok.
2257 :
2258 else
2259 as_fn_error $? "newly created file is older than distributed files!
2260 Check your system clock" "$LINENO" 5
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2263 $as_echo "yes" >&6; }
2264 test "$program_prefix" != NONE &&
2265 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2266 # Use a double $ so make ignores it.
2267 test "$program_suffix" != NONE &&
2268 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2269 # Double any \ or $.
2270 # By default was `s,x,x', remove it if useless.
2271 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2272 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2273
2274 # expand $ac_aux_dir to an absolute path
2275 am_aux_dir=`cd $ac_aux_dir && pwd`
2276
2277 if test x"${MISSING+set}" != xset; then
2278 case $am_aux_dir in
2279 *\ * | *\ *)
2280 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2281 *)
2282 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2283 esac
2284 fi
2285 # Use eval to expand $SHELL
2286 if eval "$MISSING --run true"; then
2287 am_missing_run="$MISSING --run "
2288 else
2289 am_missing_run=
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2291 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2292 fi
2293
2294 if test x"${install_sh}" != xset; then
2295 case $am_aux_dir in
2296 *\ * | *\ *)
2297 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2298 *)
2299 install_sh="\${SHELL} $am_aux_dir/install-sh"
2300 esac
2301 fi
2302
2303 # Installed binaries are usually stripped using `strip' when the user
2304 # run `make install-strip'. However `strip' might not be the right
2305 # tool to use in cross-compilation environments, therefore Automake
2306 # will honor the `STRIP' environment variable to overrule this program.
2307 if test "$cross_compiling" != no; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}strip; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if ${ac_cv_prog_STRIP+:} false; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$STRIP"; then
2317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 STRIP=$ac_cv_prog_STRIP
2337 if test -n "$STRIP"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2339 $as_echo "$STRIP" >&6; }
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345
2346 fi
2347 if test -z "$ac_cv_prog_STRIP"; then
2348 ac_ct_STRIP=$STRIP
2349 # Extract the first word of "strip", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$ac_ct_STRIP"; then
2357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_STRIP="strip"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377 if test -n "$ac_ct_STRIP"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2379 $as_echo "$ac_ct_STRIP" >&6; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385 if test "x$ac_ct_STRIP" = x; then
2386 STRIP=":"
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2404 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2405 if test -z "$MKDIR_P"; then
2406 if ${ac_cv_path_mkdir+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_prog in mkdir gmkdir; do
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2417 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2418 'mkdir (GNU coreutils) '* | \
2419 'mkdir (coreutils) '* | \
2420 'mkdir (fileutils) '4.1*)
2421 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2422 break 3;;
2423 esac
2424 done
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430
2431 test -d ./--version && rmdir ./--version
2432 if test "${ac_cv_path_mkdir+set}" = set; then
2433 MKDIR_P="$ac_cv_path_mkdir -p"
2434 else
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for MKDIR_P within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 MKDIR_P="$ac_install_sh -d"
2440 fi
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2443 $as_echo "$MKDIR_P" >&6; }
2444
2445 mkdir_p="$MKDIR_P"
2446 case $mkdir_p in
2447 [\\/$]* | ?:[\\/]*) ;;
2448 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2449 esac
2450
2451 for ac_prog in gawk mawk nawk awk
2452 do
2453 # Extract the first word of "$ac_prog", so it can be a program name with args.
2454 set dummy $ac_prog; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_AWK+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$AWK"; then
2461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_AWK="$ac_prog"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 AWK=$ac_cv_prog_AWK
2481 if test -n "$AWK"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2483 $as_echo "$AWK" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489
2490 test -n "$AWK" && break
2491 done
2492
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2494 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2495 set x ${MAKE-make}
2496 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2497 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat >conftest.make <<\_ACEOF
2501 SHELL = /bin/sh
2502 all:
2503 @echo '@@@%%%=$(MAKE)=@@@%%%'
2504 _ACEOF
2505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2507 *@@@%%%=?*=@@@%%%*)
2508 eval ac_cv_prog_make_${ac_make}_set=yes;;
2509 *)
2510 eval ac_cv_prog_make_${ac_make}_set=no;;
2511 esac
2512 rm -f conftest.make
2513 fi
2514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2516 $as_echo "yes" >&6; }
2517 SET_MAKE=
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2521 SET_MAKE="MAKE=${MAKE-make}"
2522 fi
2523
2524 rm -rf .tst 2>/dev/null
2525 mkdir .tst 2>/dev/null
2526 if test -d .tst; then
2527 am__leading_dot=.
2528 else
2529 am__leading_dot=_
2530 fi
2531 rmdir .tst 2>/dev/null
2532
2533 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2534 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2535 # is not polluted with repeated "-I."
2536 am__isrc=' -I$(srcdir)'
2537 # test to see if srcdir already configured
2538 if test -f $srcdir/config.status; then
2539 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2540 fi
2541 fi
2542
2543 # test whether we have cygpath
2544 if test -z "$CYGPATH_W"; then
2545 if (cygpath --version) >/dev/null 2>/dev/null; then
2546 CYGPATH_W='cygpath -w'
2547 else
2548 CYGPATH_W=echo
2549 fi
2550 fi
2551
2552
2553 # Define the identity of the package.
2554 PACKAGE='xcalc'
2555 VERSION='1.0.5'
2556
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE "$PACKAGE"
2560 _ACEOF
2561
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define VERSION "$VERSION"
2565 _ACEOF
2566
2567 # Some tools Automake needs.
2568
2569 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2570
2571
2572 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2573
2574
2575 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2576
2577
2578 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2579
2580
2581 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2582
2583 # We need awk for the "check" target. The system "awk" is bad on
2584 # some platforms.
2585 # Always define AMTAR for backward compatibility.
2586
2587 AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2597 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2598 # Check whether --enable-maintainer-mode was given.
2599 if test "${enable_maintainer_mode+set}" = set; then :
2600 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2601 else
2602 USE_MAINTAINER_MODE=no
2603 fi
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2606 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2607 if test $USE_MAINTAINER_MODE = yes; then
2608 MAINTAINER_MODE_TRUE=
2609 MAINTAINER_MODE_FALSE='#'
2610 else
2611 MAINTAINER_MODE_TRUE='#'
2612 MAINTAINER_MODE_FALSE=
2613 fi
2614
2615 MAINT=$MAINTAINER_MODE_TRUE
2616
2617
2618
2619 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631 DEPDIR="${am__leading_dot}deps"
2632
2633 ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2638 am__doit:
2639 @echo this is the am__doit target
2640 .PHONY: am__doit
2641 END
2642 # If we don't find an include directive, just comment out the code.
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2644 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2645 am__include="#"
2646 am__quote=
2647 _am_result=none
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # Ignore all kinds of additional output from `make'.
2651 case `$am_make -s -f confmf 2> /dev/null` in #(
2652 *the\ am__doit\ target*)
2653 am__include=include
2654 am__quote=
2655 _am_result=GNU
2656 ;;
2657 esac
2658 # Now try BSD make style include.
2659 if test "$am__include" = "#"; then
2660 echo '.include "confinc"' > confmf
2661 case `$am_make -s -f confmf 2> /dev/null` in #(
2662 *the\ am__doit\ target*)
2663 am__include=.include
2664 am__quote="\""
2665 _am_result=BSD
2666 ;;
2667 esac
2668 fi
2669
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2672 $as_echo "$_am_result" >&6; }
2673 rm -f confinc confmf
2674
2675 # Check whether --enable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then :
2677 enableval=$enable_dependency_tracking;
2678 fi
2679
2680 if test "x$enable_dependency_tracking" != xno; then
2681 am_depcomp="$ac_aux_dir/depcomp"
2682 AMDEPBACKSLASH='\'
2683 am__nodep='_no'
2684 fi
2685 if test "x$enable_dependency_tracking" != xno; then
2686 AMDEP_TRUE=
2687 AMDEP_FALSE='#'
2688 else
2689 AMDEP_TRUE='#'
2690 AMDEP_FALSE=
2691 fi
2692
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 if test -z "$ac_cv_prog_CC"; then
2739 ac_ct_CC=$CC
2740 # Extract the first word of "gcc", so it can be a program name with args.
2741 set dummy gcc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776 if test "x$ac_ct_CC" = x; then
2777 CC=""
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned=yes ;;
2784 esac
2785 CC=$ac_ct_CC
2786 fi
2787 else
2788 CC="$ac_cv_prog_CC"
2789 fi
2790
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}cc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="${ac_tool_prefix}cc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 fi
2832 if test -z "$CC"; then
2833 # Extract the first word of "cc", so it can be a program name with args.
2834 set dummy cc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 ac_prog_rejected=no
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852 ac_prog_rejected=yes
2853 continue
2854 fi
2855 ac_cv_prog_CC="cc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 if test $ac_prog_rejected = yes; then
2864 # We found a bogon in the path, so make sure we never use it.
2865 set dummy $ac_cv_prog_CC
2866 shift
2867 if test $# != 0; then
2868 # We chose a different compiler from the bogus one.
2869 # However, it has the same basename, so the bogon will be chosen
2870 # first if we set CC to just the basename; use the full file name.
2871 shift
2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2873 fi
2874 fi
2875 fi
2876 fi
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887 fi
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in cl.exe
2891 do
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 test -n "$CC" && break
2930 done
2931 fi
2932 if test -z "$CC"; then
2933 ac_ct_CC=$CC
2934 for ac_prog in cl.exe
2935 do
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_ac_ct_CC="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966 $as_echo "$ac_ct_CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 fi
2971
2972
2973 test -n "$ac_ct_CC" && break
2974 done
2975
2976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 CC=$ac_ct_CC
2986 fi
2987 fi
2988
2989 fi
2990
2991
2992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details" "$LINENO" 5; }
2996
2997 # Provide some information about the compiler.
2998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2999 set X $ac_compile
3000 ac_compiler=$2
3001 for ac_option in --version -v -V -qversion; do
3002 { { ac_try="$ac_compiler $ac_option >&5"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 ac_status=$?
3011 if test -s conftest.err; then
3012 sed '10a\
3013 ... rest of stderr output deleted ...
3014 10q' conftest.err >conftest.er1
3015 cat conftest.er1 >&5
3016 fi
3017 rm -f conftest.er1 conftest.err
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3020 done
3021
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 ac_clean_files_save=$ac_clean_files
3034 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035 # Try to create an executable without -o first, disregard a.out.
3036 # It will help us diagnose broken compilers, and finding out an intuition
3037 # of exeext.
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
3040 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041
3042 # The possible output files:
3043 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3044
3045 ac_rmfiles=
3046 for ac_file in $ac_files
3047 do
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3051 esac
3052 done
3053 rm -f $ac_rmfiles
3054
3055 if { { ac_try="$ac_link_default"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link_default") 2>&5
3063 ac_status=$?
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3069 # so that the user can short-circuit this test for compilers unknown to
3070 # Autoconf.
3071 for ac_file in $ac_files ''
3072 do
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3076 ;;
3077 [ab].out )
3078 # We found the default executable, but exeext='' is most
3079 # certainly right.
3080 break;;
3081 *.* )
3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083 then :; else
3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 fi
3086 # We set ac_cv_exeext here because the later test for it is not
3087 # safe: cross compilers may not add the suffix if given an `-o'
3088 # argument, so we may need to know it at that point already.
3089 # Even if this section looks crufty: it has the advantage of
3090 # actually working.
3091 break;;
3092 * )
3093 break;;
3094 esac
3095 done
3096 test "$ac_cv_exeext" = no && ac_cv_exeext=
3097
3098 else
3099 ac_file=''
3100 fi
3101 if test -z "$ac_file"; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error 77 "C compiler cannot create executables
3110 See \`config.log' for more details" "$LINENO" 5; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116 $as_echo_n "checking for C compiler default output file name... " >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 ac_exeext=$ac_cv_exeext
3120
3121 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124 $as_echo_n "checking for suffix of executables... " >&6; }
3125 if { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3139 # `rm'.
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 break;;
3146 * ) break;;
3147 esac
3148 done
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details" "$LINENO" 5; }
3154 fi
3155 rm -f conftest conftest$ac_cv_exeext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157 $as_echo "$ac_cv_exeext" >&6; }
3158
3159 rm -f conftest.$ac_ext
3160 EXEEXT=$ac_cv_exeext
3161 ac_exeext=$EXEEXT
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <stdio.h>
3165 int
3166 main ()
3167 {
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3170
3171 ;
3172 return 0;
3173 }
3174 _ACEOF
3175 ac_clean_files="$ac_clean_files conftest.out"
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 if test "$cross_compiling" != yes; then
3181 { { ac_try="$ac_link"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 fi
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217 $as_echo "$cross_compiling" >&6; }
3218
3219 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if ${ac_cv_objext+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256 done
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details" "$LINENO" 5; }
3265 fi
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3271 ac_objext=$OBJEXT
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274 if ${ac_cv_c_compiler_gnu+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283 #ifndef __GNUC__
3284 choke me
3285 #endif
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_compiler_gnu=yes
3293 else
3294 ac_compiler_gnu=no
3295 fi
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3298
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3303 GCC=yes
3304 else
3305 GCC=
3306 fi
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3311 if ${ac_cv_prog_cc_g+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3316 ac_cv_prog_cc_g=no
3317 CFLAGS="-g"
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_prog_cc_g=yes
3331 else
3332 CFLAGS=""
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335
3336 int
3337 main ()
3338 {
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 if ac_fn_c_try_compile "$LINENO"; then :
3345
3346 else
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 CFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_prog_cc_g=yes
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371 $as_echo "$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3379 fi
3380 else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3385 fi
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389 if ${ac_cv_prog_cc_c89+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_cv_prog_cc_c89=no
3393 ac_save_CC=$CC
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdarg.h>
3397 #include <stdio.h>
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3404 char **p;
3405 int i;
3406 {
3407 return p[i];
3408 }
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3410 {
3411 char *s;
3412 va_list v;
3413 va_start (v,p);
3414 s = g (p, va_arg (v,int));
3415 va_end (v);
3416 return s;
3417 }
3418
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427
3428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429 inside strings and character constants. */
3430 #define FOO(x) 'x'
3431 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3432
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3439 int
3440 main ()
3441 {
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3449 do
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_cv_prog_cc_c89=$ac_arg
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x$ac_cv_prog_cc_c89" != "xno" && break
3456 done
3457 rm -f conftest.$ac_ext
3458 CC=$ac_save_CC
3459
3460 fi
3461 # AC_CACHE_VAL
3462 case "x$ac_cv_prog_cc_c89" in
3463 x)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3465 $as_echo "none needed" >&6; } ;;
3466 xno)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3468 $as_echo "unsupported" >&6; } ;;
3469 *)
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 esac
3474 if test "x$ac_cv_prog_cc_c89" != xno; then :
3475
3476 fi
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484 depcc="$CC" am_compiler_list=
3485
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3487 $as_echo_n "checking dependency style of $depcc... " >&6; }
3488 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3492 # We make a subdir and do the tests there. Otherwise we can end up
3493 # making bogus files that we don't know about and never remove. For
3494 # instance it was reported that on HP-UX the gcc test will end up
3495 # making a dummy file named `D' -- because `-MD' means `put the output
3496 # in D'.
3497 rm -rf conftest.dir
3498 mkdir conftest.dir
3499 # Copy depcomp to subdir because otherwise we won't find it if we're
3500 # using a relative directory.
3501 cp "$am_depcomp" conftest.dir
3502 cd conftest.dir
3503 # We will build objects and dependencies in a subdirectory because
3504 # it helps to detect inapplicable dependency modes. For instance
3505 # both Tru64's cc and ICC support -MD to output dependencies as a
3506 # side effect of compilation, but ICC will put the dependencies in
3507 # the current directory while Tru64 will put them in the object
3508 # directory.
3509 mkdir sub
3510
3511 am_cv_CC_dependencies_compiler_type=none
3512 if test "$am_compiler_list" = ""; then
3513 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3514 fi
3515 am__universal=false
3516 case " $depcc " in #(
3517 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3518 esac
3519
3520 for depmode in $am_compiler_list; do
3521 # Setup a source with many dependencies, because some compilers
3522 # like to wrap large dependency lists on column 80 (with \), and
3523 # we should not choose a depcomp mode which is confused by this.
3524 #
3525 # We need to recreate these files for each test, as the compiler may
3526 # overwrite some of them when testing with obscure command lines.
3527 # This happens at least with the AIX C compiler.
3528 : > sub/conftest.c
3529 for i in 1 2 3 4 5 6; do
3530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3532 # Solaris 8's {/usr,}/bin/sh.
3533 touch sub/conftst$i.h
3534 done
3535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536
3537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3538 # mode. It turns out that the SunPro C++ compiler does not properly
3539 # handle `-M -o', and we need to detect this. Also, some Intel
3540 # versions had trouble with output in subdirs
3541 am__obj=sub/conftest.${OBJEXT-o}
3542 am__minus_obj="-o $am__obj"
3543 case $depmode in
3544 gcc)
3545 # This depmode causes a compiler race in universal mode.
3546 test "$am__universal" = false || continue
3547 ;;
3548 nosideeffect)
3549 # after this tag, mechanisms are not by side-effect, so they'll
3550 # only be used when explicitly requested
3551 if test "x$enable_dependency_tracking" = xyes; then
3552 continue
3553 else
3554 break
3555 fi
3556 ;;
3557 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3558 # This compiler won't grok `-c -o', but also, the minuso test has
3559 # not run yet. These depmodes are late enough in the game, and
3560 # so weak that their functioning should not be impacted.
3561 am__obj=conftest.${OBJEXT-o}
3562 am__minus_obj=
3563 ;;
3564 none) break ;;
3565 esac
3566 if depmode=$depmode \
3567 source=sub/conftest.c object=$am__obj \
3568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3570 >/dev/null 2>conftest.err &&
3571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3575 # icc doesn't choke on unknown options, it will just issue warnings
3576 # or remarks (even with -Werror). So we grep stderr for any message
3577 # that says an option was ignored or not supported.
3578 # When given -MP, icc 7.0 and 7.1 complain thusly:
3579 # icc: Command line warning: ignoring option '-M'; no argument required
3580 # The diagnosis changed in icc 8.0:
3581 # icc: Command line remark: option '-MP' not supported
3582 if (grep 'ignoring option' conftest.err ||
3583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3584 am_cv_CC_dependencies_compiler_type=$depmode
3585 break
3586 fi
3587 fi
3588 done
3589
3590 cd ..
3591 rm -rf conftest.dir
3592 else
3593 am_cv_CC_dependencies_compiler_type=none
3594 fi
3595
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3598 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3599 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3600
3601 if
3602 test "x$enable_dependency_tracking" != xno \
3603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCC_TRUE=
3605 am__fastdepCC_FALSE='#'
3606 else
3607 am__fastdepCC_TRUE='#'
3608 am__fastdepCC_FALSE=
3609 fi
3610
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3613 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3614 if ${ac_cv_prog_cc_c99+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 ac_cv_prog_cc_c99=no
3618 ac_save_CC=$CC
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <stdarg.h>
3622 #include <stdbool.h>
3623 #include <stdlib.h>
3624 #include <wchar.h>
3625 #include <stdio.h>
3626
3627 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3628 #define debug(...) fprintf (stderr, __VA_ARGS__)
3629 #define showlist(...) puts (#__VA_ARGS__)
3630 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3631 static void
3632 test_varargs_macros (void)
3633 {
3634 int x = 1234;
3635 int y = 5678;
3636 debug ("Flag");
3637 debug ("X = %d\n", x);
3638 showlist (The first, second, and third items.);
3639 report (x>y, "x is %d but y is %d", x, y);
3640 }
3641
3642 // Check long long types.
3643 #define BIG64 18446744073709551615ull
3644 #define BIG32 4294967295ul
3645 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3646 #if !BIG_OK
3647 your preprocessor is broken;
3648 #endif
3649 #if BIG_OK
3650 #else
3651 your preprocessor is broken;
3652 #endif
3653 static long long int bignum = -9223372036854775807LL;
3654 static unsigned long long int ubignum = BIG64;
3655
3656 struct incomplete_array
3657 {
3658 int datasize;
3659 double data[];
3660 };
3661
3662 struct named_init {
3663 int number;
3664 const wchar_t *name;
3665 double average;
3666 };
3667
3668 typedef const char *ccp;
3669
3670 static inline int
3671 test_restrict (ccp restrict text)
3672 {
3673 // See if C++-style comments work.
3674 // Iterate through items via the restricted pointer.
3675 // Also check for declarations in for loops.
3676 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3677 continue;
3678 return 0;
3679 }
3680
3681 // Check varargs and va_copy.
3682 static void
3683 test_varargs (const char *format, ...)
3684 {
3685 va_list args;
3686 va_start (args, format);
3687 va_list args_copy;
3688 va_copy (args_copy, args);
3689
3690 const char *str;
3691 int number;
3692 float fnumber;
3693
3694 while (*format)
3695 {
3696 switch (*format++)
3697 {
3698 case 's': // string
3699 str = va_arg (args_copy, const char *);
3700 break;
3701 case 'd': // int
3702 number = va_arg (args_copy, int);
3703 break;
3704 case 'f': // float
3705 fnumber = va_arg (args_copy, double);
3706 break;
3707 default:
3708 break;
3709 }
3710 }
3711 va_end (args_copy);
3712 va_end (args);
3713 }
3714
3715 int
3716 main ()
3717 {
3718
3719 // Check bool.
3720 _Bool success = false;
3721
3722 // Check restrict.
3723 if (test_restrict ("String literal") == 0)
3724 success = true;
3725 char *restrict newvar = "Another string";
3726
3727 // Check varargs.
3728 test_varargs ("s, d' f .", "string", 65, 34.234);
3729 test_varargs_macros ();
3730
3731 // Check flexible array members.
3732 struct incomplete_array *ia =
3733 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3734 ia->datasize = 10;
3735 for (int i = 0; i < ia->datasize; ++i)
3736 ia->data[i] = i * 1.234;
3737
3738 // Check named initializers.
3739 struct named_init ni = {
3740 .number = 34,
3741 .name = L"Test wide string",
3742 .average = 543.34343,
3743 };
3744
3745 ni.number = 58;
3746
3747 int dynamic_array[ni.number];
3748 dynamic_array[ni.number - 1] = 543;
3749
3750 // work around unused variable warnings
3751 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3752 || dynamic_array[ni.number - 1] != 543);
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3759 do
3760 CC="$ac_save_CC $ac_arg"
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_prog_cc_c99=$ac_arg
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext
3765 test "x$ac_cv_prog_cc_c99" != "xno" && break
3766 done
3767 rm -f conftest.$ac_ext
3768 CC=$ac_save_CC
3769
3770 fi
3771 # AC_CACHE_VAL
3772 case "x$ac_cv_prog_cc_c99" in
3773 x)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 $as_echo "none needed" >&6; } ;;
3776 xno)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 $as_echo "unsupported" >&6; } ;;
3779 *)
3780 CC="$CC $ac_cv_prog_cc_c99"
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3782 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3783 esac
3784 if test "x$ac_cv_prog_cc_c99" != xno; then :
3785
3786 fi
3787
3788
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3796 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3799 CPP=
3800 fi
3801 if test -z "$CPP"; then
3802 if ${ac_cv_prog_CPP+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 # Double quotes because CPP needs to be expanded
3806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807 do
3808 ac_preproc_ok=false
3809 for ac_c_preproc_warn_flag in '' yes
3810 do
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #ifdef __STDC__
3820 # include <limits.h>
3821 #else
3822 # include <assert.h>
3823 #endif
3824 Syntax error
3825 _ACEOF
3826 if ac_fn_c_try_cpp "$LINENO"; then :
3827
3828 else
3829 # Broken: fails on valid input.
3830 continue
3831 fi
3832 rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if ac_fn_c_try_cpp "$LINENO"; then :
3841 # Broken: success on invalid input.
3842 continue
3843 else
3844 # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848 rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850 done
3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852 rm -f conftest.i conftest.err conftest.$ac_ext
3853 if $ac_preproc_ok; then :
3854 break
3855 fi
3856
3857 done
3858 ac_cv_prog_CPP=$CPP
3859
3860 fi
3861 CPP=$ac_cv_prog_CPP
3862 else
3863 ac_cv_prog_CPP=$CPP
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3866 $as_echo "$CPP" >&6; }
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
3914 else
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3918 See \`config.log' for more details" "$LINENO" 5; }
3919 fi
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930 if ${ac_cv_path_GREP+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -z "$GREP"; then
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3948 *GNU*)
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950 *)
3951 ac_count=0
3952 $as_echo_n 0123456789 >"conftest.in"
3953 while :
3954 do
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 $as_echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 as_fn_arith $ac_count + 1 && ac_count=$as_val
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3966 fi
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3972
3973 $ac_path_GREP_found && break 3
3974 done
3975 done
3976 done
3977 IFS=$as_save_IFS
3978 if test -z "$ac_cv_path_GREP"; then
3979 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 fi
3981 else
3982 ac_cv_path_GREP=$GREP
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987 $as_echo "$ac_cv_path_GREP" >&6; }
3988 GREP="$ac_cv_path_GREP"
3989
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992 $as_echo_n "checking for egrep... " >&6; }
3993 if ${ac_cv_path_EGREP+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997 then ac_cv_path_EGREP="$GREP -E"
3998 else
3999 if test -z "$EGREP"; then
4000 ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in egrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
4012 # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4014 *GNU*)
4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016 *)
4017 ac_count=0
4018 $as_echo_n 0123456789 >"conftest.in"
4019 while :
4020 do
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'EGREP' >> "conftest.nl"
4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 as_fn_arith $ac_count + 1 && ac_count=$as_val
4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP="$ac_path_EGREP"
4031 ac_path_EGREP_max=$ac_count
4032 fi
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039 $ac_path_EGREP_found && break 3
4040 done
4041 done
4042 done
4043 IFS=$as_save_IFS
4044 if test -z "$ac_cv_path_EGREP"; then
4045 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 fi
4047 else
4048 ac_cv_path_EGREP=$EGREP
4049 fi
4050
4051 fi
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054 $as_echo "$ac_cv_path_EGREP" >&6; }
4055 EGREP="$ac_cv_path_EGREP"
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4059 $as_echo_n "checking for ANSI C header files... " >&6; }
4060 if ${ac_cv_header_stdc+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdlib.h>
4066 #include <stdarg.h>
4067 #include <string.h>
4068 #include <float.h>
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_cv_header_stdc=yes
4080 else
4081 ac_cv_header_stdc=no
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084
4085 if test $ac_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #include <string.h>
4090
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "memchr" >/dev/null 2>&1; then :
4094
4095 else
4096 ac_cv_header_stdc=no
4097 fi
4098 rm -f conftest*
4099
4100 fi
4101
4102 if test $ac_cv_header_stdc = yes; then
4103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <stdlib.h>
4107
4108 _ACEOF
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 $EGREP "free" >/dev/null 2>&1; then :
4111
4112 else
4113 ac_cv_header_stdc=no
4114 fi
4115 rm -f conftest*
4116
4117 fi
4118
4119 if test $ac_cv_header_stdc = yes; then
4120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4121 if test "$cross_compiling" = yes; then :
4122 :
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ctype.h>
4127 #include <stdlib.h>
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 #else
4132 # define ISLOWER(c) \
4133 (('a' <= (c) && (c) <= 'i') \
4134 || ('j' <= (c) && (c) <= 'r') \
4135 || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #endif
4138
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 int
4141 main ()
4142 {
4143 int i;
4144 for (i = 0; i < 256; i++)
4145 if (XOR (islower (i), ISLOWER (i))
4146 || toupper (i) != TOUPPER (i))
4147 return 2;
4148 return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_run "$LINENO"; then :
4152
4153 else
4154 ac_cv_header_stdc=no
4155 fi
4156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4157 conftest.$ac_objext conftest.beam conftest.$ac_ext
4158 fi
4159
4160 fi
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4163 $as_echo "$ac_cv_header_stdc" >&6; }
4164 if test $ac_cv_header_stdc = yes; then
4165
4166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4167
4168 fi
4169
4170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4172 inttypes.h stdint.h unistd.h
4173 do :
4174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176 "
4177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4178 cat >>confdefs.h <<_ACEOF
4179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180 _ACEOF
4181
4182 fi
4183
4184 done
4185
4186
4187
4188
4189
4190
4191 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4192 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4193 CLANGCC="yes"
4194 else
4195 CLANGCC="no"
4196 fi
4197
4198 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4199 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4200 INTELCC="yes"
4201 else
4202 INTELCC="no"
4203 fi
4204
4205 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4206 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4207 SUNCC="yes"
4208 else
4209 SUNCC="no"
4210 fi
4211
4212
4213
4214
4215 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4216 if test -n "$ac_tool_prefix"; then
4217 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 case $PKG_CONFIG in
4225 [\\/]* | ?:[\\/]*)
4226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4227 ;;
4228 *)
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 ;;
4245 esac
4246 fi
4247 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4248 if test -n "$PKG_CONFIG"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4250 $as_echo "$PKG_CONFIG" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$ac_cv_path_PKG_CONFIG"; then
4259 ac_pt_PKG_CONFIG=$PKG_CONFIG
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261 set dummy pkg-config; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 case $ac_pt_PKG_CONFIG in
4268 [\\/]* | ?:[\\/]*)
4269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4270 ;;
4271 *)
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 ;;
4288 esac
4289 fi
4290 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4291 if test -n "$ac_pt_PKG_CONFIG"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4293 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299 if test "x$ac_pt_PKG_CONFIG" = x; then
4300 PKG_CONFIG=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 PKG_CONFIG=$ac_pt_PKG_CONFIG
4309 fi
4310 else
4311 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4312 fi
4313
4314 fi
4315 if test -n "$PKG_CONFIG"; then
4316 _pkg_min_version=0.9.0
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4318 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4319 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4321 $as_echo "yes" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 PKG_CONFIG=""
4326 fi
4327
4328 fi
4329 # Make sure we can run config.sub.
4330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4334 $as_echo_n "checking build system type... " >&6; }
4335 if ${ac_cv_build+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 ac_build_alias=$build_alias
4339 test "x$ac_build_alias" = x &&
4340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4341 test "x$ac_build_alias" = x &&
4342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4345
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4348 $as_echo "$ac_cv_build" >&6; }
4349 case $ac_cv_build in
4350 *-*-*) ;;
4351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4352 esac
4353 build=$ac_cv_build
4354 ac_save_IFS=$IFS; IFS='-'
4355 set x $ac_cv_build
4356 shift
4357 build_cpu=$1
4358 build_vendor=$2
4359 shift; shift
4360 # Remember, the first character of IFS is used to create $*,
4361 # except with old shells:
4362 build_os=$*
4363 IFS=$ac_save_IFS
4364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4368 $as_echo_n "checking host system type... " >&6; }
4369 if ${ac_cv_host+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test "x$host_alias" = x; then
4373 ac_cv_host=$ac_cv_build
4374 else
4375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4377 fi
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4381 $as_echo "$ac_cv_host" >&6; }
4382 case $ac_cv_host in
4383 *-*-*) ;;
4384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4385 esac
4386 host=$ac_cv_host
4387 ac_save_IFS=$IFS; IFS='-'
4388 set x $ac_cv_host
4389 shift
4390 host_cpu=$1
4391 host_vendor=$2
4392 shift; shift
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4395 host_os=$*
4396 IFS=$ac_save_IFS
4397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4398
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4401 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4402 if ${ac_cv_path_SED+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4406 for ac_i in 1 2 3 4 5 6 7; do
4407 ac_script="$ac_script$as_nl$ac_script"
4408 done
4409 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4410 { ac_script=; unset ac_script;}
4411 if test -z "$SED"; then
4412 ac_path_SED_found=false
4413 # Loop through the user's path and test for each of PROGNAME-LIST
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_prog in sed gsed; do
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4422 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4423 # Check for GNU ac_path_SED and select it if it is found.
4424 # Check for GNU $ac_path_SED
4425 case `"$ac_path_SED" --version 2>&1` in
4426 *GNU*)
4427 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4428 *)
4429 ac_count=0
4430 $as_echo_n 0123456789 >"conftest.in"
4431 while :
4432 do
4433 cat "conftest.in" "conftest.in" >"conftest.tmp"
4434 mv "conftest.tmp" "conftest.in"
4435 cp "conftest.in" "conftest.nl"
4436 $as_echo '' >> "conftest.nl"
4437 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439 as_fn_arith $ac_count + 1 && ac_count=$as_val
4440 if test $ac_count -gt ${ac_path_SED_max-0}; then
4441 # Best one so far, save it but keep looking for a better one
4442 ac_cv_path_SED="$ac_path_SED"
4443 ac_path_SED_max=$ac_count
4444 fi
4445 # 10*(2^10) chars as input seems more than enough
4446 test $ac_count -gt 10 && break
4447 done
4448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451 $ac_path_SED_found && break 3
4452 done
4453 done
4454 done
4455 IFS=$as_save_IFS
4456 if test -z "$ac_cv_path_SED"; then
4457 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4458 fi
4459 else
4460 ac_cv_path_SED=$SED
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4465 $as_echo "$ac_cv_path_SED" >&6; }
4466 SED="$ac_cv_path_SED"
4467 rm -f conftest.sed
4468
4469
4470
4471
4472
4473
4474 # Check whether --enable-selective-werror was given.
4475 if test "${enable_selective_werror+set}" = set; then :
4476 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4477 else
4478 SELECTIVE_WERROR=yes
4479 fi
4480
4481
4482
4483
4484
4485 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4486 if test "x$SUNCC" = "xyes"; then
4487 BASE_CFLAGS="-v"
4488 else
4489 BASE_CFLAGS=""
4490 fi
4491
4492 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 xorg_testset_save_CFLAGS="$CFLAGS"
4507
4508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 int i;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 xorg_cv_cc_flag_unknown_warning_option=yes
4521 else
4522 xorg_cv_cc_flag_unknown_warning_option=no
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4529 CFLAGS="$xorg_testset_save_CFLAGS"
4530 fi
4531
4532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4535 fi
4536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 int i;
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 xorg_cv_cc_flag_unused_command_line_argument=yes
4548 else
4549 xorg_cv_cc_flag_unused_command_line_argument=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4556 CFLAGS="$xorg_testset_save_CFLAGS"
4557 fi
4558
4559 found="no"
4560
4561 if test $found = "no" ; then
4562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4564 fi
4565
4566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4568 fi
4569
4570 CFLAGS="$CFLAGS -Wall"
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4573 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4574 cacheid=xorg_cv_cc_flag__Wall
4575 if eval \${$cacheid+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 int i;
4581 int
4582 main ()
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_link "$LINENO"; then :
4590 eval $cacheid=yes
4591 else
4592 eval $cacheid=no
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596 fi
4597
4598
4599 CFLAGS="$xorg_testset_save_CFLAGS"
4600
4601 eval supported=\$$cacheid
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4603 $as_echo "$supported" >&6; }
4604 if test "$supported" = "yes" ; then
4605 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4606 found="yes"
4607 fi
4608 fi
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 xorg_testset_save_CFLAGS="$CFLAGS"
4625
4626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 int i;
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 xorg_cv_cc_flag_unknown_warning_option=yes
4639 else
4640 xorg_cv_cc_flag_unknown_warning_option=no
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4647 CFLAGS="$xorg_testset_save_CFLAGS"
4648 fi
4649
4650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4653 fi
4654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 int i;
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 xorg_cv_cc_flag_unused_command_line_argument=yes
4666 else
4667 xorg_cv_cc_flag_unused_command_line_argument=no
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4674 CFLAGS="$xorg_testset_save_CFLAGS"
4675 fi
4676
4677 found="no"
4678
4679 if test $found = "no" ; then
4680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682 fi
4683
4684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4686 fi
4687
4688 CFLAGS="$CFLAGS -Wpointer-arith"
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4691 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4692 cacheid=xorg_cv_cc_flag__Wpointer_arith
4693 if eval \${$cacheid+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 int i;
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_c_try_link "$LINENO"; then :
4708 eval $cacheid=yes
4709 else
4710 eval $cacheid=no
4711 fi
4712 rm -f core conftest.err conftest.$ac_objext \
4713 conftest$ac_exeext conftest.$ac_ext
4714 fi
4715
4716
4717 CFLAGS="$xorg_testset_save_CFLAGS"
4718
4719 eval supported=\$$cacheid
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4721 $as_echo "$supported" >&6; }
4722 if test "$supported" = "yes" ; then
4723 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4724 found="yes"
4725 fi
4726 fi
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 xorg_testset_save_CFLAGS="$CFLAGS"
4743
4744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 int i;
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 xorg_cv_cc_flag_unknown_warning_option=yes
4757 else
4758 xorg_cv_cc_flag_unknown_warning_option=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4765 CFLAGS="$xorg_testset_save_CFLAGS"
4766 fi
4767
4768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4771 fi
4772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 int i;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 xorg_cv_cc_flag_unused_command_line_argument=yes
4784 else
4785 xorg_cv_cc_flag_unused_command_line_argument=no
4786 fi
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4792 CFLAGS="$xorg_testset_save_CFLAGS"
4793 fi
4794
4795 found="no"
4796
4797 if test $found = "no" ; then
4798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 fi
4801
4802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804 fi
4805
4806 CFLAGS="$CFLAGS -Wmissing-declarations"
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4809 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4810 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4811 if eval \${$cacheid+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 int i;
4817 int
4818 main ()
4819 {
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_link "$LINENO"; then :
4826 eval $cacheid=yes
4827 else
4828 eval $cacheid=no
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext \
4831 conftest$ac_exeext conftest.$ac_ext
4832 fi
4833
4834
4835 CFLAGS="$xorg_testset_save_CFLAGS"
4836
4837 eval supported=\$$cacheid
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4839 $as_echo "$supported" >&6; }
4840 if test "$supported" = "yes" ; then
4841 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4842 found="yes"
4843 fi
4844 fi
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860 xorg_testset_save_CFLAGS="$CFLAGS"
4861
4862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871 int i;
4872 _ACEOF
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 xorg_cv_cc_flag_unknown_warning_option=yes
4875 else
4876 xorg_cv_cc_flag_unknown_warning_option=no
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4883 CFLAGS="$xorg_testset_save_CFLAGS"
4884 fi
4885
4886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 fi
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 int i;
4899 _ACEOF
4900 if ac_fn_c_try_compile "$LINENO"; then :
4901 xorg_cv_cc_flag_unused_command_line_argument=yes
4902 else
4903 xorg_cv_cc_flag_unused_command_line_argument=no
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4910 CFLAGS="$xorg_testset_save_CFLAGS"
4911 fi
4912
4913 found="no"
4914
4915 if test $found = "no" ; then
4916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 fi
4919
4920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922 fi
4923
4924 CFLAGS="$CFLAGS -Wformat=2"
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4927 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4928 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4929 if eval \${$cacheid+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 int i;
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_link "$LINENO"; then :
4944 eval $cacheid=yes
4945 else
4946 eval $cacheid=no
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 fi
4951
4952
4953 CFLAGS="$xorg_testset_save_CFLAGS"
4954
4955 eval supported=\$$cacheid
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4957 $as_echo "$supported" >&6; }
4958 if test "$supported" = "yes" ; then
4959 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4960 found="yes"
4961 fi
4962 fi
4963
4964 if test $found = "no" ; then
4965 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967 fi
4968
4969 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4971 fi
4972
4973 CFLAGS="$CFLAGS -Wformat"
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4976 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4977 cacheid=xorg_cv_cc_flag__Wformat
4978 if eval \${$cacheid+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 int i;
4984 int
4985 main ()
4986 {
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_link "$LINENO"; then :
4993 eval $cacheid=yes
4994 else
4995 eval $cacheid=no
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
4999 fi
5000
5001
5002 CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004 eval supported=\$$cacheid
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006 $as_echo "$supported" >&6; }
5007 if test "$supported" = "yes" ; then
5008 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5009 found="yes"
5010 fi
5011 fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 xorg_testset_save_CFLAGS="$CFLAGS"
5030
5031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 int i;
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 xorg_cv_cc_flag_unknown_warning_option=yes
5044 else
5045 xorg_cv_cc_flag_unknown_warning_option=no
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052 CFLAGS="$xorg_testset_save_CFLAGS"
5053 fi
5054
5055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 fi
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 int i;
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 xorg_cv_cc_flag_unused_command_line_argument=yes
5071 else
5072 xorg_cv_cc_flag_unused_command_line_argument=no
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5079 CFLAGS="$xorg_testset_save_CFLAGS"
5080 fi
5081
5082 found="no"
5083
5084 if test $found = "no" ; then
5085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 fi
5088
5089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5091 fi
5092
5093 CFLAGS="$CFLAGS -Wstrict-prototypes"
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5096 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5097 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5098 if eval \${$cacheid+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 eval $cacheid=yes
5114 else
5115 eval $cacheid=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 fi
5120
5121
5122 CFLAGS="$xorg_testset_save_CFLAGS"
5123
5124 eval supported=\$$cacheid
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5126 $as_echo "$supported" >&6; }
5127 if test "$supported" = "yes" ; then
5128 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5129 found="yes"
5130 fi
5131 fi
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 xorg_testset_save_CFLAGS="$CFLAGS"
5148
5149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 int i;
5159 _ACEOF
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 xorg_cv_cc_flag_unknown_warning_option=yes
5162 else
5163 xorg_cv_cc_flag_unknown_warning_option=no
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5170 CFLAGS="$xorg_testset_save_CFLAGS"
5171 fi
5172
5173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176 fi
5177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 int i;
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 xorg_cv_cc_flag_unused_command_line_argument=yes
5189 else
5190 xorg_cv_cc_flag_unused_command_line_argument=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198 fi
5199
5200 found="no"
5201
5202 if test $found = "no" ; then
5203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205 fi
5206
5207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209 fi
5210
5211 CFLAGS="$CFLAGS -Wmissing-prototypes"
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5214 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5215 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5216 if eval \${$cacheid+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 int
5223 main ()
5224 {
5225
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_link "$LINENO"; then :
5231 eval $cacheid=yes
5232 else
5233 eval $cacheid=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 fi
5238
5239
5240 CFLAGS="$xorg_testset_save_CFLAGS"
5241
5242 eval supported=\$$cacheid
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5244 $as_echo "$supported" >&6; }
5245 if test "$supported" = "yes" ; then
5246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5247 found="yes"
5248 fi
5249 fi
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 xorg_testset_save_CFLAGS="$CFLAGS"
5266
5267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 int i;
5277 _ACEOF
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 xorg_cv_cc_flag_unknown_warning_option=yes
5280 else
5281 xorg_cv_cc_flag_unknown_warning_option=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5288 CFLAGS="$xorg_testset_save_CFLAGS"
5289 fi
5290
5291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294 fi
5295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 int i;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 xorg_cv_cc_flag_unused_command_line_argument=yes
5307 else
5308 xorg_cv_cc_flag_unused_command_line_argument=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5315 CFLAGS="$xorg_testset_save_CFLAGS"
5316 fi
5317
5318 found="no"
5319
5320 if test $found = "no" ; then
5321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323 fi
5324
5325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 fi
5328
5329 CFLAGS="$CFLAGS -Wnested-externs"
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5332 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5333 cacheid=xorg_cv_cc_flag__Wnested_externs
5334 if eval \${$cacheid+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 int i;
5340 int
5341 main ()
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_link "$LINENO"; then :
5349 eval $cacheid=yes
5350 else
5351 eval $cacheid=no
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext \
5354 conftest$ac_exeext conftest.$ac_ext
5355 fi
5356
5357
5358 CFLAGS="$xorg_testset_save_CFLAGS"
5359
5360 eval supported=\$$cacheid
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5362 $as_echo "$supported" >&6; }
5363 if test "$supported" = "yes" ; then
5364 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5365 found="yes"
5366 fi
5367 fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 xorg_testset_save_CFLAGS="$CFLAGS"
5384
5385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 int i;
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397 xorg_cv_cc_flag_unknown_warning_option=yes
5398 else
5399 xorg_cv_cc_flag_unknown_warning_option=no
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406 CFLAGS="$xorg_testset_save_CFLAGS"
5407 fi
5408
5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 fi
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 int i;
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 xorg_cv_cc_flag_unused_command_line_argument=yes
5425 else
5426 xorg_cv_cc_flag_unused_command_line_argument=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5433 CFLAGS="$xorg_testset_save_CFLAGS"
5434 fi
5435
5436 found="no"
5437
5438 if test $found = "no" ; then
5439 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441 fi
5442
5443 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445 fi
5446
5447 CFLAGS="$CFLAGS -Wbad-function-cast"
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5450 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5451 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5452 if eval \${$cacheid+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int i;
5458 int
5459 main ()
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 if ac_fn_c_try_link "$LINENO"; then :
5467 eval $cacheid=yes
5468 else
5469 eval $cacheid=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5473 fi
5474
5475
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477
5478 eval supported=\$$cacheid
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5480 $as_echo "$supported" >&6; }
5481 if test "$supported" = "yes" ; then
5482 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5483 found="yes"
5484 fi
5485 fi
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 xorg_testset_save_CFLAGS="$CFLAGS"
5502
5503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 int i;
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"; then :
5515 xorg_cv_cc_flag_unknown_warning_option=yes
5516 else
5517 xorg_cv_cc_flag_unknown_warning_option=no
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5524 CFLAGS="$xorg_testset_save_CFLAGS"
5525 fi
5526
5527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 fi
5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 int i;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 xorg_cv_cc_flag_unused_command_line_argument=yes
5543 else
5544 xorg_cv_cc_flag_unused_command_line_argument=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552 fi
5553
5554 found="no"
5555
5556 if test $found = "no" ; then
5557 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559 fi
5560
5561 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563 fi
5564
5565 CFLAGS="$CFLAGS -Wold-style-definition"
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5568 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5569 cacheid=xorg_cv_cc_flag__Wold_style_definition
5570 if eval \${$cacheid+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 int i;
5576 int
5577 main ()
5578 {
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_link "$LINENO"; then :
5585 eval $cacheid=yes
5586 else
5587 eval $cacheid=no
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext \
5590 conftest$ac_exeext conftest.$ac_ext
5591 fi
5592
5593
5594 CFLAGS="$xorg_testset_save_CFLAGS"
5595
5596 eval supported=\$$cacheid
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5598 $as_echo "$supported" >&6; }
5599 if test "$supported" = "yes" ; then
5600 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5601 found="yes"
5602 fi
5603 fi
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 xorg_testset_save_CFLAGS="$CFLAGS"
5620
5621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 int i;
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 xorg_cv_cc_flag_unknown_warning_option=yes
5634 else
5635 xorg_cv_cc_flag_unknown_warning_option=no
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5642 CFLAGS="$xorg_testset_save_CFLAGS"
5643 fi
5644
5645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 fi
5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 int i;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 xorg_cv_cc_flag_unused_command_line_argument=yes
5661 else
5662 xorg_cv_cc_flag_unused_command_line_argument=no
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669 CFLAGS="$xorg_testset_save_CFLAGS"
5670 fi
5671
5672 found="no"
5673
5674 if test $found = "no" ; then
5675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 fi
5678
5679 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681 fi
5682
5683 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5686 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5687 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5688 if eval \${$cacheid+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 int i;
5694 int
5695 main ()
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_link "$LINENO"; then :
5703 eval $cacheid=yes
5704 else
5705 eval $cacheid=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext \
5708 conftest$ac_exeext conftest.$ac_ext
5709 fi
5710
5711
5712 CFLAGS="$xorg_testset_save_CFLAGS"
5713
5714 eval supported=\$$cacheid
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5716 $as_echo "$supported" >&6; }
5717 if test "$supported" = "yes" ; then
5718 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5719 found="yes"
5720 fi
5721 fi
5722
5723
5724
5725
5726
5727 # This chunk adds additional warnings that could catch undesired effects.
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 xorg_cv_cc_flag_unknown_warning_option=yes
5756 else
5757 xorg_cv_cc_flag_unknown_warning_option=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765 fi
5766
5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 fi
5771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_cv_cc_flag_unused_command_line_argument=yes
5783 else
5784 xorg_cv_cc_flag_unused_command_line_argument=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792 fi
5793
5794 found="no"
5795
5796 if test $found = "no" ; then
5797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 fi
5800
5801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803 fi
5804
5805 CFLAGS="$CFLAGS -Wunused"
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5808 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5809 cacheid=xorg_cv_cc_flag__Wunused
5810 if eval \${$cacheid+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_link "$LINENO"; then :
5825 eval $cacheid=yes
5826 else
5827 eval $cacheid=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5831 fi
5832
5833
5834 CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836 eval supported=\$$cacheid
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838 $as_echo "$supported" >&6; }
5839 if test "$supported" = "yes" ; then
5840 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5841 found="yes"
5842 fi
5843 fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 xorg_cv_cc_flag_unknown_warning_option=yes
5874 else
5875 xorg_cv_cc_flag_unknown_warning_option=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 int i;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 xorg_cv_cc_flag_unused_command_line_argument=yes
5901 else
5902 xorg_cv_cc_flag_unused_command_line_argument=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910 fi
5911
5912 found="no"
5913
5914 if test $found = "no" ; then
5915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 fi
5918
5919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921 fi
5922
5923 CFLAGS="$CFLAGS -Wuninitialized"
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5926 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5927 cacheid=xorg_cv_cc_flag__Wuninitialized
5928 if eval \${$cacheid+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 int
5935 main ()
5936 {
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 eval $cacheid=yes
5944 else
5945 eval $cacheid=no
5946 fi
5947 rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5949 fi
5950
5951
5952 CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954 eval supported=\$$cacheid
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956 $as_echo "$supported" >&6; }
5957 if test "$supported" = "yes" ; then
5958 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5959 found="yes"
5960 fi
5961 fi
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 xorg_testset_save_CFLAGS="$CFLAGS"
5978
5979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int i;
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 xorg_cv_cc_flag_unknown_warning_option=yes
5992 else
5993 xorg_cv_cc_flag_unknown_warning_option=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6000 CFLAGS="$xorg_testset_save_CFLAGS"
6001 fi
6002
6003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006 fi
6007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 int i;
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018 xorg_cv_cc_flag_unused_command_line_argument=yes
6019 else
6020 xorg_cv_cc_flag_unused_command_line_argument=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6027 CFLAGS="$xorg_testset_save_CFLAGS"
6028 fi
6029
6030 found="no"
6031
6032 if test $found = "no" ; then
6033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035 fi
6036
6037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039 fi
6040
6041 CFLAGS="$CFLAGS -Wshadow"
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6044 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6045 cacheid=xorg_cv_cc_flag__Wshadow
6046 if eval \${$cacheid+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 int
6053 main ()
6054 {
6055
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_link "$LINENO"; then :
6061 eval $cacheid=yes
6062 else
6063 eval $cacheid=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext \
6066 conftest$ac_exeext conftest.$ac_ext
6067 fi
6068
6069
6070 CFLAGS="$xorg_testset_save_CFLAGS"
6071
6072 eval supported=\$$cacheid
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6074 $as_echo "$supported" >&6; }
6075 if test "$supported" = "yes" ; then
6076 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6077 found="yes"
6078 fi
6079 fi
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 xorg_testset_save_CFLAGS="$CFLAGS"
6096
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 int i;
6107 _ACEOF
6108 if ac_fn_c_try_compile "$LINENO"; then :
6109 xorg_cv_cc_flag_unknown_warning_option=yes
6110 else
6111 xorg_cv_cc_flag_unknown_warning_option=no
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118 CFLAGS="$xorg_testset_save_CFLAGS"
6119 fi
6120
6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 int i;
6134 _ACEOF
6135 if ac_fn_c_try_compile "$LINENO"; then :
6136 xorg_cv_cc_flag_unused_command_line_argument=yes
6137 else
6138 xorg_cv_cc_flag_unused_command_line_argument=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146 fi
6147
6148 found="no"
6149
6150 if test $found = "no" ; then
6151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 fi
6154
6155 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157 fi
6158
6159 CFLAGS="$CFLAGS -Wcast-qual"
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6162 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6163 cacheid=xorg_cv_cc_flag__Wcast_qual
6164 if eval \${$cacheid+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 int
6171 main ()
6172 {
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 eval $cacheid=yes
6180 else
6181 eval $cacheid=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 fi
6186
6187
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189
6190 eval supported=\$$cacheid
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6192 $as_echo "$supported" >&6; }
6193 if test "$supported" = "yes" ; then
6194 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6195 found="yes"
6196 fi
6197 fi
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 xorg_testset_save_CFLAGS="$CFLAGS"
6214
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 xorg_cv_cc_flag_unknown_warning_option=yes
6228 else
6229 xorg_cv_cc_flag_unknown_warning_option=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6236 CFLAGS="$xorg_testset_save_CFLAGS"
6237 fi
6238
6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 fi
6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 int i;
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 xorg_cv_cc_flag_unused_command_line_argument=yes
6255 else
6256 xorg_cv_cc_flag_unused_command_line_argument=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6263 CFLAGS="$xorg_testset_save_CFLAGS"
6264 fi
6265
6266 found="no"
6267
6268 if test $found = "no" ; then
6269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 fi
6272
6273 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6275 fi
6276
6277 CFLAGS="$CFLAGS -Wmissing-noreturn"
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6280 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6281 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6282 if eval \${$cacheid+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 int i;
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 eval $cacheid=yes
6298 else
6299 eval $cacheid=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 fi
6304
6305
6306 CFLAGS="$xorg_testset_save_CFLAGS"
6307
6308 eval supported=\$$cacheid
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6310 $as_echo "$supported" >&6; }
6311 if test "$supported" = "yes" ; then
6312 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6313 found="yes"
6314 fi
6315 fi
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 xorg_testset_save_CFLAGS="$CFLAGS"
6332
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 int i;
6343 _ACEOF
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 xorg_cv_cc_flag_unknown_warning_option=yes
6346 else
6347 xorg_cv_cc_flag_unknown_warning_option=no
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6354 CFLAGS="$xorg_testset_save_CFLAGS"
6355 fi
6356
6357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360 fi
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 int i;
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 xorg_cv_cc_flag_unused_command_line_argument=yes
6373 else
6374 xorg_cv_cc_flag_unused_command_line_argument=no
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6381 CFLAGS="$xorg_testset_save_CFLAGS"
6382 fi
6383
6384 found="no"
6385
6386 if test $found = "no" ; then
6387 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 fi
6390
6391 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6393 fi
6394
6395 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6398 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6399 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6400 if eval \${$cacheid+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 int
6407 main ()
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"; then :
6415 eval $cacheid=yes
6416 else
6417 eval $cacheid=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 fi
6422
6423
6424 CFLAGS="$xorg_testset_save_CFLAGS"
6425
6426 eval supported=\$$cacheid
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6428 $as_echo "$supported" >&6; }
6429 if test "$supported" = "yes" ; then
6430 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6431 found="yes"
6432 fi
6433 fi
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 xorg_testset_save_CFLAGS="$CFLAGS"
6450
6451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 xorg_cv_cc_flag_unknown_warning_option=yes
6464 else
6465 xorg_cv_cc_flag_unknown_warning_option=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6472 CFLAGS="$xorg_testset_save_CFLAGS"
6473 fi
6474
6475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478 fi
6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487 int i;
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 xorg_cv_cc_flag_unused_command_line_argument=yes
6491 else
6492 xorg_cv_cc_flag_unused_command_line_argument=no
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6499 CFLAGS="$xorg_testset_save_CFLAGS"
6500 fi
6501
6502 found="no"
6503
6504 if test $found = "no" ; then
6505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507 fi
6508
6509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6511 fi
6512
6513 CFLAGS="$CFLAGS -Wredundant-decls"
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6516 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6517 cacheid=xorg_cv_cc_flag__Wredundant_decls
6518 if eval \${$cacheid+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 int
6525 main ()
6526 {
6527
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 eval $cacheid=yes
6534 else
6535 eval $cacheid=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 fi
6540
6541
6542 CFLAGS="$xorg_testset_save_CFLAGS"
6543
6544 eval supported=\$$cacheid
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6546 $as_echo "$supported" >&6; }
6547 if test "$supported" = "yes" ; then
6548 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6549 found="yes"
6550 fi
6551 fi
6552
6553
6554
6555 # These are currently disabled because they are noisy. They will be enabled
6556 # in the future once the codebase is sufficiently modernized to silence
6557 # them. For now, I don't want them to drown out the other warnings.
6558 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6559 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6560 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6561
6562 # Turn some warnings into errors, so we don't accidently get successful builds
6563 # when there are problems that should be fixed.
6564
6565 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int i;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 xorg_cv_cc_flag_unknown_warning_option=yes
6594 else
6595 xorg_cv_cc_flag_unknown_warning_option=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603 fi
6604
6605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608 fi
6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 int i;
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 xorg_cv_cc_flag_unused_command_line_argument=yes
6621 else
6622 xorg_cv_cc_flag_unused_command_line_argument=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 fi
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6629 CFLAGS="$xorg_testset_save_CFLAGS"
6630 fi
6631
6632 found="no"
6633
6634 if test $found = "no" ; then
6635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637 fi
6638
6639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6641 fi
6642
6643 CFLAGS="$CFLAGS -Werror=implicit"
6644
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6646 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6647 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6648 if eval \${$cacheid+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 int i;
6654 int
6655 main ()
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663 eval $cacheid=yes
6664 else
6665 eval $cacheid=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6669 fi
6670
6671
6672 CFLAGS="$xorg_testset_save_CFLAGS"
6673
6674 eval supported=\$$cacheid
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6676 $as_echo "$supported" >&6; }
6677 if test "$supported" = "yes" ; then
6678 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6679 found="yes"
6680 fi
6681 fi
6682
6683 if test $found = "no" ; then
6684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6686 fi
6687
6688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6690 fi
6691
6692 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6695 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6696 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6697 if eval \${$cacheid+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 int
6704 main ()
6705 {
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_c_try_link "$LINENO"; then :
6712 eval $cacheid=yes
6713 else
6714 eval $cacheid=no
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
6718 fi
6719
6720
6721 CFLAGS="$xorg_testset_save_CFLAGS"
6722
6723 eval supported=\$$cacheid
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6725 $as_echo "$supported" >&6; }
6726 if test "$supported" = "yes" ; then
6727 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6728 found="yes"
6729 fi
6730 fi
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 xorg_testset_save_CFLAGS="$CFLAGS"
6747
6748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int i;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 xorg_cv_cc_flag_unknown_warning_option=yes
6761 else
6762 xorg_cv_cc_flag_unknown_warning_option=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6769 CFLAGS="$xorg_testset_save_CFLAGS"
6770 fi
6771
6772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775 fi
6776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 int i;
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787 xorg_cv_cc_flag_unused_command_line_argument=yes
6788 else
6789 xorg_cv_cc_flag_unused_command_line_argument=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6796 CFLAGS="$xorg_testset_save_CFLAGS"
6797 fi
6798
6799 found="no"
6800
6801 if test $found = "no" ; then
6802 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804 fi
6805
6806 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808 fi
6809
6810 CFLAGS="$CFLAGS -Werror=nonnull"
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6813 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6814 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6815 if eval \${$cacheid+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int i;
6821 int
6822 main ()
6823 {
6824
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830 eval $cacheid=yes
6831 else
6832 eval $cacheid=no
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 fi
6837
6838
6839 CFLAGS="$xorg_testset_save_CFLAGS"
6840
6841 eval supported=\$$cacheid
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6843 $as_echo "$supported" >&6; }
6844 if test "$supported" = "yes" ; then
6845 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6846 found="yes"
6847 fi
6848 fi
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 xorg_testset_save_CFLAGS="$CFLAGS"
6865
6866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 _ACEOF
6877 if ac_fn_c_try_compile "$LINENO"; then :
6878 xorg_cv_cc_flag_unknown_warning_option=yes
6879 else
6880 xorg_cv_cc_flag_unknown_warning_option=no
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6887 CFLAGS="$xorg_testset_save_CFLAGS"
6888 fi
6889
6890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6893 fi
6894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 int i;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 xorg_cv_cc_flag_unused_command_line_argument=yes
6906 else
6907 xorg_cv_cc_flag_unused_command_line_argument=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6914 CFLAGS="$xorg_testset_save_CFLAGS"
6915 fi
6916
6917 found="no"
6918
6919 if test $found = "no" ; then
6920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922 fi
6923
6924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6926 fi
6927
6928 CFLAGS="$CFLAGS -Werror=init-self"
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6931 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6932 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6933 if eval \${$cacheid+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int i;
6939 int
6940 main ()
6941 {
6942
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 eval $cacheid=yes
6949 else
6950 eval $cacheid=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 fi
6955
6956
6957 CFLAGS="$xorg_testset_save_CFLAGS"
6958
6959 eval supported=\$$cacheid
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6961 $as_echo "$supported" >&6; }
6962 if test "$supported" = "yes" ; then
6963 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6964 found="yes"
6965 fi
6966 fi
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 xorg_testset_save_CFLAGS="$CFLAGS"
6983
6984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6987 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6988 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 xorg_cv_cc_flag_unknown_warning_option=yes
6997 else
6998 xorg_cv_cc_flag_unknown_warning_option=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7003 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7005 CFLAGS="$xorg_testset_save_CFLAGS"
7006 fi
7007
7008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 fi
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7014 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7015 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 int i;
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"; then :
7023 xorg_cv_cc_flag_unused_command_line_argument=yes
7024 else
7025 xorg_cv_cc_flag_unused_command_line_argument=no
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7030 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7032 CFLAGS="$xorg_testset_save_CFLAGS"
7033 fi
7034
7035 found="no"
7036
7037 if test $found = "no" ; then
7038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 fi
7041
7042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7044 fi
7045
7046 CFLAGS="$CFLAGS -Werror=main"
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7049 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7050 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7051 if eval \${$cacheid+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 int i;
7057 int
7058 main ()
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"; then :
7066 eval $cacheid=yes
7067 else
7068 eval $cacheid=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072 fi
7073
7074
7075 CFLAGS="$xorg_testset_save_CFLAGS"
7076
7077 eval supported=\$$cacheid
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7079 $as_echo "$supported" >&6; }
7080 if test "$supported" = "yes" ; then
7081 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7082 found="yes"
7083 fi
7084 fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100 xorg_testset_save_CFLAGS="$CFLAGS"
7101
7102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 int i;
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 xorg_cv_cc_flag_unknown_warning_option=yes
7115 else
7116 xorg_cv_cc_flag_unknown_warning_option=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7123 CFLAGS="$xorg_testset_save_CFLAGS"
7124 fi
7125
7126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129 fi
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 int i;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 xorg_cv_cc_flag_unused_command_line_argument=yes
7142 else
7143 xorg_cv_cc_flag_unused_command_line_argument=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7150 CFLAGS="$xorg_testset_save_CFLAGS"
7151 fi
7152
7153 found="no"
7154
7155 if test $found = "no" ; then
7156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158 fi
7159
7160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162 fi
7163
7164 CFLAGS="$CFLAGS -Werror=missing-braces"
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7167 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7168 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7169 if eval \${$cacheid+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 int i;
7175 int
7176 main ()
7177 {
7178
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 if ac_fn_c_try_link "$LINENO"; then :
7184 eval $cacheid=yes
7185 else
7186 eval $cacheid=no
7187 fi
7188 rm -f core conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
7190 fi
7191
7192
7193 CFLAGS="$xorg_testset_save_CFLAGS"
7194
7195 eval supported=\$$cacheid
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7197 $as_echo "$supported" >&6; }
7198 if test "$supported" = "yes" ; then
7199 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7200 found="yes"
7201 fi
7202 fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 xorg_testset_save_CFLAGS="$CFLAGS"
7219
7220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 _ACEOF
7231 if ac_fn_c_try_compile "$LINENO"; then :
7232 xorg_cv_cc_flag_unknown_warning_option=yes
7233 else
7234 xorg_cv_cc_flag_unknown_warning_option=no
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241 CFLAGS="$xorg_testset_save_CFLAGS"
7242 fi
7243
7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 fi
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 int i;
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"; then :
7259 xorg_cv_cc_flag_unused_command_line_argument=yes
7260 else
7261 xorg_cv_cc_flag_unused_command_line_argument=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269 fi
7270
7271 found="no"
7272
7273 if test $found = "no" ; then
7274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 fi
7277
7278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280 fi
7281
7282 CFLAGS="$CFLAGS -Werror=sequence-point"
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7285 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7286 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7287 if eval \${$cacheid+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 int
7294 main ()
7295 {
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 eval $cacheid=yes
7303 else
7304 eval $cacheid=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 fi
7309
7310
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313 eval supported=\$$cacheid
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315 $as_echo "$supported" >&6; }
7316 if test "$supported" = "yes" ; then
7317 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7318 found="yes"
7319 fi
7320 fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 xorg_testset_save_CFLAGS="$CFLAGS"
7337
7338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"; then :
7350 xorg_cv_cc_flag_unknown_warning_option=yes
7351 else
7352 xorg_cv_cc_flag_unknown_warning_option=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7359 CFLAGS="$xorg_testset_save_CFLAGS"
7360 fi
7361
7362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365 fi
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int i;
7375 _ACEOF
7376 if ac_fn_c_try_compile "$LINENO"; then :
7377 xorg_cv_cc_flag_unused_command_line_argument=yes
7378 else
7379 xorg_cv_cc_flag_unused_command_line_argument=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7386 CFLAGS="$xorg_testset_save_CFLAGS"
7387 fi
7388
7389 found="no"
7390
7391 if test $found = "no" ; then
7392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394 fi
7395
7396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398 fi
7399
7400 CFLAGS="$CFLAGS -Werror=return-type"
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7403 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7404 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7405 if eval \${$cacheid+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 int
7412 main ()
7413 {
7414
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 eval $cacheid=yes
7421 else
7422 eval $cacheid=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 fi
7427
7428
7429 CFLAGS="$xorg_testset_save_CFLAGS"
7430
7431 eval supported=\$$cacheid
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7433 $as_echo "$supported" >&6; }
7434 if test "$supported" = "yes" ; then
7435 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7436 found="yes"
7437 fi
7438 fi
7439
7440 if test $found = "no" ; then
7441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443 fi
7444
7445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447 fi
7448
7449 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7452 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7453 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7454 if eval \${$cacheid+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 int i;
7460 int
7461 main ()
7462 {
7463
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_link "$LINENO"; then :
7469 eval $cacheid=yes
7470 else
7471 eval $cacheid=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7475 fi
7476
7477
7478 CFLAGS="$xorg_testset_save_CFLAGS"
7479
7480 eval supported=\$$cacheid
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7482 $as_echo "$supported" >&6; }
7483 if test "$supported" = "yes" ; then
7484 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7485 found="yes"
7486 fi
7487 fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 xorg_testset_save_CFLAGS="$CFLAGS"
7504
7505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 int i;
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 xorg_cv_cc_flag_unknown_warning_option=yes
7518 else
7519 xorg_cv_cc_flag_unknown_warning_option=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7526 CFLAGS="$xorg_testset_save_CFLAGS"
7527 fi
7528
7529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 fi
7533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 int i;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 xorg_cv_cc_flag_unused_command_line_argument=yes
7545 else
7546 xorg_cv_cc_flag_unused_command_line_argument=no
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7553 CFLAGS="$xorg_testset_save_CFLAGS"
7554 fi
7555
7556 found="no"
7557
7558 if test $found = "no" ; then
7559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 fi
7562
7563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 fi
7566
7567 CFLAGS="$CFLAGS -Werror=trigraphs"
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7570 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7571 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7572 if eval \${$cacheid+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 int
7579 main ()
7580 {
7581
7582 ;
7583 return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_link "$LINENO"; then :
7587 eval $cacheid=yes
7588 else
7589 eval $cacheid=no
7590 fi
7591 rm -f core conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7593 fi
7594
7595
7596 CFLAGS="$xorg_testset_save_CFLAGS"
7597
7598 eval supported=\$$cacheid
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7600 $as_echo "$supported" >&6; }
7601 if test "$supported" = "yes" ; then
7602 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7603 found="yes"
7604 fi
7605 fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621 xorg_testset_save_CFLAGS="$CFLAGS"
7622
7623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 int i;
7633 _ACEOF
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 xorg_cv_cc_flag_unknown_warning_option=yes
7636 else
7637 xorg_cv_cc_flag_unknown_warning_option=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7644 CFLAGS="$xorg_testset_save_CFLAGS"
7645 fi
7646
7647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 fi
7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 int i;
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 xorg_cv_cc_flag_unused_command_line_argument=yes
7663 else
7664 xorg_cv_cc_flag_unused_command_line_argument=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7671 CFLAGS="$xorg_testset_save_CFLAGS"
7672 fi
7673
7674 found="no"
7675
7676 if test $found = "no" ; then
7677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679 fi
7680
7681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683 fi
7684
7685 CFLAGS="$CFLAGS -Werror=array-bounds"
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7688 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7689 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7690 if eval \${$cacheid+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 int i;
7696 int
7697 main ()
7698 {
7699
7700 ;
7701 return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_link "$LINENO"; then :
7705 eval $cacheid=yes
7706 else
7707 eval $cacheid=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 fi
7712
7713
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715
7716 eval supported=\$$cacheid
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7718 $as_echo "$supported" >&6; }
7719 if test "$supported" = "yes" ; then
7720 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7721 found="yes"
7722 fi
7723 fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739 xorg_testset_save_CFLAGS="$CFLAGS"
7740
7741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 int i;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 xorg_cv_cc_flag_unknown_warning_option=yes
7754 else
7755 xorg_cv_cc_flag_unknown_warning_option=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7762 CFLAGS="$xorg_testset_save_CFLAGS"
7763 fi
7764
7765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 fi
7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 int i;
7778 _ACEOF
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780 xorg_cv_cc_flag_unused_command_line_argument=yes
7781 else
7782 xorg_cv_cc_flag_unused_command_line_argument=no
7783 fi
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7789 CFLAGS="$xorg_testset_save_CFLAGS"
7790 fi
7791
7792 found="no"
7793
7794 if test $found = "no" ; then
7795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797 fi
7798
7799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801 fi
7802
7803 CFLAGS="$CFLAGS -Werror=write-strings"
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7806 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7807 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7808 if eval \${$cacheid+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 int
7815 main ()
7816 {
7817
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_link "$LINENO"; then :
7823 eval $cacheid=yes
7824 else
7825 eval $cacheid=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7829 fi
7830
7831
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833
7834 eval supported=\$$cacheid
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7836 $as_echo "$supported" >&6; }
7837 if test "$supported" = "yes" ; then
7838 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7839 found="yes"
7840 fi
7841 fi
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857 xorg_testset_save_CFLAGS="$CFLAGS"
7858
7859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 int i;
7869 _ACEOF
7870 if ac_fn_c_try_compile "$LINENO"; then :
7871 xorg_cv_cc_flag_unknown_warning_option=yes
7872 else
7873 xorg_cv_cc_flag_unknown_warning_option=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881 fi
7882
7883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 fi
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 int i;
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 xorg_cv_cc_flag_unused_command_line_argument=yes
7899 else
7900 xorg_cv_cc_flag_unused_command_line_argument=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7907 CFLAGS="$xorg_testset_save_CFLAGS"
7908 fi
7909
7910 found="no"
7911
7912 if test $found = "no" ; then
7913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915 fi
7916
7917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7919 fi
7920
7921 CFLAGS="$CFLAGS -Werror=address"
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7924 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7925 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7926 if eval \${$cacheid+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 int
7933 main ()
7934 {
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 eval $cacheid=yes
7942 else
7943 eval $cacheid=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7947 fi
7948
7949
7950 CFLAGS="$xorg_testset_save_CFLAGS"
7951
7952 eval supported=\$$cacheid
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7954 $as_echo "$supported" >&6; }
7955 if test "$supported" = "yes" ; then
7956 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7957 found="yes"
7958 fi
7959 fi
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 xorg_testset_save_CFLAGS="$CFLAGS"
7976
7977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989 xorg_cv_cc_flag_unknown_warning_option=yes
7990 else
7991 xorg_cv_cc_flag_unknown_warning_option=no
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7998 CFLAGS="$xorg_testset_save_CFLAGS"
7999 fi
8000
8001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004 fi
8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 int i;
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 xorg_cv_cc_flag_unused_command_line_argument=yes
8017 else
8018 xorg_cv_cc_flag_unused_command_line_argument=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026 fi
8027
8028 found="no"
8029
8030 if test $found = "no" ; then
8031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033 fi
8034
8035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037 fi
8038
8039 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8042 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8043 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8044 if eval \${$cacheid+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 int
8051 main ()
8052 {
8053
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_link "$LINENO"; then :
8059 eval $cacheid=yes
8060 else
8061 eval $cacheid=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 fi
8066
8067
8068 CFLAGS="$xorg_testset_save_CFLAGS"
8069
8070 eval supported=\$$cacheid
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8072 $as_echo "$supported" >&6; }
8073 if test "$supported" = "yes" ; then
8074 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8075 found="yes"
8076 fi
8077 fi
8078
8079 if test $found = "no" ; then
8080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 fi
8083
8084 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086 fi
8087
8088 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8091 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8092 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8093 if eval \${$cacheid+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 int i;
8099 int
8100 main ()
8101 {
8102
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 eval $cacheid=yes
8109 else
8110 eval $cacheid=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 fi
8115
8116
8117 CFLAGS="$xorg_testset_save_CFLAGS"
8118
8119 eval supported=\$$cacheid
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8121 $as_echo "$supported" >&6; }
8122 if test "$supported" = "yes" ; then
8123 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8124 found="yes"
8125 fi
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 xorg_testset_save_CFLAGS="$CFLAGS"
8143
8144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8147 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8148 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 int i;
8154 _ACEOF
8155 if ac_fn_c_try_compile "$LINENO"; then :
8156 xorg_cv_cc_flag_unknown_warning_option=yes
8157 else
8158 xorg_cv_cc_flag_unknown_warning_option=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8163 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8165 CFLAGS="$xorg_testset_save_CFLAGS"
8166 fi
8167
8168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171 fi
8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8174 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8175 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 int i;
8181 _ACEOF
8182 if ac_fn_c_try_compile "$LINENO"; then :
8183 xorg_cv_cc_flag_unused_command_line_argument=yes
8184 else
8185 xorg_cv_cc_flag_unused_command_line_argument=no
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8190 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8192 CFLAGS="$xorg_testset_save_CFLAGS"
8193 fi
8194
8195 found="no"
8196
8197 if test $found = "no" ; then
8198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200 fi
8201
8202 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204 fi
8205
8206 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8207
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8209 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8210 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8211 if eval \${$cacheid+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 int i;
8217 int
8218 main ()
8219 {
8220
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_c_try_link "$LINENO"; then :
8226 eval $cacheid=yes
8227 else
8228 eval $cacheid=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232 fi
8233
8234
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236
8237 eval supported=\$$cacheid
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8239 $as_echo "$supported" >&6; }
8240 if test "$supported" = "yes" ; then
8241 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8242 found="yes"
8243 fi
8244 fi
8245
8246 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8247 else
8248 { $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
8249 $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;}
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 xorg_testset_save_CFLAGS="$CFLAGS"
8264
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8268 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8269 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 int i;
8275 _ACEOF
8276 if ac_fn_c_try_compile "$LINENO"; then :
8277 xorg_cv_cc_flag_unknown_warning_option=yes
8278 else
8279 xorg_cv_cc_flag_unknown_warning_option=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8284 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8286 CFLAGS="$xorg_testset_save_CFLAGS"
8287 fi
8288
8289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 fi
8293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8295 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8296 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 xorg_cv_cc_flag_unused_command_line_argument=yes
8305 else
8306 xorg_cv_cc_flag_unused_command_line_argument=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 found="no"
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -Wimplicit"
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8330 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8331 cacheid=xorg_cv_cc_flag__Wimplicit
8332 if eval \${$cacheid+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 int
8339 main ()
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 eval $cacheid=yes
8348 else
8349 eval $cacheid=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 fi
8354
8355
8356 CFLAGS="$xorg_testset_save_CFLAGS"
8357
8358 eval supported=\$$cacheid
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8360 $as_echo "$supported" >&6; }
8361 if test "$supported" = "yes" ; then
8362 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8363 found="yes"
8364 fi
8365 fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 xorg_testset_save_CFLAGS="$CFLAGS"
8382
8383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 xorg_cv_cc_flag_unknown_warning_option=yes
8396 else
8397 xorg_cv_cc_flag_unknown_warning_option=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8404 CFLAGS="$xorg_testset_save_CFLAGS"
8405 fi
8406
8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410 fi
8411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 int i;
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422 xorg_cv_cc_flag_unused_command_line_argument=yes
8423 else
8424 xorg_cv_cc_flag_unused_command_line_argument=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432 fi
8433
8434 found="no"
8435
8436 if test $found = "no" ; then
8437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440
8441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443 fi
8444
8445 CFLAGS="$CFLAGS -Wnonnull"
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8448 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8449 cacheid=xorg_cv_cc_flag__Wnonnull
8450 if eval \${$cacheid+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int i;
8456 int
8457 main ()
8458 {
8459
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 eval $cacheid=yes
8466 else
8467 eval $cacheid=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 fi
8472
8473
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476 eval supported=\$$cacheid
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478 $as_echo "$supported" >&6; }
8479 if test "$supported" = "yes" ; then
8480 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8481 found="yes"
8482 fi
8483 fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 xorg_testset_save_CFLAGS="$CFLAGS"
8500
8501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 int i;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 xorg_cv_cc_flag_unknown_warning_option=yes
8514 else
8515 xorg_cv_cc_flag_unknown_warning_option=no
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8522 CFLAGS="$xorg_testset_save_CFLAGS"
8523 fi
8524
8525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528 fi
8529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 xorg_cv_cc_flag_unused_command_line_argument=yes
8541 else
8542 xorg_cv_cc_flag_unused_command_line_argument=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550 fi
8551
8552 found="no"
8553
8554 if test $found = "no" ; then
8555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 fi
8558
8559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561 fi
8562
8563 CFLAGS="$CFLAGS -Winit-self"
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8566 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8567 cacheid=xorg_cv_cc_flag__Winit_self
8568 if eval \${$cacheid+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 int i;
8574 int
8575 main ()
8576 {
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 eval $cacheid=yes
8584 else
8585 eval $cacheid=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 fi
8590
8591
8592 CFLAGS="$xorg_testset_save_CFLAGS"
8593
8594 eval supported=\$$cacheid
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8596 $as_echo "$supported" >&6; }
8597 if test "$supported" = "yes" ; then
8598 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8599 found="yes"
8600 fi
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 xorg_testset_save_CFLAGS="$CFLAGS"
8618
8619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 int i;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 xorg_cv_cc_flag_unknown_warning_option=yes
8632 else
8633 xorg_cv_cc_flag_unknown_warning_option=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8640 CFLAGS="$xorg_testset_save_CFLAGS"
8641 fi
8642
8643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 fi
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 _ACEOF
8657 if ac_fn_c_try_compile "$LINENO"; then :
8658 xorg_cv_cc_flag_unused_command_line_argument=yes
8659 else
8660 xorg_cv_cc_flag_unused_command_line_argument=no
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8667 CFLAGS="$xorg_testset_save_CFLAGS"
8668 fi
8669
8670 found="no"
8671
8672 if test $found = "no" ; then
8673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675 fi
8676
8677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679 fi
8680
8681 CFLAGS="$CFLAGS -Wmain"
8682
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8684 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8685 cacheid=xorg_cv_cc_flag__Wmain
8686 if eval \${$cacheid+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 int i;
8692 int
8693 main ()
8694 {
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 eval $cacheid=yes
8702 else
8703 eval $cacheid=no
8704 fi
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 fi
8708
8709
8710 CFLAGS="$xorg_testset_save_CFLAGS"
8711
8712 eval supported=\$$cacheid
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8714 $as_echo "$supported" >&6; }
8715 if test "$supported" = "yes" ; then
8716 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8717 found="yes"
8718 fi
8719 fi
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 xorg_testset_save_CFLAGS="$CFLAGS"
8736
8737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8740 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8741 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 int i;
8747 _ACEOF
8748 if ac_fn_c_try_compile "$LINENO"; then :
8749 xorg_cv_cc_flag_unknown_warning_option=yes
8750 else
8751 xorg_cv_cc_flag_unknown_warning_option=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8756 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8758 CFLAGS="$xorg_testset_save_CFLAGS"
8759 fi
8760
8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 fi
8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8768 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int i;
8774 _ACEOF
8775 if ac_fn_c_try_compile "$LINENO"; then :
8776 xorg_cv_cc_flag_unused_command_line_argument=yes
8777 else
8778 xorg_cv_cc_flag_unused_command_line_argument=no
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8783 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8785 CFLAGS="$xorg_testset_save_CFLAGS"
8786 fi
8787
8788 found="no"
8789
8790 if test $found = "no" ; then
8791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794
8795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797 fi
8798
8799 CFLAGS="$CFLAGS -Wmissing-braces"
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8802 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8803 cacheid=xorg_cv_cc_flag__Wmissing_braces
8804 if eval \${$cacheid+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int i;
8810 int
8811 main ()
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_link "$LINENO"; then :
8819 eval $cacheid=yes
8820 else
8821 eval $cacheid=no
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 fi
8826
8827
8828 CFLAGS="$xorg_testset_save_CFLAGS"
8829
8830 eval supported=\$$cacheid
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8832 $as_echo "$supported" >&6; }
8833 if test "$supported" = "yes" ; then
8834 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8835 found="yes"
8836 fi
8837 fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853 xorg_testset_save_CFLAGS="$CFLAGS"
8854
8855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8858 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8859 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 int i;
8865 _ACEOF
8866 if ac_fn_c_try_compile "$LINENO"; then :
8867 xorg_cv_cc_flag_unknown_warning_option=yes
8868 else
8869 xorg_cv_cc_flag_unknown_warning_option=no
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8874 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8876 CFLAGS="$xorg_testset_save_CFLAGS"
8877 fi
8878
8879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 fi
8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8885 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8886 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"; then :
8894 xorg_cv_cc_flag_unused_command_line_argument=yes
8895 else
8896 xorg_cv_cc_flag_unused_command_line_argument=no
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8901 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8903 CFLAGS="$xorg_testset_save_CFLAGS"
8904 fi
8905
8906 found="no"
8907
8908 if test $found = "no" ; then
8909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 fi
8912
8913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915 fi
8916
8917 CFLAGS="$CFLAGS -Wsequence-point"
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8920 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8921 cacheid=xorg_cv_cc_flag__Wsequence_point
8922 if eval \${$cacheid+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 int
8929 main ()
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 eval $cacheid=yes
8938 else
8939 eval $cacheid=no
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 fi
8944
8945
8946 CFLAGS="$xorg_testset_save_CFLAGS"
8947
8948 eval supported=\$$cacheid
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8950 $as_echo "$supported" >&6; }
8951 if test "$supported" = "yes" ; then
8952 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8953 found="yes"
8954 fi
8955 fi
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971 xorg_testset_save_CFLAGS="$CFLAGS"
8972
8973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8976 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8977 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 int i;
8983 _ACEOF
8984 if ac_fn_c_try_compile "$LINENO"; then :
8985 xorg_cv_cc_flag_unknown_warning_option=yes
8986 else
8987 xorg_cv_cc_flag_unknown_warning_option=no
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8992 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8994 CFLAGS="$xorg_testset_save_CFLAGS"
8995 fi
8996
8997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000 fi
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9003 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9004 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"; then :
9012 xorg_cv_cc_flag_unused_command_line_argument=yes
9013 else
9014 xorg_cv_cc_flag_unused_command_line_argument=no
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022 fi
9023
9024 found="no"
9025
9026 if test $found = "no" ; then
9027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030
9031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033 fi
9034
9035 CFLAGS="$CFLAGS -Wreturn-type"
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9038 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9039 cacheid=xorg_cv_cc_flag__Wreturn_type
9040 if eval \${$cacheid+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 int i;
9046 int
9047 main ()
9048 {
9049
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 eval $cacheid=yes
9056 else
9057 eval $cacheid=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 fi
9062
9063
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066 eval supported=\$$cacheid
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068 $as_echo "$supported" >&6; }
9069 if test "$supported" = "yes" ; then
9070 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9071 found="yes"
9072 fi
9073 fi
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 xorg_testset_save_CFLAGS="$CFLAGS"
9090
9091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100 int i;
9101 _ACEOF
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103 xorg_cv_cc_flag_unknown_warning_option=yes
9104 else
9105 xorg_cv_cc_flag_unknown_warning_option=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112 CFLAGS="$xorg_testset_save_CFLAGS"
9113 fi
9114
9115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 fi
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 int i;
9128 _ACEOF
9129 if ac_fn_c_try_compile "$LINENO"; then :
9130 xorg_cv_cc_flag_unused_command_line_argument=yes
9131 else
9132 xorg_cv_cc_flag_unused_command_line_argument=no
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 fi
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9140 fi
9141
9142 found="no"
9143
9144 if test $found = "no" ; then
9145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 fi
9148
9149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9151 fi
9152
9153 CFLAGS="$CFLAGS -Wtrigraphs"
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9156 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9157 cacheid=xorg_cv_cc_flag__Wtrigraphs
9158 if eval \${$cacheid+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int i;
9164 int
9165 main ()
9166 {
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173 eval $cacheid=yes
9174 else
9175 eval $cacheid=no
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 fi
9180
9181
9182 CFLAGS="$xorg_testset_save_CFLAGS"
9183
9184 eval supported=\$$cacheid
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9186 $as_echo "$supported" >&6; }
9187 if test "$supported" = "yes" ; then
9188 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9189 found="yes"
9190 fi
9191 fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207 xorg_testset_save_CFLAGS="$CFLAGS"
9208
9209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 int i;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 xorg_cv_cc_flag_unknown_warning_option=yes
9222 else
9223 xorg_cv_cc_flag_unknown_warning_option=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9230 CFLAGS="$xorg_testset_save_CFLAGS"
9231 fi
9232
9233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 fi
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 int i;
9246 _ACEOF
9247 if ac_fn_c_try_compile "$LINENO"; then :
9248 xorg_cv_cc_flag_unused_command_line_argument=yes
9249 else
9250 xorg_cv_cc_flag_unused_command_line_argument=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9257 CFLAGS="$xorg_testset_save_CFLAGS"
9258 fi
9259
9260 found="no"
9261
9262 if test $found = "no" ; then
9263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 fi
9266
9267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269 fi
9270
9271 CFLAGS="$CFLAGS -Warray-bounds"
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9274 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9275 cacheid=xorg_cv_cc_flag__Warray_bounds
9276 if eval \${$cacheid+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 int i;
9282 int
9283 main ()
9284 {
9285
9286 ;
9287 return 0;
9288 }
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 eval $cacheid=yes
9292 else
9293 eval $cacheid=no
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 fi
9298
9299
9300 CFLAGS="$xorg_testset_save_CFLAGS"
9301
9302 eval supported=\$$cacheid
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9304 $as_echo "$supported" >&6; }
9305 if test "$supported" = "yes" ; then
9306 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9307 found="yes"
9308 fi
9309 fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325 xorg_testset_save_CFLAGS="$CFLAGS"
9326
9327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 int i;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 xorg_cv_cc_flag_unknown_warning_option=yes
9340 else
9341 xorg_cv_cc_flag_unknown_warning_option=no
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9348 CFLAGS="$xorg_testset_save_CFLAGS"
9349 fi
9350
9351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354 fi
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int i;
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366 xorg_cv_cc_flag_unused_command_line_argument=yes
9367 else
9368 xorg_cv_cc_flag_unused_command_line_argument=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9375 CFLAGS="$xorg_testset_save_CFLAGS"
9376 fi
9377
9378 found="no"
9379
9380 if test $found = "no" ; then
9381 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 fi
9384
9385 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387 fi
9388
9389 CFLAGS="$CFLAGS -Wwrite-strings"
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9392 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9393 cacheid=xorg_cv_cc_flag__Wwrite_strings
9394 if eval \${$cacheid+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 int
9401 main ()
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409 eval $cacheid=yes
9410 else
9411 eval $cacheid=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 fi
9416
9417
9418 CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420 eval supported=\$$cacheid
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422 $as_echo "$supported" >&6; }
9423 if test "$supported" = "yes" ; then
9424 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9425 found="yes"
9426 fi
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454 int i;
9455 _ACEOF
9456 if ac_fn_c_try_compile "$LINENO"; then :
9457 xorg_cv_cc_flag_unknown_warning_option=yes
9458 else
9459 xorg_cv_cc_flag_unknown_warning_option=no
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9466 CFLAGS="$xorg_testset_save_CFLAGS"
9467 fi
9468
9469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472 fi
9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 int i;
9482 _ACEOF
9483 if ac_fn_c_try_compile "$LINENO"; then :
9484 xorg_cv_cc_flag_unused_command_line_argument=yes
9485 else
9486 xorg_cv_cc_flag_unused_command_line_argument=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 found="no"
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -Waddress"
9508
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9510 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9511 cacheid=xorg_cv_cc_flag__Waddress
9512 if eval \${$cacheid+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 int
9519 main ()
9520 {
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527 eval $cacheid=yes
9528 else
9529 eval $cacheid=no
9530 fi
9531 rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 fi
9534
9535
9536 CFLAGS="$xorg_testset_save_CFLAGS"
9537
9538 eval supported=\$$cacheid
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9540 $as_echo "$supported" >&6; }
9541 if test "$supported" = "yes" ; then
9542 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9543 found="yes"
9544 fi
9545 fi
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561 xorg_testset_save_CFLAGS="$CFLAGS"
9562
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 int i;
9573 _ACEOF
9574 if ac_fn_c_try_compile "$LINENO"; then :
9575 xorg_cv_cc_flag_unknown_warning_option=yes
9576 else
9577 xorg_cv_cc_flag_unknown_warning_option=no
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9584 CFLAGS="$xorg_testset_save_CFLAGS"
9585 fi
9586
9587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590 fi
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 int i;
9600 _ACEOF
9601 if ac_fn_c_try_compile "$LINENO"; then :
9602 xorg_cv_cc_flag_unused_command_line_argument=yes
9603 else
9604 xorg_cv_cc_flag_unused_command_line_argument=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9611 CFLAGS="$xorg_testset_save_CFLAGS"
9612 fi
9613
9614 found="no"
9615
9616 if test $found = "no" ; then
9617 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619 fi
9620
9621 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623 fi
9624
9625 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9628 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9629 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9630 if eval \${$cacheid+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 int
9637 main ()
9638 {
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 eval $cacheid=yes
9646 else
9647 eval $cacheid=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 fi
9652
9653
9654 CFLAGS="$xorg_testset_save_CFLAGS"
9655
9656 eval supported=\$$cacheid
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9658 $as_echo "$supported" >&6; }
9659 if test "$supported" = "yes" ; then
9660 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9661 found="yes"
9662 fi
9663 fi
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679 xorg_testset_save_CFLAGS="$CFLAGS"
9680
9681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 int i;
9691 _ACEOF
9692 if ac_fn_c_try_compile "$LINENO"; then :
9693 xorg_cv_cc_flag_unknown_warning_option=yes
9694 else
9695 xorg_cv_cc_flag_unknown_warning_option=no
9696 fi
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9702 CFLAGS="$xorg_testset_save_CFLAGS"
9703 fi
9704
9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 fi
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 int i;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 xorg_cv_cc_flag_unused_command_line_argument=yes
9721 else
9722 xorg_cv_cc_flag_unused_command_line_argument=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9729 CFLAGS="$xorg_testset_save_CFLAGS"
9730 fi
9731
9732 found="no"
9733
9734 if test $found = "no" ; then
9735 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 fi
9738
9739 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9741 fi
9742
9743 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9744
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9746 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9747 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9748 if eval \${$cacheid+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 int
9755 main ()
9756 {
9757
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 eval $cacheid=yes
9764 else
9765 eval $cacheid=no
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 fi
9770
9771
9772 CFLAGS="$xorg_testset_save_CFLAGS"
9773
9774 eval supported=\$$cacheid
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9776 $as_echo "$supported" >&6; }
9777 if test "$supported" = "yes" ; then
9778 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9779 found="yes"
9780 fi
9781 fi
9782
9783
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792 CWARNFLAGS="$BASE_CFLAGS"
9793 if test "x$GCC" = xyes ; then
9794 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9795 fi
9796
9797
9798
9799
9800
9801
9802
9803
9804 # Check whether --enable-strict-compilation was given.
9805 if test "${enable_strict_compilation+set}" = set; then :
9806 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9807 else
9808 STRICT_COMPILE=no
9809 fi
9810
9811
9812
9813
9814
9815
9816 STRICT_CFLAGS=""
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830 xorg_testset_save_CFLAGS="$CFLAGS"
9831
9832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9835 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9836 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 int i;
9842 _ACEOF
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844 xorg_cv_cc_flag_unknown_warning_option=yes
9845 else
9846 xorg_cv_cc_flag_unknown_warning_option=no
9847 fi
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9851 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9853 CFLAGS="$xorg_testset_save_CFLAGS"
9854 fi
9855
9856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 fi
9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9862 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9863 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 int i;
9869 _ACEOF
9870 if ac_fn_c_try_compile "$LINENO"; then :
9871 xorg_cv_cc_flag_unused_command_line_argument=yes
9872 else
9873 xorg_cv_cc_flag_unused_command_line_argument=no
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9878 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9880 CFLAGS="$xorg_testset_save_CFLAGS"
9881 fi
9882
9883 found="no"
9884
9885 if test $found = "no" ; then
9886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888 fi
9889
9890 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892 fi
9893
9894 CFLAGS="$CFLAGS -pedantic"
9895
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9897 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9898 cacheid=xorg_cv_cc_flag__pedantic
9899 if eval \${$cacheid+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int i;
9905 int
9906 main ()
9907 {
9908
9909 ;
9910 return 0;
9911 }
9912 _ACEOF
9913 if ac_fn_c_try_link "$LINENO"; then :
9914 eval $cacheid=yes
9915 else
9916 eval $cacheid=no
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 fi
9921
9922
9923 CFLAGS="$xorg_testset_save_CFLAGS"
9924
9925 eval supported=\$$cacheid
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9927 $as_echo "$supported" >&6; }
9928 if test "$supported" = "yes" ; then
9929 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9930 found="yes"
9931 fi
9932 fi
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948 xorg_testset_save_CFLAGS="$CFLAGS"
9949
9950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9953 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9954 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 int i;
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 xorg_cv_cc_flag_unknown_warning_option=yes
9963 else
9964 xorg_cv_cc_flag_unknown_warning_option=no
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9969 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9971 CFLAGS="$xorg_testset_save_CFLAGS"
9972 fi
9973
9974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977 fi
9978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9980 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9981 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 int i;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"; then :
9989 xorg_cv_cc_flag_unused_command_line_argument=yes
9990 else
9991 xorg_cv_cc_flag_unused_command_line_argument=no
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9996 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9998 CFLAGS="$xorg_testset_save_CFLAGS"
9999 fi
10000
10001 found="no"
10002
10003 if test $found = "no" ; then
10004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 fi
10007
10008 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010 fi
10011
10012 CFLAGS="$CFLAGS -Werror"
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10015 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10016 cacheid=xorg_cv_cc_flag__Werror
10017 if eval \${$cacheid+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 int i;
10023 int
10024 main ()
10025 {
10026
10027 ;
10028 return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032 eval $cacheid=yes
10033 else
10034 eval $cacheid=no
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10038 fi
10039
10040
10041 CFLAGS="$xorg_testset_save_CFLAGS"
10042
10043 eval supported=\$$cacheid
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10045 $as_echo "$supported" >&6; }
10046 if test "$supported" = "yes" ; then
10047 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10048 found="yes"
10049 fi
10050 fi
10051
10052 if test $found = "no" ; then
10053 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 fi
10056
10057 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059 fi
10060
10061 CFLAGS="$CFLAGS -errwarn"
10062
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10064 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10065 cacheid=xorg_cv_cc_flag__errwarn
10066 if eval \${$cacheid+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 int i;
10072 int
10073 main ()
10074 {
10075
10076 ;
10077 return 0;
10078 }
10079 _ACEOF
10080 if ac_fn_c_try_link "$LINENO"; then :
10081 eval $cacheid=yes
10082 else
10083 eval $cacheid=no
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 fi
10088
10089
10090 CFLAGS="$xorg_testset_save_CFLAGS"
10091
10092 eval supported=\$$cacheid
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10094 $as_echo "$supported" >&6; }
10095 if test "$supported" = "yes" ; then
10096 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10097 found="yes"
10098 fi
10099 fi
10100
10101
10102
10103 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10104 # activate it with -Werror, so we add it here explicitly.
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118 xorg_testset_save_CFLAGS="$CFLAGS"
10119
10120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int i;
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"; then :
10132 xorg_cv_cc_flag_unknown_warning_option=yes
10133 else
10134 xorg_cv_cc_flag_unknown_warning_option=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10141 CFLAGS="$xorg_testset_save_CFLAGS"
10142 fi
10143
10144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147 fi
10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156 int i;
10157 _ACEOF
10158 if ac_fn_c_try_compile "$LINENO"; then :
10159 xorg_cv_cc_flag_unused_command_line_argument=yes
10160 else
10161 xorg_cv_cc_flag_unused_command_line_argument=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10168 CFLAGS="$xorg_testset_save_CFLAGS"
10169 fi
10170
10171 found="no"
10172
10173 if test $found = "no" ; then
10174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176 fi
10177
10178 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180 fi
10181
10182 CFLAGS="$CFLAGS -Werror=attributes"
10183
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10185 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10186 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10187 if eval \${$cacheid+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 int i;
10193 int
10194 main ()
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202 eval $cacheid=yes
10203 else
10204 eval $cacheid=no
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 fi
10209
10210
10211 CFLAGS="$xorg_testset_save_CFLAGS"
10212
10213 eval supported=\$$cacheid
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10215 $as_echo "$supported" >&6; }
10216 if test "$supported" = "yes" ; then
10217 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10218 found="yes"
10219 fi
10220 fi
10221
10222
10223
10224 if test "x$STRICT_COMPILE" = "xyes"; then
10225 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10226 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10227 fi
10228
10229
10230
10231
10232
10233
10234 cat >>confdefs.h <<_ACEOF
10235 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10236 _ACEOF
10237
10238 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10239 if test "x$PVM" = "x"; then
10240 PVM="0"
10241 fi
10242
10243 cat >>confdefs.h <<_ACEOF
10244 #define PACKAGE_VERSION_MINOR $PVM
10245 _ACEOF
10246
10247 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10248 if test "x$PVP" = "x"; then
10249 PVP="0"
10250 fi
10251
10252 cat >>confdefs.h <<_ACEOF
10253 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10254 _ACEOF
10255
10256
10257
10258 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10259 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10260 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10261 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10262
10263
10264
10265
10266 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10267 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10268 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10269 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10270 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10271
10272
10273
10274
10275
10276
10277 if test x$APP_MAN_SUFFIX = x ; then
10278 APP_MAN_SUFFIX=1
10279 fi
10280 if test x$APP_MAN_DIR = x ; then
10281 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10282 fi
10283
10284 if test x$LIB_MAN_SUFFIX = x ; then
10285 LIB_MAN_SUFFIX=3
10286 fi
10287 if test x$LIB_MAN_DIR = x ; then
10288 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10289 fi
10290
10291 if test x$FILE_MAN_SUFFIX = x ; then
10292 case $host_os in
10293 solaris*) FILE_MAN_SUFFIX=4 ;;
10294 *) FILE_MAN_SUFFIX=5 ;;
10295 esac
10296 fi
10297 if test x$FILE_MAN_DIR = x ; then
10298 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10299 fi
10300
10301 if test x$MISC_MAN_SUFFIX = x ; then
10302 case $host_os in
10303 solaris*) MISC_MAN_SUFFIX=5 ;;
10304 *) MISC_MAN_SUFFIX=7 ;;
10305 esac
10306 fi
10307 if test x$MISC_MAN_DIR = x ; then
10308 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10309 fi
10310
10311 if test x$DRIVER_MAN_SUFFIX = x ; then
10312 case $host_os in
10313 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10314 *) DRIVER_MAN_SUFFIX=4 ;;
10315 esac
10316 fi
10317 if test x$DRIVER_MAN_DIR = x ; then
10318 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10319 fi
10320
10321 if test x$ADMIN_MAN_SUFFIX = x ; then
10322 case $host_os in
10323 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10324 *) ADMIN_MAN_SUFFIX=8 ;;
10325 esac
10326 fi
10327 if test x$ADMIN_MAN_DIR = x ; then
10328 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10329 fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345 XORG_MAN_PAGE="X Version 11"
10346
10347 MAN_SUBSTS="\
10348 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10349 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10350 -e 's|__xservername__|Xorg|g' \
10351 -e 's|__xconfigfile__|xorg.conf|g' \
10352 -e 's|__projectroot__|\$(prefix)|g' \
10353 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10354 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10355 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10356 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10357 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10358 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10359 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10360
10361
10362
10363 # Check whether --enable-silent-rules was given.
10364 if test "${enable_silent_rules+set}" = set; then :
10365 enableval=$enable_silent_rules;
10366 fi
10367
10368 case $enable_silent_rules in
10369 yes) AM_DEFAULT_VERBOSITY=0;;
10370 no) AM_DEFAULT_VERBOSITY=1;;
10371 *) AM_DEFAULT_VERBOSITY=0;;
10372 esac
10373 AM_BACKSLASH='\'
10374
10375
10376
10377 # Checks for pkg-config packages
10378
10379 pkg_failed=no
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5
10381 $as_echo_n "checking for XCALC... " >&6; }
10382
10383 if test -n "$XCALC_CFLAGS"; then
10384 pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS"
10385 elif test -n "$PKG_CONFIG"; then
10386 if test -n "$PKG_CONFIG" && \
10387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11\""; } >&5
10388 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11") 2>&5
10389 ac_status=$?
10390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10391 test $ac_status = 0; }; then
10392 pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11" 2>/dev/null`
10393 else
10394 pkg_failed=yes
10395 fi
10396 else
10397 pkg_failed=untried
10398 fi
10399 if test -n "$XCALC_LIBS"; then
10400 pkg_cv_XCALC_LIBS="$XCALC_LIBS"
10401 elif test -n "$PKG_CONFIG"; then
10402 if test -n "$PKG_CONFIG" && \
10403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11\""; } >&5
10404 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11") 2>&5
10405 ac_status=$?
10406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10407 test $ac_status = 0; }; then
10408 pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11" 2>/dev/null`
10409 else
10410 pkg_failed=yes
10411 fi
10412 else
10413 pkg_failed=untried
10414 fi
10415
10416
10417
10418 if test $pkg_failed = yes; then
10419
10420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10421 _pkg_short_errors_supported=yes
10422 else
10423 _pkg_short_errors_supported=no
10424 fi
10425 if test $_pkg_short_errors_supported = yes; then
10426 XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt x11" 2>&1`
10427 else
10428 XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt x11" 2>&1`
10429 fi
10430 # Put the nasty error message in config.log where it belongs
10431 echo "$XCALC_PKG_ERRORS" >&5
10432
10433 as_fn_error $? "Package requirements (xaw7 xt x11) were not met:
10434
10435 $XCALC_PKG_ERRORS
10436
10437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10438 installed software in a non-standard prefix.
10439
10440 Alternatively, you may set the environment variables XCALC_CFLAGS
10441 and XCALC_LIBS to avoid the need to call pkg-config.
10442 See the pkg-config man page for more details.
10443 " "$LINENO" 5
10444 elif test $pkg_failed = untried; then
10445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10447 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10448 is in your PATH or set the PKG_CONFIG environment variable to the full
10449 path to pkg-config.
10450
10451 Alternatively, you may set the environment variables XCALC_CFLAGS
10452 and XCALC_LIBS to avoid the need to call pkg-config.
10453 See the pkg-config man page for more details.
10454
10455 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10456 See \`config.log' for more details" "$LINENO" 5; }
10457 else
10458 XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS
10459 XCALC_LIBS=$pkg_cv_XCALC_LIBS
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461 $as_echo "yes" >&6; }
10462 :
10463 fi
10464
10465
10466 pkg_failed=no
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10468 $as_echo_n "checking for APPDEFS... " >&6; }
10469
10470 if test -n "$APPDEFS_CFLAGS"; then
10471 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10472 elif test -n "$PKG_CONFIG"; then
10473 if test -n "$PKG_CONFIG" && \
10474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10475 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10476 ac_status=$?
10477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10478 test $ac_status = 0; }; then
10479 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10480 else
10481 pkg_failed=yes
10482 fi
10483 else
10484 pkg_failed=untried
10485 fi
10486 if test -n "$APPDEFS_LIBS"; then
10487 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10488 elif test -n "$PKG_CONFIG"; then
10489 if test -n "$PKG_CONFIG" && \
10490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10491 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; }; then
10495 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10496 else
10497 pkg_failed=yes
10498 fi
10499 else
10500 pkg_failed=untried
10501 fi
10502
10503
10504
10505 if test $pkg_failed = yes; then
10506
10507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10508 _pkg_short_errors_supported=yes
10509 else
10510 _pkg_short_errors_supported=no
10511 fi
10512 if test $_pkg_short_errors_supported = yes; then
10513 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10514 else
10515 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10516 fi
10517 # Put the nasty error message in config.log where it belongs
10518 echo "$APPDEFS_PKG_ERRORS" >&5
10519
10520 as_fn_error $? "Package requirements (xt) were not met:
10521
10522 $APPDEFS_PKG_ERRORS
10523
10524 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10525 installed software in a non-standard prefix.
10526
10527 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10528 and APPDEFS_LIBS to avoid the need to call pkg-config.
10529 See the pkg-config man page for more details.
10530 " "$LINENO" 5
10531 elif test $pkg_failed = untried; then
10532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10534 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10535 is in your PATH or set the PKG_CONFIG environment variable to the full
10536 path to pkg-config.
10537
10538 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10539 and APPDEFS_LIBS to avoid the need to call pkg-config.
10540 See the pkg-config man page for more details.
10541
10542 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10543 See \`config.log' for more details" "$LINENO" 5; }
10544 else
10545 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10546 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10548 $as_echo "yes" >&6; }
10549 :
10550 fi
10551 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10552
10553 # Check whether --with-appdefaultdir was given.
10554 if test "${with_appdefaultdir+set}" = set; then :
10555 withval=$with_appdefaultdir; appdefaultdir="$withval"
10556 else
10557 appdefaultdir="${xt_appdefaultdir}"
10558 fi
10559
10560
10561
10562
10563 ac_config_files="$ac_config_files Makefile man/Makefile"
10564
10565 cat >confcache <<\_ACEOF
10566 # This file is a shell script that caches the results of configure
10567 # tests run on this system so they can be shared between configure
10568 # scripts and configure runs, see configure's option --config-cache.
10569 # It is not useful on other systems. If it contains results you don't
10570 # want to keep, you may remove or edit it.
10571 #
10572 # config.status only pays attention to the cache file if you give it
10573 # the --recheck option to rerun configure.
10574 #
10575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10577 # following values.
10578
10579 _ACEOF
10580
10581 # The following way of writing the cache mishandles newlines in values,
10582 # but we know of no workaround that is simple, portable, and efficient.
10583 # So, we kill variables containing newlines.
10584 # Ultrix sh set writes to stderr and can't be redirected directly,
10585 # and sets the high bit in the cache file unless we assign to the vars.
10586 (
10587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10588 eval ac_val=\$$ac_var
10589 case $ac_val in #(
10590 *${as_nl}*)
10591 case $ac_var in #(
10592 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10594 esac
10595 case $ac_var in #(
10596 _ | IFS | as_nl) ;; #(
10597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10598 *) { eval $ac_var=; unset $ac_var;} ;;
10599 esac ;;
10600 esac
10601 done
10602
10603 (set) 2>&1 |
10604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10605 *${as_nl}ac_space=\ *)
10606 # `set' does not quote correctly, so add quotes: double-quote
10607 # substitution turns \\\\ into \\, and sed turns \\ into \.
10608 sed -n \
10609 "s/'/'\\\\''/g;
10610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10611 ;; #(
10612 *)
10613 # `set' quotes correctly as required by POSIX, so do not add quotes.
10614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10615 ;;
10616 esac |
10617 sort
10618 ) |
10619 sed '
10620 /^ac_cv_env_/b end
10621 t clear
10622 :clear
10623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10624 t end
10625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10626 :end' >>confcache
10627 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10628 if test -w "$cache_file"; then
10629 if test "x$cache_file" != "x/dev/null"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10631 $as_echo "$as_me: updating cache $cache_file" >&6;}
10632 if test ! -f "$cache_file" || test -h "$cache_file"; then
10633 cat confcache >"$cache_file"
10634 else
10635 case $cache_file in #(
10636 */* | ?:*)
10637 mv -f confcache "$cache_file"$$ &&
10638 mv -f "$cache_file"$$ "$cache_file" ;; #(
10639 *)
10640 mv -f confcache "$cache_file" ;;
10641 esac
10642 fi
10643 fi
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10646 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10647 fi
10648 fi
10649 rm -f confcache
10650
10651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10652 # Let make expand exec_prefix.
10653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10654
10655 DEFS=-DHAVE_CONFIG_H
10656
10657 ac_libobjs=
10658 ac_ltlibobjs=
10659 U=
10660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10661 # 1. Remove the extension, and $U if already installed.
10662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10665 # will be set to the directory where LIBOBJS objects are built.
10666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10668 done
10669 LIBOBJS=$ac_libobjs
10670
10671 LTLIBOBJS=$ac_ltlibobjs
10672
10673
10674 if test -n "$EXEEXT"; then
10675 am__EXEEXT_TRUE=
10676 am__EXEEXT_FALSE='#'
10677 else
10678 am__EXEEXT_TRUE='#'
10679 am__EXEEXT_FALSE=
10680 fi
10681
10682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10683 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10685 fi
10686 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10687 as_fn_error $? "conditional \"AMDEP\" was never defined.
10688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10689 fi
10690 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10691 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10693 fi
10694
10695 : "${CONFIG_STATUS=./config.status}"
10696 ac_write_fail=0
10697 ac_clean_files_save=$ac_clean_files
10698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10701 as_write_fail=0
10702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10703 #! $SHELL
10704 # Generated by $as_me.
10705 # Run this file to recreate the current configuration.
10706 # Compiler output produced by configure, useful for debugging
10707 # configure, is in config.log if it exists.
10708
10709 debug=false
10710 ac_cs_recheck=false
10711 ac_cs_silent=false
10712
10713 SHELL=\${CONFIG_SHELL-$SHELL}
10714 export SHELL
10715 _ASEOF
10716 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10717 ## -------------------- ##
10718 ## M4sh Initialization. ##
10719 ## -------------------- ##
10720
10721 # Be more Bourne compatible
10722 DUALCASE=1; export DUALCASE # for MKS sh
10723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10724 emulate sh
10725 NULLCMD=:
10726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10727 # is contrary to our usage. Disable this feature.
10728 alias -g '${1+"$@"}'='"$@"'
10729 setopt NO_GLOB_SUBST
10730 else
10731 case `(set -o) 2>/dev/null` in #(
10732 *posix*) :
10733 set -o posix ;; #(
10734 *) :
10735 ;;
10736 esac
10737 fi
10738
10739
10740 as_nl='
10741 '
10742 export as_nl
10743 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10744 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10747 # Prefer a ksh shell builtin over an external printf program on Solaris,
10748 # but without wasting forks for bash or zsh.
10749 if test -z "$BASH_VERSION$ZSH_VERSION" \
10750 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10751 as_echo='print -r --'
10752 as_echo_n='print -rn --'
10753 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10754 as_echo='printf %s\n'
10755 as_echo_n='printf %s'
10756 else
10757 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10758 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10759 as_echo_n='/usr/ucb/echo -n'
10760 else
10761 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10762 as_echo_n_body='eval
10763 arg=$1;
10764 case $arg in #(
10765 *"$as_nl"*)
10766 expr "X$arg" : "X\\(.*\\)$as_nl";
10767 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10768 esac;
10769 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10770 '
10771 export as_echo_n_body
10772 as_echo_n='sh -c $as_echo_n_body as_echo'
10773 fi
10774 export as_echo_body
10775 as_echo='sh -c $as_echo_body as_echo'
10776 fi
10777
10778 # The user is always right.
10779 if test "${PATH_SEPARATOR+set}" != set; then
10780 PATH_SEPARATOR=:
10781 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10782 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10783 PATH_SEPARATOR=';'
10784 }
10785 fi
10786
10787
10788 # IFS
10789 # We need space, tab and new line, in precisely that order. Quoting is
10790 # there to prevent editors from complaining about space-tab.
10791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10792 # splitting by setting IFS to empty value.)
10793 IFS=" "" $as_nl"
10794
10795 # Find who we are. Look in the path if we contain no directory separator.
10796 as_myself=
10797 case $0 in #((
10798 *[\\/]* ) as_myself=$0 ;;
10799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10805 done
10806 IFS=$as_save_IFS
10807
10808 ;;
10809 esac
10810 # We did not find ourselves, most probably we were run as `sh COMMAND'
10811 # in which case we are not to be found in the path.
10812 if test "x$as_myself" = x; then
10813 as_myself=$0
10814 fi
10815 if test ! -f "$as_myself"; then
10816 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10817 exit 1
10818 fi
10819
10820 # Unset variables that we do not need and which cause bugs (e.g. in
10821 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10822 # suppresses any "Segmentation fault" message there. '((' could
10823 # trigger a bug in pdksh 5.2.14.
10824 for as_var in BASH_ENV ENV MAIL MAILPATH
10825 do eval test x\${$as_var+set} = xset \
10826 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10827 done
10828 PS1='$ '
10829 PS2='> '
10830 PS4='+ '
10831
10832 # NLS nuisances.
10833 LC_ALL=C
10834 export LC_ALL
10835 LANGUAGE=C
10836 export LANGUAGE
10837
10838 # CDPATH.
10839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10840
10841
10842 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10843 # ----------------------------------------
10844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10846 # script with STATUS, using 1 if that was 0.
10847 as_fn_error ()
10848 {
10849 as_status=$1; test $as_status -eq 0 && as_status=1
10850 if test "$4"; then
10851 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10852 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10853 fi
10854 $as_echo "$as_me: error: $2" >&2
10855 as_fn_exit $as_status
10856 } # as_fn_error
10857
10858
10859 # as_fn_set_status STATUS
10860 # -----------------------
10861 # Set $? to STATUS, without forking.
10862 as_fn_set_status ()
10863 {
10864 return $1
10865 } # as_fn_set_status
10866
10867 # as_fn_exit STATUS
10868 # -----------------
10869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10870 as_fn_exit ()
10871 {
10872 set +e
10873 as_fn_set_status $1
10874 exit $1
10875 } # as_fn_exit
10876
10877 # as_fn_unset VAR
10878 # ---------------
10879 # Portably unset VAR.
10880 as_fn_unset ()
10881 {
10882 { eval $1=; unset $1;}
10883 }
10884 as_unset=as_fn_unset
10885 # as_fn_append VAR VALUE
10886 # ----------------------
10887 # Append the text in VALUE to the end of the definition contained in VAR. Take
10888 # advantage of any shell optimizations that allow amortized linear growth over
10889 # repeated appends, instead of the typical quadratic growth present in naive
10890 # implementations.
10891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10892 eval 'as_fn_append ()
10893 {
10894 eval $1+=\$2
10895 }'
10896 else
10897 as_fn_append ()
10898 {
10899 eval $1=\$$1\$2
10900 }
10901 fi # as_fn_append
10902
10903 # as_fn_arith ARG...
10904 # ------------------
10905 # Perform arithmetic evaluation on the ARGs, and store the result in the
10906 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10907 # must be portable across $(()) and expr.
10908 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10909 eval 'as_fn_arith ()
10910 {
10911 as_val=$(( $* ))
10912 }'
10913 else
10914 as_fn_arith ()
10915 {
10916 as_val=`expr "$@" || test $? -eq 1`
10917 }
10918 fi # as_fn_arith
10919
10920
10921 if expr a : '\(a\)' >/dev/null 2>&1 &&
10922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10923 as_expr=expr
10924 else
10925 as_expr=false
10926 fi
10927
10928 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10929 as_basename=basename
10930 else
10931 as_basename=false
10932 fi
10933
10934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10935 as_dirname=dirname
10936 else
10937 as_dirname=false
10938 fi
10939
10940 as_me=`$as_basename -- "$0" ||
10941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10942 X"$0" : 'X\(//\)$' \| \
10943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10944 $as_echo X/"$0" |
10945 sed '/^.*\/\([^/][^/]*\)\/*$/{
10946 s//\1/
10947 q
10948 }
10949 /^X\/\(\/\/\)$/{
10950 s//\1/
10951 q
10952 }
10953 /^X\/\(\/\).*/{
10954 s//\1/
10955 q
10956 }
10957 s/.*/./; q'`
10958
10959 # Avoid depending upon Character Ranges.
10960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10963 as_cr_digits='0123456789'
10964 as_cr_alnum=$as_cr_Letters$as_cr_digits
10965
10966 ECHO_C= ECHO_N= ECHO_T=
10967 case `echo -n x` in #(((((
10968 -n*)
10969 case `echo 'xy\c'` in
10970 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10971 xy) ECHO_C='\c';;
10972 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10973 ECHO_T=' ';;
10974 esac;;
10975 *)
10976 ECHO_N='-n';;
10977 esac
10978
10979 rm -f conf$$ conf$$.exe conf$$.file
10980 if test -d conf$$.dir; then
10981 rm -f conf$$.dir/conf$$.file
10982 else
10983 rm -f conf$$.dir
10984 mkdir conf$$.dir 2>/dev/null
10985 fi
10986 if (echo >conf$$.file) 2>/dev/null; then
10987 if ln -s conf$$.file conf$$ 2>/dev/null; then
10988 as_ln_s='ln -s'
10989 # ... but there are two gotchas:
10990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10992 # In both cases, we have to default to `cp -p'.
10993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10994 as_ln_s='cp -p'
10995 elif ln conf$$.file conf$$ 2>/dev/null; then
10996 as_ln_s=ln
10997 else
10998 as_ln_s='cp -p'
10999 fi
11000 else
11001 as_ln_s='cp -p'
11002 fi
11003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11004 rmdir conf$$.dir 2>/dev/null
11005
11006
11007 # as_fn_mkdir_p
11008 # -------------
11009 # Create "$as_dir" as a directory, including parents if necessary.
11010 as_fn_mkdir_p ()
11011 {
11012
11013 case $as_dir in #(
11014 -*) as_dir=./$as_dir;;
11015 esac
11016 test -d "$as_dir" || eval $as_mkdir_p || {
11017 as_dirs=
11018 while :; do
11019 case $as_dir in #(
11020 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11021 *) as_qdir=$as_dir;;
11022 esac
11023 as_dirs="'$as_qdir' $as_dirs"
11024 as_dir=`$as_dirname -- "$as_dir" ||
11025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11026 X"$as_dir" : 'X\(//\)[^/]' \| \
11027 X"$as_dir" : 'X\(//\)$' \| \
11028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11029 $as_echo X"$as_dir" |
11030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11031 s//\1/
11032 q
11033 }
11034 /^X\(\/\/\)[^/].*/{
11035 s//\1/
11036 q
11037 }
11038 /^X\(\/\/\)$/{
11039 s//\1/
11040 q
11041 }
11042 /^X\(\/\).*/{
11043 s//\1/
11044 q
11045 }
11046 s/.*/./; q'`
11047 test -d "$as_dir" && break
11048 done
11049 test -z "$as_dirs" || eval "mkdir $as_dirs"
11050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11051
11052
11053 } # as_fn_mkdir_p
11054 if mkdir -p . 2>/dev/null; then
11055 as_mkdir_p='mkdir -p "$as_dir"'
11056 else
11057 test -d ./-p && rmdir ./-p
11058 as_mkdir_p=false
11059 fi
11060
11061 if test -x / >/dev/null 2>&1; then
11062 as_test_x='test -x'
11063 else
11064 if ls -dL / >/dev/null 2>&1; then
11065 as_ls_L_option=L
11066 else
11067 as_ls_L_option=
11068 fi
11069 as_test_x='
11070 eval sh -c '\''
11071 if test -d "$1"; then
11072 test -d "$1/.";
11073 else
11074 case $1 in #(
11075 -*)set "./$1";;
11076 esac;
11077 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11078 ???[sx]*):;;*)false;;esac;fi
11079 '\'' sh
11080 '
11081 fi
11082 as_executable_p=$as_test_x
11083
11084 # Sed expression to map a string onto a valid CPP name.
11085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11086
11087 # Sed expression to map a string onto a valid variable name.
11088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11089
11090
11091 exec 6>&1
11092 ## ----------------------------------- ##
11093 ## Main body of $CONFIG_STATUS script. ##
11094 ## ----------------------------------- ##
11095 _ASEOF
11096 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11097
11098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11099 # Save the log message, to keep $0 and so on meaningful, and to
11100 # report actual input values of CONFIG_FILES etc. instead of their
11101 # values after options handling.
11102 ac_log="
11103 This file was extended by xcalc $as_me 1.0.5, which was
11104 generated by GNU Autoconf 2.68. Invocation command line was
11105
11106 CONFIG_FILES = $CONFIG_FILES
11107 CONFIG_HEADERS = $CONFIG_HEADERS
11108 CONFIG_LINKS = $CONFIG_LINKS
11109 CONFIG_COMMANDS = $CONFIG_COMMANDS
11110 $ $0 $@
11111
11112 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11113 "
11114
11115 _ACEOF
11116
11117 case $ac_config_files in *"
11118 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11119 esac
11120
11121 case $ac_config_headers in *"
11122 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11123 esac
11124
11125
11126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11127 # Files that config.status was made for.
11128 config_files="$ac_config_files"
11129 config_headers="$ac_config_headers"
11130 config_commands="$ac_config_commands"
11131
11132 _ACEOF
11133
11134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11135 ac_cs_usage="\
11136 \`$as_me' instantiates files and other configuration actions
11137 from templates according to the current configuration. Unless the files
11138 and actions are specified as TAGs, all are instantiated by default.
11139
11140 Usage: $0 [OPTION]... [TAG]...
11141
11142 -h, --help print this help, then exit
11143 -V, --version print version number and configuration settings, then exit
11144 --config print configuration, then exit
11145 -q, --quiet, --silent
11146 do not print progress messages
11147 -d, --debug don't remove temporary files
11148 --recheck update $as_me by reconfiguring in the same conditions
11149 --file=FILE[:TEMPLATE]
11150 instantiate the configuration file FILE
11151 --header=FILE[:TEMPLATE]
11152 instantiate the configuration header FILE
11153
11154 Configuration files:
11155 $config_files
11156
11157 Configuration headers:
11158 $config_headers
11159
11160 Configuration commands:
11161 $config_commands
11162
11163 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11164
11165 _ACEOF
11166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11167 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11168 ac_cs_version="\\
11169 xcalc config.status 1.0.5
11170 configured by $0, generated by GNU Autoconf 2.68,
11171 with options \\"\$ac_cs_config\\"
11172
11173 Copyright (C) 2010 Free Software Foundation, Inc.
11174 This config.status script is free software; the Free Software Foundation
11175 gives unlimited permission to copy, distribute and modify it."
11176
11177 ac_pwd='$ac_pwd'
11178 srcdir='$srcdir'
11179 INSTALL='$INSTALL'
11180 MKDIR_P='$MKDIR_P'
11181 AWK='$AWK'
11182 test -n "\$AWK" || AWK=awk
11183 _ACEOF
11184
11185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11186 # The default lists apply if the user does not specify any file.
11187 ac_need_defaults=:
11188 while test $# != 0
11189 do
11190 case $1 in
11191 --*=?*)
11192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11193 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11194 ac_shift=:
11195 ;;
11196 --*=)
11197 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11198 ac_optarg=
11199 ac_shift=:
11200 ;;
11201 *)
11202 ac_option=$1
11203 ac_optarg=$2
11204 ac_shift=shift
11205 ;;
11206 esac
11207
11208 case $ac_option in
11209 # Handling of the options.
11210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11211 ac_cs_recheck=: ;;
11212 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11213 $as_echo "$ac_cs_version"; exit ;;
11214 --config | --confi | --conf | --con | --co | --c )
11215 $as_echo "$ac_cs_config"; exit ;;
11216 --debug | --debu | --deb | --de | --d | -d )
11217 debug=: ;;
11218 --file | --fil | --fi | --f )
11219 $ac_shift
11220 case $ac_optarg in
11221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11222 '') as_fn_error $? "missing file argument" ;;
11223 esac
11224 as_fn_append CONFIG_FILES " '$ac_optarg'"
11225 ac_need_defaults=false;;
11226 --header | --heade | --head | --hea )
11227 $ac_shift
11228 case $ac_optarg in
11229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11230 esac
11231 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11232 ac_need_defaults=false;;
11233 --he | --h)
11234 # Conflict between --help and --header
11235 as_fn_error $? "ambiguous option: \`$1'
11236 Try \`$0 --help' for more information.";;
11237 --help | --hel | -h )
11238 $as_echo "$ac_cs_usage"; exit ;;
11239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11240 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11241 ac_cs_silent=: ;;
11242
11243 # This is an error.
11244 -*) as_fn_error $? "unrecognized option: \`$1'
11245 Try \`$0 --help' for more information." ;;
11246
11247 *) as_fn_append ac_config_targets " $1"
11248 ac_need_defaults=false ;;
11249
11250 esac
11251 shift
11252 done
11253
11254 ac_configure_extra_args=
11255
11256 if $ac_cs_silent; then
11257 exec 6>/dev/null
11258 ac_configure_extra_args="$ac_configure_extra_args --silent"
11259 fi
11260
11261 _ACEOF
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263 if \$ac_cs_recheck; then
11264 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11265 shift
11266 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11267 CONFIG_SHELL='$SHELL'
11268 export CONFIG_SHELL
11269 exec "\$@"
11270 fi
11271
11272 _ACEOF
11273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11274 exec 5>>config.log
11275 {
11276 echo
11277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11278 ## Running $as_me. ##
11279 _ASBOX
11280 $as_echo "$ac_log"
11281 } >&5
11282
11283 _ACEOF
11284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11285 #
11286 # INIT-COMMANDS
11287 #
11288 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11289
11290 _ACEOF
11291
11292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11293
11294 # Handling of arguments.
11295 for ac_config_target in $ac_config_targets
11296 do
11297 case $ac_config_target in
11298 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11299 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11301 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11302
11303 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11304 esac
11305 done
11306
11307
11308 # If the user did not use the arguments to specify the items to instantiate,
11309 # then the envvar interface is used. Set only those that are not.
11310 # We use the long form for the default assignment because of an extremely
11311 # bizarre bug on SunOS 4.1.3.
11312 if $ac_need_defaults; then
11313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11316 fi
11317
11318 # Have a temporary directory for convenience. Make it in the build tree
11319 # simply because there is no reason against having it here, and in addition,
11320 # creating and moving files from /tmp can sometimes cause problems.
11321 # Hook for its removal unless debugging.
11322 # Note that there is a small window in which the directory will not be cleaned:
11323 # after its creation but before its name has been assigned to `$tmp'.
11324 $debug ||
11325 {
11326 tmp= ac_tmp=
11327 trap 'exit_status=$?
11328 : "${ac_tmp:=$tmp}"
11329 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11330 ' 0
11331 trap 'as_fn_exit 1' 1 2 13 15
11332 }
11333 # Create a (secure) tmp directory for tmp files.
11334
11335 {
11336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11337 test -d "$tmp"
11338 } ||
11339 {
11340 tmp=./conf$$-$RANDOM
11341 (umask 077 && mkdir "$tmp")
11342 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11343 ac_tmp=$tmp
11344
11345 # Set up the scripts for CONFIG_FILES section.
11346 # No need to generate them if there are no CONFIG_FILES.
11347 # This happens for instance with `./config.status config.h'.
11348 if test -n "$CONFIG_FILES"; then
11349
11350
11351 ac_cr=`echo X | tr X '\015'`
11352 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11353 # But we know of no other shell where ac_cr would be empty at this
11354 # point, so we can use a bashism as a fallback.
11355 if test "x$ac_cr" = x; then
11356 eval ac_cr=\$\'\\r\'
11357 fi
11358 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11359 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11360 ac_cs_awk_cr='\\r'
11361 else
11362 ac_cs_awk_cr=$ac_cr
11363 fi
11364
11365 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11366 _ACEOF
11367
11368
11369 {
11370 echo "cat >conf$$subs.awk <<_ACEOF" &&
11371 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11372 echo "_ACEOF"
11373 } >conf$$subs.sh ||
11374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11376 ac_delim='%!_!# '
11377 for ac_last_try in false false false false false :; do
11378 . ./conf$$subs.sh ||
11379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11380
11381 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11382 if test $ac_delim_n = $ac_delim_num; then
11383 break
11384 elif $ac_last_try; then
11385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11386 else
11387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11388 fi
11389 done
11390 rm -f conf$$subs.sh
11391
11392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11393 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11394 _ACEOF
11395 sed -n '
11396 h
11397 s/^/S["/; s/!.*/"]=/
11398 p
11399 g
11400 s/^[^!]*!//
11401 :repl
11402 t repl
11403 s/'"$ac_delim"'$//
11404 t delim
11405 :nl
11406 h
11407 s/\(.\{148\}\)..*/\1/
11408 t more1
11409 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11410 p
11411 n
11412 b repl
11413 :more1
11414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11415 p
11416 g
11417 s/.\{148\}//
11418 t nl
11419 :delim
11420 h
11421 s/\(.\{148\}\)..*/\1/
11422 t more2
11423 s/["\\]/\\&/g; s/^/"/; s/$/"/
11424 p
11425 b
11426 :more2
11427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11428 p
11429 g
11430 s/.\{148\}//
11431 t delim
11432 ' <conf$$subs.awk | sed '
11433 /^[^""]/{
11434 N
11435 s/\n//
11436 }
11437 ' >>$CONFIG_STATUS || ac_write_fail=1
11438 rm -f conf$$subs.awk
11439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11440 _ACAWK
11441 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11442 for (key in S) S_is_set[key] = 1
11443 FS = ""
11444
11445 }
11446 {
11447 line = $ 0
11448 nfields = split(line, field, "@")
11449 substed = 0
11450 len = length(field[1])
11451 for (i = 2; i < nfields; i++) {
11452 key = field[i]
11453 keylen = length(key)
11454 if (S_is_set[key]) {
11455 value = S[key]
11456 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11457 len += length(value) + length(field[++i])
11458 substed = 1
11459 } else
11460 len += 1 + keylen
11461 }
11462
11463 print line
11464 }
11465
11466 _ACAWK
11467 _ACEOF
11468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11469 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11470 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11471 else
11472 cat
11473 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11474 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11475 _ACEOF
11476
11477 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11478 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11479 # trailing colons and then remove the whole line if VPATH becomes empty
11480 # (actually we leave an empty line to preserve line numbers).
11481 if test "x$srcdir" = x.; then
11482 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11483 h
11484 s///
11485 s/^/:/
11486 s/[ ]*$/:/
11487 s/:\$(srcdir):/:/g
11488 s/:\${srcdir}:/:/g
11489 s/:@srcdir@:/:/g
11490 s/^:*//
11491 s/:*$//
11492 x
11493 s/\(=[ ]*\).*/\1/
11494 G
11495 s/\n//
11496 s/^[^=]*=[ ]*$//
11497 }'
11498 fi
11499
11500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11501 fi # test -n "$CONFIG_FILES"
11502
11503 # Set up the scripts for CONFIG_HEADERS section.
11504 # No need to generate them if there are no CONFIG_HEADERS.
11505 # This happens for instance with `./config.status Makefile'.
11506 if test -n "$CONFIG_HEADERS"; then
11507 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11508 BEGIN {
11509 _ACEOF
11510
11511 # Transform confdefs.h into an awk script `defines.awk', embedded as
11512 # here-document in config.status, that substitutes the proper values into
11513 # config.h.in to produce config.h.
11514
11515 # Create a delimiter string that does not exist in confdefs.h, to ease
11516 # handling of long lines.
11517 ac_delim='%!_!# '
11518 for ac_last_try in false false :; do
11519 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11520 if test -z "$ac_tt"; then
11521 break
11522 elif $ac_last_try; then
11523 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11524 else
11525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11526 fi
11527 done
11528
11529 # For the awk script, D is an array of macro values keyed by name,
11530 # likewise P contains macro parameters if any. Preserve backslash
11531 # newline sequences.
11532
11533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11534 sed -n '
11535 s/.\{148\}/&'"$ac_delim"'/g
11536 t rset
11537 :rset
11538 s/^[ ]*#[ ]*define[ ][ ]*/ /
11539 t def
11540 d
11541 :def
11542 s/\\$//
11543 t bsnl
11544 s/["\\]/\\&/g
11545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11546 D["\1"]=" \3"/p
11547 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11548 d
11549 :bsnl
11550 s/["\\]/\\&/g
11551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11552 D["\1"]=" \3\\\\\\n"\\/p
11553 t cont
11554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11555 t cont
11556 d
11557 :cont
11558 n
11559 s/.\{148\}/&'"$ac_delim"'/g
11560 t clear
11561 :clear
11562 s/\\$//
11563 t bsnlc
11564 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11565 d
11566 :bsnlc
11567 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11568 b cont
11569 ' <confdefs.h | sed '
11570 s/'"$ac_delim"'/"\\\
11571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11572
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574 for (key in D) D_is_set[key] = 1
11575 FS = ""
11576 }
11577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11578 line = \$ 0
11579 split(line, arg, " ")
11580 if (arg[1] == "#") {
11581 defundef = arg[2]
11582 mac1 = arg[3]
11583 } else {
11584 defundef = substr(arg[1], 2)
11585 mac1 = arg[2]
11586 }
11587 split(mac1, mac2, "(") #)
11588 macro = mac2[1]
11589 prefix = substr(line, 1, index(line, defundef) - 1)
11590 if (D_is_set[macro]) {
11591 # Preserve the white space surrounding the "#".
11592 print prefix "define", macro P[macro] D[macro]
11593 next
11594 } else {
11595 # Replace #undef with comments. This is necessary, for example,
11596 # in the case of _POSIX_SOURCE, which is predefined and required
11597 # on some systems where configure will not decide to define it.
11598 if (defundef == "undef") {
11599 print "/*", prefix defundef, macro, "*/"
11600 next
11601 }
11602 }
11603 }
11604 { print }
11605 _ACAWK
11606 _ACEOF
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11609 fi # test -n "$CONFIG_HEADERS"
11610
11611
11612 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11613 shift
11614 for ac_tag
11615 do
11616 case $ac_tag in
11617 :[FHLC]) ac_mode=$ac_tag; continue;;
11618 esac
11619 case $ac_mode$ac_tag in
11620 :[FHL]*:*);;
11621 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11622 :[FH]-) ac_tag=-:-;;
11623 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11624 esac
11625 ac_save_IFS=$IFS
11626 IFS=:
11627 set x $ac_tag
11628 IFS=$ac_save_IFS
11629 shift
11630 ac_file=$1
11631 shift
11632
11633 case $ac_mode in
11634 :L) ac_source=$1;;
11635 :[FH])
11636 ac_file_inputs=
11637 for ac_f
11638 do
11639 case $ac_f in
11640 -) ac_f="$ac_tmp/stdin";;
11641 *) # Look for the file first in the build tree, then in the source tree
11642 # (if the path is not absolute). The absolute path cannot be DOS-style,
11643 # because $ac_f cannot contain `:'.
11644 test -f "$ac_f" ||
11645 case $ac_f in
11646 [\\/$]*) false;;
11647 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11648 esac ||
11649 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11650 esac
11651 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11652 as_fn_append ac_file_inputs " '$ac_f'"
11653 done
11654
11655 # Let's still pretend it is `configure' which instantiates (i.e., don't
11656 # use $as_me), people would be surprised to read:
11657 # /* config.h. Generated by config.status. */
11658 configure_input='Generated from '`
11659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11660 `' by configure.'
11661 if test x"$ac_file" != x-; then
11662 configure_input="$ac_file. $configure_input"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11664 $as_echo "$as_me: creating $ac_file" >&6;}
11665 fi
11666 # Neutralize special characters interpreted by sed in replacement strings.
11667 case $configure_input in #(
11668 *\&* | *\|* | *\\* )
11669 ac_sed_conf_input=`$as_echo "$configure_input" |
11670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11671 *) ac_sed_conf_input=$configure_input;;
11672 esac
11673
11674 case $ac_tag in
11675 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11677 esac
11678 ;;
11679 esac
11680
11681 ac_dir=`$as_dirname -- "$ac_file" ||
11682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11683 X"$ac_file" : 'X\(//\)[^/]' \| \
11684 X"$ac_file" : 'X\(//\)$' \| \
11685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11686 $as_echo X"$ac_file" |
11687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11688 s//\1/
11689 q
11690 }
11691 /^X\(\/\/\)[^/].*/{
11692 s//\1/
11693 q
11694 }
11695 /^X\(\/\/\)$/{
11696 s//\1/
11697 q
11698 }
11699 /^X\(\/\).*/{
11700 s//\1/
11701 q
11702 }
11703 s/.*/./; q'`
11704 as_dir="$ac_dir"; as_fn_mkdir_p
11705 ac_builddir=.
11706
11707 case "$ac_dir" in
11708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11709 *)
11710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11711 # A ".." for each directory in $ac_dir_suffix.
11712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11713 case $ac_top_builddir_sub in
11714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11716 esac ;;
11717 esac
11718 ac_abs_top_builddir=$ac_pwd
11719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11720 # for backward compatibility:
11721 ac_top_builddir=$ac_top_build_prefix
11722
11723 case $srcdir in
11724 .) # We are building in place.
11725 ac_srcdir=.
11726 ac_top_srcdir=$ac_top_builddir_sub
11727 ac_abs_top_srcdir=$ac_pwd ;;
11728 [\\/]* | ?:[\\/]* ) # Absolute name.
11729 ac_srcdir=$srcdir$ac_dir_suffix;
11730 ac_top_srcdir=$srcdir
11731 ac_abs_top_srcdir=$srcdir ;;
11732 *) # Relative name.
11733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11734 ac_top_srcdir=$ac_top_build_prefix$srcdir
11735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11736 esac
11737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11738
11739
11740 case $ac_mode in
11741 :F)
11742 #
11743 # CONFIG_FILE
11744 #
11745
11746 case $INSTALL in
11747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11749 esac
11750 ac_MKDIR_P=$MKDIR_P
11751 case $MKDIR_P in
11752 [\\/$]* | ?:[\\/]* ) ;;
11753 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11754 esac
11755 _ACEOF
11756
11757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11758 # If the template does not know about datarootdir, expand it.
11759 # FIXME: This hack should be removed a few years after 2.60.
11760 ac_datarootdir_hack=; ac_datarootdir_seen=
11761 ac_sed_dataroot='
11762 /datarootdir/ {
11763 p
11764 q
11765 }
11766 /@datadir@/p
11767 /@docdir@/p
11768 /@infodir@/p
11769 /@localedir@/p
11770 /@mandir@/p'
11771 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11772 *datarootdir*) ac_datarootdir_seen=yes;;
11773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11775 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11776 _ACEOF
11777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11778 ac_datarootdir_hack='
11779 s&@datadir@&$datadir&g
11780 s&@docdir@&$docdir&g
11781 s&@infodir@&$infodir&g
11782 s&@localedir@&$localedir&g
11783 s&@mandir@&$mandir&g
11784 s&\\\${datarootdir}&$datarootdir&g' ;;
11785 esac
11786 _ACEOF
11787
11788 # Neutralize VPATH when `$srcdir' = `.'.
11789 # Shell code in configure.ac might set extrasub.
11790 # FIXME: do we really want to maintain this feature?
11791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11792 ac_sed_extra="$ac_vpsub
11793 $extrasub
11794 _ACEOF
11795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796 :t
11797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11798 s|@configure_input@|$ac_sed_conf_input|;t t
11799 s&@top_builddir@&$ac_top_builddir_sub&;t t
11800 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11801 s&@srcdir@&$ac_srcdir&;t t
11802 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11803 s&@top_srcdir@&$ac_top_srcdir&;t t
11804 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11805 s&@builddir@&$ac_builddir&;t t
11806 s&@abs_builddir@&$ac_abs_builddir&;t t
11807 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11808 s&@INSTALL@&$ac_INSTALL&;t t
11809 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11810 $ac_datarootdir_hack
11811 "
11812 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11813 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11814
11815 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11816 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11817 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11818 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11820 which seems to be undefined. Please make sure it is defined" >&5
11821 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11822 which seems to be undefined. Please make sure it is defined" >&2;}
11823
11824 rm -f "$ac_tmp/stdin"
11825 case $ac_file in
11826 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11827 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11828 esac \
11829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11830 ;;
11831 :H)
11832 #
11833 # CONFIG_HEADER
11834 #
11835 if test x"$ac_file" != x-; then
11836 {
11837 $as_echo "/* $configure_input */" \
11838 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11839 } >"$ac_tmp/config.h" \
11840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11841 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11843 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11844 else
11845 rm -f "$ac_file"
11846 mv "$ac_tmp/config.h" "$ac_file" \
11847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11848 fi
11849 else
11850 $as_echo "/* $configure_input */" \
11851 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11852 || as_fn_error $? "could not create -" "$LINENO" 5
11853 fi
11854 # Compute "$ac_file"'s index in $config_headers.
11855 _am_arg="$ac_file"
11856 _am_stamp_count=1
11857 for _am_header in $config_headers :; do
11858 case $_am_header in
11859 $_am_arg | $_am_arg:* )
11860 break ;;
11861 * )
11862 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11863 esac
11864 done
11865 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11866 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11867 X"$_am_arg" : 'X\(//\)[^/]' \| \
11868 X"$_am_arg" : 'X\(//\)$' \| \
11869 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11870 $as_echo X"$_am_arg" |
11871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11872 s//\1/
11873 q
11874 }
11875 /^X\(\/\/\)[^/].*/{
11876 s//\1/
11877 q
11878 }
11879 /^X\(\/\/\)$/{
11880 s//\1/
11881 q
11882 }
11883 /^X\(\/\).*/{
11884 s//\1/
11885 q
11886 }
11887 s/.*/./; q'`/stamp-h$_am_stamp_count
11888 ;;
11889
11890 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11891 $as_echo "$as_me: executing $ac_file commands" >&6;}
11892 ;;
11893 esac
11894
11895
11896 case $ac_file$ac_mode in
11897 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11898 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11899 # are listed without --file. Let's play safe and only enable the eval
11900 # if we detect the quoting.
11901 case $CONFIG_FILES in
11902 *\'*) eval set x "$CONFIG_FILES" ;;
11903 *) set x $CONFIG_FILES ;;
11904 esac
11905 shift
11906 for mf
11907 do
11908 # Strip MF so we end up with the name of the file.
11909 mf=`echo "$mf" | sed -e 's/:.*$//'`
11910 # Check whether this is an Automake generated Makefile or not.
11911 # We used to match only the files named `Makefile.in', but
11912 # some people rename them; so instead we look at the file content.
11913 # Grep'ing the first line is not enough: some people post-process
11914 # each Makefile.in and add a new line on top of each file to say so.
11915 # Grep'ing the whole file is not good either: AIX grep has a line
11916 # limit of 2048, but all sed's we know have understand at least 4000.
11917 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11918 dirpart=`$as_dirname -- "$mf" ||
11919 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920 X"$mf" : 'X\(//\)[^/]' \| \
11921 X"$mf" : 'X\(//\)$' \| \
11922 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11923 $as_echo X"$mf" |
11924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11925 s//\1/
11926 q
11927 }
11928 /^X\(\/\/\)[^/].*/{
11929 s//\1/
11930 q
11931 }
11932 /^X\(\/\/\)$/{
11933 s//\1/
11934 q
11935 }
11936 /^X\(\/\).*/{
11937 s//\1/
11938 q
11939 }
11940 s/.*/./; q'`
11941 else
11942 continue
11943 fi
11944 # Extract the definition of DEPDIR, am__include, and am__quote
11945 # from the Makefile without running `make'.
11946 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11947 test -z "$DEPDIR" && continue
11948 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11949 test -z "am__include" && continue
11950 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11951 # When using ansi2knr, U may be empty or an underscore; expand it
11952 U=`sed -n 's/^U = //p' < "$mf"`
11953 # Find all dependency output files, they are included files with
11954 # $(DEPDIR) in their names. We invoke sed twice because it is the
11955 # simplest approach to changing $(DEPDIR) to its actual value in the
11956 # expansion.
11957 for file in `sed -n "
11958 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11960 # Make sure the directory exists.
11961 test -f "$dirpart/$file" && continue
11962 fdir=`$as_dirname -- "$file" ||
11963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964 X"$file" : 'X\(//\)[^/]' \| \
11965 X"$file" : 'X\(//\)$' \| \
11966 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11967 $as_echo X"$file" |
11968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11969 s//\1/
11970 q
11971 }
11972 /^X\(\/\/\)[^/].*/{
11973 s//\1/
11974 q
11975 }
11976 /^X\(\/\/\)$/{
11977 s//\1/
11978 q
11979 }
11980 /^X\(\/\).*/{
11981 s//\1/
11982 q
11983 }
11984 s/.*/./; q'`
11985 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11986 # echo "creating $dirpart/$file"
11987 echo '# dummy' > "$dirpart/$file"
11988 done
11989 done
11990 }
11991 ;;
11992
11993 esac
11994 done # for ac_tag
11995
11996
11997 as_fn_exit 0
11998 _ACEOF
11999 ac_clean_files=$ac_clean_files_save
12000
12001 test $ac_write_fail = 0 ||
12002 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12003
12004
12005 # configure is writing to config.log, and then calls config.status.
12006 # config.status does its own redirection, appending to config.log.
12007 # Unfortunately, on DOS this fails, as config.log is still kept open
12008 # by configure, so config.status won't be able to write to it; its
12009 # output is simply discarded. So we exec the FD to /dev/null,
12010 # effectively closing config.log, so it can be properly (re)opened and
12011 # appended to by config.status. When coming back to configure, we
12012 # need to make the FD available again.
12013 if test "$no_create" != yes; then
12014 ac_cs_success=:
12015 ac_config_status_args=
12016 test "$silent" = yes &&
12017 ac_config_status_args="$ac_config_status_args --quiet"
12018 exec 5>/dev/null
12019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12020 exec 5>>config.log
12021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12022 # would make configure fail if this is the last instruction.
12023 $ac_cs_success || as_fn_exit 1
12024 fi
12025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12028 fi
12029
12030