configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xcalc 1.0.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xcalc'
583 PACKAGE_TARNAME='xcalc'
584 PACKAGE_VERSION='1.0.6'
585 PACKAGE_STRING='xcalc 1.0.6'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 XCALC_LIBS
634 XCALC_CFLAGS
635 MAN_SUBSTS
636 XORG_MAN_PAGE
637 ADMIN_MAN_DIR
638 DRIVER_MAN_DIR
639 MISC_MAN_DIR
640 FILE_MAN_DIR
641 LIB_MAN_DIR
642 APP_MAN_DIR
643 ADMIN_MAN_SUFFIX
644 DRIVER_MAN_SUFFIX
645 MISC_MAN_SUFFIX
646 FILE_MAN_SUFFIX
647 LIB_MAN_SUFFIX
648 APP_MAN_SUFFIX
649 SED
650 host_os
651 host_vendor
652 host_cpu
653 host
654 build_os
655 build_vendor
656 build_cpu
657 build
658 INSTALL_CMD
659 PKG_CONFIG
660 CHANGELOG_CMD
661 STRICT_CFLAGS
662 CWARNFLAGS
663 BASE_CFLAGS
664 EGREP
665 GREP
666 CPP
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 AM_BACKSLASH
685 AM_DEFAULT_VERBOSITY
686 AM_DEFAULT_V
687 AM_V
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_silent_rules
753 enable_dependency_tracking
754 enable_selective_werror
755 enable_strict_compilation
756 with_appdefaultdir
757 '
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP
767 PKG_CONFIG
768 XCALC_CFLAGS
769 XCALC_LIBS
770 APPDEFS_CFLAGS
771 APPDEFS_LIBS'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
829 ac_prev=
830 continue
831 fi
832
833 case $ac_option in
834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 *=) ac_optarg= ;;
836 *) ac_optarg=yes ;;
837 esac
838
839 # Accept the important Cygnus configure options, so we can diagnose typos.
840
841 case $ac_dashdash$ac_option in
842 --)
843 ac_dashdash=yes ;;
844
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
849
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
854
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
861
862 --config-cache | -C)
863 cache_file=config.cache ;;
864
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
869
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
876
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=no ;;
892
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
897
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
902
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=\$ac_optarg ;;
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
938
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
943
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
973
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
990
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1011
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1047
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
1066 sbindir=$ac_optarg ;;
1067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
1077 sharedstatedir=$ac_optarg ;;
1078
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
1082 site=$ac_optarg ;;
1083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1088
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1095
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1106
1107 -with-* | --with-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=\$ac_optarg ;;
1122
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167 esac
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177 ;;
1178
1179 esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error $? "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1189 no) ;;
1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1200 do
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1203 case $ac_val in
1204 */ )
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1207 esac
1208 # Be sure to have absolute directory names.
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277 else
1278 ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312 \`configure' configures xcalc 1.0.6 to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/xcalc]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365 _ACEOF
1366
1367 cat <<\_ACEOF
1368
1369 Program names:
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373
1374 System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of xcalc 1.0.6:";;
1383 esac
1384 cat <<\_ACEOF
1385
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-silent-rules less verbose build output (undo: "make V=1")
1391 --disable-silent-rules verbose build output (undo: "make V=0")
1392 --enable-dependency-tracking
1393 do not reject slow dependency extractors
1394 --disable-dependency-tracking
1395 speeds up one-time build
1396 --disable-selective-werror
1397 Turn off selective compiler errors. (default:
1398 enabled)
1399 --enable-strict-compilation
1400 Enable all warnings from compiler and make them
1401 errors (default: disabled)
1402
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-appdefaultdir=<pathname>
1407 specify directory for app-defaults files (default is
1408 autodetected)
1409
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419 PKG_CONFIG path to pkg-config utility
1420 XCALC_CFLAGS
1421 C compiler flags for XCALC, overriding pkg-config
1422 XCALC_LIBS linker flags for XCALC, overriding pkg-config
1423 APPDEFS_CFLAGS
1424 C compiler flags for APPDEFS, overriding pkg-config
1425 APPDEFS_LIBS
1426 linker flags for APPDEFS, overriding pkg-config
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 xcalc configure 1.0.6
1495 generated by GNU Autoconf 2.69
1496
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1547 # ---------------------------------------------
1548 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1549 # accordingly.
1550 ac_fn_c_check_decl ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 as_decl_name=`echo $2|sed 's/ *(.*//'`
1554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1556 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1557 if eval \${$3+:} false; then :
1558 $as_echo_n "(cached) " >&6
1559 else
1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561 /* end confdefs.h. */
1562 $4
1563 int
1564 main ()
1565 {
1566 #ifndef $as_decl_name
1567 #ifdef __cplusplus
1568 (void) $as_decl_use;
1569 #else
1570 (void) $as_decl_name;
1571 #endif
1572 #endif
1573
1574 ;
1575 return 0;
1576 }
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 eval "$3=yes"
1580 else
1581 eval "$3=no"
1582 fi
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 fi
1585 eval ac_res=\$$3
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589
1590 } # ac_fn_c_check_decl
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1633 ac_fn_c_try_run ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1654 ac_status=$?
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=$ac_status
1664 fi
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_run
1670
1671 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists and can be compiled using the include files in
1674 # INCLUDES, setting the cache variable VAR accordingly.
1675 ac_fn_c_check_header_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 eval "$3=yes"
1690 else
1691 eval "$3=no"
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_c_check_header_compile
1701
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_link ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest$ac_exeext
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_link
1747
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1764
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1769
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1775
1776 #undef $2
1777
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1791
1792 int
1793 main ()
1794 {
1795 return $2 ();
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814 cat >config.log <<_ACEOF
1815 This file contains any messages produced by compilers while
1816 running configure, to aid debugging if configure makes a mistake.
1817
1818 It was created by xcalc $as_me 1.0.6, which was
1819 generated by GNU Autoconf 2.69. Invocation command line was
1820
1821 $ $0 $@
1822
1823 _ACEOF
1824 exec 5>>config.log
1825 {
1826 cat <<_ASUNAME
1827 ## --------- ##
1828 ## Platform. ##
1829 ## --------- ##
1830
1831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1836
1837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1838 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1839
1840 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1841 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1843 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1844 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1845 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1846 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1847
1848 _ASUNAME
1849
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 $as_echo "PATH: $as_dir"
1856 done
1857 IFS=$as_save_IFS
1858
1859 } >&5
1860
1861 cat >&5 <<_ACEOF
1862
1863
1864 ## ----------- ##
1865 ## Core tests. ##
1866 ## ----------- ##
1867
1868 _ACEOF
1869
1870
1871 # Keep a trace of the command line.
1872 # Strip out --no-create and --no-recursion so they do not pile up.
1873 # Strip out --silent because we don't want to record it for future runs.
1874 # Also quote any args containing shell meta-characters.
1875 # Make two passes to allow for proper duplicate-argument suppression.
1876 ac_configure_args=
1877 ac_configure_args0=
1878 ac_configure_args1=
1879 ac_must_keep_next=false
1880 for ac_pass in 1 2
1881 do
1882 for ac_arg
1883 do
1884 case $ac_arg in
1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887 | -silent | --silent | --silen | --sile | --sil)
1888 continue ;;
1889 *\'*)
1890 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 esac
1892 case $ac_pass in
1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894 2)
1895 as_fn_append ac_configure_args1 " '$ac_arg'"
1896 if test $ac_must_keep_next = true; then
1897 ac_must_keep_next=false # Got value, back to normal.
1898 else
1899 case $ac_arg in
1900 *=* | --config-cache | -C | -disable-* | --disable-* \
1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903 | -with-* | --with-* | -without-* | --without-* | --x)
1904 case "$ac_configure_args0 " in
1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906 esac
1907 ;;
1908 -* ) ac_must_keep_next=true ;;
1909 esac
1910 fi
1911 as_fn_append ac_configure_args " '$ac_arg'"
1912 ;;
1913 esac
1914 done
1915 done
1916 { ac_configure_args0=; unset ac_configure_args0;}
1917 { ac_configure_args1=; unset ac_configure_args1;}
1918
1919 # When interrupted or exit'd, cleanup temporary files, and complete
1920 # config.log. We remove comments because anyway the quotes in there
1921 # would cause problems or look ugly.
1922 # WARNING: Use '\'' to represent an apostrophe within the trap.
1923 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924 trap 'exit_status=$?
1925 # Save into config.log some information that might help in debugging.
1926 {
1927 echo
1928
1929 $as_echo "## ---------------- ##
1930 ## Cache variables. ##
1931 ## ---------------- ##"
1932 echo
1933 # The following way of writing the cache mishandles newlines in values,
1934 (
1935 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1936 eval ac_val=\$$ac_var
1937 case $ac_val in #(
1938 *${as_nl}*)
1939 case $ac_var in #(
1940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942 esac
1943 case $ac_var in #(
1944 _ | IFS | as_nl) ;; #(
1945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1946 *) { eval $ac_var=; unset $ac_var;} ;;
1947 esac ;;
1948 esac
1949 done
1950 (set) 2>&1 |
1951 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1952 *${as_nl}ac_space=\ *)
1953 sed -n \
1954 "s/'\''/'\''\\\\'\'''\''/g;
1955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956 ;; #(
1957 *)
1958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1959 ;;
1960 esac |
1961 sort
1962 )
1963 echo
1964
1965 $as_echo "## ----------------- ##
1966 ## Output variables. ##
1967 ## ----------------- ##"
1968 echo
1969 for ac_var in $ac_subst_vars
1970 do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in
1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974 esac
1975 $as_echo "$ac_var='\''$ac_val'\''"
1976 done | sort
1977 echo
1978
1979 if test -n "$ac_subst_files"; then
1980 $as_echo "## ------------------- ##
1981 ## File substitutions. ##
1982 ## ------------------- ##"
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 $as_echo "## ----------- ##
1997 ## confdefs.h. ##
1998 ## ----------- ##"
1999 echo
2000 cat confdefs.h
2001 echo
2002 fi
2003 test "$ac_signal" != 0 &&
2004 $as_echo "$as_me: caught signal $ac_signal"
2005 $as_echo "$as_me: exit $exit_status"
2006 } >&5
2007 rm -f core *.core core.conftest.* &&
2008 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2009 exit $exit_status
2010 ' 0
2011 for ac_signal in 1 2 13 15; do
2012 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2013 done
2014 ac_signal=0
2015
2016 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2017 rm -f -r conftest* confdefs.h
2018
2019 $as_echo "/* confdefs.h */" > confdefs.h
2020
2021 # Predefined preprocessor variables.
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_NAME "$PACKAGE_NAME"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_STRING "$PACKAGE_STRING"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_URL "$PACKAGE_URL"
2045 _ACEOF
2046
2047
2048 # Let the site file select an alternate cache file if it wants to.
2049 # Prefer an explicitly selected file to automatically selected ones.
2050 ac_site_file1=NONE
2051 ac_site_file2=NONE
2052 if test -n "$CONFIG_SITE"; then
2053 # We do not want a PATH search for config.site.
2054 case $CONFIG_SITE in #((
2055 -*) ac_site_file1=./$CONFIG_SITE;;
2056 */*) ac_site_file1=$CONFIG_SITE;;
2057 *) ac_site_file1=./$CONFIG_SITE;;
2058 esac
2059 elif test "x$prefix" != xNONE; then
2060 ac_site_file1=$prefix/share/config.site
2061 ac_site_file2=$prefix/etc/config.site
2062 else
2063 ac_site_file1=$ac_default_prefix/share/config.site
2064 ac_site_file2=$ac_default_prefix/etc/config.site
2065 fi
2066 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2067 do
2068 test "x$ac_site_file" = xNONE && continue
2069 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2072 sed 's/^/| /' "$ac_site_file" >&5
2073 . "$ac_site_file" \
2074 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 as_fn_error $? "failed to load site script $ac_site_file
2077 See \`config.log' for more details" "$LINENO" 5; }
2078 fi
2079 done
2080
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special files
2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2087 case $cache_file in
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2090 esac
2091 fi
2092 else
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096 fi
2097
2098 # Check that the precious variables saved in the cache have kept the same
2099 # value.
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2107 set,)
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2111 ,set)
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2115 ,);;
2116 *)
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2125 else
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2129 fi
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2134 fi;;
2135 esac
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2138 case $ac_new_val in
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2141 esac
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2145 esac
2146 fi
2147 done
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2154 fi
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2158
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166
2167 ac_config_headers="$ac_config_headers config.h"
2168
2169
2170 # Initialize Automake
2171 am__api_version='1.15'
2172
2173 ac_aux_dir=
2174 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2175 if test -f "$ac_dir/install-sh"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/install-sh -c"
2178 break
2179 elif test -f "$ac_dir/install.sh"; then
2180 ac_aux_dir=$ac_dir
2181 ac_install_sh="$ac_aux_dir/install.sh -c"
2182 break
2183 elif test -f "$ac_dir/shtool"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/shtool install -c"
2186 break
2187 fi
2188 done
2189 if test -z "$ac_aux_dir"; then
2190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2191 fi
2192
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2200
2201
2202 # Find a good install program. We prefer a C program (faster),
2203 # so one script is as good as another. But avoid the broken or
2204 # incompatible versions:
2205 # SysV /etc/install, /usr/sbin/install
2206 # SunOS /usr/etc/install
2207 # IRIX /sbin/install
2208 # AIX /bin/install
2209 # AmigaOS /C/install, which installs bootblocks on floppy discs
2210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2213 # OS/2's system install, which has a completely different semantic
2214 # ./install, which can be erroneously created by make from ./install.sh.
2215 # Reject install programs that cannot install multiple files.
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2218 if test -z "$INSTALL"; then
2219 if ${ac_cv_path_install+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 # Account for people who put trailing slashes in PATH elements.
2228 case $as_dir/ in #((
2229 ./ | .// | /[cC]/* | \
2230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2232 /usr/ucb/* ) ;;
2233 *)
2234 # OSF1 and SCO ODT 3.0 have their own names for install.
2235 # Don't use installbsd from OSF since it installs stuff as root
2236 # by default.
2237 for ac_prog in ginstall scoinst install; do
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2240 if test $ac_prog = install &&
2241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # AIX install. It has an incompatible calling convention.
2243 :
2244 elif test $ac_prog = install &&
2245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246 # program-specific install script used by HP pwplus--don't use.
2247 :
2248 else
2249 rm -rf conftest.one conftest.two conftest.dir
2250 echo one > conftest.one
2251 echo two > conftest.two
2252 mkdir conftest.dir
2253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2254 test -s conftest.one && test -s conftest.two &&
2255 test -s conftest.dir/conftest.one &&
2256 test -s conftest.dir/conftest.two
2257 then
2258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2259 break 3
2260 fi
2261 fi
2262 fi
2263 done
2264 done
2265 ;;
2266 esac
2267
2268 done
2269 IFS=$as_save_IFS
2270
2271 rm -rf conftest.one conftest.two conftest.dir
2272
2273 fi
2274 if test "${ac_cv_path_install+set}" = set; then
2275 INSTALL=$ac_cv_path_install
2276 else
2277 # As a last resort, use the slow shell script. Don't cache a
2278 # value for INSTALL within a source directory, because that will
2279 # break other packages using the cache if that directory is
2280 # removed, or if the value is a relative name.
2281 INSTALL=$ac_install_sh
2282 fi
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2285 $as_echo "$INSTALL" >&6; }
2286
2287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2288 # It thinks the first close brace ends the variable substitution.
2289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2290
2291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2292
2293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2296 $as_echo_n "checking whether build environment is sane... " >&6; }
2297 # Reject unsafe characters in $srcdir or the absolute working directory
2298 # name. Accept space and tab only in the latter.
2299 am_lf='
2300 '
2301 case `pwd` in
2302 *[\\\"\#\$\&\'\`$am_lf]*)
2303 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2304 esac
2305 case $srcdir in
2306 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2307 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2308 esac
2309
2310 # Do 'set' in a subshell so we don't clobber the current shell's
2311 # arguments. Must try -L first in case configure is actually a
2312 # symlink; some systems play weird games with the mod time of symlinks
2313 # (eg FreeBSD returns the mod time of the symlink's containing
2314 # directory).
2315 if (
2316 am_has_slept=no
2317 for am_try in 1 2; do
2318 echo "timestamp, slept: $am_has_slept" > conftest.file
2319 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2320 if test "$*" = "X"; then
2321 # -L didn't work.
2322 set X `ls -t "$srcdir/configure" conftest.file`
2323 fi
2324 if test "$*" != "X $srcdir/configure conftest.file" \
2325 && test "$*" != "X conftest.file $srcdir/configure"; then
2326
2327 # If neither matched, then we have a broken ls. This can happen
2328 # if, for instance, CONFIG_SHELL is bash and it inherits a
2329 # broken ls alias from the environment. This has actually
2330 # happened. Such a system could not be considered "sane".
2331 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2332 alias in your environment" "$LINENO" 5
2333 fi
2334 if test "$2" = conftest.file || test $am_try -eq 2; then
2335 break
2336 fi
2337 # Just in case.
2338 sleep 1
2339 am_has_slept=yes
2340 done
2341 test "$2" = conftest.file
2342 )
2343 then
2344 # Ok.
2345 :
2346 else
2347 as_fn_error $? "newly created file is older than distributed files!
2348 Check your system clock" "$LINENO" 5
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2351 $as_echo "yes" >&6; }
2352 # If we didn't sleep, we still need to ensure time stamps of config.status and
2353 # generated files are strictly newer.
2354 am_sleep_pid=
2355 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2356 ( sleep 1 ) &
2357 am_sleep_pid=$!
2358 fi
2359
2360 rm -f conftest.file
2361
2362 test "$program_prefix" != NONE &&
2363 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2364 # Use a double $ so make ignores it.
2365 test "$program_suffix" != NONE &&
2366 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2367 # Double any \ or $.
2368 # By default was `s,x,x', remove it if useless.
2369 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2370 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2371
2372 # Expand $ac_aux_dir to an absolute path.
2373 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2374
2375 if test x"${MISSING+set}" != xset; then
2376 case $am_aux_dir in
2377 *\ * | *\ *)
2378 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2379 *)
2380 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2381 esac
2382 fi
2383 # Use eval to expand $SHELL
2384 if eval "$MISSING --is-lightweight"; then
2385 am_missing_run="$MISSING "
2386 else
2387 am_missing_run=
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2389 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2390 fi
2391
2392 if test x"${install_sh+set}" != xset; then
2393 case $am_aux_dir in
2394 *\ * | *\ *)
2395 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2396 *)
2397 install_sh="\${SHELL} $am_aux_dir/install-sh"
2398 esac
2399 fi
2400
2401 # Installed binaries are usually stripped using 'strip' when the user
2402 # run "make install-strip". However 'strip' might not be the right
2403 # tool to use in cross-compilation environments, therefore Automake
2404 # will honor the 'STRIP' environment variable to overrule this program.
2405 if test "$cross_compiling" != no; then
2406 if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408 set dummy ${ac_tool_prefix}strip; ac_word=$2
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410 $as_echo_n "checking for $ac_word... " >&6; }
2411 if ${ac_cv_prog_STRIP+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test -n "$STRIP"; then
2415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 STRIP=$ac_cv_prog_STRIP
2435 if test -n "$STRIP"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2437 $as_echo "$STRIP" >&6; }
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2441 fi
2442
2443
2444 fi
2445 if test -z "$ac_cv_prog_STRIP"; then
2446 ac_ct_STRIP=$STRIP
2447 # Extract the first word of "strip", so it can be a program name with args.
2448 set dummy strip; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test -n "$ac_ct_STRIP"; then
2455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_ac_ct_STRIP="strip"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475 if test -n "$ac_ct_STRIP"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2477 $as_echo "$ac_ct_STRIP" >&6; }
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2481 fi
2482
2483 if test "x$ac_ct_STRIP" = x; then
2484 STRIP=":"
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487 yes:)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492 STRIP=$ac_ct_STRIP
2493 fi
2494 else
2495 STRIP="$ac_cv_prog_STRIP"
2496 fi
2497
2498 fi
2499 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2502 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2503 if test -z "$MKDIR_P"; then
2504 if ${ac_cv_path_mkdir+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_prog in mkdir gmkdir; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2515 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2516 'mkdir (GNU coreutils) '* | \
2517 'mkdir (coreutils) '* | \
2518 'mkdir (fileutils) '4.1*)
2519 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2520 break 3;;
2521 esac
2522 done
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528
2529 test -d ./--version && rmdir ./--version
2530 if test "${ac_cv_path_mkdir+set}" = set; then
2531 MKDIR_P="$ac_cv_path_mkdir -p"
2532 else
2533 # As a last resort, use the slow shell script. Don't cache a
2534 # value for MKDIR_P within a source directory, because that will
2535 # break other packages using the cache if that directory is
2536 # removed, or if the value is a relative name.
2537 MKDIR_P="$ac_install_sh -d"
2538 fi
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2541 $as_echo "$MKDIR_P" >&6; }
2542
2543 for ac_prog in gawk mawk nawk awk
2544 do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_AWK+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$AWK"; then
2553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_AWK="$ac_prog"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 AWK=$ac_cv_prog_AWK
2573 if test -n "$AWK"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2575 $as_echo "$AWK" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581
2582 test -n "$AWK" && break
2583 done
2584
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2586 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2587 set x ${MAKE-make}
2588 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2589 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat >conftest.make <<\_ACEOF
2593 SHELL = /bin/sh
2594 all:
2595 @echo '@@@%%%=$(MAKE)=@@@%%%'
2596 _ACEOF
2597 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2598 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2599 *@@@%%%=?*=@@@%%%*)
2600 eval ac_cv_prog_make_${ac_make}_set=yes;;
2601 *)
2602 eval ac_cv_prog_make_${ac_make}_set=no;;
2603 esac
2604 rm -f conftest.make
2605 fi
2606 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 SET_MAKE=
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 SET_MAKE="MAKE=${MAKE-make}"
2614 fi
2615
2616 rm -rf .tst 2>/dev/null
2617 mkdir .tst 2>/dev/null
2618 if test -d .tst; then
2619 am__leading_dot=.
2620 else
2621 am__leading_dot=_
2622 fi
2623 rmdir .tst 2>/dev/null
2624
2625 # Check whether --enable-silent-rules was given.
2626 if test "${enable_silent_rules+set}" = set; then :
2627 enableval=$enable_silent_rules;
2628 fi
2629
2630 case $enable_silent_rules in # (((
2631 yes) AM_DEFAULT_VERBOSITY=0;;
2632 no) AM_DEFAULT_VERBOSITY=1;;
2633 *) AM_DEFAULT_VERBOSITY=1;;
2634 esac
2635 am_make=${MAKE-make}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2637 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2638 if ${am_cv_make_support_nested_variables+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if $as_echo 'TRUE=$(BAR$(V))
2642 BAR0=false
2643 BAR1=true
2644 V=1
2645 am__doit:
2646 @$(TRUE)
2647 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2648 am_cv_make_support_nested_variables=yes
2649 else
2650 am_cv_make_support_nested_variables=no
2651 fi
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2654 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2655 if test $am_cv_make_support_nested_variables = yes; then
2656 AM_V='$(V)'
2657 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2658 else
2659 AM_V=$AM_DEFAULT_VERBOSITY
2660 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2661 fi
2662 AM_BACKSLASH='\'
2663
2664 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2666 # is not polluted with repeated "-I."
2667 am__isrc=' -I$(srcdir)'
2668 # test to see if srcdir already configured
2669 if test -f $srcdir/config.status; then
2670 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2671 fi
2672 fi
2673
2674 # test whether we have cygpath
2675 if test -z "$CYGPATH_W"; then
2676 if (cygpath --version) >/dev/null 2>/dev/null; then
2677 CYGPATH_W='cygpath -w'
2678 else
2679 CYGPATH_W=echo
2680 fi
2681 fi
2682
2683
2684 # Define the identity of the package.
2685 PACKAGE='xcalc'
2686 VERSION='1.0.6'
2687
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE "$PACKAGE"
2691 _ACEOF
2692
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define VERSION "$VERSION"
2696 _ACEOF
2697
2698 # Some tools Automake needs.
2699
2700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2701
2702
2703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2704
2705
2706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2707
2708
2709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2710
2711
2712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2713
2714 # For better backward compatibility. To be removed once Automake 1.9.x
2715 # dies out for good. For more background, see:
2716 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2717 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2718 mkdir_p='$(MKDIR_P)'
2719
2720 # We need awk for the "check" target (and possibly the TAP driver). The
2721 # system "awk" is bad on some platforms.
2722 # Always define AMTAR for backward compatibility. Yes, it's still used
2723 # in the wild :-( We should find a proper way to deprecate it ...
2724 AMTAR='$${TAR-tar}'
2725
2726
2727 # We'll loop over all known methods to create a tar archive until one works.
2728 _am_tools='gnutar pax cpio none'
2729
2730 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2731
2732
2733
2734
2735
2736
2737 # POSIX will say in a future version that running "rm -f" with no argument
2738 # is OK; and we want to be able to make that assumption in our Makefile
2739 # recipes. So use an aggressive probe to check that the usage we want is
2740 # actually supported "in the wild" to an acceptable degree.
2741 # See automake bug#10828.
2742 # To make any issue more visible, cause the running configure to be aborted
2743 # by default if the 'rm' program in use doesn't match our expectations; the
2744 # user can still override this though.
2745 if rm -f && rm -fr && rm -rf; then : OK; else
2746 cat >&2 <<'END'
2747 Oops!
2748
2749 Your 'rm' program seems unable to run without file operands specified
2750 on the command line, even when the '-f' option is present. This is contrary
2751 to the behaviour of most rm programs out there, and not conforming with
2752 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2753
2754 Please tell bug-automake@gnu.org about your system, including the value
2755 of your $PATH and any error possibly output before this message. This
2756 can help us improve future automake versions.
2757
2758 END
2759 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2760 echo 'Configuration will proceed anyway, since you have set the' >&2
2761 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2762 echo >&2
2763 else
2764 cat >&2 <<'END'
2765 Aborting the configuration process, to ensure you take notice of the issue.
2766
2767 You can download and install GNU coreutils to get an 'rm' implementation
2768 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2769
2770 If you want to complete the configuration process using your problematic
2771 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2772 to "yes", and re-run configure.
2773
2774 END
2775 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2776 fi
2777 fi
2778
2779
2780 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 DEPDIR="${am__leading_dot}deps"
2793
2794 ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797 am_make=${MAKE-make}
2798 cat > confinc << 'END'
2799 am__doit:
2800 @echo this is the am__doit target
2801 .PHONY: am__doit
2802 END
2803 # If we don't find an include directive, just comment out the code.
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2805 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2806 am__include="#"
2807 am__quote=
2808 _am_result=none
2809 # First try GNU make style include.
2810 echo "include confinc" > confmf
2811 # Ignore all kinds of additional output from 'make'.
2812 case `$am_make -s -f confmf 2> /dev/null` in #(
2813 *the\ am__doit\ target*)
2814 am__include=include
2815 am__quote=
2816 _am_result=GNU
2817 ;;
2818 esac
2819 # Now try BSD make style include.
2820 if test "$am__include" = "#"; then
2821 echo '.include "confinc"' > confmf
2822 case `$am_make -s -f confmf 2> /dev/null` in #(
2823 *the\ am__doit\ target*)
2824 am__include=.include
2825 am__quote="\""
2826 _am_result=BSD
2827 ;;
2828 esac
2829 fi
2830
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2833 $as_echo "$_am_result" >&6; }
2834 rm -f confinc confmf
2835
2836 # Check whether --enable-dependency-tracking was given.
2837 if test "${enable_dependency_tracking+set}" = set; then :
2838 enableval=$enable_dependency_tracking;
2839 fi
2840
2841 if test "x$enable_dependency_tracking" != xno; then
2842 am_depcomp="$ac_aux_dir/depcomp"
2843 AMDEPBACKSLASH='\'
2844 am__nodep='_no'
2845 fi
2846 if test "x$enable_dependency_tracking" != xno; then
2847 AMDEP_TRUE=
2848 AMDEP_FALSE='#'
2849 else
2850 AMDEP_TRUE='#'
2851 AMDEP_FALSE=
2852 fi
2853
2854
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_CC"; then
2900 ac_ct_CC=$CC
2901 # Extract the first word of "gcc", so it can be a program name with args.
2902 set dummy gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC="gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931 $as_echo "$ac_ct_CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946 CC=$ac_ct_CC
2947 fi
2948 else
2949 CC="$ac_cv_prog_CC"
2950 fi
2951
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}cc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_CC="${ac_tool_prefix}cc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 fi
2993 if test -z "$CC"; then
2994 # Extract the first word of "cc", so it can be a program name with args.
2995 set dummy cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 ac_prog_rejected=no
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3013 ac_prog_rejected=yes
3014 continue
3015 fi
3016 ac_cv_prog_CC="cc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 if test $ac_prog_rejected = yes; then
3025 # We found a bogon in the path, so make sure we never use it.
3026 set dummy $ac_cv_prog_CC
3027 shift
3028 if test $# != 0; then
3029 # We chose a different compiler from the bogus one.
3030 # However, it has the same basename, so the bogon will be chosen
3031 # first if we set CC to just the basename; use the full file name.
3032 shift
3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034 fi
3035 fi
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 fi
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 for ac_prog in cl.exe
3052 do
3053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 test -n "$CC" && break
3091 done
3092 fi
3093 if test -z "$CC"; then
3094 ac_ct_CC=$CC
3095 for ac_prog in cl.exe
3096 do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125 if test -n "$ac_ct_CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3127 $as_echo "$ac_ct_CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 test -n "$ac_ct_CC" && break
3135 done
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 fi
3149
3150 fi
3151
3152
3153 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "no acceptable C compiler found in \$PATH
3156 See \`config.log' for more details" "$LINENO" 5; }
3157
3158 # Provide some information about the compiler.
3159 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3160 set X $ac_compile
3161 ac_compiler=$2
3162 for ac_option in --version -v -V -qversion; do
3163 { { ac_try="$ac_compiler $ac_option >&5"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3171 ac_status=$?
3172 if test -s conftest.err; then
3173 sed '10a\
3174 ... rest of stderr output deleted ...
3175 10q' conftest.err >conftest.er1
3176 cat conftest.er1 >&5
3177 fi
3178 rm -f conftest.er1 conftest.err
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }
3181 done
3182
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 ac_clean_files_save=$ac_clean_files
3195 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3196 # Try to create an executable without -o first, disregard a.out.
3197 # It will help us diagnose broken compilers, and finding out an intuition
3198 # of exeext.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3200 $as_echo_n "checking whether the C compiler works... " >&6; }
3201 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3202
3203 # The possible output files:
3204 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3205
3206 ac_rmfiles=
3207 for ac_file in $ac_files
3208 do
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3211 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3212 esac
3213 done
3214 rm -f $ac_rmfiles
3215
3216 if { { ac_try="$ac_link_default"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_link_default") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; then :
3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3231 # Autoconf.
3232 for ac_file in $ac_files ''
3233 do
3234 test -f "$ac_file" || continue
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3237 ;;
3238 [ab].out )
3239 # We found the default executable, but exeext='' is most
3240 # certainly right.
3241 break;;
3242 *.* )
3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3244 then :; else
3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246 fi
3247 # We set ac_cv_exeext here because the later test for it is not
3248 # safe: cross compilers may not add the suffix if given an `-o'
3249 # argument, so we may need to know it at that point already.
3250 # Even if this section looks crufty: it has the advantage of
3251 # actually working.
3252 break;;
3253 * )
3254 break;;
3255 esac
3256 done
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3258
3259 else
3260 ac_file=''
3261 fi
3262 if test -z "$ac_file"; then :
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error 77 "C compiler cannot create executables
3271 See \`config.log' for more details" "$LINENO" 5; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3274 $as_echo "yes" >&6; }
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3277 $as_echo_n "checking for C compiler default output file name... " >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3279 $as_echo "$ac_file" >&6; }
3280 ac_exeext=$ac_cv_exeext
3281
3282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3283 ac_clean_files=$ac_clean_files_save
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3285 $as_echo_n "checking for suffix of executables... " >&6; }
3286 if { { ac_try="$ac_link"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_link") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3298 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3299 # work properly (i.e., refer to `conftest.exe'), while it won't with
3300 # `rm'.
3301 for ac_file in conftest.exe conftest conftest.*; do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 break;;
3307 * ) break;;
3308 esac
3309 done
3310 else
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316 rm -f conftest conftest$ac_cv_exeext
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3318 $as_echo "$ac_cv_exeext" >&6; }
3319
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3322 ac_exeext=$EXEEXT
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325 #include <stdio.h>
3326 int
3327 main ()
3328 {
3329 FILE *f = fopen ("conftest.out", "w");
3330 return ferror (f) || fclose (f) != 0;
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 ac_clean_files="$ac_clean_files conftest.out"
3337 # Check that the compiler produces executables we can run. If not, either
3338 # the compiler is broken, or we cross compile.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3340 $as_echo_n "checking whether we are cross compiling... " >&6; }
3341 if test "$cross_compiling" != yes; then
3342 { { ac_try="$ac_link"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }
3353 if { ac_try='./conftest$ac_cv_exeext'
3354 { { case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_try") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; }; then
3364 cross_compiling=no
3365 else
3366 if test "$cross_compiling" = maybe; then
3367 cross_compiling=yes
3368 else
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "cannot run C compiled programs.
3372 If you meant to cross compile, use \`--host'.
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 fi
3375 fi
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3378 $as_echo "$cross_compiling" >&6; }
3379
3380 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3381 ac_clean_files=$ac_clean_files_save
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3383 $as_echo_n "checking for suffix of object files... " >&6; }
3384 if ${ac_cv_objext+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.o conftest.obj
3399 if { { ac_try="$ac_compile"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compile") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415 break;;
3416 esac
3417 done
3418 else
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 fi
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3432 ac_objext=$OBJEXT
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3435 if ${ac_cv_c_compiler_gnu+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444 #ifndef __GNUC__
3445 choke me
3446 #endif
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_compiler_gnu=yes
3454 else
3455 ac_compiler_gnu=no
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463 if test $ac_compiler_gnu = yes; then
3464 GCC=yes
3465 else
3466 GCC=
3467 fi
3468 ac_test_CFLAGS=${CFLAGS+set}
3469 ac_save_CFLAGS=$CFLAGS
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3471 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3472 if ${ac_cv_prog_cc_g+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_save_c_werror_flag=$ac_c_werror_flag
3476 ac_c_werror_flag=yes
3477 ac_cv_prog_cc_g=no
3478 CFLAGS="-g"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_g=yes
3492 else
3493 CFLAGS=""
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506
3507 else
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3509 CFLAGS="-g"
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_g=yes
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3532 $as_echo "$ac_cv_prog_cc_g" >&6; }
3533 if test "$ac_test_CFLAGS" = set; then
3534 CFLAGS=$ac_save_CFLAGS
3535 elif test $ac_cv_prog_cc_g = yes; then
3536 if test "$GCC" = yes; then
3537 CFLAGS="-g -O2"
3538 else
3539 CFLAGS="-g"
3540 fi
3541 else
3542 if test "$GCC" = yes; then
3543 CFLAGS="-O2"
3544 else
3545 CFLAGS=
3546 fi
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3549 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3550 if ${ac_cv_prog_cc_c89+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_cv_prog_cc_c89=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <stdarg.h>
3558 #include <stdio.h>
3559 struct stat;
3560 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3561 struct buf { int x; };
3562 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3563 static char *e (p, i)
3564 char **p;
3565 int i;
3566 {
3567 return p[i];
3568 }
3569 static char *f (char * (*g) (char **, int), char **p, ...)
3570 {
3571 char *s;
3572 va_list v;
3573 va_start (v,p);
3574 s = g (p, va_arg (v,int));
3575 va_end (v);
3576 return s;
3577 }
3578
3579 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3580 function prototypes and stuff, but not '\xHH' hex character constants.
3581 These don't provoke an error unfortunately, instead are silently treated
3582 as 'x'. The following induces an error, until -std is added to get
3583 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3584 array size at least. It's necessary to write '\x00'==0 to get something
3585 that's true only with -std. */
3586 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3587
3588 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3589 inside strings and character constants. */
3590 #define FOO(x) 'x'
3591 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3592
3593 int test (int i, double x);
3594 struct s1 {int (*f) (int a);};
3595 struct s2 {int (*f) (double a);};
3596 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3597 int argc;
3598 char **argv;
3599 int
3600 main ()
3601 {
3602 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3608 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3609 do
3610 CC="$ac_save_CC $ac_arg"
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_c89=$ac_arg
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext
3615 test "x$ac_cv_prog_cc_c89" != "xno" && break
3616 done
3617 rm -f conftest.$ac_ext
3618 CC=$ac_save_CC
3619
3620 fi
3621 # AC_CACHE_VAL
3622 case "x$ac_cv_prog_cc_c89" in
3623 x)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3625 $as_echo "none needed" >&6; } ;;
3626 xno)
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3628 $as_echo "unsupported" >&6; } ;;
3629 *)
3630 CC="$CC $ac_cv_prog_cc_c89"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3632 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3633 esac
3634 if test "x$ac_cv_prog_cc_c89" != xno; then :
3635
3636 fi
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3650 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3651 if ${am_cv_prog_cc_c_o+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 # Make sure it works both with $CC and with simple cc.
3666 # Following AC_PROG_CC_C_O, we do the test twice because some
3667 # compilers refuse to overwrite an existing .o file with -o,
3668 # though they will create one.
3669 am_cv_prog_cc_c_o=yes
3670 for am_i in 1 2; do
3671 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3672 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } \
3676 && test -f conftest2.$ac_objext; then
3677 : OK
3678 else
3679 am_cv_prog_cc_c_o=no
3680 break
3681 fi
3682 done
3683 rm -f core conftest*
3684 unset am_i
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3687 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3688 if test "$am_cv_prog_cc_c_o" != yes; then
3689 # Losing compiler, so override with the script.
3690 # FIXME: It is wrong to rewrite CC.
3691 # But if we don't then we get into trouble of one sort or another.
3692 # A longer-term fix would be to have automake use am__CC in this case,
3693 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3694 CC="$am_aux_dir/compile $CC"
3695 fi
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702
3703 depcc="$CC" am_compiler_list=
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3706 $as_echo_n "checking dependency style of $depcc... " >&6; }
3707 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3711 # We make a subdir and do the tests there. Otherwise we can end up
3712 # making bogus files that we don't know about and never remove. For
3713 # instance it was reported that on HP-UX the gcc test will end up
3714 # making a dummy file named 'D' -- because '-MD' means "put the output
3715 # in D".
3716 rm -rf conftest.dir
3717 mkdir conftest.dir
3718 # Copy depcomp to subdir because otherwise we won't find it if we're
3719 # using a relative directory.
3720 cp "$am_depcomp" conftest.dir
3721 cd conftest.dir
3722 # We will build objects and dependencies in a subdirectory because
3723 # it helps to detect inapplicable dependency modes. For instance
3724 # both Tru64's cc and ICC support -MD to output dependencies as a
3725 # side effect of compilation, but ICC will put the dependencies in
3726 # the current directory while Tru64 will put them in the object
3727 # directory.
3728 mkdir sub
3729
3730 am_cv_CC_dependencies_compiler_type=none
3731 if test "$am_compiler_list" = ""; then
3732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3733 fi
3734 am__universal=false
3735 case " $depcc " in #(
3736 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3737 esac
3738
3739 for depmode in $am_compiler_list; do
3740 # Setup a source with many dependencies, because some compilers
3741 # like to wrap large dependency lists on column 80 (with \), and
3742 # we should not choose a depcomp mode which is confused by this.
3743 #
3744 # We need to recreate these files for each test, as the compiler may
3745 # overwrite some of them when testing with obscure command lines.
3746 # This happens at least with the AIX C compiler.
3747 : > sub/conftest.c
3748 for i in 1 2 3 4 5 6; do
3749 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3751 # Solaris 10 /bin/sh.
3752 echo '/* dummy */' > sub/conftst$i.h
3753 done
3754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755
3756 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3757 # mode. It turns out that the SunPro C++ compiler does not properly
3758 # handle '-M -o', and we need to detect this. Also, some Intel
3759 # versions had trouble with output in subdirs.
3760 am__obj=sub/conftest.${OBJEXT-o}
3761 am__minus_obj="-o $am__obj"
3762 case $depmode in
3763 gcc)
3764 # This depmode causes a compiler race in universal mode.
3765 test "$am__universal" = false || continue
3766 ;;
3767 nosideeffect)
3768 # After this tag, mechanisms are not by side-effect, so they'll
3769 # only be used when explicitly requested.
3770 if test "x$enable_dependency_tracking" = xyes; then
3771 continue
3772 else
3773 break
3774 fi
3775 ;;
3776 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3777 # This compiler won't grok '-c -o', but also, the minuso test has
3778 # not run yet. These depmodes are late enough in the game, and
3779 # so weak that their functioning should not be impacted.
3780 am__obj=conftest.${OBJEXT-o}
3781 am__minus_obj=
3782 ;;
3783 none) break ;;
3784 esac
3785 if depmode=$depmode \
3786 source=sub/conftest.c object=$am__obj \
3787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3789 >/dev/null 2>conftest.err &&
3790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794 # icc doesn't choke on unknown options, it will just issue warnings
3795 # or remarks (even with -Werror). So we grep stderr for any message
3796 # that says an option was ignored or not supported.
3797 # When given -MP, icc 7.0 and 7.1 complain thusly:
3798 # icc: Command line warning: ignoring option '-M'; no argument required
3799 # The diagnosis changed in icc 8.0:
3800 # icc: Command line remark: option '-MP' not supported
3801 if (grep 'ignoring option' conftest.err ||
3802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3803 am_cv_CC_dependencies_compiler_type=$depmode
3804 break
3805 fi
3806 fi
3807 done
3808
3809 cd ..
3810 rm -rf conftest.dir
3811 else
3812 am_cv_CC_dependencies_compiler_type=none
3813 fi
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3819
3820 if
3821 test "x$enable_dependency_tracking" != xno \
3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3823 am__fastdepCC_TRUE=
3824 am__fastdepCC_FALSE='#'
3825 else
3826 am__fastdepCC_TRUE='#'
3827 am__fastdepCC_FALSE=
3828 fi
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3833 if ${ac_cv_prog_cc_c99+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 ac_cv_prog_cc_c99=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <stdarg.h>
3841 #include <stdbool.h>
3842 #include <stdlib.h>
3843 #include <wchar.h>
3844 #include <stdio.h>
3845
3846 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3847 #define debug(...) fprintf (stderr, __VA_ARGS__)
3848 #define showlist(...) puts (#__VA_ARGS__)
3849 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3850 static void
3851 test_varargs_macros (void)
3852 {
3853 int x = 1234;
3854 int y = 5678;
3855 debug ("Flag");
3856 debug ("X = %d\n", x);
3857 showlist (The first, second, and third items.);
3858 report (x>y, "x is %d but y is %d", x, y);
3859 }
3860
3861 // Check long long types.
3862 #define BIG64 18446744073709551615ull
3863 #define BIG32 4294967295ul
3864 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3865 #if !BIG_OK
3866 your preprocessor is broken;
3867 #endif
3868 #if BIG_OK
3869 #else
3870 your preprocessor is broken;
3871 #endif
3872 static long long int bignum = -9223372036854775807LL;
3873 static unsigned long long int ubignum = BIG64;
3874
3875 struct incomplete_array
3876 {
3877 int datasize;
3878 double data[];
3879 };
3880
3881 struct named_init {
3882 int number;
3883 const wchar_t *name;
3884 double average;
3885 };
3886
3887 typedef const char *ccp;
3888
3889 static inline int
3890 test_restrict (ccp restrict text)
3891 {
3892 // See if C++-style comments work.
3893 // Iterate through items via the restricted pointer.
3894 // Also check for declarations in for loops.
3895 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3896 continue;
3897 return 0;
3898 }
3899
3900 // Check varargs and va_copy.
3901 static void
3902 test_varargs (const char *format, ...)
3903 {
3904 va_list args;
3905 va_start (args, format);
3906 va_list args_copy;
3907 va_copy (args_copy, args);
3908
3909 const char *str;
3910 int number;
3911 float fnumber;
3912
3913 while (*format)
3914 {
3915 switch (*format++)
3916 {
3917 case 's': // string
3918 str = va_arg (args_copy, const char *);
3919 break;
3920 case 'd': // int
3921 number = va_arg (args_copy, int);
3922 break;
3923 case 'f': // float
3924 fnumber = va_arg (args_copy, double);
3925 break;
3926 default:
3927 break;
3928 }
3929 }
3930 va_end (args_copy);
3931 va_end (args);
3932 }
3933
3934 int
3935 main ()
3936 {
3937
3938 // Check bool.
3939 _Bool success = false;
3940
3941 // Check restrict.
3942 if (test_restrict ("String literal") == 0)
3943 success = true;
3944 char *restrict newvar = "Another string";
3945
3946 // Check varargs.
3947 test_varargs ("s, d' f .", "string", 65, 34.234);
3948 test_varargs_macros ();
3949
3950 // Check flexible array members.
3951 struct incomplete_array *ia =
3952 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3953 ia->datasize = 10;
3954 for (int i = 0; i < ia->datasize; ++i)
3955 ia->data[i] = i * 1.234;
3956
3957 // Check named initializers.
3958 struct named_init ni = {
3959 .number = 34,
3960 .name = L"Test wide string",
3961 .average = 543.34343,
3962 };
3963
3964 ni.number = 58;
3965
3966 int dynamic_array[ni.number];
3967 dynamic_array[ni.number - 1] = 543;
3968
3969 // work around unused variable warnings
3970 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3971 || dynamic_array[ni.number - 1] != 543);
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3978 do
3979 CC="$ac_save_CC $ac_arg"
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_prog_cc_c99=$ac_arg
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext
3984 test "x$ac_cv_prog_cc_c99" != "xno" && break
3985 done
3986 rm -f conftest.$ac_ext
3987 CC=$ac_save_CC
3988
3989 fi
3990 # AC_CACHE_VAL
3991 case "x$ac_cv_prog_cc_c99" in
3992 x)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994 $as_echo "none needed" >&6; } ;;
3995 xno)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3997 $as_echo "unsupported" >&6; } ;;
3998 *)
3999 CC="$CC $ac_cv_prog_cc_c99"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4001 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4002 esac
4003 if test "x$ac_cv_prog_cc_c99" != xno; then :
4004
4005 fi
4006
4007
4008
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4016 # On Suns, sometimes $CPP names a directory.
4017 if test -n "$CPP" && test -d "$CPP"; then
4018 CPP=
4019 fi
4020 if test -z "$CPP"; then
4021 if ${ac_cv_prog_CPP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 # Double quotes because CPP needs to be expanded
4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026 do
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043 Syntax error
4044 _ACEOF
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047 else
4048 # Broken: fails on valid input.
4049 continue
4050 fi
4051 rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053 # OK, works on sane cases. Now check whether nonexistent headers
4054 # can be detected and how.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if ac_fn_c_try_cpp "$LINENO"; then :
4060 # Broken: success on invalid input.
4061 continue
4062 else
4063 # Passes both tests.
4064 ac_preproc_ok=:
4065 break
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 done
4070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071 rm -f conftest.i conftest.err conftest.$ac_ext
4072 if $ac_preproc_ok; then :
4073 break
4074 fi
4075
4076 done
4077 ac_cv_prog_CPP=$CPP
4078
4079 fi
4080 CPP=$ac_cv_prog_CPP
4081 else
4082 ac_cv_prog_CPP=$CPP
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4085 $as_echo "$CPP" >&6; }
4086 ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4088 do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102 Syntax error
4103 _ACEOF
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105
4106 else
4107 # Broken: fails on valid input.
4108 continue
4109 fi
4110 rm -f conftest.err conftest.i conftest.$ac_ext
4111
4112 # OK, works on sane cases. Now check whether nonexistent headers
4113 # can be detected and how.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if ac_fn_c_try_cpp "$LINENO"; then :
4119 # Broken: success on invalid input.
4120 continue
4121 else
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4125 fi
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4127
4128 done
4129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4130 rm -f conftest.i conftest.err conftest.$ac_ext
4131 if $ac_preproc_ok; then :
4132
4133 else
4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details" "$LINENO" 5; }
4138 fi
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if ${ac_cv_path_GREP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$GREP"; then
4153 ac_path_GREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in grep ggrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163 as_fn_executable_p "$ac_path_GREP" || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165 # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'GREP' >> "conftest.nl"
4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_GREP="$ac_path_GREP"
4184 ac_path_GREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_GREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_GREP"; then
4198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_GREP=$GREP
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207 GREP="$ac_cv_path_GREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if ${ac_cv_path_EGREP+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216 then ac_cv_path_EGREP="$GREP -E"
4217 else
4218 if test -z "$EGREP"; then
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 as_fn_executable_p "$ac_path_EGREP" || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_EGREP"; then
4264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_EGREP=$EGREP
4268 fi
4269
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274 EGREP="$ac_cv_path_EGREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4278 $as_echo_n "checking for ANSI C header files... " >&6; }
4279 if ${ac_cv_header_stdc+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <stdlib.h>
4285 #include <stdarg.h>
4286 #include <string.h>
4287 #include <float.h>
4288
4289 int
4290 main ()
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_header_stdc=yes
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <string.h>
4309
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "memchr" >/dev/null 2>&1; then :
4313
4314 else
4315 ac_cv_header_stdc=no
4316 fi
4317 rm -f conftest*
4318
4319 fi
4320
4321 if test $ac_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then :
4330
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then :
4341 :
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ctype.h>
4346 #include <stdlib.h>
4347 #if ((' ' & 0x0FF) == 0x020)
4348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4350 #else
4351 # define ISLOWER(c) \
4352 (('a' <= (c) && (c) <= 'i') \
4353 || ('j' <= (c) && (c) <= 'r') \
4354 || ('s' <= (c) && (c) <= 'z'))
4355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #endif
4357
4358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4359 int
4360 main ()
4361 {
4362 int i;
4363 for (i = 0; i < 256; i++)
4364 if (XOR (islower (i), ISLOWER (i))
4365 || toupper (i) != TOUPPER (i))
4366 return 2;
4367 return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_run "$LINENO"; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376 conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 fi
4378
4379 fi
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4382 $as_echo "$ac_cv_header_stdc" >&6; }
4383 if test $ac_cv_header_stdc = yes; then
4384
4385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4386
4387 fi
4388
4389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4391 inttypes.h stdint.h unistd.h
4392 do :
4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4395 "
4396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4397 cat >>confdefs.h <<_ACEOF
4398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402
4403 done
4404
4405
4406
4407
4408
4409
4410 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4411 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4412 CLANGCC="yes"
4413 else
4414 CLANGCC="no"
4415 fi
4416
4417 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4418 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4419 INTELCC="yes"
4420 else
4421 INTELCC="no"
4422 fi
4423
4424 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4425 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4426 SUNCC="yes"
4427 else
4428 SUNCC="no"
4429 fi
4430
4431
4432
4433
4434 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 case $PKG_CONFIG in
4444 [\\/]* | ?:[\\/]*)
4445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4446 ;;
4447 *)
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 ;;
4464 esac
4465 fi
4466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4467 if test -n "$PKG_CONFIG"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4469 $as_echo "$PKG_CONFIG" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$ac_cv_path_PKG_CONFIG"; then
4478 ac_pt_PKG_CONFIG=$PKG_CONFIG
4479 # Extract the first word of "pkg-config", so it can be a program name with args.
4480 set dummy pkg-config; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 case $ac_pt_PKG_CONFIG in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4489 ;;
4490 *)
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506 ;;
4507 esac
4508 fi
4509 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4510 if test -n "$ac_pt_PKG_CONFIG"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4512 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518 if test "x$ac_pt_PKG_CONFIG" = x; then
4519 PKG_CONFIG=""
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527 PKG_CONFIG=$ac_pt_PKG_CONFIG
4528 fi
4529 else
4530 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4531 fi
4532
4533 fi
4534 if test -n "$PKG_CONFIG"; then
4535 _pkg_min_version=0.9.0
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4537 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4538 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 PKG_CONFIG=""
4545 fi
4546
4547 fi
4548 # Make sure we can run config.sub.
4549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4553 $as_echo_n "checking build system type... " >&6; }
4554 if ${ac_cv_build+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_build_alias=$build_alias
4558 test "x$ac_build_alias" = x &&
4559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4560 test "x$ac_build_alias" = x &&
4561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4567 $as_echo "$ac_cv_build" >&6; }
4568 case $ac_cv_build in
4569 *-*-*) ;;
4570 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4571 esac
4572 build=$ac_cv_build
4573 ac_save_IFS=$IFS; IFS='-'
4574 set x $ac_cv_build
4575 shift
4576 build_cpu=$1
4577 build_vendor=$2
4578 shift; shift
4579 # Remember, the first character of IFS is used to create $*,
4580 # except with old shells:
4581 build_os=$*
4582 IFS=$ac_save_IFS
4583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4587 $as_echo_n "checking host system type... " >&6; }
4588 if ${ac_cv_host+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test "x$host_alias" = x; then
4592 ac_cv_host=$ac_cv_build
4593 else
4594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4596 fi
4597
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4600 $as_echo "$ac_cv_host" >&6; }
4601 case $ac_cv_host in
4602 *-*-*) ;;
4603 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4604 esac
4605 host=$ac_cv_host
4606 ac_save_IFS=$IFS; IFS='-'
4607 set x $ac_cv_host
4608 shift
4609 host_cpu=$1
4610 host_vendor=$2
4611 shift; shift
4612 # Remember, the first character of IFS is used to create $*,
4613 # except with old shells:
4614 host_os=$*
4615 IFS=$ac_save_IFS
4616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4621 if ${ac_cv_path_SED+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4625 for ac_i in 1 2 3 4 5 6 7; do
4626 ac_script="$ac_script$as_nl$ac_script"
4627 done
4628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4629 { ac_script=; unset ac_script;}
4630 if test -z "$SED"; then
4631 ac_path_SED_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in sed gsed; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4641 as_fn_executable_p "$ac_path_SED" || continue
4642 # Check for GNU ac_path_SED and select it if it is found.
4643 # Check for GNU $ac_path_SED
4644 case `"$ac_path_SED" --version 2>&1` in
4645 *GNU*)
4646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4647 *)
4648 ac_count=0
4649 $as_echo_n 0123456789 >"conftest.in"
4650 while :
4651 do
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo '' >> "conftest.nl"
4656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_SED_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_SED="$ac_path_SED"
4662 ac_path_SED_max=$ac_count
4663 fi
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4666 done
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670 $ac_path_SED_found && break 3
4671 done
4672 done
4673 done
4674 IFS=$as_save_IFS
4675 if test -z "$ac_cv_path_SED"; then
4676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4677 fi
4678 else
4679 ac_cv_path_SED=$SED
4680 fi
4681
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4684 $as_echo "$ac_cv_path_SED" >&6; }
4685 SED="$ac_cv_path_SED"
4686 rm -f conftest.sed
4687
4688
4689
4690
4691
4692
4693 # Check whether --enable-selective-werror was given.
4694 if test "${enable_selective_werror+set}" = set; then :
4695 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4696 else
4697 SELECTIVE_WERROR=yes
4698 fi
4699
4700
4701
4702
4703
4704 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4705 if test "x$SUNCC" = "xyes"; then
4706 BASE_CFLAGS="-v"
4707 else
4708 BASE_CFLAGS=""
4709 fi
4710
4711 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 xorg_testset_save_CFLAGS="$CFLAGS"
4726
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 int i;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 xorg_cv_cc_flag_unknown_warning_option=yes
4740 else
4741 xorg_cv_cc_flag_unknown_warning_option=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748 CFLAGS="$xorg_testset_save_CFLAGS"
4749 fi
4750
4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4754 fi
4755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 int i;
4764 _ACEOF
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 xorg_cv_cc_flag_unused_command_line_argument=yes
4767 else
4768 xorg_cv_cc_flag_unused_command_line_argument=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4776 fi
4777
4778 found="no"
4779
4780 if test $found = "no" ; then
4781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4783 fi
4784
4785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787 fi
4788
4789 CFLAGS="$CFLAGS -Wall"
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4792 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4793 cacheid=xorg_cv_cc_flag__Wall
4794 if eval \${$cacheid+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 int i;
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_link "$LINENO"; then :
4809 eval $cacheid=yes
4810 else
4811 eval $cacheid=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4815 fi
4816
4817
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820 eval supported=\$$cacheid
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822 $as_echo "$supported" >&6; }
4823 if test "$supported" = "yes" ; then
4824 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4825 found="yes"
4826 fi
4827 fi
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 xorg_testset_save_CFLAGS="$CFLAGS"
4844
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 int i;
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 xorg_cv_cc_flag_unknown_warning_option=yes
4858 else
4859 xorg_cv_cc_flag_unknown_warning_option=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4867 fi
4868
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872 fi
4873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 int i;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 xorg_cv_cc_flag_unused_command_line_argument=yes
4885 else
4886 xorg_cv_cc_flag_unused_command_line_argument=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4894 fi
4895
4896 found="no"
4897
4898 if test $found = "no" ; then
4899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4901 fi
4902
4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905 fi
4906
4907 CFLAGS="$CFLAGS -Wpointer-arith"
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4910 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4911 cacheid=xorg_cv_cc_flag__Wpointer_arith
4912 if eval \${$cacheid+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 int i;
4918 int
4919 main ()
4920 {
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 eval $cacheid=yes
4928 else
4929 eval $cacheid=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4933 fi
4934
4935
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4937
4938 eval supported=\$$cacheid
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 $as_echo "$supported" >&6; }
4941 if test "$supported" = "yes" ; then
4942 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4943 found="yes"
4944 fi
4945 fi
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 xorg_testset_save_CFLAGS="$CFLAGS"
4962
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int i;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 xorg_cv_cc_flag_unknown_warning_option=yes
4976 else
4977 xorg_cv_cc_flag_unknown_warning_option=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985 fi
4986
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990 fi
4991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 int i;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 xorg_cv_cc_flag_unused_command_line_argument=yes
5003 else
5004 xorg_cv_cc_flag_unused_command_line_argument=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 found="no"
5015
5016 if test $found = "no" ; then
5017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5019 fi
5020
5021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023 fi
5024
5025 CFLAGS="$CFLAGS -Wmissing-declarations"
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5028 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5029 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5030 if eval \${$cacheid+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 int
5037 main ()
5038 {
5039
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_link "$LINENO"; then :
5045 eval $cacheid=yes
5046 else
5047 eval $cacheid=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5051 fi
5052
5053
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5055
5056 eval supported=\$$cacheid
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5058 $as_echo "$supported" >&6; }
5059 if test "$supported" = "yes" ; then
5060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5061 found="yes"
5062 fi
5063 fi
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 xorg_testset_save_CFLAGS="$CFLAGS"
5080
5081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 int i;
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093 xorg_cv_cc_flag_unknown_warning_option=yes
5094 else
5095 xorg_cv_cc_flag_unknown_warning_option=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5103 fi
5104
5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 fi
5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 xorg_cv_cc_flag_unused_command_line_argument=yes
5121 else
5122 xorg_cv_cc_flag_unused_command_line_argument=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130 fi
5131
5132 found="no"
5133
5134 if test $found = "no" ; then
5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137 fi
5138
5139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141 fi
5142
5143 CFLAGS="$CFLAGS -Wformat=2"
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5146 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5147 cacheid=xorg_cv_cc_flag__Wformat_2
5148 if eval \${$cacheid+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 int i;
5154 int
5155 main ()
5156 {
5157
5158 ;
5159 return 0;
5160 }
5161 _ACEOF
5162 if ac_fn_c_try_link "$LINENO"; then :
5163 eval $cacheid=yes
5164 else
5165 eval $cacheid=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext \
5168 conftest$ac_exeext conftest.$ac_ext
5169 fi
5170
5171
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173
5174 eval supported=\$$cacheid
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5176 $as_echo "$supported" >&6; }
5177 if test "$supported" = "yes" ; then
5178 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5179 found="yes"
5180 fi
5181 fi
5182
5183 if test $found = "no" ; then
5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186 fi
5187
5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190 fi
5191
5192 CFLAGS="$CFLAGS -Wformat"
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5195 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5196 cacheid=xorg_cv_cc_flag__Wformat
5197 if eval \${$cacheid+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int i;
5203 int
5204 main ()
5205 {
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"; then :
5212 eval $cacheid=yes
5213 else
5214 eval $cacheid=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218 fi
5219
5220
5221 CFLAGS="$xorg_testset_save_CFLAGS"
5222
5223 eval supported=\$$cacheid
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225 $as_echo "$supported" >&6; }
5226 if test "$supported" = "yes" ; then
5227 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5228 found="yes"
5229 fi
5230 fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 xorg_testset_save_CFLAGS="$CFLAGS"
5249
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 int i;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 xorg_cv_cc_flag_unknown_warning_option=yes
5263 else
5264 xorg_cv_cc_flag_unknown_warning_option=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 fi
5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 int i;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 xorg_cv_cc_flag_unused_command_line_argument=yes
5290 else
5291 xorg_cv_cc_flag_unused_command_line_argument=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5299 fi
5300
5301 found="no"
5302
5303 if test $found = "no" ; then
5304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306 fi
5307
5308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310 fi
5311
5312 CFLAGS="$CFLAGS -Wstrict-prototypes"
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5315 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5316 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5317 if eval \${$cacheid+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 int i;
5323 int
5324 main ()
5325 {
5326
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_link "$LINENO"; then :
5332 eval $cacheid=yes
5333 else
5334 eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343 eval supported=\$$cacheid
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 $as_echo "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5348 found="yes"
5349 fi
5350 fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 int i;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 xorg_cv_cc_flag_unknown_warning_option=yes
5381 else
5382 xorg_cv_cc_flag_unknown_warning_option=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389 CFLAGS="$xorg_testset_save_CFLAGS"
5390 fi
5391
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395 fi
5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unused_command_line_argument=yes
5408 else
5409 xorg_cv_cc_flag_unused_command_line_argument=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5417 fi
5418
5419 found="no"
5420
5421 if test $found = "no" ; then
5422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424 fi
5425
5426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428 fi
5429
5430 CFLAGS="$CFLAGS -Wmissing-prototypes"
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5433 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5434 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5435 if eval \${$cacheid+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 int i;
5441 int
5442 main ()
5443 {
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"; then :
5450 eval $cacheid=yes
5451 else
5452 eval $cacheid=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 fi
5457
5458
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461 eval supported=\$$cacheid
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 $as_echo "$supported" >&6; }
5464 if test "$supported" = "yes" ; then
5465 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5466 found="yes"
5467 fi
5468 fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 int i;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 xorg_cv_cc_flag_unknown_warning_option=yes
5499 else
5500 xorg_cv_cc_flag_unknown_warning_option=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5508 fi
5509
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513 fi
5514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_cv_cc_flag_unused_command_line_argument=yes
5526 else
5527 xorg_cv_cc_flag_unused_command_line_argument=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 found="no"
5538
5539 if test $found = "no" ; then
5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542 fi
5543
5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546 fi
5547
5548 CFLAGS="$CFLAGS -Wnested-externs"
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5551 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5552 cacheid=xorg_cv_cc_flag__Wnested_externs
5553 if eval \${$cacheid+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 int i;
5559 int
5560 main ()
5561 {
5562
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_link "$LINENO"; then :
5568 eval $cacheid=yes
5569 else
5570 eval $cacheid=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext \
5573 conftest$ac_exeext conftest.$ac_ext
5574 fi
5575
5576
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5578
5579 eval supported=\$$cacheid
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581 $as_echo "$supported" >&6; }
5582 if test "$supported" = "yes" ; then
5583 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5584 found="yes"
5585 fi
5586 fi
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5603
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 int i;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 xorg_cv_cc_flag_unknown_warning_option=yes
5617 else
5618 xorg_cv_cc_flag_unknown_warning_option=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5626 fi
5627
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631 fi
5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 int i;
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 xorg_cv_cc_flag_unused_command_line_argument=yes
5644 else
5645 xorg_cv_cc_flag_unused_command_line_argument=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 found="no"
5656
5657 if test $found = "no" ; then
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 fi
5661
5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664 fi
5665
5666 CFLAGS="$CFLAGS -Wbad-function-cast"
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5669 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5670 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5671 if eval \${$cacheid+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 int i;
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 eval $cacheid=yes
5687 else
5688 eval $cacheid=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 fi
5693
5694
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696
5697 eval supported=\$$cacheid
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699 $as_echo "$supported" >&6; }
5700 if test "$supported" = "yes" ; then
5701 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5702 found="yes"
5703 fi
5704 fi
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 xorg_testset_save_CFLAGS="$CFLAGS"
5721
5722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 xorg_cv_cc_flag_unknown_warning_option=yes
5735 else
5736 xorg_cv_cc_flag_unknown_warning_option=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744 fi
5745
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749 fi
5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 int i;
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 xorg_cv_cc_flag_unused_command_line_argument=yes
5762 else
5763 xorg_cv_cc_flag_unused_command_line_argument=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5771 fi
5772
5773 found="no"
5774
5775 if test $found = "no" ; then
5776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778 fi
5779
5780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782 fi
5783
5784 CFLAGS="$CFLAGS -Wold-style-definition"
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5787 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5788 cacheid=xorg_cv_cc_flag__Wold_style_definition
5789 if eval \${$cacheid+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 int i;
5795 int
5796 main ()
5797 {
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 eval $cacheid=yes
5805 else
5806 eval $cacheid=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 fi
5811
5812
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814
5815 eval supported=\$$cacheid
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5817 $as_echo "$supported" >&6; }
5818 if test "$supported" = "yes" ; then
5819 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5820 found="yes"
5821 fi
5822 fi
5823
5824 if test $found = "no" ; then
5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827 fi
5828
5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831 fi
5832
5833 CFLAGS="$CFLAGS -fd"
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5836 $as_echo_n "checking if $CC supports -fd... " >&6; }
5837 cacheid=xorg_cv_cc_flag__fd
5838 if eval \${$cacheid+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_link "$LINENO"; then :
5853 eval $cacheid=yes
5854 else
5855 eval $cacheid=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 fi
5860
5861
5862 CFLAGS="$xorg_testset_save_CFLAGS"
5863
5864 eval supported=\$$cacheid
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5866 $as_echo "$supported" >&6; }
5867 if test "$supported" = "yes" ; then
5868 BASE_CFLAGS="$BASE_CFLAGS -fd"
5869 found="yes"
5870 fi
5871 fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 xorg_testset_save_CFLAGS="$CFLAGS"
5888
5889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 xorg_cv_cc_flag_unknown_warning_option=yes
5902 else
5903 xorg_cv_cc_flag_unknown_warning_option=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5908 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911 fi
5912
5913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916 fi
5917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5919 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5920 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int i;
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 xorg_cv_cc_flag_unused_command_line_argument=yes
5929 else
5930 xorg_cv_cc_flag_unused_command_line_argument=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5935 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5937 CFLAGS="$xorg_testset_save_CFLAGS"
5938 fi
5939
5940 found="no"
5941
5942 if test $found = "no" ; then
5943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945 fi
5946
5947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949 fi
5950
5951 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5954 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5955 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5956 if eval \${$cacheid+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 int i;
5962 int
5963 main ()
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 eval $cacheid=yes
5972 else
5973 eval $cacheid=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5977 fi
5978
5979
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981
5982 eval supported=\$$cacheid
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984 $as_echo "$supported" >&6; }
5985 if test "$supported" = "yes" ; then
5986 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5987 found="yes"
5988 fi
5989 fi
5990
5991
5992
5993
5994
5995 # This chunk adds additional warnings that could catch undesired effects.
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 xorg_testset_save_CFLAGS="$CFLAGS"
6010
6011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 int i;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 xorg_cv_cc_flag_unknown_warning_option=yes
6024 else
6025 xorg_cv_cc_flag_unknown_warning_option=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6033 fi
6034
6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038 fi
6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int i;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 xorg_cv_cc_flag_unused_command_line_argument=yes
6051 else
6052 xorg_cv_cc_flag_unused_command_line_argument=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 found="no"
6063
6064 if test $found = "no" ; then
6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067 fi
6068
6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071 fi
6072
6073 CFLAGS="$CFLAGS -Wunused"
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6076 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6077 cacheid=xorg_cv_cc_flag__Wunused
6078 if eval \${$cacheid+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 int i;
6084 int
6085 main ()
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_link "$LINENO"; then :
6093 eval $cacheid=yes
6094 else
6095 eval $cacheid=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext \
6098 conftest$ac_exeext conftest.$ac_ext
6099 fi
6100
6101
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6103
6104 eval supported=\$$cacheid
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6106 $as_echo "$supported" >&6; }
6107 if test "$supported" = "yes" ; then
6108 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6109 found="yes"
6110 fi
6111 fi
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 xorg_testset_save_CFLAGS="$CFLAGS"
6128
6129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6132 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6133 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 int i;
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 xorg_cv_cc_flag_unknown_warning_option=yes
6142 else
6143 xorg_cv_cc_flag_unknown_warning_option=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6148 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6150 CFLAGS="$xorg_testset_save_CFLAGS"
6151 fi
6152
6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6156 fi
6157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6159 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6160 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 xorg_cv_cc_flag_unused_command_line_argument=yes
6169 else
6170 xorg_cv_cc_flag_unused_command_line_argument=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6175 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 found="no"
6181
6182 if test $found = "no" ; then
6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185 fi
6186
6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 fi
6190
6191 CFLAGS="$CFLAGS -Wuninitialized"
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6194 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6195 cacheid=xorg_cv_cc_flag__Wuninitialized
6196 if eval \${$cacheid+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 int i;
6202 int
6203 main ()
6204 {
6205
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 if ac_fn_c_try_link "$LINENO"; then :
6211 eval $cacheid=yes
6212 else
6213 eval $cacheid=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6217 fi
6218
6219
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221
6222 eval supported=\$$cacheid
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6224 $as_echo "$supported" >&6; }
6225 if test "$supported" = "yes" ; then
6226 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6227 found="yes"
6228 fi
6229 fi
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 xorg_testset_save_CFLAGS="$CFLAGS"
6246
6247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6250 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6251 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 int i;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 xorg_cv_cc_flag_unknown_warning_option=yes
6260 else
6261 xorg_cv_cc_flag_unknown_warning_option=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6266 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269 fi
6270
6271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6274 fi
6275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6277 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6278 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 xorg_cv_cc_flag_unused_command_line_argument=yes
6287 else
6288 xorg_cv_cc_flag_unused_command_line_argument=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6293 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 found="no"
6299
6300 if test $found = "no" ; then
6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303 fi
6304
6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 fi
6308
6309 CFLAGS="$CFLAGS -Wshadow"
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6312 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6313 cacheid=xorg_cv_cc_flag__Wshadow
6314 if eval \${$cacheid+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int i;
6320 int
6321 main ()
6322 {
6323
6324 ;
6325 return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_link "$LINENO"; then :
6329 eval $cacheid=yes
6330 else
6331 eval $cacheid=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 fi
6336
6337
6338 CFLAGS="$xorg_testset_save_CFLAGS"
6339
6340 eval supported=\$$cacheid
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6342 $as_echo "$supported" >&6; }
6343 if test "$supported" = "yes" ; then
6344 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6345 found="yes"
6346 fi
6347 fi
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 xorg_testset_save_CFLAGS="$CFLAGS"
6364
6365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 xorg_cv_cc_flag_unknown_warning_option=yes
6378 else
6379 xorg_cv_cc_flag_unknown_warning_option=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387 fi
6388
6389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392 fi
6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int i;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 xorg_cv_cc_flag_unused_command_line_argument=yes
6405 else
6406 xorg_cv_cc_flag_unused_command_line_argument=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414 fi
6415
6416 found="no"
6417
6418 if test $found = "no" ; then
6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421 fi
6422
6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 fi
6426
6427 CFLAGS="$CFLAGS -Wmissing-noreturn"
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6430 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6431 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6432 if eval \${$cacheid+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 int i;
6438 int
6439 main ()
6440 {
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_link "$LINENO"; then :
6447 eval $cacheid=yes
6448 else
6449 eval $cacheid=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 fi
6454
6455
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457
6458 eval supported=\$$cacheid
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6460 $as_echo "$supported" >&6; }
6461 if test "$supported" = "yes" ; then
6462 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6463 found="yes"
6464 fi
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 xorg_testset_save_CFLAGS="$CFLAGS"
6482
6483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 int i;
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495 xorg_cv_cc_flag_unknown_warning_option=yes
6496 else
6497 xorg_cv_cc_flag_unknown_warning_option=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505 fi
6506
6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 fi
6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 int i;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 xorg_cv_cc_flag_unused_command_line_argument=yes
6523 else
6524 xorg_cv_cc_flag_unused_command_line_argument=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 found="no"
6535
6536 if test $found = "no" ; then
6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539 fi
6540
6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 fi
6544
6545 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6548 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6549 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6550 if eval \${$cacheid+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 int i;
6556 int
6557 main ()
6558 {
6559
6560 ;
6561 return 0;
6562 }
6563 _ACEOF
6564 if ac_fn_c_try_link "$LINENO"; then :
6565 eval $cacheid=yes
6566 else
6567 eval $cacheid=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext conftest.$ac_ext
6571 fi
6572
6573
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575
6576 eval supported=\$$cacheid
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6578 $as_echo "$supported" >&6; }
6579 if test "$supported" = "yes" ; then
6580 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6581 found="yes"
6582 fi
6583 fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 xorg_testset_save_CFLAGS="$CFLAGS"
6600
6601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 xorg_cv_cc_flag_unknown_warning_option=yes
6614 else
6615 xorg_cv_cc_flag_unknown_warning_option=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623 fi
6624
6625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628 fi
6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 xorg_cv_cc_flag_unused_command_line_argument=yes
6641 else
6642 xorg_cv_cc_flag_unused_command_line_argument=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650 fi
6651
6652 found="no"
6653
6654 if test $found = "no" ; then
6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6657 fi
6658
6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661 fi
6662
6663 CFLAGS="$CFLAGS -Wredundant-decls"
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6666 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6667 cacheid=xorg_cv_cc_flag__Wredundant_decls
6668 if eval \${$cacheid+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int i;
6674 int
6675 main ()
6676 {
6677
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_link "$LINENO"; then :
6683 eval $cacheid=yes
6684 else
6685 eval $cacheid=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689 fi
6690
6691
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693
6694 eval supported=\$$cacheid
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6696 $as_echo "$supported" >&6; }
6697 if test "$supported" = "yes" ; then
6698 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6699 found="yes"
6700 fi
6701 fi
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717 xorg_testset_save_CFLAGS="$CFLAGS"
6718
6719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 xorg_cv_cc_flag_unknown_warning_option=yes
6732 else
6733 xorg_cv_cc_flag_unknown_warning_option=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 fi
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6741 fi
6742
6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 xorg_cv_cc_flag_unused_command_line_argument=yes
6759 else
6760 xorg_cv_cc_flag_unused_command_line_argument=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768 fi
6769
6770 found="no"
6771
6772 if test $found = "no" ; then
6773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775 fi
6776
6777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779 fi
6780
6781 CFLAGS="$CFLAGS -Wlogical-op"
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6784 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6785 cacheid=xorg_cv_cc_flag__Wlogical_op
6786 if eval \${$cacheid+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 int i;
6792 int
6793 main ()
6794 {
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801 eval $cacheid=yes
6802 else
6803 eval $cacheid=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 fi
6808
6809
6810 CFLAGS="$xorg_testset_save_CFLAGS"
6811
6812 eval supported=\$$cacheid
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6814 $as_echo "$supported" >&6; }
6815 if test "$supported" = "yes" ; then
6816 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6817 found="yes"
6818 fi
6819 fi
6820
6821
6822
6823 # These are currently disabled because they are noisy. They will be enabled
6824 # in the future once the codebase is sufficiently modernized to silence
6825 # them. For now, I don't want them to drown out the other warnings.
6826 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6827 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6828 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6829
6830 # Turn some warnings into errors, so we don't accidently get successful builds
6831 # when there are problems that should be fixed.
6832
6833 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 xorg_testset_save_CFLAGS="$CFLAGS"
6848
6849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 int i;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 xorg_cv_cc_flag_unknown_warning_option=yes
6862 else
6863 xorg_cv_cc_flag_unknown_warning_option=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6871 fi
6872
6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876 fi
6877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 int i;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 xorg_cv_cc_flag_unused_command_line_argument=yes
6889 else
6890 xorg_cv_cc_flag_unused_command_line_argument=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6898 fi
6899
6900 found="no"
6901
6902 if test $found = "no" ; then
6903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905 fi
6906
6907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909 fi
6910
6911 CFLAGS="$CFLAGS -Werror=implicit"
6912
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6914 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6915 cacheid=xorg_cv_cc_flag__Werror_implicit
6916 if eval \${$cacheid+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int i;
6922 int
6923 main ()
6924 {
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931 eval $cacheid=yes
6932 else
6933 eval $cacheid=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 fi
6938
6939
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6941
6942 eval supported=\$$cacheid
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944 $as_echo "$supported" >&6; }
6945 if test "$supported" = "yes" ; then
6946 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6947 found="yes"
6948 fi
6949 fi
6950
6951 if test $found = "no" ; then
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 fi
6955
6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 fi
6959
6960 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6963 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6964 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6965 if eval \${$cacheid+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 int i;
6971 int
6972 main ()
6973 {
6974
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 eval $cacheid=yes
6981 else
6982 eval $cacheid=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 fi
6987
6988
6989 CFLAGS="$xorg_testset_save_CFLAGS"
6990
6991 eval supported=\$$cacheid
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6993 $as_echo "$supported" >&6; }
6994 if test "$supported" = "yes" ; then
6995 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6996 found="yes"
6997 fi
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 xorg_cv_cc_flag_unknown_warning_option=yes
7029 else
7030 xorg_cv_cc_flag_unknown_warning_option=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7037 CFLAGS="$xorg_testset_save_CFLAGS"
7038 fi
7039
7040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 fi
7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 xorg_cv_cc_flag_unused_command_line_argument=yes
7056 else
7057 xorg_cv_cc_flag_unused_command_line_argument=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7064 CFLAGS="$xorg_testset_save_CFLAGS"
7065 fi
7066
7067 found="no"
7068
7069 if test $found = "no" ; then
7070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072 fi
7073
7074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076 fi
7077
7078 CFLAGS="$CFLAGS -Werror=nonnull"
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7081 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7082 cacheid=xorg_cv_cc_flag__Werror_nonnull
7083 if eval \${$cacheid+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int i;
7089 int
7090 main ()
7091 {
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098 eval $cacheid=yes
7099 else
7100 eval $cacheid=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 fi
7105
7106
7107 CFLAGS="$xorg_testset_save_CFLAGS"
7108
7109 eval supported=\$$cacheid
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7111 $as_echo "$supported" >&6; }
7112 if test "$supported" = "yes" ; then
7113 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7114 found="yes"
7115 fi
7116 fi
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 xorg_testset_save_CFLAGS="$CFLAGS"
7133
7134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 xorg_cv_cc_flag_unknown_warning_option=yes
7147 else
7148 xorg_cv_cc_flag_unknown_warning_option=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 fi
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156 fi
7157
7158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161 fi
7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 int i;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 xorg_cv_cc_flag_unused_command_line_argument=yes
7174 else
7175 xorg_cv_cc_flag_unused_command_line_argument=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7183 fi
7184
7185 found="no"
7186
7187 if test $found = "no" ; then
7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7190 fi
7191
7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7194 fi
7195
7196 CFLAGS="$CFLAGS -Werror=init-self"
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7199 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7200 cacheid=xorg_cv_cc_flag__Werror_init_self
7201 if eval \${$cacheid+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 int
7208 main ()
7209 {
7210
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_link "$LINENO"; then :
7216 eval $cacheid=yes
7217 else
7218 eval $cacheid=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext \
7221 conftest$ac_exeext conftest.$ac_ext
7222 fi
7223
7224
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226
7227 eval supported=\$$cacheid
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7229 $as_echo "$supported" >&6; }
7230 if test "$supported" = "yes" ; then
7231 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7232 found="yes"
7233 fi
7234 fi
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 xorg_testset_save_CFLAGS="$CFLAGS"
7251
7252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 _ACEOF
7263 if ac_fn_c_try_compile "$LINENO"; then :
7264 xorg_cv_cc_flag_unknown_warning_option=yes
7265 else
7266 xorg_cv_cc_flag_unknown_warning_option=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 fi
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274 fi
7275
7276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 fi
7280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 xorg_cv_cc_flag_unused_command_line_argument=yes
7292 else
7293 xorg_cv_cc_flag_unused_command_line_argument=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7300 CFLAGS="$xorg_testset_save_CFLAGS"
7301 fi
7302
7303 found="no"
7304
7305 if test $found = "no" ; then
7306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7308 fi
7309
7310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 fi
7313
7314 CFLAGS="$CFLAGS -Werror=main"
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7317 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7318 cacheid=xorg_cv_cc_flag__Werror_main
7319 if eval \${$cacheid+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 int i;
7325 int
7326 main ()
7327 {
7328
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"; then :
7334 eval $cacheid=yes
7335 else
7336 eval $cacheid=no
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext \
7339 conftest$ac_exeext conftest.$ac_ext
7340 fi
7341
7342
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344
7345 eval supported=\$$cacheid
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7347 $as_echo "$supported" >&6; }
7348 if test "$supported" = "yes" ; then
7349 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7350 found="yes"
7351 fi
7352 fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 xorg_testset_save_CFLAGS="$CFLAGS"
7369
7370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 int i;
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 xorg_cv_cc_flag_unknown_warning_option=yes
7383 else
7384 xorg_cv_cc_flag_unknown_warning_option=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392 fi
7393
7394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397 fi
7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 xorg_cv_cc_flag_unused_command_line_argument=yes
7410 else
7411 xorg_cv_cc_flag_unused_command_line_argument=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419 fi
7420
7421 found="no"
7422
7423 if test $found = "no" ; then
7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426 fi
7427
7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 fi
7431
7432 CFLAGS="$CFLAGS -Werror=missing-braces"
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7435 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7436 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7437 if eval \${$cacheid+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 int i;
7443 int
7444 main ()
7445 {
7446
7447 ;
7448 return 0;
7449 }
7450 _ACEOF
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 eval $cacheid=yes
7453 else
7454 eval $cacheid=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 fi
7459
7460
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7462
7463 eval supported=\$$cacheid
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465 $as_echo "$supported" >&6; }
7466 if test "$supported" = "yes" ; then
7467 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7468 found="yes"
7469 fi
7470 fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 xorg_testset_save_CFLAGS="$CFLAGS"
7487
7488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 int i;
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 xorg_cv_cc_flag_unknown_warning_option=yes
7501 else
7502 xorg_cv_cc_flag_unknown_warning_option=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510 fi
7511
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 fi
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 int i;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 xorg_cv_cc_flag_unused_command_line_argument=yes
7528 else
7529 xorg_cv_cc_flag_unused_command_line_argument=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537 fi
7538
7539 found="no"
7540
7541 if test $found = "no" ; then
7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544 fi
7545
7546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548 fi
7549
7550 CFLAGS="$CFLAGS -Werror=sequence-point"
7551
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7553 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7554 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7555 if eval \${$cacheid+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 int i;
7561 int
7562 main ()
7563 {
7564
7565 ;
7566 return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_link "$LINENO"; then :
7570 eval $cacheid=yes
7571 else
7572 eval $cacheid=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7576 fi
7577
7578
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580
7581 eval supported=\$$cacheid
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7583 $as_echo "$supported" >&6; }
7584 if test "$supported" = "yes" ; then
7585 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7586 found="yes"
7587 fi
7588 fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 xorg_testset_save_CFLAGS="$CFLAGS"
7605
7606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 _ACEOF
7617 if ac_fn_c_try_compile "$LINENO"; then :
7618 xorg_cv_cc_flag_unknown_warning_option=yes
7619 else
7620 xorg_cv_cc_flag_unknown_warning_option=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628 fi
7629
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 fi
7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 int i;
7643 _ACEOF
7644 if ac_fn_c_try_compile "$LINENO"; then :
7645 xorg_cv_cc_flag_unused_command_line_argument=yes
7646 else
7647 xorg_cv_cc_flag_unused_command_line_argument=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7655 fi
7656
7657 found="no"
7658
7659 if test $found = "no" ; then
7660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7662 fi
7663
7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666 fi
7667
7668 CFLAGS="$CFLAGS -Werror=return-type"
7669
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7671 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7672 cacheid=xorg_cv_cc_flag__Werror_return_type
7673 if eval \${$cacheid+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 int i;
7679 int
7680 main ()
7681 {
7682
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 eval $cacheid=yes
7689 else
7690 eval $cacheid=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694 fi
7695
7696
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699 eval supported=\$$cacheid
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 $as_echo "$supported" >&6; }
7702 if test "$supported" = "yes" ; then
7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7704 found="yes"
7705 fi
7706 fi
7707
7708 if test $found = "no" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715 fi
7716
7717 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7720 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7721 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7722 if eval \${$cacheid+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 int i;
7728 int
7729 main ()
7730 {
7731
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 eval $cacheid=yes
7738 else
7739 eval $cacheid=no
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 fi
7744
7745
7746 CFLAGS="$xorg_testset_save_CFLAGS"
7747
7748 eval supported=\$$cacheid
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7750 $as_echo "$supported" >&6; }
7751 if test "$supported" = "yes" ; then
7752 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7753 found="yes"
7754 fi
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 xorg_testset_save_CFLAGS="$CFLAGS"
7772
7773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 xorg_cv_cc_flag_unknown_warning_option=yes
7786 else
7787 xorg_cv_cc_flag_unknown_warning_option=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 xorg_cv_cc_flag_unused_command_line_argument=yes
7813 else
7814 xorg_cv_cc_flag_unused_command_line_argument=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822 fi
7823
7824 found="no"
7825
7826 if test $found = "no" ; then
7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829 fi
7830
7831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833 fi
7834
7835 CFLAGS="$CFLAGS -Werror=trigraphs"
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7838 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7839 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7840 if eval \${$cacheid+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int i;
7846 int
7847 main ()
7848 {
7849
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 eval $cacheid=yes
7856 else
7857 eval $cacheid=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 fi
7862
7863
7864 CFLAGS="$xorg_testset_save_CFLAGS"
7865
7866 eval supported=\$$cacheid
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7868 $as_echo "$supported" >&6; }
7869 if test "$supported" = "yes" ; then
7870 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7871 found="yes"
7872 fi
7873 fi
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889 xorg_testset_save_CFLAGS="$CFLAGS"
7890
7891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 _ACEOF
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903 xorg_cv_cc_flag_unknown_warning_option=yes
7904 else
7905 xorg_cv_cc_flag_unknown_warning_option=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913 fi
7914
7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 xorg_cv_cc_flag_unused_command_line_argument=yes
7931 else
7932 xorg_cv_cc_flag_unused_command_line_argument=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 found="no"
7943
7944 if test $found = "no" ; then
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 fi
7952
7953 CFLAGS="$CFLAGS -Werror=array-bounds"
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7956 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7957 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7958 if eval \${$cacheid+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int i;
7964 int
7965 main ()
7966 {
7967
7968 ;
7969 return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973 eval $cacheid=yes
7974 else
7975 eval $cacheid=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 fi
7980
7981
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983
7984 eval supported=\$$cacheid
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7986 $as_echo "$supported" >&6; }
7987 if test "$supported" = "yes" ; then
7988 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7989 found="yes"
7990 fi
7991 fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 xorg_testset_save_CFLAGS="$CFLAGS"
8008
8009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 int i;
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 xorg_cv_cc_flag_unknown_warning_option=yes
8022 else
8023 xorg_cv_cc_flag_unknown_warning_option=no
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8030 CFLAGS="$xorg_testset_save_CFLAGS"
8031 fi
8032
8033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036 fi
8037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 xorg_cv_cc_flag_unused_command_line_argument=yes
8049 else
8050 xorg_cv_cc_flag_unused_command_line_argument=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058 fi
8059
8060 found="no"
8061
8062 if test $found = "no" ; then
8063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8065 fi
8066
8067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 fi
8070
8071 CFLAGS="$CFLAGS -Werror=write-strings"
8072
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8074 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8075 cacheid=xorg_cv_cc_flag__Werror_write_strings
8076 if eval \${$cacheid+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 int i;
8082 int
8083 main ()
8084 {
8085
8086 ;
8087 return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091 eval $cacheid=yes
8092 else
8093 eval $cacheid=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097 fi
8098
8099
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101
8102 eval supported=\$$cacheid
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8104 $as_echo "$supported" >&6; }
8105 if test "$supported" = "yes" ; then
8106 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8107 found="yes"
8108 fi
8109 fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 xorg_testset_save_CFLAGS="$CFLAGS"
8126
8127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 _ACEOF
8138 if ac_fn_c_try_compile "$LINENO"; then :
8139 xorg_cv_cc_flag_unknown_warning_option=yes
8140 else
8141 xorg_cv_cc_flag_unknown_warning_option=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154 fi
8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 xorg_cv_cc_flag_unused_command_line_argument=yes
8167 else
8168 xorg_cv_cc_flag_unused_command_line_argument=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8176 fi
8177
8178 found="no"
8179
8180 if test $found = "no" ; then
8181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8183 fi
8184
8185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187 fi
8188
8189 CFLAGS="$CFLAGS -Werror=address"
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8192 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8193 cacheid=xorg_cv_cc_flag__Werror_address
8194 if eval \${$cacheid+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 int i;
8200 int
8201 main ()
8202 {
8203
8204 ;
8205 return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209 eval $cacheid=yes
8210 else
8211 eval $cacheid=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215 fi
8216
8217
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219
8220 eval supported=\$$cacheid
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222 $as_echo "$supported" >&6; }
8223 if test "$supported" = "yes" ; then
8224 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8225 found="yes"
8226 fi
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 xorg_testset_save_CFLAGS="$CFLAGS"
8244
8245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 int i;
8255 _ACEOF
8256 if ac_fn_c_try_compile "$LINENO"; then :
8257 xorg_cv_cc_flag_unknown_warning_option=yes
8258 else
8259 xorg_cv_cc_flag_unknown_warning_option=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262 fi
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8266 CFLAGS="$xorg_testset_save_CFLAGS"
8267 fi
8268
8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272 fi
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 int i;
8282 _ACEOF
8283 if ac_fn_c_try_compile "$LINENO"; then :
8284 xorg_cv_cc_flag_unused_command_line_argument=yes
8285 else
8286 xorg_cv_cc_flag_unused_command_line_argument=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8293 CFLAGS="$xorg_testset_save_CFLAGS"
8294 fi
8295
8296 found="no"
8297
8298 if test $found = "no" ; then
8299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8301 fi
8302
8303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305 fi
8306
8307 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8310 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8311 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8312 if eval \${$cacheid+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 int i;
8318 int
8319 main ()
8320 {
8321
8322 ;
8323 return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_link "$LINENO"; then :
8327 eval $cacheid=yes
8328 else
8329 eval $cacheid=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8333 fi
8334
8335
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8337
8338 eval supported=\$$cacheid
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8340 $as_echo "$supported" >&6; }
8341 if test "$supported" = "yes" ; then
8342 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8343 found="yes"
8344 fi
8345 fi
8346
8347 if test $found = "no" ; then
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354 fi
8355
8356 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8359 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8360 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8361 if eval \${$cacheid+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int i;
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 eval $cacheid=yes
8377 else
8378 eval $cacheid=no
8379 fi
8380 rm -f core conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 fi
8383
8384
8385 CFLAGS="$xorg_testset_save_CFLAGS"
8386
8387 eval supported=\$$cacheid
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8389 $as_echo "$supported" >&6; }
8390 if test "$supported" = "yes" ; then
8391 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8392 found="yes"
8393 fi
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410 xorg_testset_save_CFLAGS="$CFLAGS"
8411
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 _ACEOF
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 xorg_cv_cc_flag_unknown_warning_option=yes
8425 else
8426 xorg_cv_cc_flag_unknown_warning_option=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434 fi
8435
8436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 xorg_cv_cc_flag_unused_command_line_argument=yes
8452 else
8453 xorg_cv_cc_flag_unused_command_line_argument=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8460 CFLAGS="$xorg_testset_save_CFLAGS"
8461 fi
8462
8463 found="no"
8464
8465 if test $found = "no" ; then
8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468 fi
8469
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8472 fi
8473
8474 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8475
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8477 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8478 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8479 if eval \${$cacheid+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 int i;
8485 int
8486 main ()
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 eval $cacheid=yes
8495 else
8496 eval $cacheid=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 fi
8501
8502
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505 eval supported=\$$cacheid
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507 $as_echo "$supported" >&6; }
8508 if test "$supported" = "yes" ; then
8509 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8510 found="yes"
8511 fi
8512 fi
8513
8514 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8515 else
8516 { $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
8517 $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;}
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531 xorg_testset_save_CFLAGS="$CFLAGS"
8532
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 int i;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 xorg_cv_cc_flag_unknown_warning_option=yes
8546 else
8547 xorg_cv_cc_flag_unknown_warning_option=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8554 CFLAGS="$xorg_testset_save_CFLAGS"
8555 fi
8556
8557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560 fi
8561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 int i;
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"; then :
8572 xorg_cv_cc_flag_unused_command_line_argument=yes
8573 else
8574 xorg_cv_cc_flag_unused_command_line_argument=no
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 found="no"
8585
8586 if test $found = "no" ; then
8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590
8591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593 fi
8594
8595 CFLAGS="$CFLAGS -Wimplicit"
8596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8598 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8599 cacheid=xorg_cv_cc_flag__Wimplicit
8600 if eval \${$cacheid+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 int
8607 main ()
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 eval $cacheid=yes
8616 else
8617 eval $cacheid=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 fi
8622
8623
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625
8626 eval supported=\$$cacheid
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8628 $as_echo "$supported" >&6; }
8629 if test "$supported" = "yes" ; then
8630 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8631 found="yes"
8632 fi
8633 fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649 xorg_testset_save_CFLAGS="$CFLAGS"
8650
8651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8654 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8655 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 xorg_cv_cc_flag_unknown_warning_option=yes
8664 else
8665 xorg_cv_cc_flag_unknown_warning_option=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8670 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673 fi
8674
8675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8681 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8682 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"; then :
8690 xorg_cv_cc_flag_unused_command_line_argument=yes
8691 else
8692 xorg_cv_cc_flag_unused_command_line_argument=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8697 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700 fi
8701
8702 found="no"
8703
8704 if test $found = "no" ; then
8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707 fi
8708
8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 fi
8712
8713 CFLAGS="$CFLAGS -Wnonnull"
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8716 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8717 cacheid=xorg_cv_cc_flag__Wnonnull
8718 if eval \${$cacheid+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 int i;
8724 int
8725 main ()
8726 {
8727
8728 ;
8729 return 0;
8730 }
8731 _ACEOF
8732 if ac_fn_c_try_link "$LINENO"; then :
8733 eval $cacheid=yes
8734 else
8735 eval $cacheid=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 fi
8740
8741
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743
8744 eval supported=\$$cacheid
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8746 $as_echo "$supported" >&6; }
8747 if test "$supported" = "yes" ; then
8748 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8749 found="yes"
8750 fi
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767 xorg_testset_save_CFLAGS="$CFLAGS"
8768
8769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int i;
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"; then :
8781 xorg_cv_cc_flag_unknown_warning_option=yes
8782 else
8783 xorg_cv_cc_flag_unknown_warning_option=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8790 CFLAGS="$xorg_testset_save_CFLAGS"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796 fi
8797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 int i;
8806 _ACEOF
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808 xorg_cv_cc_flag_unused_command_line_argument=yes
8809 else
8810 xorg_cv_cc_flag_unused_command_line_argument=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818 fi
8819
8820 found="no"
8821
8822 if test $found = "no" ; then
8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8825 fi
8826
8827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 fi
8830
8831 CFLAGS="$CFLAGS -Winit-self"
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8834 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8835 cacheid=xorg_cv_cc_flag__Winit_self
8836 if eval \${$cacheid+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 int i;
8842 int
8843 main ()
8844 {
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8851 eval $cacheid=yes
8852 else
8853 eval $cacheid=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 fi
8858
8859
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861
8862 eval supported=\$$cacheid
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8864 $as_echo "$supported" >&6; }
8865 if test "$supported" = "yes" ; then
8866 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8867 found="yes"
8868 fi
8869 fi
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885 xorg_testset_save_CFLAGS="$CFLAGS"
8886
8887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8890 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8891 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 _ACEOF
8898 if ac_fn_c_try_compile "$LINENO"; then :
8899 xorg_cv_cc_flag_unknown_warning_option=yes
8900 else
8901 xorg_cv_cc_flag_unknown_warning_option=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8906 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8908 CFLAGS="$xorg_testset_save_CFLAGS"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 fi
8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8917 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8918 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"; then :
8926 xorg_cv_cc_flag_unused_command_line_argument=yes
8927 else
8928 xorg_cv_cc_flag_unused_command_line_argument=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8933 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936 fi
8937
8938 found="no"
8939
8940 if test $found = "no" ; then
8941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8943 fi
8944
8945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 fi
8948
8949 CFLAGS="$CFLAGS -Wmain"
8950
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8952 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8953 cacheid=xorg_cv_cc_flag__Wmain
8954 if eval \${$cacheid+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 int i;
8960 int
8961 main ()
8962 {
8963
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_c_try_link "$LINENO"; then :
8969 eval $cacheid=yes
8970 else
8971 eval $cacheid=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976
8977
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979
8980 eval supported=\$$cacheid
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8982 $as_echo "$supported" >&6; }
8983 if test "$supported" = "yes" ; then
8984 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8985 found="yes"
8986 fi
8987 fi
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 xorg_testset_save_CFLAGS="$CFLAGS"
9004
9005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 int i;
9015 _ACEOF
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017 xorg_cv_cc_flag_unknown_warning_option=yes
9018 else
9019 xorg_cv_cc_flag_unknown_warning_option=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9026 CFLAGS="$xorg_testset_save_CFLAGS"
9027 fi
9028
9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 xorg_cv_cc_flag_unused_command_line_argument=yes
9045 else
9046 xorg_cv_cc_flag_unused_command_line_argument=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054 fi
9055
9056 found="no"
9057
9058 if test $found = "no" ; then
9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061 fi
9062
9063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 fi
9066
9067 CFLAGS="$CFLAGS -Wmissing-braces"
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9070 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9071 cacheid=xorg_cv_cc_flag__Wmissing_braces
9072 if eval \${$cacheid+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 int i;
9078 int
9079 main ()
9080 {
9081
9082 ;
9083 return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"; then :
9087 eval $cacheid=yes
9088 else
9089 eval $cacheid=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 fi
9094
9095
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097
9098 eval supported=\$$cacheid
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9100 $as_echo "$supported" >&6; }
9101 if test "$supported" = "yes" ; then
9102 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9103 found="yes"
9104 fi
9105 fi
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121 xorg_testset_save_CFLAGS="$CFLAGS"
9122
9123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 _ACEOF
9134 if ac_fn_c_try_compile "$LINENO"; then :
9135 xorg_cv_cc_flag_unknown_warning_option=yes
9136 else
9137 xorg_cv_cc_flag_unknown_warning_option=no
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 fi
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9144 CFLAGS="$xorg_testset_save_CFLAGS"
9145 fi
9146
9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150 fi
9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 xorg_cv_cc_flag_unused_command_line_argument=yes
9163 else
9164 xorg_cv_cc_flag_unused_command_line_argument=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172 fi
9173
9174 found="no"
9175
9176 if test $found = "no" ; then
9177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9179 fi
9180
9181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 fi
9184
9185 CFLAGS="$CFLAGS -Wsequence-point"
9186
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9188 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9189 cacheid=xorg_cv_cc_flag__Wsequence_point
9190 if eval \${$cacheid+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 int i;
9196 int
9197 main ()
9198 {
9199
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 eval $cacheid=yes
9206 else
9207 eval $cacheid=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 fi
9212
9213
9214 CFLAGS="$xorg_testset_save_CFLAGS"
9215
9216 eval supported=\$$cacheid
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9218 $as_echo "$supported" >&6; }
9219 if test "$supported" = "yes" ; then
9220 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9221 found="yes"
9222 fi
9223 fi
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239 xorg_testset_save_CFLAGS="$CFLAGS"
9240
9241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"; then :
9253 xorg_cv_cc_flag_unknown_warning_option=yes
9254 else
9255 xorg_cv_cc_flag_unknown_warning_option=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263 fi
9264
9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268 fi
9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int i;
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 xorg_cv_cc_flag_unused_command_line_argument=yes
9281 else
9282 xorg_cv_cc_flag_unused_command_line_argument=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9289 CFLAGS="$xorg_testset_save_CFLAGS"
9290 fi
9291
9292 found="no"
9293
9294 if test $found = "no" ; then
9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297 fi
9298
9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 fi
9302
9303 CFLAGS="$CFLAGS -Wreturn-type"
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9306 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9307 cacheid=xorg_cv_cc_flag__Wreturn_type
9308 if eval \${$cacheid+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9313 int i;
9314 int
9315 main ()
9316 {
9317
9318 ;
9319 return 0;
9320 }
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 eval $cacheid=yes
9324 else
9325 eval $cacheid=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 fi
9330
9331
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333
9334 eval supported=\$$cacheid
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9336 $as_echo "$supported" >&6; }
9337 if test "$supported" = "yes" ; then
9338 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9339 found="yes"
9340 fi
9341 fi
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357 xorg_testset_save_CFLAGS="$CFLAGS"
9358
9359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"; then :
9371 xorg_cv_cc_flag_unknown_warning_option=yes
9372 else
9373 xorg_cv_cc_flag_unknown_warning_option=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9381 fi
9382
9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 fi
9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 xorg_cv_cc_flag_unused_command_line_argument=yes
9399 else
9400 xorg_cv_cc_flag_unused_command_line_argument=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408 fi
9409
9410 found="no"
9411
9412 if test $found = "no" ; then
9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9415 fi
9416
9417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419 fi
9420
9421 CFLAGS="$CFLAGS -Wtrigraphs"
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9424 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9425 cacheid=xorg_cv_cc_flag__Wtrigraphs
9426 if eval \${$cacheid+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 int i;
9432 int
9433 main ()
9434 {
9435
9436 ;
9437 return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 eval $cacheid=yes
9442 else
9443 eval $cacheid=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 fi
9448
9449
9450 CFLAGS="$xorg_testset_save_CFLAGS"
9451
9452 eval supported=\$$cacheid
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9454 $as_echo "$supported" >&6; }
9455 if test "$supported" = "yes" ; then
9456 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9457 found="yes"
9458 fi
9459 fi
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475 xorg_testset_save_CFLAGS="$CFLAGS"
9476
9477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int i;
9487 _ACEOF
9488 if ac_fn_c_try_compile "$LINENO"; then :
9489 xorg_cv_cc_flag_unknown_warning_option=yes
9490 else
9491 xorg_cv_cc_flag_unknown_warning_option=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9498 CFLAGS="$xorg_testset_save_CFLAGS"
9499 fi
9500
9501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504 fi
9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 xorg_cv_cc_flag_unused_command_line_argument=yes
9517 else
9518 xorg_cv_cc_flag_unused_command_line_argument=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526 fi
9527
9528 found="no"
9529
9530 if test $found = "no" ; then
9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9533 fi
9534
9535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537 fi
9538
9539 CFLAGS="$CFLAGS -Warray-bounds"
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9542 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9543 cacheid=xorg_cv_cc_flag__Warray_bounds
9544 if eval \${$cacheid+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 int i;
9550 int
9551 main ()
9552 {
9553
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 eval $cacheid=yes
9560 else
9561 eval $cacheid=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 fi
9566
9567
9568 CFLAGS="$xorg_testset_save_CFLAGS"
9569
9570 eval supported=\$$cacheid
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9572 $as_echo "$supported" >&6; }
9573 if test "$supported" = "yes" ; then
9574 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9575 found="yes"
9576 fi
9577 fi
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593 xorg_testset_save_CFLAGS="$CFLAGS"
9594
9595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int i;
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"; then :
9607 xorg_cv_cc_flag_unknown_warning_option=yes
9608 else
9609 xorg_cv_cc_flag_unknown_warning_option=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617 fi
9618
9619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 fi
9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"; then :
9634 xorg_cv_cc_flag_unused_command_line_argument=yes
9635 else
9636 xorg_cv_cc_flag_unused_command_line_argument=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644 fi
9645
9646 found="no"
9647
9648 if test $found = "no" ; then
9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9651 fi
9652
9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655 fi
9656
9657 CFLAGS="$CFLAGS -Wwrite-strings"
9658
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9660 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9661 cacheid=xorg_cv_cc_flag__Wwrite_strings
9662 if eval \${$cacheid+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 int i;
9668 int
9669 main ()
9670 {
9671
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677 eval $cacheid=yes
9678 else
9679 eval $cacheid=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 fi
9684
9685
9686 CFLAGS="$xorg_testset_save_CFLAGS"
9687
9688 eval supported=\$$cacheid
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9690 $as_echo "$supported" >&6; }
9691 if test "$supported" = "yes" ; then
9692 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9693 found="yes"
9694 fi
9695 fi
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 xorg_testset_save_CFLAGS="$CFLAGS"
9712
9713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 xorg_cv_cc_flag_unknown_warning_option=yes
9726 else
9727 xorg_cv_cc_flag_unknown_warning_option=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9734 CFLAGS="$xorg_testset_save_CFLAGS"
9735 fi
9736
9737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740 fi
9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unused_command_line_argument=yes
9753 else
9754 xorg_cv_cc_flag_unused_command_line_argument=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 found="no"
9765
9766 if test $found = "no" ; then
9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9769 fi
9770
9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 fi
9774
9775 CFLAGS="$CFLAGS -Waddress"
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9778 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9779 cacheid=xorg_cv_cc_flag__Waddress
9780 if eval \${$cacheid+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int i;
9786 int
9787 main ()
9788 {
9789
9790 ;
9791 return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"; then :
9795 eval $cacheid=yes
9796 else
9797 eval $cacheid=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 fi
9802
9803
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805
9806 eval supported=\$$cacheid
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9808 $as_echo "$supported" >&6; }
9809 if test "$supported" = "yes" ; then
9810 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9811 found="yes"
9812 fi
9813 fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829 xorg_testset_save_CFLAGS="$CFLAGS"
9830
9831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 int i;
9841 _ACEOF
9842 if ac_fn_c_try_compile "$LINENO"; then :
9843 xorg_cv_cc_flag_unknown_warning_option=yes
9844 else
9845 xorg_cv_cc_flag_unknown_warning_option=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 fi
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853 fi
9854
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 fi
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int i;
9868 _ACEOF
9869 if ac_fn_c_try_compile "$LINENO"; then :
9870 xorg_cv_cc_flag_unused_command_line_argument=yes
9871 else
9872 xorg_cv_cc_flag_unused_command_line_argument=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9880 fi
9881
9882 found="no"
9883
9884 if test $found = "no" ; then
9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9887 fi
9888
9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 fi
9892
9893 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9896 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9897 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9898 if eval \${$cacheid+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 int
9905 main ()
9906 {
9907
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 eval $cacheid=yes
9914 else
9915 eval $cacheid=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919 fi
9920
9921
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923
9924 eval supported=\$$cacheid
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9926 $as_echo "$supported" >&6; }
9927 if test "$supported" = "yes" ; then
9928 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9929 found="yes"
9930 fi
9931 fi
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947 xorg_testset_save_CFLAGS="$CFLAGS"
9948
9949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 int i;
9959 _ACEOF
9960 if ac_fn_c_try_compile "$LINENO"; then :
9961 xorg_cv_cc_flag_unknown_warning_option=yes
9962 else
9963 xorg_cv_cc_flag_unknown_warning_option=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971 fi
9972
9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 fi
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985 int i;
9986 _ACEOF
9987 if ac_fn_c_try_compile "$LINENO"; then :
9988 xorg_cv_cc_flag_unused_command_line_argument=yes
9989 else
9990 xorg_cv_cc_flag_unused_command_line_argument=no
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998 fi
9999
10000 found="no"
10001
10002 if test $found = "no" ; then
10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005 fi
10006
10007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009 fi
10010
10011 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10012
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10014 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10015 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10016 if eval \${$cacheid+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 int i;
10022 int
10023 main ()
10024 {
10025
10026 ;
10027 return 0;
10028 }
10029 _ACEOF
10030 if ac_fn_c_try_link "$LINENO"; then :
10031 eval $cacheid=yes
10032 else
10033 eval $cacheid=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 fi
10038
10039
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041
10042 eval supported=\$$cacheid
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10044 $as_echo "$supported" >&6; }
10045 if test "$supported" = "yes" ; then
10046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10047 found="yes"
10048 fi
10049 fi
10050
10051
10052 fi
10053
10054
10055
10056
10057
10058
10059
10060 CWARNFLAGS="$BASE_CFLAGS"
10061 if test "x$GCC" = xyes ; then
10062 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10063 fi
10064
10065
10066
10067
10068
10069
10070
10071
10072 # Check whether --enable-strict-compilation was given.
10073 if test "${enable_strict_compilation+set}" = set; then :
10074 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10075 else
10076 STRICT_COMPILE=no
10077 fi
10078
10079
10080
10081
10082
10083
10084 STRICT_CFLAGS=""
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 xorg_testset_save_CFLAGS="$CFLAGS"
10099
10100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 int i;
10110 _ACEOF
10111 if ac_fn_c_try_compile "$LINENO"; then :
10112 xorg_cv_cc_flag_unknown_warning_option=yes
10113 else
10114 xorg_cv_cc_flag_unknown_warning_option=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 fi
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10121 CFLAGS="$xorg_testset_save_CFLAGS"
10122 fi
10123
10124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127 fi
10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int i;
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"; then :
10139 xorg_cv_cc_flag_unused_command_line_argument=yes
10140 else
10141 xorg_cv_cc_flag_unused_command_line_argument=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10149 fi
10150
10151 found="no"
10152
10153 if test $found = "no" ; then
10154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156 fi
10157
10158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10160 fi
10161
10162 CFLAGS="$CFLAGS -pedantic"
10163
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10165 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10166 cacheid=xorg_cv_cc_flag__pedantic
10167 if eval \${$cacheid+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172 int i;
10173 int
10174 main ()
10175 {
10176
10177 ;
10178 return 0;
10179 }
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182 eval $cacheid=yes
10183 else
10184 eval $cacheid=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 fi
10189
10190
10191 CFLAGS="$xorg_testset_save_CFLAGS"
10192
10193 eval supported=\$$cacheid
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10195 $as_echo "$supported" >&6; }
10196 if test "$supported" = "yes" ; then
10197 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10198 found="yes"
10199 fi
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 xorg_testset_save_CFLAGS="$CFLAGS"
10217
10218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 _ACEOF
10229 if ac_fn_c_try_compile "$LINENO"; then :
10230 xorg_cv_cc_flag_unknown_warning_option=yes
10231 else
10232 xorg_cv_cc_flag_unknown_warning_option=no
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10239 CFLAGS="$xorg_testset_save_CFLAGS"
10240 fi
10241
10242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245 fi
10246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 int i;
10255 _ACEOF
10256 if ac_fn_c_try_compile "$LINENO"; then :
10257 xorg_cv_cc_flag_unused_command_line_argument=yes
10258 else
10259 xorg_cv_cc_flag_unused_command_line_argument=no
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 found="no"
10270
10271 if test $found = "no" ; then
10272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10274 fi
10275
10276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278 fi
10279
10280 CFLAGS="$CFLAGS -Werror"
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10283 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10284 cacheid=xorg_cv_cc_flag__Werror
10285 if eval \${$cacheid+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290 int i;
10291 int
10292 main ()
10293 {
10294
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300 eval $cacheid=yes
10301 else
10302 eval $cacheid=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 fi
10307
10308
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310
10311 eval supported=\$$cacheid
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10313 $as_echo "$supported" >&6; }
10314 if test "$supported" = "yes" ; then
10315 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10316 found="yes"
10317 fi
10318 fi
10319
10320 if test $found = "no" ; then
10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323 fi
10324
10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10327 fi
10328
10329 CFLAGS="$CFLAGS -errwarn"
10330
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10332 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10333 cacheid=xorg_cv_cc_flag__errwarn
10334 if eval \${$cacheid+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 int i;
10340 int
10341 main ()
10342 {
10343
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 eval $cacheid=yes
10350 else
10351 eval $cacheid=no
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 fi
10356
10357
10358 CFLAGS="$xorg_testset_save_CFLAGS"
10359
10360 eval supported=\$$cacheid
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10362 $as_echo "$supported" >&6; }
10363 if test "$supported" = "yes" ; then
10364 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10365 found="yes"
10366 fi
10367 fi
10368
10369
10370
10371 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10372 # activate it with -Werror, so we add it here explicitly.
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386 xorg_testset_save_CFLAGS="$CFLAGS"
10387
10388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 int i;
10398 _ACEOF
10399 if ac_fn_c_try_compile "$LINENO"; then :
10400 xorg_cv_cc_flag_unknown_warning_option=yes
10401 else
10402 xorg_cv_cc_flag_unknown_warning_option=no
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10409 CFLAGS="$xorg_testset_save_CFLAGS"
10410 fi
10411
10412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10415 fi
10416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 int i;
10425 _ACEOF
10426 if ac_fn_c_try_compile "$LINENO"; then :
10427 xorg_cv_cc_flag_unused_command_line_argument=yes
10428 else
10429 xorg_cv_cc_flag_unused_command_line_argument=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10436 CFLAGS="$xorg_testset_save_CFLAGS"
10437 fi
10438
10439 found="no"
10440
10441 if test $found = "no" ; then
10442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10444 fi
10445
10446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10448 fi
10449
10450 CFLAGS="$CFLAGS -Werror=attributes"
10451
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10453 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10454 cacheid=xorg_cv_cc_flag__Werror_attributes
10455 if eval \${$cacheid+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 int i;
10461 int
10462 main ()
10463 {
10464
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 eval $cacheid=yes
10471 else
10472 eval $cacheid=no
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 fi
10477
10478
10479 CFLAGS="$xorg_testset_save_CFLAGS"
10480
10481 eval supported=\$$cacheid
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10483 $as_echo "$supported" >&6; }
10484 if test "$supported" = "yes" ; then
10485 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10486 found="yes"
10487 fi
10488 fi
10489
10490
10491
10492 if test "x$STRICT_COMPILE" = "xyes"; then
10493 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10494 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10495 fi
10496
10497
10498
10499
10500
10501
10502 cat >>confdefs.h <<_ACEOF
10503 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10504 _ACEOF
10505
10506 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10507 if test "x$PVM" = "x"; then
10508 PVM="0"
10509 fi
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define PACKAGE_VERSION_MINOR $PVM
10513 _ACEOF
10514
10515 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10516 if test "x$PVP" = "x"; then
10517 PVP="0"
10518 fi
10519
10520 cat >>confdefs.h <<_ACEOF
10521 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10522 _ACEOF
10523
10524
10525
10526 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10527 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10528 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10529 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10530
10531
10532
10533
10534 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10535 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10536 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10537 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10538 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10539
10540
10541
10542
10543
10544
10545 if test x$APP_MAN_SUFFIX = x ; then
10546 APP_MAN_SUFFIX=1
10547 fi
10548 if test x$APP_MAN_DIR = x ; then
10549 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10550 fi
10551
10552 if test x$LIB_MAN_SUFFIX = x ; then
10553 LIB_MAN_SUFFIX=3
10554 fi
10555 if test x$LIB_MAN_DIR = x ; then
10556 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10557 fi
10558
10559 if test x$FILE_MAN_SUFFIX = x ; then
10560 case $host_os in
10561 solaris*) FILE_MAN_SUFFIX=4 ;;
10562 *) FILE_MAN_SUFFIX=5 ;;
10563 esac
10564 fi
10565 if test x$FILE_MAN_DIR = x ; then
10566 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10567 fi
10568
10569 if test x$MISC_MAN_SUFFIX = x ; then
10570 case $host_os in
10571 solaris*) MISC_MAN_SUFFIX=5 ;;
10572 *) MISC_MAN_SUFFIX=7 ;;
10573 esac
10574 fi
10575 if test x$MISC_MAN_DIR = x ; then
10576 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10577 fi
10578
10579 if test x$DRIVER_MAN_SUFFIX = x ; then
10580 case $host_os in
10581 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10582 *) DRIVER_MAN_SUFFIX=4 ;;
10583 esac
10584 fi
10585 if test x$DRIVER_MAN_DIR = x ; then
10586 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10587 fi
10588
10589 if test x$ADMIN_MAN_SUFFIX = x ; then
10590 case $host_os in
10591 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10592 *) ADMIN_MAN_SUFFIX=8 ;;
10593 esac
10594 fi
10595 if test x$ADMIN_MAN_DIR = x ; then
10596 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10597 fi
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613 XORG_MAN_PAGE="X Version 11"
10614
10615 MAN_SUBSTS="\
10616 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10617 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10618 -e 's|__xservername__|Xorg|g' \
10619 -e 's|__xconfigfile__|xorg.conf|g' \
10620 -e 's|__projectroot__|\$(prefix)|g' \
10621 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10622 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10623 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10624 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10625 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10626 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10627 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10628
10629
10630
10631 # Check whether --enable-silent-rules was given.
10632 if test "${enable_silent_rules+set}" = set; then :
10633 enableval=$enable_silent_rules;
10634 fi
10635
10636 case $enable_silent_rules in # (((
10637 yes) AM_DEFAULT_VERBOSITY=0;;
10638 no) AM_DEFAULT_VERBOSITY=1;;
10639 *) AM_DEFAULT_VERBOSITY=0;;
10640 esac
10641 am_make=${MAKE-make}
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10644 if ${am_cv_make_support_nested_variables+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 if $as_echo 'TRUE=$(BAR$(V))
10648 BAR0=false
10649 BAR1=true
10650 V=1
10651 am__doit:
10652 @$(TRUE)
10653 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10654 am_cv_make_support_nested_variables=yes
10655 else
10656 am_cv_make_support_nested_variables=no
10657 fi
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10661 if test $am_cv_make_support_nested_variables = yes; then
10662 AM_V='$(V)'
10663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10664 else
10665 AM_V=$AM_DEFAULT_VERBOSITY
10666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10667 fi
10668 AM_BACKSLASH='\'
10669
10670
10671
10672 for ac_func in strlcpy
10673 do :
10674 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
10675 if test "x$ac_cv_func_strlcpy" = xyes; then :
10676 cat >>confdefs.h <<_ACEOF
10677 #define HAVE_STRLCPY 1
10678 _ACEOF
10679
10680 fi
10681 done
10682
10683
10684 # Checks for pkg-config packages
10685
10686 pkg_failed=no
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5
10688 $as_echo_n "checking for XCALC... " >&6; }
10689
10690 if test -n "$XCALC_CFLAGS"; then
10691 pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS"
10692 elif test -n "$PKG_CONFIG"; then
10693 if test -n "$PKG_CONFIG" && \
10694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
10695 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
10696 ac_status=$?
10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10698 test $ac_status = 0; }; then
10699 pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
10700 else
10701 pkg_failed=yes
10702 fi
10703 else
10704 pkg_failed=untried
10705 fi
10706 if test -n "$XCALC_LIBS"; then
10707 pkg_cv_XCALC_LIBS="$XCALC_LIBS"
10708 elif test -n "$PKG_CONFIG"; then
10709 if test -n "$PKG_CONFIG" && \
10710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
10711 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
10712 ac_status=$?
10713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714 test $ac_status = 0; }; then
10715 pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
10716 else
10717 pkg_failed=yes
10718 fi
10719 else
10720 pkg_failed=untried
10721 fi
10722
10723
10724
10725 if test $pkg_failed = yes; then
10726
10727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10728 _pkg_short_errors_supported=yes
10729 else
10730 _pkg_short_errors_supported=no
10731 fi
10732 if test $_pkg_short_errors_supported = yes; then
10733 XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
10734 else
10735 XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
10736 fi
10737 # Put the nasty error message in config.log where it belongs
10738 echo "$XCALC_PKG_ERRORS" >&5
10739
10740 as_fn_error $? "Package requirements (xaw7 xt x11 xproto >= 7.0.17) were not met:
10741
10742 $XCALC_PKG_ERRORS
10743
10744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10745 installed software in a non-standard prefix.
10746
10747 Alternatively, you may set the environment variables XCALC_CFLAGS
10748 and XCALC_LIBS to avoid the need to call pkg-config.
10749 See the pkg-config man page for more details.
10750 " "$LINENO" 5
10751 elif test $pkg_failed = untried; then
10752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10754 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10755 is in your PATH or set the PKG_CONFIG environment variable to the full
10756 path to pkg-config.
10757
10758 Alternatively, you may set the environment variables XCALC_CFLAGS
10759 and XCALC_LIBS to avoid the need to call pkg-config.
10760 See the pkg-config man page for more details.
10761
10762 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10763 See \`config.log' for more details" "$LINENO" 5; }
10764 else
10765 XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS
10766 XCALC_LIBS=$pkg_cv_XCALC_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10768 $as_echo "yes" >&6; }
10769 :
10770 fi
10771
10772
10773 pkg_failed=no
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10775 $as_echo_n "checking for APPDEFS... " >&6; }
10776
10777 if test -n "$APPDEFS_CFLAGS"; then
10778 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10779 elif test -n "$PKG_CONFIG"; then
10780 if test -n "$PKG_CONFIG" && \
10781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10782 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10783 ac_status=$?
10784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10785 test $ac_status = 0; }; then
10786 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10787 else
10788 pkg_failed=yes
10789 fi
10790 else
10791 pkg_failed=untried
10792 fi
10793 if test -n "$APPDEFS_LIBS"; then
10794 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10795 elif test -n "$PKG_CONFIG"; then
10796 if test -n "$PKG_CONFIG" && \
10797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10798 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10799 ac_status=$?
10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801 test $ac_status = 0; }; then
10802 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10803 else
10804 pkg_failed=yes
10805 fi
10806 else
10807 pkg_failed=untried
10808 fi
10809
10810
10811
10812 if test $pkg_failed = yes; then
10813
10814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10815 _pkg_short_errors_supported=yes
10816 else
10817 _pkg_short_errors_supported=no
10818 fi
10819 if test $_pkg_short_errors_supported = yes; then
10820 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10821 else
10822 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10823 fi
10824 # Put the nasty error message in config.log where it belongs
10825 echo "$APPDEFS_PKG_ERRORS" >&5
10826
10827 as_fn_error $? "Package requirements (xt) were not met:
10828
10829 $APPDEFS_PKG_ERRORS
10830
10831 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10832 installed software in a non-standard prefix.
10833
10834 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10835 and APPDEFS_LIBS to avoid the need to call pkg-config.
10836 See the pkg-config man page for more details.
10837 " "$LINENO" 5
10838 elif test $pkg_failed = untried; then
10839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10841 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10842 is in your PATH or set the PKG_CONFIG environment variable to the full
10843 path to pkg-config.
10844
10845 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10846 and APPDEFS_LIBS to avoid the need to call pkg-config.
10847 See the pkg-config man page for more details.
10848
10849 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10850 See \`config.log' for more details" "$LINENO" 5; }
10851 else
10852 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10853 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10855 $as_echo "yes" >&6; }
10856 :
10857 fi
10858 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10859
10860 # Check whether --with-appdefaultdir was given.
10861 if test "${with_appdefaultdir+set}" = set; then :
10862 withval=$with_appdefaultdir; appdefaultdir="$withval"
10863 else
10864 appdefaultdir="${xt_appdefaultdir}"
10865 fi
10866
10867
10868
10869
10870 ac_config_files="$ac_config_files Makefile man/Makefile"
10871
10872 cat >confcache <<\_ACEOF
10873 # This file is a shell script that caches the results of configure
10874 # tests run on this system so they can be shared between configure
10875 # scripts and configure runs, see configure's option --config-cache.
10876 # It is not useful on other systems. If it contains results you don't
10877 # want to keep, you may remove or edit it.
10878 #
10879 # config.status only pays attention to the cache file if you give it
10880 # the --recheck option to rerun configure.
10881 #
10882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10884 # following values.
10885
10886 _ACEOF
10887
10888 # The following way of writing the cache mishandles newlines in values,
10889 # but we know of no workaround that is simple, portable, and efficient.
10890 # So, we kill variables containing newlines.
10891 # Ultrix sh set writes to stderr and can't be redirected directly,
10892 # and sets the high bit in the cache file unless we assign to the vars.
10893 (
10894 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10895 eval ac_val=\$$ac_var
10896 case $ac_val in #(
10897 *${as_nl}*)
10898 case $ac_var in #(
10899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10901 esac
10902 case $ac_var in #(
10903 _ | IFS | as_nl) ;; #(
10904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10905 *) { eval $ac_var=; unset $ac_var;} ;;
10906 esac ;;
10907 esac
10908 done
10909
10910 (set) 2>&1 |
10911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10912 *${as_nl}ac_space=\ *)
10913 # `set' does not quote correctly, so add quotes: double-quote
10914 # substitution turns \\\\ into \\, and sed turns \\ into \.
10915 sed -n \
10916 "s/'/'\\\\''/g;
10917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10918 ;; #(
10919 *)
10920 # `set' quotes correctly as required by POSIX, so do not add quotes.
10921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10922 ;;
10923 esac |
10924 sort
10925 ) |
10926 sed '
10927 /^ac_cv_env_/b end
10928 t clear
10929 :clear
10930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10931 t end
10932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10933 :end' >>confcache
10934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10935 if test -w "$cache_file"; then
10936 if test "x$cache_file" != "x/dev/null"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10938 $as_echo "$as_me: updating cache $cache_file" >&6;}
10939 if test ! -f "$cache_file" || test -h "$cache_file"; then
10940 cat confcache >"$cache_file"
10941 else
10942 case $cache_file in #(
10943 */* | ?:*)
10944 mv -f confcache "$cache_file"$$ &&
10945 mv -f "$cache_file"$$ "$cache_file" ;; #(
10946 *)
10947 mv -f confcache "$cache_file" ;;
10948 esac
10949 fi
10950 fi
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10954 fi
10955 fi
10956 rm -f confcache
10957
10958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10959 # Let make expand exec_prefix.
10960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10961
10962 DEFS=-DHAVE_CONFIG_H
10963
10964 ac_libobjs=
10965 ac_ltlibobjs=
10966 U=
10967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10968 # 1. Remove the extension, and $U if already installed.
10969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10972 # will be set to the directory where LIBOBJS objects are built.
10973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10975 done
10976 LIBOBJS=$ac_libobjs
10977
10978 LTLIBOBJS=$ac_ltlibobjs
10979
10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10982 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10983 if test -n "$am_sleep_pid"; then
10984 # Hide warnings about reused PIDs.
10985 wait $am_sleep_pid 2>/dev/null
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10988 $as_echo "done" >&6; }
10989 if test -n "$EXEEXT"; then
10990 am__EXEEXT_TRUE=
10991 am__EXEEXT_FALSE='#'
10992 else
10993 am__EXEEXT_TRUE='#'
10994 am__EXEEXT_FALSE=
10995 fi
10996
10997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10998 as_fn_error $? "conditional \"AMDEP\" was never defined.
10999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11000 fi
11001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11004 fi
11005
11006 : "${CONFIG_STATUS=./config.status}"
11007 ac_write_fail=0
11008 ac_clean_files_save=$ac_clean_files
11009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11012 as_write_fail=0
11013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11014 #! $SHELL
11015 # Generated by $as_me.
11016 # Run this file to recreate the current configuration.
11017 # Compiler output produced by configure, useful for debugging
11018 # configure, is in config.log if it exists.
11019
11020 debug=false
11021 ac_cs_recheck=false
11022 ac_cs_silent=false
11023
11024 SHELL=\${CONFIG_SHELL-$SHELL}
11025 export SHELL
11026 _ASEOF
11027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11028 ## -------------------- ##
11029 ## M4sh Initialization. ##
11030 ## -------------------- ##
11031
11032 # Be more Bourne compatible
11033 DUALCASE=1; export DUALCASE # for MKS sh
11034 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11035 emulate sh
11036 NULLCMD=:
11037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11038 # is contrary to our usage. Disable this feature.
11039 alias -g '${1+"$@"}'='"$@"'
11040 setopt NO_GLOB_SUBST
11041 else
11042 case `(set -o) 2>/dev/null` in #(
11043 *posix*) :
11044 set -o posix ;; #(
11045 *) :
11046 ;;
11047 esac
11048 fi
11049
11050
11051 as_nl='
11052 '
11053 export as_nl
11054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11055 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11058 # Prefer a ksh shell builtin over an external printf program on Solaris,
11059 # but without wasting forks for bash or zsh.
11060 if test -z "$BASH_VERSION$ZSH_VERSION" \
11061 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11062 as_echo='print -r --'
11063 as_echo_n='print -rn --'
11064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11065 as_echo='printf %s\n'
11066 as_echo_n='printf %s'
11067 else
11068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11069 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11070 as_echo_n='/usr/ucb/echo -n'
11071 else
11072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11073 as_echo_n_body='eval
11074 arg=$1;
11075 case $arg in #(
11076 *"$as_nl"*)
11077 expr "X$arg" : "X\\(.*\\)$as_nl";
11078 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11079 esac;
11080 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11081 '
11082 export as_echo_n_body
11083 as_echo_n='sh -c $as_echo_n_body as_echo'
11084 fi
11085 export as_echo_body
11086 as_echo='sh -c $as_echo_body as_echo'
11087 fi
11088
11089 # The user is always right.
11090 if test "${PATH_SEPARATOR+set}" != set; then
11091 PATH_SEPARATOR=:
11092 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11093 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11094 PATH_SEPARATOR=';'
11095 }
11096 fi
11097
11098
11099 # IFS
11100 # We need space, tab and new line, in precisely that order. Quoting is
11101 # there to prevent editors from complaining about space-tab.
11102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11103 # splitting by setting IFS to empty value.)
11104 IFS=" "" $as_nl"
11105
11106 # Find who we are. Look in the path if we contain no directory separator.
11107 as_myself=
11108 case $0 in #((
11109 *[\\/]* ) as_myself=$0 ;;
11110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11112 do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11116 done
11117 IFS=$as_save_IFS
11118
11119 ;;
11120 esac
11121 # We did not find ourselves, most probably we were run as `sh COMMAND'
11122 # in which case we are not to be found in the path.
11123 if test "x$as_myself" = x; then
11124 as_myself=$0
11125 fi
11126 if test ! -f "$as_myself"; then
11127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11128 exit 1
11129 fi
11130
11131 # Unset variables that we do not need and which cause bugs (e.g. in
11132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11133 # suppresses any "Segmentation fault" message there. '((' could
11134 # trigger a bug in pdksh 5.2.14.
11135 for as_var in BASH_ENV ENV MAIL MAILPATH
11136 do eval test x\${$as_var+set} = xset \
11137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11138 done
11139 PS1='$ '
11140 PS2='> '
11141 PS4='+ '
11142
11143 # NLS nuisances.
11144 LC_ALL=C
11145 export LC_ALL
11146 LANGUAGE=C
11147 export LANGUAGE
11148
11149 # CDPATH.
11150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11151
11152
11153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11154 # ----------------------------------------
11155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11157 # script with STATUS, using 1 if that was 0.
11158 as_fn_error ()
11159 {
11160 as_status=$1; test $as_status -eq 0 && as_status=1
11161 if test "$4"; then
11162 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11164 fi
11165 $as_echo "$as_me: error: $2" >&2
11166 as_fn_exit $as_status
11167 } # as_fn_error
11168
11169
11170 # as_fn_set_status STATUS
11171 # -----------------------
11172 # Set $? to STATUS, without forking.
11173 as_fn_set_status ()
11174 {
11175 return $1
11176 } # as_fn_set_status
11177
11178 # as_fn_exit STATUS
11179 # -----------------
11180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11181 as_fn_exit ()
11182 {
11183 set +e
11184 as_fn_set_status $1
11185 exit $1
11186 } # as_fn_exit
11187
11188 # as_fn_unset VAR
11189 # ---------------
11190 # Portably unset VAR.
11191 as_fn_unset ()
11192 {
11193 { eval $1=; unset $1;}
11194 }
11195 as_unset=as_fn_unset
11196 # as_fn_append VAR VALUE
11197 # ----------------------
11198 # Append the text in VALUE to the end of the definition contained in VAR. Take
11199 # advantage of any shell optimizations that allow amortized linear growth over
11200 # repeated appends, instead of the typical quadratic growth present in naive
11201 # implementations.
11202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11203 eval 'as_fn_append ()
11204 {
11205 eval $1+=\$2
11206 }'
11207 else
11208 as_fn_append ()
11209 {
11210 eval $1=\$$1\$2
11211 }
11212 fi # as_fn_append
11213
11214 # as_fn_arith ARG...
11215 # ------------------
11216 # Perform arithmetic evaluation on the ARGs, and store the result in the
11217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11218 # must be portable across $(()) and expr.
11219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11220 eval 'as_fn_arith ()
11221 {
11222 as_val=$(( $* ))
11223 }'
11224 else
11225 as_fn_arith ()
11226 {
11227 as_val=`expr "$@" || test $? -eq 1`
11228 }
11229 fi # as_fn_arith
11230
11231
11232 if expr a : '\(a\)' >/dev/null 2>&1 &&
11233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11234 as_expr=expr
11235 else
11236 as_expr=false
11237 fi
11238
11239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11240 as_basename=basename
11241 else
11242 as_basename=false
11243 fi
11244
11245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11246 as_dirname=dirname
11247 else
11248 as_dirname=false
11249 fi
11250
11251 as_me=`$as_basename -- "$0" ||
11252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11253 X"$0" : 'X\(//\)$' \| \
11254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11255 $as_echo X/"$0" |
11256 sed '/^.*\/\([^/][^/]*\)\/*$/{
11257 s//\1/
11258 q
11259 }
11260 /^X\/\(\/\/\)$/{
11261 s//\1/
11262 q
11263 }
11264 /^X\/\(\/\).*/{
11265 s//\1/
11266 q
11267 }
11268 s/.*/./; q'`
11269
11270 # Avoid depending upon Character Ranges.
11271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11274 as_cr_digits='0123456789'
11275 as_cr_alnum=$as_cr_Letters$as_cr_digits
11276
11277 ECHO_C= ECHO_N= ECHO_T=
11278 case `echo -n x` in #(((((
11279 -n*)
11280 case `echo 'xy\c'` in
11281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11282 xy) ECHO_C='\c';;
11283 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11284 ECHO_T=' ';;
11285 esac;;
11286 *)
11287 ECHO_N='-n';;
11288 esac
11289
11290 rm -f conf$$ conf$$.exe conf$$.file
11291 if test -d conf$$.dir; then
11292 rm -f conf$$.dir/conf$$.file
11293 else
11294 rm -f conf$$.dir
11295 mkdir conf$$.dir 2>/dev/null
11296 fi
11297 if (echo >conf$$.file) 2>/dev/null; then
11298 if ln -s conf$$.file conf$$ 2>/dev/null; then
11299 as_ln_s='ln -s'
11300 # ... but there are two gotchas:
11301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11303 # In both cases, we have to default to `cp -pR'.
11304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11305 as_ln_s='cp -pR'
11306 elif ln conf$$.file conf$$ 2>/dev/null; then
11307 as_ln_s=ln
11308 else
11309 as_ln_s='cp -pR'
11310 fi
11311 else
11312 as_ln_s='cp -pR'
11313 fi
11314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11315 rmdir conf$$.dir 2>/dev/null
11316
11317
11318 # as_fn_mkdir_p
11319 # -------------
11320 # Create "$as_dir" as a directory, including parents if necessary.
11321 as_fn_mkdir_p ()
11322 {
11323
11324 case $as_dir in #(
11325 -*) as_dir=./$as_dir;;
11326 esac
11327 test -d "$as_dir" || eval $as_mkdir_p || {
11328 as_dirs=
11329 while :; do
11330 case $as_dir in #(
11331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11332 *) as_qdir=$as_dir;;
11333 esac
11334 as_dirs="'$as_qdir' $as_dirs"
11335 as_dir=`$as_dirname -- "$as_dir" ||
11336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11337 X"$as_dir" : 'X\(//\)[^/]' \| \
11338 X"$as_dir" : 'X\(//\)$' \| \
11339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11340 $as_echo X"$as_dir" |
11341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11342 s//\1/
11343 q
11344 }
11345 /^X\(\/\/\)[^/].*/{
11346 s//\1/
11347 q
11348 }
11349 /^X\(\/\/\)$/{
11350 s//\1/
11351 q
11352 }
11353 /^X\(\/\).*/{
11354 s//\1/
11355 q
11356 }
11357 s/.*/./; q'`
11358 test -d "$as_dir" && break
11359 done
11360 test -z "$as_dirs" || eval "mkdir $as_dirs"
11361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11362
11363
11364 } # as_fn_mkdir_p
11365 if mkdir -p . 2>/dev/null; then
11366 as_mkdir_p='mkdir -p "$as_dir"'
11367 else
11368 test -d ./-p && rmdir ./-p
11369 as_mkdir_p=false
11370 fi
11371
11372
11373 # as_fn_executable_p FILE
11374 # -----------------------
11375 # Test if FILE is an executable regular file.
11376 as_fn_executable_p ()
11377 {
11378 test -f "$1" && test -x "$1"
11379 } # as_fn_executable_p
11380 as_test_x='test -x'
11381 as_executable_p=as_fn_executable_p
11382
11383 # Sed expression to map a string onto a valid CPP name.
11384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11385
11386 # Sed expression to map a string onto a valid variable name.
11387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11388
11389
11390 exec 6>&1
11391 ## ----------------------------------- ##
11392 ## Main body of $CONFIG_STATUS script. ##
11393 ## ----------------------------------- ##
11394 _ASEOF
11395 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11396
11397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11398 # Save the log message, to keep $0 and so on meaningful, and to
11399 # report actual input values of CONFIG_FILES etc. instead of their
11400 # values after options handling.
11401 ac_log="
11402 This file was extended by xcalc $as_me 1.0.6, which was
11403 generated by GNU Autoconf 2.69. Invocation command line was
11404
11405 CONFIG_FILES = $CONFIG_FILES
11406 CONFIG_HEADERS = $CONFIG_HEADERS
11407 CONFIG_LINKS = $CONFIG_LINKS
11408 CONFIG_COMMANDS = $CONFIG_COMMANDS
11409 $ $0 $@
11410
11411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11412 "
11413
11414 _ACEOF
11415
11416 case $ac_config_files in *"
11417 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11418 esac
11419
11420 case $ac_config_headers in *"
11421 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11422 esac
11423
11424
11425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11426 # Files that config.status was made for.
11427 config_files="$ac_config_files"
11428 config_headers="$ac_config_headers"
11429 config_commands="$ac_config_commands"
11430
11431 _ACEOF
11432
11433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11434 ac_cs_usage="\
11435 \`$as_me' instantiates files and other configuration actions
11436 from templates according to the current configuration. Unless the files
11437 and actions are specified as TAGs, all are instantiated by default.
11438
11439 Usage: $0 [OPTION]... [TAG]...
11440
11441 -h, --help print this help, then exit
11442 -V, --version print version number and configuration settings, then exit
11443 --config print configuration, then exit
11444 -q, --quiet, --silent
11445 do not print progress messages
11446 -d, --debug don't remove temporary files
11447 --recheck update $as_me by reconfiguring in the same conditions
11448 --file=FILE[:TEMPLATE]
11449 instantiate the configuration file FILE
11450 --header=FILE[:TEMPLATE]
11451 instantiate the configuration header FILE
11452
11453 Configuration files:
11454 $config_files
11455
11456 Configuration headers:
11457 $config_headers
11458
11459 Configuration commands:
11460 $config_commands
11461
11462 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11463
11464 _ACEOF
11465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11466 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11467 ac_cs_version="\\
11468 xcalc config.status 1.0.6
11469 configured by $0, generated by GNU Autoconf 2.69,
11470 with options \\"\$ac_cs_config\\"
11471
11472 Copyright (C) 2012 Free Software Foundation, Inc.
11473 This config.status script is free software; the Free Software Foundation
11474 gives unlimited permission to copy, distribute and modify it."
11475
11476 ac_pwd='$ac_pwd'
11477 srcdir='$srcdir'
11478 INSTALL='$INSTALL'
11479 MKDIR_P='$MKDIR_P'
11480 AWK='$AWK'
11481 test -n "\$AWK" || AWK=awk
11482 _ACEOF
11483
11484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11485 # The default lists apply if the user does not specify any file.
11486 ac_need_defaults=:
11487 while test $# != 0
11488 do
11489 case $1 in
11490 --*=?*)
11491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11493 ac_shift=:
11494 ;;
11495 --*=)
11496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11497 ac_optarg=
11498 ac_shift=:
11499 ;;
11500 *)
11501 ac_option=$1
11502 ac_optarg=$2
11503 ac_shift=shift
11504 ;;
11505 esac
11506
11507 case $ac_option in
11508 # Handling of the options.
11509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11510 ac_cs_recheck=: ;;
11511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11512 $as_echo "$ac_cs_version"; exit ;;
11513 --config | --confi | --conf | --con | --co | --c )
11514 $as_echo "$ac_cs_config"; exit ;;
11515 --debug | --debu | --deb | --de | --d | -d )
11516 debug=: ;;
11517 --file | --fil | --fi | --f )
11518 $ac_shift
11519 case $ac_optarg in
11520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11521 '') as_fn_error $? "missing file argument" ;;
11522 esac
11523 as_fn_append CONFIG_FILES " '$ac_optarg'"
11524 ac_need_defaults=false;;
11525 --header | --heade | --head | --hea )
11526 $ac_shift
11527 case $ac_optarg in
11528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11529 esac
11530 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11531 ac_need_defaults=false;;
11532 --he | --h)
11533 # Conflict between --help and --header
11534 as_fn_error $? "ambiguous option: \`$1'
11535 Try \`$0 --help' for more information.";;
11536 --help | --hel | -h )
11537 $as_echo "$ac_cs_usage"; exit ;;
11538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11540 ac_cs_silent=: ;;
11541
11542 # This is an error.
11543 -*) as_fn_error $? "unrecognized option: \`$1'
11544 Try \`$0 --help' for more information." ;;
11545
11546 *) as_fn_append ac_config_targets " $1"
11547 ac_need_defaults=false ;;
11548
11549 esac
11550 shift
11551 done
11552
11553 ac_configure_extra_args=
11554
11555 if $ac_cs_silent; then
11556 exec 6>/dev/null
11557 ac_configure_extra_args="$ac_configure_extra_args --silent"
11558 fi
11559
11560 _ACEOF
11561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11562 if \$ac_cs_recheck; then
11563 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11564 shift
11565 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11566 CONFIG_SHELL='$SHELL'
11567 export CONFIG_SHELL
11568 exec "\$@"
11569 fi
11570
11571 _ACEOF
11572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11573 exec 5>>config.log
11574 {
11575 echo
11576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11577 ## Running $as_me. ##
11578 _ASBOX
11579 $as_echo "$ac_log"
11580 } >&5
11581
11582 _ACEOF
11583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 #
11585 # INIT-COMMANDS
11586 #
11587 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11588
11589 _ACEOF
11590
11591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11592
11593 # Handling of arguments.
11594 for ac_config_target in $ac_config_targets
11595 do
11596 case $ac_config_target in
11597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11598 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11600 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11601
11602 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11603 esac
11604 done
11605
11606
11607 # If the user did not use the arguments to specify the items to instantiate,
11608 # then the envvar interface is used. Set only those that are not.
11609 # We use the long form for the default assignment because of an extremely
11610 # bizarre bug on SunOS 4.1.3.
11611 if $ac_need_defaults; then
11612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11615 fi
11616
11617 # Have a temporary directory for convenience. Make it in the build tree
11618 # simply because there is no reason against having it here, and in addition,
11619 # creating and moving files from /tmp can sometimes cause problems.
11620 # Hook for its removal unless debugging.
11621 # Note that there is a small window in which the directory will not be cleaned:
11622 # after its creation but before its name has been assigned to `$tmp'.
11623 $debug ||
11624 {
11625 tmp= ac_tmp=
11626 trap 'exit_status=$?
11627 : "${ac_tmp:=$tmp}"
11628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11629 ' 0
11630 trap 'as_fn_exit 1' 1 2 13 15
11631 }
11632 # Create a (secure) tmp directory for tmp files.
11633
11634 {
11635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11636 test -d "$tmp"
11637 } ||
11638 {
11639 tmp=./conf$$-$RANDOM
11640 (umask 077 && mkdir "$tmp")
11641 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11642 ac_tmp=$tmp
11643
11644 # Set up the scripts for CONFIG_FILES section.
11645 # No need to generate them if there are no CONFIG_FILES.
11646 # This happens for instance with `./config.status config.h'.
11647 if test -n "$CONFIG_FILES"; then
11648
11649
11650 ac_cr=`echo X | tr X '\015'`
11651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11652 # But we know of no other shell where ac_cr would be empty at this
11653 # point, so we can use a bashism as a fallback.
11654 if test "x$ac_cr" = x; then
11655 eval ac_cr=\$\'\\r\'
11656 fi
11657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11659 ac_cs_awk_cr='\\r'
11660 else
11661 ac_cs_awk_cr=$ac_cr
11662 fi
11663
11664 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11665 _ACEOF
11666
11667
11668 {
11669 echo "cat >conf$$subs.awk <<_ACEOF" &&
11670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11671 echo "_ACEOF"
11672 } >conf$$subs.sh ||
11673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11675 ac_delim='%!_!# '
11676 for ac_last_try in false false false false false :; do
11677 . ./conf$$subs.sh ||
11678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11679
11680 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11681 if test $ac_delim_n = $ac_delim_num; then
11682 break
11683 elif $ac_last_try; then
11684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11685 else
11686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11687 fi
11688 done
11689 rm -f conf$$subs.sh
11690
11691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11692 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11693 _ACEOF
11694 sed -n '
11695 h
11696 s/^/S["/; s/!.*/"]=/
11697 p
11698 g
11699 s/^[^!]*!//
11700 :repl
11701 t repl
11702 s/'"$ac_delim"'$//
11703 t delim
11704 :nl
11705 h
11706 s/\(.\{148\}\)..*/\1/
11707 t more1
11708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11709 p
11710 n
11711 b repl
11712 :more1
11713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11714 p
11715 g
11716 s/.\{148\}//
11717 t nl
11718 :delim
11719 h
11720 s/\(.\{148\}\)..*/\1/
11721 t more2
11722 s/["\\]/\\&/g; s/^/"/; s/$/"/
11723 p
11724 b
11725 :more2
11726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11727 p
11728 g
11729 s/.\{148\}//
11730 t delim
11731 ' <conf$$subs.awk | sed '
11732 /^[^""]/{
11733 N
11734 s/\n//
11735 }
11736 ' >>$CONFIG_STATUS || ac_write_fail=1
11737 rm -f conf$$subs.awk
11738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11739 _ACAWK
11740 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11741 for (key in S) S_is_set[key] = 1
11742 FS = ""
11743
11744 }
11745 {
11746 line = $ 0
11747 nfields = split(line, field, "@")
11748 substed = 0
11749 len = length(field[1])
11750 for (i = 2; i < nfields; i++) {
11751 key = field[i]
11752 keylen = length(key)
11753 if (S_is_set[key]) {
11754 value = S[key]
11755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11756 len += length(value) + length(field[++i])
11757 substed = 1
11758 } else
11759 len += 1 + keylen
11760 }
11761
11762 print line
11763 }
11764
11765 _ACAWK
11766 _ACEOF
11767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11770 else
11771 cat
11772 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11773 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11774 _ACEOF
11775
11776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11778 # trailing colons and then remove the whole line if VPATH becomes empty
11779 # (actually we leave an empty line to preserve line numbers).
11780 if test "x$srcdir" = x.; then
11781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11782 h
11783 s///
11784 s/^/:/
11785 s/[ ]*$/:/
11786 s/:\$(srcdir):/:/g
11787 s/:\${srcdir}:/:/g
11788 s/:@srcdir@:/:/g
11789 s/^:*//
11790 s/:*$//
11791 x
11792 s/\(=[ ]*\).*/\1/
11793 G
11794 s/\n//
11795 s/^[^=]*=[ ]*$//
11796 }'
11797 fi
11798
11799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800 fi # test -n "$CONFIG_FILES"
11801
11802 # Set up the scripts for CONFIG_HEADERS section.
11803 # No need to generate them if there are no CONFIG_HEADERS.
11804 # This happens for instance with `./config.status Makefile'.
11805 if test -n "$CONFIG_HEADERS"; then
11806 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11807 BEGIN {
11808 _ACEOF
11809
11810 # Transform confdefs.h into an awk script `defines.awk', embedded as
11811 # here-document in config.status, that substitutes the proper values into
11812 # config.h.in to produce config.h.
11813
11814 # Create a delimiter string that does not exist in confdefs.h, to ease
11815 # handling of long lines.
11816 ac_delim='%!_!# '
11817 for ac_last_try in false false :; do
11818 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11819 if test -z "$ac_tt"; then
11820 break
11821 elif $ac_last_try; then
11822 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11823 else
11824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11825 fi
11826 done
11827
11828 # For the awk script, D is an array of macro values keyed by name,
11829 # likewise P contains macro parameters if any. Preserve backslash
11830 # newline sequences.
11831
11832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11833 sed -n '
11834 s/.\{148\}/&'"$ac_delim"'/g
11835 t rset
11836 :rset
11837 s/^[ ]*#[ ]*define[ ][ ]*/ /
11838 t def
11839 d
11840 :def
11841 s/\\$//
11842 t bsnl
11843 s/["\\]/\\&/g
11844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11845 D["\1"]=" \3"/p
11846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11847 d
11848 :bsnl
11849 s/["\\]/\\&/g
11850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11851 D["\1"]=" \3\\\\\\n"\\/p
11852 t cont
11853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11854 t cont
11855 d
11856 :cont
11857 n
11858 s/.\{148\}/&'"$ac_delim"'/g
11859 t clear
11860 :clear
11861 s/\\$//
11862 t bsnlc
11863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11864 d
11865 :bsnlc
11866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11867 b cont
11868 ' <confdefs.h | sed '
11869 s/'"$ac_delim"'/"\\\
11870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11871
11872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11873 for (key in D) D_is_set[key] = 1
11874 FS = ""
11875 }
11876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11877 line = \$ 0
11878 split(line, arg, " ")
11879 if (arg[1] == "#") {
11880 defundef = arg[2]
11881 mac1 = arg[3]
11882 } else {
11883 defundef = substr(arg[1], 2)
11884 mac1 = arg[2]
11885 }
11886 split(mac1, mac2, "(") #)
11887 macro = mac2[1]
11888 prefix = substr(line, 1, index(line, defundef) - 1)
11889 if (D_is_set[macro]) {
11890 # Preserve the white space surrounding the "#".
11891 print prefix "define", macro P[macro] D[macro]
11892 next
11893 } else {
11894 # Replace #undef with comments. This is necessary, for example,
11895 # in the case of _POSIX_SOURCE, which is predefined and required
11896 # on some systems where configure will not decide to define it.
11897 if (defundef == "undef") {
11898 print "/*", prefix defundef, macro, "*/"
11899 next
11900 }
11901 }
11902 }
11903 { print }
11904 _ACAWK
11905 _ACEOF
11906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11908 fi # test -n "$CONFIG_HEADERS"
11909
11910
11911 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11912 shift
11913 for ac_tag
11914 do
11915 case $ac_tag in
11916 :[FHLC]) ac_mode=$ac_tag; continue;;
11917 esac
11918 case $ac_mode$ac_tag in
11919 :[FHL]*:*);;
11920 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11921 :[FH]-) ac_tag=-:-;;
11922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11923 esac
11924 ac_save_IFS=$IFS
11925 IFS=:
11926 set x $ac_tag
11927 IFS=$ac_save_IFS
11928 shift
11929 ac_file=$1
11930 shift
11931
11932 case $ac_mode in
11933 :L) ac_source=$1;;
11934 :[FH])
11935 ac_file_inputs=
11936 for ac_f
11937 do
11938 case $ac_f in
11939 -) ac_f="$ac_tmp/stdin";;
11940 *) # Look for the file first in the build tree, then in the source tree
11941 # (if the path is not absolute). The absolute path cannot be DOS-style,
11942 # because $ac_f cannot contain `:'.
11943 test -f "$ac_f" ||
11944 case $ac_f in
11945 [\\/$]*) false;;
11946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11947 esac ||
11948 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11949 esac
11950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11951 as_fn_append ac_file_inputs " '$ac_f'"
11952 done
11953
11954 # Let's still pretend it is `configure' which instantiates (i.e., don't
11955 # use $as_me), people would be surprised to read:
11956 # /* config.h. Generated by config.status. */
11957 configure_input='Generated from '`
11958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11959 `' by configure.'
11960 if test x"$ac_file" != x-; then
11961 configure_input="$ac_file. $configure_input"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11963 $as_echo "$as_me: creating $ac_file" >&6;}
11964 fi
11965 # Neutralize special characters interpreted by sed in replacement strings.
11966 case $configure_input in #(
11967 *\&* | *\|* | *\\* )
11968 ac_sed_conf_input=`$as_echo "$configure_input" |
11969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11970 *) ac_sed_conf_input=$configure_input;;
11971 esac
11972
11973 case $ac_tag in
11974 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11976 esac
11977 ;;
11978 esac
11979
11980 ac_dir=`$as_dirname -- "$ac_file" ||
11981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 X"$ac_file" : 'X\(//\)[^/]' \| \
11983 X"$ac_file" : 'X\(//\)$' \| \
11984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11985 $as_echo X"$ac_file" |
11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 s//\1/
11988 q
11989 }
11990 /^X\(\/\/\)[^/].*/{
11991 s//\1/
11992 q
11993 }
11994 /^X\(\/\/\)$/{
11995 s//\1/
11996 q
11997 }
11998 /^X\(\/\).*/{
11999 s//\1/
12000 q
12001 }
12002 s/.*/./; q'`
12003 as_dir="$ac_dir"; as_fn_mkdir_p
12004 ac_builddir=.
12005
12006 case "$ac_dir" in
12007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12008 *)
12009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12010 # A ".." for each directory in $ac_dir_suffix.
12011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12012 case $ac_top_builddir_sub in
12013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12015 esac ;;
12016 esac
12017 ac_abs_top_builddir=$ac_pwd
12018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12019 # for backward compatibility:
12020 ac_top_builddir=$ac_top_build_prefix
12021
12022 case $srcdir in
12023 .) # We are building in place.
12024 ac_srcdir=.
12025 ac_top_srcdir=$ac_top_builddir_sub
12026 ac_abs_top_srcdir=$ac_pwd ;;
12027 [\\/]* | ?:[\\/]* ) # Absolute name.
12028 ac_srcdir=$srcdir$ac_dir_suffix;
12029 ac_top_srcdir=$srcdir
12030 ac_abs_top_srcdir=$srcdir ;;
12031 *) # Relative name.
12032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12033 ac_top_srcdir=$ac_top_build_prefix$srcdir
12034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12035 esac
12036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12037
12038
12039 case $ac_mode in
12040 :F)
12041 #
12042 # CONFIG_FILE
12043 #
12044
12045 case $INSTALL in
12046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12048 esac
12049 ac_MKDIR_P=$MKDIR_P
12050 case $MKDIR_P in
12051 [\\/$]* | ?:[\\/]* ) ;;
12052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12053 esac
12054 _ACEOF
12055
12056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057 # If the template does not know about datarootdir, expand it.
12058 # FIXME: This hack should be removed a few years after 2.60.
12059 ac_datarootdir_hack=; ac_datarootdir_seen=
12060 ac_sed_dataroot='
12061 /datarootdir/ {
12062 p
12063 q
12064 }
12065 /@datadir@/p
12066 /@docdir@/p
12067 /@infodir@/p
12068 /@localedir@/p
12069 /@mandir@/p'
12070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12071 *datarootdir*) ac_datarootdir_seen=yes;;
12072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12075 _ACEOF
12076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12077 ac_datarootdir_hack='
12078 s&@datadir@&$datadir&g
12079 s&@docdir@&$docdir&g
12080 s&@infodir@&$infodir&g
12081 s&@localedir@&$localedir&g
12082 s&@mandir@&$mandir&g
12083 s&\\\${datarootdir}&$datarootdir&g' ;;
12084 esac
12085 _ACEOF
12086
12087 # Neutralize VPATH when `$srcdir' = `.'.
12088 # Shell code in configure.ac might set extrasub.
12089 # FIXME: do we really want to maintain this feature?
12090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12091 ac_sed_extra="$ac_vpsub
12092 $extrasub
12093 _ACEOF
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095 :t
12096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12097 s|@configure_input@|$ac_sed_conf_input|;t t
12098 s&@top_builddir@&$ac_top_builddir_sub&;t t
12099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12100 s&@srcdir@&$ac_srcdir&;t t
12101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12102 s&@top_srcdir@&$ac_top_srcdir&;t t
12103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12104 s&@builddir@&$ac_builddir&;t t
12105 s&@abs_builddir@&$ac_abs_builddir&;t t
12106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12107 s&@INSTALL@&$ac_INSTALL&;t t
12108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12109 $ac_datarootdir_hack
12110 "
12111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12113
12114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12117 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12119 which seems to be undefined. Please make sure it is defined" >&5
12120 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12121 which seems to be undefined. Please make sure it is defined" >&2;}
12122
12123 rm -f "$ac_tmp/stdin"
12124 case $ac_file in
12125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12127 esac \
12128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12129 ;;
12130 :H)
12131 #
12132 # CONFIG_HEADER
12133 #
12134 if test x"$ac_file" != x-; then
12135 {
12136 $as_echo "/* $configure_input */" \
12137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12138 } >"$ac_tmp/config.h" \
12139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12143 else
12144 rm -f "$ac_file"
12145 mv "$ac_tmp/config.h" "$ac_file" \
12146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12147 fi
12148 else
12149 $as_echo "/* $configure_input */" \
12150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12151 || as_fn_error $? "could not create -" "$LINENO" 5
12152 fi
12153 # Compute "$ac_file"'s index in $config_headers.
12154 _am_arg="$ac_file"
12155 _am_stamp_count=1
12156 for _am_header in $config_headers :; do
12157 case $_am_header in
12158 $_am_arg | $_am_arg:* )
12159 break ;;
12160 * )
12161 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12162 esac
12163 done
12164 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12165 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12166 X"$_am_arg" : 'X\(//\)[^/]' \| \
12167 X"$_am_arg" : 'X\(//\)$' \| \
12168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12169 $as_echo X"$_am_arg" |
12170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12171 s//\1/
12172 q
12173 }
12174 /^X\(\/\/\)[^/].*/{
12175 s//\1/
12176 q
12177 }
12178 /^X\(\/\/\)$/{
12179 s//\1/
12180 q
12181 }
12182 /^X\(\/\).*/{
12183 s//\1/
12184 q
12185 }
12186 s/.*/./; q'`/stamp-h$_am_stamp_count
12187 ;;
12188
12189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12190 $as_echo "$as_me: executing $ac_file commands" >&6;}
12191 ;;
12192 esac
12193
12194
12195 case $ac_file$ac_mode in
12196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12197 # Older Autoconf quotes --file arguments for eval, but not when files
12198 # are listed without --file. Let's play safe and only enable the eval
12199 # if we detect the quoting.
12200 case $CONFIG_FILES in
12201 *\'*) eval set x "$CONFIG_FILES" ;;
12202 *) set x $CONFIG_FILES ;;
12203 esac
12204 shift
12205 for mf
12206 do
12207 # Strip MF so we end up with the name of the file.
12208 mf=`echo "$mf" | sed -e 's/:.*$//'`
12209 # Check whether this is an Automake generated Makefile or not.
12210 # We used to match only the files named 'Makefile.in', but
12211 # some people rename them; so instead we look at the file content.
12212 # Grep'ing the first line is not enough: some people post-process
12213 # each Makefile.in and add a new line on top of each file to say so.
12214 # Grep'ing the whole file is not good either: AIX grep has a line
12215 # limit of 2048, but all sed's we know have understand at least 4000.
12216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12217 dirpart=`$as_dirname -- "$mf" ||
12218 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12219 X"$mf" : 'X\(//\)[^/]' \| \
12220 X"$mf" : 'X\(//\)$' \| \
12221 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12222 $as_echo X"$mf" |
12223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12224 s//\1/
12225 q
12226 }
12227 /^X\(\/\/\)[^/].*/{
12228 s//\1/
12229 q
12230 }
12231 /^X\(\/\/\)$/{
12232 s//\1/
12233 q
12234 }
12235 /^X\(\/\).*/{
12236 s//\1/
12237 q
12238 }
12239 s/.*/./; q'`
12240 else
12241 continue
12242 fi
12243 # Extract the definition of DEPDIR, am__include, and am__quote
12244 # from the Makefile without running 'make'.
12245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12246 test -z "$DEPDIR" && continue
12247 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12248 test -z "$am__include" && continue
12249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12250 # Find all dependency output files, they are included files with
12251 # $(DEPDIR) in their names. We invoke sed twice because it is the
12252 # simplest approach to changing $(DEPDIR) to its actual value in the
12253 # expansion.
12254 for file in `sed -n "
12255 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12256 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12257 # Make sure the directory exists.
12258 test -f "$dirpart/$file" && continue
12259 fdir=`$as_dirname -- "$file" ||
12260 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12261 X"$file" : 'X\(//\)[^/]' \| \
12262 X"$file" : 'X\(//\)$' \| \
12263 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12264 $as_echo X"$file" |
12265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12266 s//\1/
12267 q
12268 }
12269 /^X\(\/\/\)[^/].*/{
12270 s//\1/
12271 q
12272 }
12273 /^X\(\/\/\)$/{
12274 s//\1/
12275 q
12276 }
12277 /^X\(\/\).*/{
12278 s//\1/
12279 q
12280 }
12281 s/.*/./; q'`
12282 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12283 # echo "creating $dirpart/$file"
12284 echo '# dummy' > "$dirpart/$file"
12285 done
12286 done
12287 }
12288 ;;
12289
12290 esac
12291 done # for ac_tag
12292
12293
12294 as_fn_exit 0
12295 _ACEOF
12296 ac_clean_files=$ac_clean_files_save
12297
12298 test $ac_write_fail = 0 ||
12299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12300
12301
12302 # configure is writing to config.log, and then calls config.status.
12303 # config.status does its own redirection, appending to config.log.
12304 # Unfortunately, on DOS this fails, as config.log is still kept open
12305 # by configure, so config.status won't be able to write to it; its
12306 # output is simply discarded. So we exec the FD to /dev/null,
12307 # effectively closing config.log, so it can be properly (re)opened and
12308 # appended to by config.status. When coming back to configure, we
12309 # need to make the FD available again.
12310 if test "$no_create" != yes; then
12311 ac_cs_success=:
12312 ac_config_status_args=
12313 test "$silent" = yes &&
12314 ac_config_status_args="$ac_config_status_args --quiet"
12315 exec 5>/dev/null
12316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12317 exec 5>>config.log
12318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12319 # would make configure fail if this is the last instruction.
12320 $ac_cs_success || as_fn_exit 1
12321 fi
12322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12324 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12325 fi
12326
12327