configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for appres 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='appres'
563 PACKAGE_TARNAME='appres'
564 PACKAGE_VERSION='1.0.4'
565 PACKAGE_STRING='appres 1.0.4'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 APPRES_LIBS
611 APPRES_CFLAGS
612 MAN_SUBSTS
613 XORG_MAN_PAGE
614 ADMIN_MAN_DIR
615 DRIVER_MAN_DIR
616 MISC_MAN_DIR
617 FILE_MAN_DIR
618 LIB_MAN_DIR
619 APP_MAN_DIR
620 ADMIN_MAN_SUFFIX
621 DRIVER_MAN_SUFFIX
622 MISC_MAN_SUFFIX
623 FILE_MAN_SUFFIX
624 LIB_MAN_SUFFIX
625 APP_MAN_SUFFIX
626 SED
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 INSTALL_CMD
636 PKG_CONFIG
637 CHANGELOG_CMD
638 STRICT_CFLAGS
639 CWARNFLAGS
640 BASE_CFLAGS
641 EGREP
642 GREP
643 CPP
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 am__nodep
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 AM_BACKSLASH
665 AM_DEFAULT_VERBOSITY
666 AM_DEFAULT_V
667 AM_V
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_silent_rules
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_selective_werror
736 enable_strict_compilation
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 PKG_CONFIG
748 APPRES_CFLAGS
749 APPRES_LIBS'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used" >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257 else
1258 ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures appres 1.0.4 to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/appres]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1346
1347 cat <<\_ACEOF
1348
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 _ACEOF
1358 fi
1359
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of appres 1.0.4:";;
1363 esac
1364 cat <<\_ACEOF
1365
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-silent-rules less verbose build output (undo: "make V=1")
1371 --disable-silent-rules verbose build output (undo: "make V=0")
1372 --enable-maintainer-mode
1373 enable make rules and dependencies not useful (and
1374 sometimes confusing) to the casual installer
1375 --enable-dependency-tracking
1376 do not reject slow dependency extractors
1377 --disable-dependency-tracking
1378 speeds up one-time build
1379 --disable-selective-werror
1380 Turn off selective compiler errors. (default:
1381 enabled)
1382 --enable-strict-compilation
1383 Enable all warnings from compiler and make them
1384 errors (default: disabled)
1385
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1395 PKG_CONFIG path to pkg-config utility
1396 APPRES_CFLAGS
1397 C compiler flags for APPRES, overriding pkg-config
1398 APPRES_LIBS linker flags for APPRES, overriding pkg-config
1399
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1402
1403 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1404 _ACEOF
1405 ac_status=$?
1406 fi
1407
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1415
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *)
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1431
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1461 fi
1462
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 appres configure 1.0.4
1467 generated by GNU Autoconf 2.68
1468
1469 Copyright (C) 2010 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1479
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511 ac_retval=1
1512 fi
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_compile
1517
1518 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1519 # ---------------------------------------------
1520 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1521 # accordingly.
1522 ac_fn_c_check_decl ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 as_decl_name=`echo $2|sed 's/ *(.*//'`
1526 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1528 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1529 if eval \${$3+:} false; then :
1530 $as_echo_n "(cached) " >&6
1531 else
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h. */
1534 $4
1535 int
1536 main ()
1537 {
1538 #ifndef $as_decl_name
1539 #ifdef __cplusplus
1540 (void) $as_decl_use;
1541 #else
1542 (void) $as_decl_name;
1543 #endif
1544 #endif
1545
1546 ;
1547 return 0;
1548 }
1549 _ACEOF
1550 if ac_fn_c_try_compile "$LINENO"; then :
1551 eval "$3=yes"
1552 else
1553 eval "$3=no"
1554 fi
1555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1556 fi
1557 eval ac_res=\$$3
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561
1562 } # ac_fn_c_check_decl
1563
1564 # ac_fn_c_try_cpp LINENO
1565 # ----------------------
1566 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_cpp ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { { ac_try="$ac_cpp conftest.$ac_ext"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } > conftest.i && {
1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 }; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_cpp
1600
1601 # ac_fn_c_try_run LINENO
1602 # ----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1604 # that executables *can* be run.
1605 ac_fn_c_try_run ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>&5
1616 ac_status=$?
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1619 { { case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_try") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; }; }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: program exited with status $ac_status" >&5
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=$ac_status
1636 fi
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_run
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662 else
1663 eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 $as_test_x conftest$ac_exeext
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719 cat >config.log <<_ACEOF
1720 This file contains any messages produced by compilers while
1721 running configure, to aid debugging if configure makes a mistake.
1722
1723 It was created by appres $as_me 1.0.4, which was
1724 generated by GNU Autoconf 2.68. Invocation command line was
1725
1726 $ $0 $@
1727
1728 _ACEOF
1729 exec 5>>config.log
1730 {
1731 cat <<_ASUNAME
1732 ## --------- ##
1733 ## Platform. ##
1734 ## --------- ##
1735
1736 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1741
1742 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1744
1745 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1748 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1749 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752
1753 _ASUNAME
1754
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 $as_echo "PATH: $as_dir"
1761 done
1762 IFS=$as_save_IFS
1763
1764 } >&5
1765
1766 cat >&5 <<_ACEOF
1767
1768
1769 ## ----------- ##
1770 ## Core tests. ##
1771 ## ----------- ##
1772
1773 _ACEOF
1774
1775
1776 # Keep a trace of the command line.
1777 # Strip out --no-create and --no-recursion so they do not pile up.
1778 # Strip out --silent because we don't want to record it for future runs.
1779 # Also quote any args containing shell meta-characters.
1780 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_configure_args=
1782 ac_configure_args0=
1783 ac_configure_args1=
1784 ac_must_keep_next=false
1785 for ac_pass in 1 2
1786 do
1787 for ac_arg
1788 do
1789 case $ac_arg in
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1793 continue ;;
1794 *\'*)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 esac
1797 case $ac_pass in
1798 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1799 2)
1800 as_fn_append ac_configure_args1 " '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1803 else
1804 case $ac_arg in
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1811 esac
1812 ;;
1813 -* ) ac_must_keep_next=true ;;
1814 esac
1815 fi
1816 as_fn_append ac_configure_args " '$ac_arg'"
1817 ;;
1818 esac
1819 done
1820 done
1821 { ac_configure_args0=; unset ac_configure_args0;}
1822 { ac_configure_args1=; unset ac_configure_args1;}
1823
1824 # When interrupted or exit'd, cleanup temporary files, and complete
1825 # config.log. We remove comments because anyway the quotes in there
1826 # would cause problems or look ugly.
1827 # WARNING: Use '\'' to represent an apostrophe within the trap.
1828 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1829 trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 $as_echo "## ---------------- ##
1835 ## Cache variables. ##
1836 ## ---------------- ##"
1837 echo
1838 # The following way of writing the cache mishandles newlines in values,
1839 (
1840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1841 eval ac_val=\$$ac_var
1842 case $ac_val in #(
1843 *${as_nl}*)
1844 case $ac_var in #(
1845 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1847 esac
1848 case $ac_var in #(
1849 _ | IFS | as_nl) ;; #(
1850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1851 *) { eval $ac_var=; unset $ac_var;} ;;
1852 esac ;;
1853 esac
1854 done
1855 (set) 2>&1 |
1856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1857 *${as_nl}ac_space=\ *)
1858 sed -n \
1859 "s/'\''/'\''\\\\'\'''\''/g;
1860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1861 ;; #(
1862 *)
1863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1864 ;;
1865 esac |
1866 sort
1867 )
1868 echo
1869
1870 $as_echo "## ----------------- ##
1871 ## Output variables. ##
1872 ## ----------------- ##"
1873 echo
1874 for ac_var in $ac_subst_vars
1875 do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 $as_echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1883
1884 if test -n "$ac_subst_files"; then
1885 $as_echo "## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##"
1888 echo
1889 for ac_var in $ac_subst_files
1890 do
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 $as_echo "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1898 fi
1899
1900 if test -s confdefs.h; then
1901 $as_echo "## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##"
1904 echo
1905 cat confdefs.h
1906 echo
1907 fi
1908 test "$ac_signal" != 0 &&
1909 $as_echo "$as_me: caught signal $ac_signal"
1910 $as_echo "$as_me: exit $exit_status"
1911 } >&5
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914 exit $exit_status
1915 ' 0
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1918 done
1919 ac_signal=0
1920
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1923
1924 $as_echo "/* confdefs.h */" > confdefs.h
1925
1926 # Predefined preprocessor variables.
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_NAME "$PACKAGE_NAME"
1930 _ACEOF
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1938 _ACEOF
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_STRING "$PACKAGE_STRING"
1942 _ACEOF
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946 _ACEOF
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_URL "$PACKAGE_URL"
1950 _ACEOF
1951
1952
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer an explicitly selected file to automatically selected ones.
1955 ac_site_file1=NONE
1956 ac_site_file2=NONE
1957 if test -n "$CONFIG_SITE"; then
1958 # We do not want a PATH search for config.site.
1959 case $CONFIG_SITE in #((
1960 -*) ac_site_file1=./$CONFIG_SITE;;
1961 */*) ac_site_file1=$CONFIG_SITE;;
1962 *) ac_site_file1=./$CONFIG_SITE;;
1963 esac
1964 elif test "x$prefix" != xNONE; then
1965 ac_site_file1=$prefix/share/config.site
1966 ac_site_file2=$prefix/etc/config.site
1967 else
1968 ac_site_file1=$ac_default_prefix/share/config.site
1969 ac_site_file2=$ac_default_prefix/etc/config.site
1970 fi
1971 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1972 do
1973 test "x$ac_site_file" = xNONE && continue
1974 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1976 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1977 sed 's/^/| /' "$ac_site_file" >&5
1978 . "$ac_site_file" \
1979 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1981 as_fn_error $? "failed to load site script $ac_site_file
1982 See \`config.log' for more details" "$LINENO" 5; }
1983 fi
1984 done
1985
1986 if test -r "$cache_file"; then
1987 # Some versions of bash will fail to source /dev/null (special files
1988 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1989 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1991 $as_echo "$as_me: loading cache $cache_file" >&6;}
1992 case $cache_file in
1993 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1994 *) . "./$cache_file";;
1995 esac
1996 fi
1997 else
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1999 $as_echo "$as_me: creating cache $cache_file" >&6;}
2000 >$cache_file
2001 fi
2002
2003 # Check that the precious variables saved in the cache have kept the same
2004 # value.
2005 ac_cache_corrupted=false
2006 for ac_var in $ac_precious_vars; do
2007 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2008 eval ac_new_set=\$ac_env_${ac_var}_set
2009 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2010 eval ac_new_val=\$ac_env_${ac_var}_value
2011 case $ac_old_set,$ac_new_set in
2012 set,)
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2014 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2015 ac_cache_corrupted=: ;;
2016 ,set)
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2018 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2019 ac_cache_corrupted=: ;;
2020 ,);;
2021 *)
2022 if test "x$ac_old_val" != "x$ac_new_val"; then
2023 # differences in whitespace do not lead to failure.
2024 ac_old_val_w=`echo x $ac_old_val`
2025 ac_new_val_w=`echo x $ac_new_val`
2026 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2028 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2029 ac_cache_corrupted=:
2030 else
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2032 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2033 eval $ac_var=\$ac_old_val
2034 fi
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2036 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2038 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2039 fi;;
2040 esac
2041 # Pass precious variables to config.status.
2042 if test "$ac_new_set" = set; then
2043 case $ac_new_val in
2044 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 *) ac_arg=$ac_var=$ac_new_val ;;
2046 esac
2047 case " $ac_configure_args " in
2048 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2049 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2050 esac
2051 fi
2052 done
2053 if $ac_cache_corrupted; then
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2057 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2059 fi
2060 ## -------------------- ##
2061 ## Main body of script. ##
2062 ## -------------------- ##
2063
2064 ac_ext=c
2065 ac_cpp='$CPP $CPPFLAGS'
2066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2069
2070
2071
2072 ac_config_headers="$ac_config_headers config.h"
2073
2074
2075 # Initialize Automake
2076 am__api_version='1.13'
2077
2078 ac_aux_dir=
2079 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2096 fi
2097
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105
2106
2107 # Find a good install program. We prefer a C program (faster),
2108 # so one script is as good as another. But avoid the broken or
2109 # incompatible versions:
2110 # SysV /etc/install, /usr/sbin/install
2111 # SunOS /usr/etc/install
2112 # IRIX /sbin/install
2113 # AIX /bin/install
2114 # AmigaOS /C/install, which installs bootblocks on floppy discs
2115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2118 # OS/2's system install, which has a completely different semantic
2119 # ./install, which can be erroneously created by make from ./install.sh.
2120 # Reject install programs that cannot install multiple files.
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2122 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2123 if test -z "$INSTALL"; then
2124 if ${ac_cv_path_install+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 # Account for people who put trailing slashes in PATH elements.
2133 case $as_dir/ in #((
2134 ./ | .// | /[cC]/* | \
2135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2136 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2137 /usr/ucb/* ) ;;
2138 *)
2139 # OSF1 and SCO ODT 3.0 have their own names for install.
2140 # Don't use installbsd from OSF since it installs stuff as root
2141 # by default.
2142 for ac_prog in ginstall scoinst install; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2145 if test $ac_prog = install &&
2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # AIX install. It has an incompatible calling convention.
2148 :
2149 elif test $ac_prog = install &&
2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151 # program-specific install script used by HP pwplus--don't use.
2152 :
2153 else
2154 rm -rf conftest.one conftest.two conftest.dir
2155 echo one > conftest.one
2156 echo two > conftest.two
2157 mkdir conftest.dir
2158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2159 test -s conftest.one && test -s conftest.two &&
2160 test -s conftest.dir/conftest.one &&
2161 test -s conftest.dir/conftest.two
2162 then
2163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2164 break 3
2165 fi
2166 fi
2167 fi
2168 done
2169 done
2170 ;;
2171 esac
2172
2173 done
2174 IFS=$as_save_IFS
2175
2176 rm -rf conftest.one conftest.two conftest.dir
2177
2178 fi
2179 if test "${ac_cv_path_install+set}" = set; then
2180 INSTALL=$ac_cv_path_install
2181 else
2182 # As a last resort, use the slow shell script. Don't cache a
2183 # value for INSTALL within a source directory, because that will
2184 # break other packages using the cache if that directory is
2185 # removed, or if the value is a relative name.
2186 INSTALL=$ac_install_sh
2187 fi
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2190 $as_echo "$INSTALL" >&6; }
2191
2192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2193 # It thinks the first close brace ends the variable substitution.
2194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2195
2196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2197
2198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2199
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2201 $as_echo_n "checking whether build environment is sane... " >&6; }
2202 # Reject unsafe characters in $srcdir or the absolute working directory
2203 # name. Accept space and tab only in the latter.
2204 am_lf='
2205 '
2206 case `pwd` in
2207 *[\\\"\#\$\&\'\`$am_lf]*)
2208 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2209 esac
2210 case $srcdir in
2211 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2212 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2213 esac
2214
2215 # Do 'set' in a subshell so we don't clobber the current shell's
2216 # arguments. Must try -L first in case configure is actually a
2217 # symlink; some systems play weird games with the mod time of symlinks
2218 # (eg FreeBSD returns the mod time of the symlink's containing
2219 # directory).
2220 if (
2221 am_has_slept=no
2222 for am_try in 1 2; do
2223 echo "timestamp, slept: $am_has_slept" > conftest.file
2224 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2225 if test "$*" = "X"; then
2226 # -L didn't work.
2227 set X `ls -t "$srcdir/configure" conftest.file`
2228 fi
2229 if test "$*" != "X $srcdir/configure conftest.file" \
2230 && test "$*" != "X conftest.file $srcdir/configure"; then
2231
2232 # If neither matched, then we have a broken ls. This can happen
2233 # if, for instance, CONFIG_SHELL is bash and it inherits a
2234 # broken ls alias from the environment. This has actually
2235 # happened. Such a system could not be considered "sane".
2236 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2237 alias in your environment" "$LINENO" 5
2238 fi
2239 if test "$2" = conftest.file || test $am_try -eq 2; then
2240 break
2241 fi
2242 # Just in case.
2243 sleep 1
2244 am_has_slept=yes
2245 done
2246 test "$2" = conftest.file
2247 )
2248 then
2249 # Ok.
2250 :
2251 else
2252 as_fn_error $? "newly created file is older than distributed files!
2253 Check your system clock" "$LINENO" 5
2254 fi
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2256 $as_echo "yes" >&6; }
2257 # If we didn't sleep, we still need to ensure time stamps of config.status and
2258 # generated files are strictly newer.
2259 am_sleep_pid=
2260 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2261 ( sleep 1 ) &
2262 am_sleep_pid=$!
2263 fi
2264
2265 rm -f conftest.file
2266
2267 test "$program_prefix" != NONE &&
2268 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2269 # Use a double $ so make ignores it.
2270 test "$program_suffix" != NONE &&
2271 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2272 # Double any \ or $.
2273 # By default was `s,x,x', remove it if useless.
2274 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2275 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2276
2277 # expand $ac_aux_dir to an absolute path
2278 am_aux_dir=`cd $ac_aux_dir && pwd`
2279
2280 if test x"${MISSING+set}" != xset; then
2281 case $am_aux_dir in
2282 *\ * | *\ *)
2283 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2284 *)
2285 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2286 esac
2287 fi
2288 # Use eval to expand $SHELL
2289 if eval "$MISSING --is-lightweight"; then
2290 am_missing_run="$MISSING "
2291 else
2292 am_missing_run=
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2294 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2295 fi
2296
2297 if test x"${install_sh}" != xset; then
2298 case $am_aux_dir in
2299 *\ * | *\ *)
2300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2301 *)
2302 install_sh="\${SHELL} $am_aux_dir/install-sh"
2303 esac
2304 fi
2305
2306 # Installed binaries are usually stripped using 'strip' when the user
2307 # run "make install-strip". However 'strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the 'STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if ${ac_cv_prog_STRIP+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 fi
2338 fi
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2342 $as_echo "$STRIP" >&6; }
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345 $as_echo "no" >&6; }
2346 fi
2347
2348
2349 fi
2350 if test -z "$ac_cv_prog_STRIP"; then
2351 ac_ct_STRIP=$STRIP
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2382 $as_echo "$ac_ct_STRIP" >&6; }
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2385 $as_echo "no" >&6; }
2386 fi
2387
2388 if test "x$ac_ct_STRIP" = x; then
2389 STRIP=":"
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 STRIP=$ac_ct_STRIP
2398 fi
2399 else
2400 STRIP="$ac_cv_prog_STRIP"
2401 fi
2402
2403 fi
2404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2405
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2407 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2408 if test -z "$MKDIR_P"; then
2409 if ${ac_cv_path_mkdir+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_prog in mkdir gmkdir; do
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2420 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2421 'mkdir (GNU coreutils) '* | \
2422 'mkdir (coreutils) '* | \
2423 'mkdir (fileutils) '4.1*)
2424 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2425 break 3;;
2426 esac
2427 done
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433
2434 test -d ./--version && rmdir ./--version
2435 if test "${ac_cv_path_mkdir+set}" = set; then
2436 MKDIR_P="$ac_cv_path_mkdir -p"
2437 else
2438 # As a last resort, use the slow shell script. Don't cache a
2439 # value for MKDIR_P within a source directory, because that will
2440 # break other packages using the cache if that directory is
2441 # removed, or if the value is a relative name.
2442 MKDIR_P="$ac_install_sh -d"
2443 fi
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2446 $as_echo "$MKDIR_P" >&6; }
2447
2448 for ac_prog in gawk mawk nawk awk
2449 do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_AWK+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$AWK"; then
2458 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_AWK="$ac_prog"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 AWK=$ac_cv_prog_AWK
2478 if test -n "$AWK"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2480 $as_echo "$AWK" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 test -n "$AWK" && break
2488 done
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2491 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2492 set x ${MAKE-make}
2493 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2494 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 cat >conftest.make <<\_ACEOF
2498 SHELL = /bin/sh
2499 all:
2500 @echo '@@@%%%=$(MAKE)=@@@%%%'
2501 _ACEOF
2502 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2503 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2504 *@@@%%%=?*=@@@%%%*)
2505 eval ac_cv_prog_make_${ac_make}_set=yes;;
2506 *)
2507 eval ac_cv_prog_make_${ac_make}_set=no;;
2508 esac
2509 rm -f conftest.make
2510 fi
2511 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513 $as_echo "yes" >&6; }
2514 SET_MAKE=
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2518 SET_MAKE="MAKE=${MAKE-make}"
2519 fi
2520
2521 rm -rf .tst 2>/dev/null
2522 mkdir .tst 2>/dev/null
2523 if test -d .tst; then
2524 am__leading_dot=.
2525 else
2526 am__leading_dot=_
2527 fi
2528 rmdir .tst 2>/dev/null
2529
2530 # Check whether --enable-silent-rules was given.
2531 if test "${enable_silent_rules+set}" = set; then :
2532 enableval=$enable_silent_rules;
2533 fi
2534
2535 case $enable_silent_rules in # (((
2536 yes) AM_DEFAULT_VERBOSITY=0;;
2537 no) AM_DEFAULT_VERBOSITY=1;;
2538 *) AM_DEFAULT_VERBOSITY=1;;
2539 esac
2540 am_make=${MAKE-make}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2542 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2543 if ${am_cv_make_support_nested_variables+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if $as_echo 'TRUE=$(BAR$(V))
2547 BAR0=false
2548 BAR1=true
2549 V=1
2550 am__doit:
2551 @$(TRUE)
2552 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2553 am_cv_make_support_nested_variables=yes
2554 else
2555 am_cv_make_support_nested_variables=no
2556 fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2559 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2560 if test $am_cv_make_support_nested_variables = yes; then
2561 AM_V='$(V)'
2562 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2563 else
2564 AM_V=$AM_DEFAULT_VERBOSITY
2565 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2566 fi
2567 AM_BACKSLASH='\'
2568
2569 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2570 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2571 # is not polluted with repeated "-I."
2572 am__isrc=' -I$(srcdir)'
2573 # test to see if srcdir already configured
2574 if test -f $srcdir/config.status; then
2575 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2576 fi
2577 fi
2578
2579 # test whether we have cygpath
2580 if test -z "$CYGPATH_W"; then
2581 if (cygpath --version) >/dev/null 2>/dev/null; then
2582 CYGPATH_W='cygpath -w'
2583 else
2584 CYGPATH_W=echo
2585 fi
2586 fi
2587
2588
2589 # Define the identity of the package.
2590 PACKAGE='appres'
2591 VERSION='1.0.4'
2592
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE "$PACKAGE"
2596 _ACEOF
2597
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define VERSION "$VERSION"
2601 _ACEOF
2602
2603 # Some tools Automake needs.
2604
2605 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2606
2607
2608 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2609
2610
2611 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2612
2613
2614 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2615
2616
2617 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2618
2619 # For better backward compatibility. To be removed once Automake 1.9.x
2620 # dies out for good. For more background, see:
2621 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2622 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2623 mkdir_p='$(MKDIR_P)'
2624
2625 # We need awk for the "check" target. The system "awk" is bad on
2626 # some platforms.
2627 # Always define AMTAR for backward compatibility. Yes, it's still used
2628 # in the wild :-( We should find a proper way to deprecate it ...
2629 AMTAR='$${TAR-tar}'
2630
2631
2632 # We'll loop over all known methods to create a tar archive until one works.
2633 _am_tools='gnutar pax cpio none'
2634
2635 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2636
2637
2638
2639
2640
2641
2642
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2644 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2645 # Check whether --enable-maintainer-mode was given.
2646 if test "${enable_maintainer_mode+set}" = set; then :
2647 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2648 else
2649 USE_MAINTAINER_MODE=no
2650 fi
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2653 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2654 if test $USE_MAINTAINER_MODE = yes; then
2655 MAINTAINER_MODE_TRUE=
2656 MAINTAINER_MODE_FALSE='#'
2657 else
2658 MAINTAINER_MODE_TRUE='#'
2659 MAINTAINER_MODE_FALSE=
2660 fi
2661
2662 MAINT=$MAINTAINER_MODE_TRUE
2663
2664
2665
2666 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678 DEPDIR="${am__leading_dot}deps"
2679
2680 ac_config_commands="$ac_config_commands depfiles"
2681
2682
2683 am_make=${MAKE-make}
2684 cat > confinc << 'END'
2685 am__doit:
2686 @echo this is the am__doit target
2687 .PHONY: am__doit
2688 END
2689 # If we don't find an include directive, just comment out the code.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2691 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2692 am__include="#"
2693 am__quote=
2694 _am_result=none
2695 # First try GNU make style include.
2696 echo "include confinc" > confmf
2697 # Ignore all kinds of additional output from 'make'.
2698 case `$am_make -s -f confmf 2> /dev/null` in #(
2699 *the\ am__doit\ target*)
2700 am__include=include
2701 am__quote=
2702 _am_result=GNU
2703 ;;
2704 esac
2705 # Now try BSD make style include.
2706 if test "$am__include" = "#"; then
2707 echo '.include "confinc"' > confmf
2708 case `$am_make -s -f confmf 2> /dev/null` in #(
2709 *the\ am__doit\ target*)
2710 am__include=.include
2711 am__quote="\""
2712 _am_result=BSD
2713 ;;
2714 esac
2715 fi
2716
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2719 $as_echo "$_am_result" >&6; }
2720 rm -f confinc confmf
2721
2722 # Check whether --enable-dependency-tracking was given.
2723 if test "${enable_dependency_tracking+set}" = set; then :
2724 enableval=$enable_dependency_tracking;
2725 fi
2726
2727 if test "x$enable_dependency_tracking" != xno; then
2728 am_depcomp="$ac_aux_dir/depcomp"
2729 AMDEPBACKSLASH='\'
2730 am__nodep='_no'
2731 fi
2732 if test "x$enable_dependency_tracking" != xno; then
2733 AMDEP_TRUE=
2734 AMDEP_FALSE='#'
2735 else
2736 AMDEP_TRUE='#'
2737 AMDEP_FALSE=
2738 fi
2739
2740
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_CC+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$ac_cv_prog_CC"; then
2786 ac_ct_CC=$CC
2787 # Extract the first word of "gcc", so it can be a program name with args.
2788 set dummy gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_ac_ct_CC="gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 else
2835 CC="$ac_cv_prog_CC"
2836 fi
2837
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}cc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_CC+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC="${ac_tool_prefix}cc"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 fi
2878 fi
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2901 fi
2902 ac_cv_prog_CC="cc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 if test $ac_prog_rejected = yes; then
2911 # We found a bogon in the path, so make sure we never use it.
2912 set dummy $ac_cv_prog_CC
2913 shift
2914 if test $# != 0; then
2915 # We chose a different compiler from the bogus one.
2916 # However, it has the same basename, so the bogon will be chosen
2917 # first if we set CC to just the basename; use the full file name.
2918 shift
2919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 fi
2921 fi
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in cl.exe
2938 do
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 test -n "$CC" && break
2977 done
2978 fi
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl.exe
2982 do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3013 $as_echo "$ac_ct_CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 test -n "$ac_ct_CC" && break
3021 done
3022
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 CC=$ac_ct_CC
3033 fi
3034 fi
3035
3036 fi
3037
3038
3039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error $? "no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details" "$LINENO" 5; }
3043
3044 # Provide some information about the compiler.
3045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3046 set X $ac_compile
3047 ac_compiler=$2
3048 for ac_option in --version -v -V -qversion; do
3049 { { ac_try="$ac_compiler $ac_option >&5"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3057 ac_status=$?
3058 if test -s conftest.err; then
3059 sed '10a\
3060 ... rest of stderr output deleted ...
3061 10q' conftest.err >conftest.er1
3062 cat conftest.er1 >&5
3063 fi
3064 rm -f conftest.er1 conftest.err
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 done
3068
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071
3072 int
3073 main ()
3074 {
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 ac_clean_files_save=$ac_clean_files
3081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3082 # Try to create an executable without -o first, disregard a.out.
3083 # It will help us diagnose broken compilers, and finding out an intuition
3084 # of exeext.
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3086 $as_echo_n "checking whether the C compiler works... " >&6; }
3087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088
3089 # The possible output files:
3090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091
3092 ac_rmfiles=
3093 for ac_file in $ac_files
3094 do
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3098 esac
3099 done
3100 rm -f $ac_rmfiles
3101
3102 if { { ac_try="$ac_link_default"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link_default") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3116 # so that the user can short-circuit this test for compilers unknown to
3117 # Autoconf.
3118 for ac_file in $ac_files ''
3119 do
3120 test -f "$ac_file" || continue
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123 ;;
3124 [ab].out )
3125 # We found the default executable, but exeext='' is most
3126 # certainly right.
3127 break;;
3128 *.* )
3129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 then :; else
3131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 fi
3133 # We set ac_cv_exeext here because the later test for it is not
3134 # safe: cross compilers may not add the suffix if given an `-o'
3135 # argument, so we may need to know it at that point already.
3136 # Even if this section looks crufty: it has the advantage of
3137 # actually working.
3138 break;;
3139 * )
3140 break;;
3141 esac
3142 done
3143 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144
3145 else
3146 ac_file=''
3147 fi
3148 if test -z "$ac_file"; then :
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error 77 "C compiler cannot create executables
3157 See \`config.log' for more details" "$LINENO" 5; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3163 $as_echo_n "checking for C compiler default output file name... " >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3165 $as_echo "$ac_file" >&6; }
3166 ac_exeext=$ac_cv_exeext
3167
3168 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3169 ac_clean_files=$ac_clean_files_save
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3171 $as_echo_n "checking for suffix of executables... " >&6; }
3172 if { { ac_try="$ac_link"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3184 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3185 # work properly (i.e., refer to `conftest.exe'), while it won't with
3186 # `rm'.
3187 for ac_file in conftest.exe conftest conftest.*; do
3188 test -f "$ac_file" || continue
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 break;;
3193 * ) break;;
3194 esac
3195 done
3196 else
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3200 See \`config.log' for more details" "$LINENO" 5; }
3201 fi
3202 rm -f conftest conftest$ac_cv_exeext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3204 $as_echo "$ac_cv_exeext" >&6; }
3205
3206 rm -f conftest.$ac_ext
3207 EXEEXT=$ac_cv_exeext
3208 ac_exeext=$EXEEXT
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211 #include <stdio.h>
3212 int
3213 main ()
3214 {
3215 FILE *f = fopen ("conftest.out", "w");
3216 return ferror (f) || fclose (f) != 0;
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 ac_clean_files="$ac_clean_files conftest.out"
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3226 $as_echo_n "checking whether we are cross compiling... " >&6; }
3227 if test "$cross_compiling" != yes; then
3228 { { ac_try="$ac_link"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_link") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239 if { ac_try='./conftest$ac_cv_exeext'
3240 { { case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; }; then
3250 cross_compiling=no
3251 else
3252 if test "$cross_compiling" = maybe; then
3253 cross_compiling=yes
3254 else
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot run C compiled programs.
3258 If you meant to cross compile, use \`--host'.
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 fi
3261 fi
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3265
3266 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3267 ac_clean_files=$ac_clean_files_save
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3269 $as_echo_n "checking for suffix of object files... " >&6; }
3270 if ${ac_cv_objext+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.o conftest.obj
3285 if { { ac_try="$ac_compile"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_compile") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; then :
3296 for ac_file in conftest.o conftest.obj conftest.*; do
3297 test -f "$ac_file" || continue;
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3301 break;;
3302 esac
3303 done
3304 else
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 fi
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3316 $as_echo "$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3318 ac_objext=$OBJEXT
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3320 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3321 if ${ac_cv_c_compiler_gnu+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330 #ifndef __GNUC__
3331 choke me
3332 #endif
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_compiler_gnu=yes
3340 else
3341 ac_compiler_gnu=no
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3345
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3349 if test $ac_compiler_gnu = yes; then
3350 GCC=yes
3351 else
3352 GCC=
3353 fi
3354 ac_test_CFLAGS=${CFLAGS+set}
3355 ac_save_CFLAGS=$CFLAGS
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3357 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3358 if ${ac_cv_prog_cc_g+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_save_c_werror_flag=$ac_c_werror_flag
3362 ac_c_werror_flag=yes
3363 ac_cv_prog_cc_g=no
3364 CFLAGS="-g"
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_prog_cc_g=yes
3378 else
3379 CFLAGS=""
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392
3393 else
3394 ac_c_werror_flag=$ac_save_c_werror_flag
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3418 $as_echo "$ac_cv_prog_cc_g" >&6; }
3419 if test "$ac_test_CFLAGS" = set; then
3420 CFLAGS=$ac_save_CFLAGS
3421 elif test $ac_cv_prog_cc_g = yes; then
3422 if test "$GCC" = yes; then
3423 CFLAGS="-g -O2"
3424 else
3425 CFLAGS="-g"
3426 fi
3427 else
3428 if test "$GCC" = yes; then
3429 CFLAGS="-O2"
3430 else
3431 CFLAGS=
3432 fi
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3435 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3436 if ${ac_cv_prog_cc_c89+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 ac_cv_prog_cc_c89=no
3440 ac_save_CC=$CC
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443 #include <stdarg.h>
3444 #include <stdio.h>
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3451 char **p;
3452 int i;
3453 {
3454 return p[i];
3455 }
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3457 {
3458 char *s;
3459 va_list v;
3460 va_start (v,p);
3461 s = g (p, va_arg (v,int));
3462 va_end (v);
3463 return s;
3464 }
3465
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3477 #define FOO(x) 'x'
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3484 int argc;
3485 char **argv;
3486 int
3487 main ()
3488 {
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 do
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3503 done
3504 rm -f conftest.$ac_ext
3505 CC=$ac_save_CC
3506
3507 fi
3508 # AC_CACHE_VAL
3509 case "x$ac_cv_prog_cc_c89" in
3510 x)
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3513 xno)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3516 *)
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3520 esac
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3522
3523 fi
3524
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531 depcc="$CC" am_compiler_list=
3532
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3534 $as_echo_n "checking dependency style of $depcc... " >&6; }
3535 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3539 # We make a subdir and do the tests there. Otherwise we can end up
3540 # making bogus files that we don't know about and never remove. For
3541 # instance it was reported that on HP-UX the gcc test will end up
3542 # making a dummy file named 'D' -- because '-MD' means "put the output
3543 # in D".
3544 rm -rf conftest.dir
3545 mkdir conftest.dir
3546 # Copy depcomp to subdir because otherwise we won't find it if we're
3547 # using a relative directory.
3548 cp "$am_depcomp" conftest.dir
3549 cd conftest.dir
3550 # We will build objects and dependencies in a subdirectory because
3551 # it helps to detect inapplicable dependency modes. For instance
3552 # both Tru64's cc and ICC support -MD to output dependencies as a
3553 # side effect of compilation, but ICC will put the dependencies in
3554 # the current directory while Tru64 will put them in the object
3555 # directory.
3556 mkdir sub
3557
3558 am_cv_CC_dependencies_compiler_type=none
3559 if test "$am_compiler_list" = ""; then
3560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 fi
3562 am__universal=false
3563 case " $depcc " in #(
3564 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3565 esac
3566
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3571 #
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3579 # Solaris 10 /bin/sh.
3580 echo '/* dummy */' > sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583
3584 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3585 # mode. It turns out that the SunPro C++ compiler does not properly
3586 # handle '-M -o', and we need to detect this. Also, some Intel
3587 # versions had trouble with output in subdirs.
3588 am__obj=sub/conftest.${OBJEXT-o}
3589 am__minus_obj="-o $am__obj"
3590 case $depmode in
3591 gcc)
3592 # This depmode causes a compiler race in universal mode.
3593 test "$am__universal" = false || continue
3594 ;;
3595 nosideeffect)
3596 # After this tag, mechanisms are not by side-effect, so they'll
3597 # only be used when explicitly requested.
3598 if test "x$enable_dependency_tracking" = xyes; then
3599 continue
3600 else
3601 break
3602 fi
3603 ;;
3604 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3605 # This compiler won't grok '-c -o', but also, the minuso test has
3606 # not run yet. These depmodes are late enough in the game, and
3607 # so weak that their functioning should not be impacted.
3608 am__obj=conftest.${OBJEXT-o}
3609 am__minus_obj=
3610 ;;
3611 none) break ;;
3612 esac
3613 if depmode=$depmode \
3614 source=sub/conftest.c object=$am__obj \
3615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3616 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3617 >/dev/null 2>conftest.err &&
3618 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3620 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3622 # icc doesn't choke on unknown options, it will just issue warnings
3623 # or remarks (even with -Werror). So we grep stderr for any message
3624 # that says an option was ignored or not supported.
3625 # When given -MP, icc 7.0 and 7.1 complain thusly:
3626 # icc: Command line warning: ignoring option '-M'; no argument required
3627 # The diagnosis changed in icc 8.0:
3628 # icc: Command line remark: option '-MP' not supported
3629 if (grep 'ignoring option' conftest.err ||
3630 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3631 am_cv_CC_dependencies_compiler_type=$depmode
3632 break
3633 fi
3634 fi
3635 done
3636
3637 cd ..
3638 rm -rf conftest.dir
3639 else
3640 am_cv_CC_dependencies_compiler_type=none
3641 fi
3642
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3645 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3646 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647
3648 if
3649 test "x$enable_dependency_tracking" != xno \
3650 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3651 am__fastdepCC_TRUE=
3652 am__fastdepCC_FALSE='#'
3653 else
3654 am__fastdepCC_TRUE='#'
3655 am__fastdepCC_FALSE=
3656 fi
3657
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3661 if ${ac_cv_prog_cc_c99+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 ac_cv_prog_cc_c99=no
3665 ac_save_CC=$CC
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668 #include <stdarg.h>
3669 #include <stdbool.h>
3670 #include <stdlib.h>
3671 #include <wchar.h>
3672 #include <stdio.h>
3673
3674 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3675 #define debug(...) fprintf (stderr, __VA_ARGS__)
3676 #define showlist(...) puts (#__VA_ARGS__)
3677 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3678 static void
3679 test_varargs_macros (void)
3680 {
3681 int x = 1234;
3682 int y = 5678;
3683 debug ("Flag");
3684 debug ("X = %d\n", x);
3685 showlist (The first, second, and third items.);
3686 report (x>y, "x is %d but y is %d", x, y);
3687 }
3688
3689 // Check long long types.
3690 #define BIG64 18446744073709551615ull
3691 #define BIG32 4294967295ul
3692 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3693 #if !BIG_OK
3694 your preprocessor is broken;
3695 #endif
3696 #if BIG_OK
3697 #else
3698 your preprocessor is broken;
3699 #endif
3700 static long long int bignum = -9223372036854775807LL;
3701 static unsigned long long int ubignum = BIG64;
3702
3703 struct incomplete_array
3704 {
3705 int datasize;
3706 double data[];
3707 };
3708
3709 struct named_init {
3710 int number;
3711 const wchar_t *name;
3712 double average;
3713 };
3714
3715 typedef const char *ccp;
3716
3717 static inline int
3718 test_restrict (ccp restrict text)
3719 {
3720 // See if C++-style comments work.
3721 // Iterate through items via the restricted pointer.
3722 // Also check for declarations in for loops.
3723 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3724 continue;
3725 return 0;
3726 }
3727
3728 // Check varargs and va_copy.
3729 static void
3730 test_varargs (const char *format, ...)
3731 {
3732 va_list args;
3733 va_start (args, format);
3734 va_list args_copy;
3735 va_copy (args_copy, args);
3736
3737 const char *str;
3738 int number;
3739 float fnumber;
3740
3741 while (*format)
3742 {
3743 switch (*format++)
3744 {
3745 case 's': // string
3746 str = va_arg (args_copy, const char *);
3747 break;
3748 case 'd': // int
3749 number = va_arg (args_copy, int);
3750 break;
3751 case 'f': // float
3752 fnumber = va_arg (args_copy, double);
3753 break;
3754 default:
3755 break;
3756 }
3757 }
3758 va_end (args_copy);
3759 va_end (args);
3760 }
3761
3762 int
3763 main ()
3764 {
3765
3766 // Check bool.
3767 _Bool success = false;
3768
3769 // Check restrict.
3770 if (test_restrict ("String literal") == 0)
3771 success = true;
3772 char *restrict newvar = "Another string";
3773
3774 // Check varargs.
3775 test_varargs ("s, d' f .", "string", 65, 34.234);
3776 test_varargs_macros ();
3777
3778 // Check flexible array members.
3779 struct incomplete_array *ia =
3780 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3781 ia->datasize = 10;
3782 for (int i = 0; i < ia->datasize; ++i)
3783 ia->data[i] = i * 1.234;
3784
3785 // Check named initializers.
3786 struct named_init ni = {
3787 .number = 34,
3788 .name = L"Test wide string",
3789 .average = 543.34343,
3790 };
3791
3792 ni.number = 58;
3793
3794 int dynamic_array[ni.number];
3795 dynamic_array[ni.number - 1] = 543;
3796
3797 // work around unused variable warnings
3798 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3799 || dynamic_array[ni.number - 1] != 543);
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3806 do
3807 CC="$ac_save_CC $ac_arg"
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_c99=$ac_arg
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext
3812 test "x$ac_cv_prog_cc_c99" != "xno" && break
3813 done
3814 rm -f conftest.$ac_ext
3815 CC=$ac_save_CC
3816
3817 fi
3818 # AC_CACHE_VAL
3819 case "x$ac_cv_prog_cc_c99" in
3820 x)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3822 $as_echo "none needed" >&6; } ;;
3823 xno)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3825 $as_echo "unsupported" >&6; } ;;
3826 *)
3827 CC="$CC $ac_cv_prog_cc_c99"
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3829 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3830 esac
3831 if test "x$ac_cv_prog_cc_c99" != xno; then :
3832
3833 fi
3834
3835
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3844 # On Suns, sometimes $CPP names a directory.
3845 if test -n "$CPP" && test -d "$CPP"; then
3846 CPP=
3847 fi
3848 if test -z "$CPP"; then
3849 if ${ac_cv_prog_CPP+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 # Double quotes because CPP needs to be expanded
3853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3854 do
3855 ac_preproc_ok=false
3856 for ac_c_preproc_warn_flag in '' yes
3857 do
3858 # Use a header file that comes with gcc, so configuring glibc
3859 # with a fresh cross-compiler works.
3860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3861 # <limits.h> exists even on freestanding compilers.
3862 # On the NeXT, cc -E runs the code through the compiler's parser,
3863 # not just through cpp. "Syntax error" is here to catch this case.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #ifdef __STDC__
3867 # include <limits.h>
3868 #else
3869 # include <assert.h>
3870 #endif
3871 Syntax error
3872 _ACEOF
3873 if ac_fn_c_try_cpp "$LINENO"; then :
3874
3875 else
3876 # Broken: fails on valid input.
3877 continue
3878 fi
3879 rm -f conftest.err conftest.i conftest.$ac_ext
3880
3881 # OK, works on sane cases. Now check whether nonexistent headers
3882 # can be detected and how.
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #include <ac_nonexistent.h>
3886 _ACEOF
3887 if ac_fn_c_try_cpp "$LINENO"; then :
3888 # Broken: success on invalid input.
3889 continue
3890 else
3891 # Passes both tests.
3892 ac_preproc_ok=:
3893 break
3894 fi
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3896
3897 done
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.i conftest.err conftest.$ac_ext
3900 if $ac_preproc_ok; then :
3901 break
3902 fi
3903
3904 done
3905 ac_cv_prog_CPP=$CPP
3906
3907 fi
3908 CPP=$ac_cv_prog_CPP
3909 else
3910 ac_cv_prog_CPP=$CPP
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3913 $as_echo "$CPP" >&6; }
3914 ac_preproc_ok=false
3915 for ac_c_preproc_warn_flag in '' yes
3916 do
3917 # Use a header file that comes with gcc, so configuring glibc
3918 # with a fresh cross-compiler works.
3919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3920 # <limits.h> exists even on freestanding compilers.
3921 # On the NeXT, cc -E runs the code through the compiler's parser,
3922 # not just through cpp. "Syntax error" is here to catch this case.
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925 #ifdef __STDC__
3926 # include <limits.h>
3927 #else
3928 # include <assert.h>
3929 #endif
3930 Syntax error
3931 _ACEOF
3932 if ac_fn_c_try_cpp "$LINENO"; then :
3933
3934 else
3935 # Broken: fails on valid input.
3936 continue
3937 fi
3938 rm -f conftest.err conftest.i conftest.$ac_ext
3939
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <ac_nonexistent.h>
3945 _ACEOF
3946 if ac_fn_c_try_cpp "$LINENO"; then :
3947 # Broken: success on invalid input.
3948 continue
3949 else
3950 # Passes both tests.
3951 ac_preproc_ok=:
3952 break
3953 fi
3954 rm -f conftest.err conftest.i conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.i conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then :
3960
3961 else
3962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details" "$LINENO" 5; }
3966 fi
3967
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3977 if ${ac_cv_path_GREP+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -z "$GREP"; then
3981 ac_path_GREP_found=false
3982 # Loop through the user's path and test for each of PROGNAME-LIST
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in grep ggrep; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3992 # Check for GNU ac_path_GREP and select it if it is found.
3993 # Check for GNU $ac_path_GREP
3994 case `"$ac_path_GREP" --version 2>&1` in
3995 *GNU*)
3996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3997 *)
3998 ac_count=0
3999 $as_echo_n 0123456789 >"conftest.in"
4000 while :
4001 do
4002 cat "conftest.in" "conftest.in" >"conftest.tmp"
4003 mv "conftest.tmp" "conftest.in"
4004 cp "conftest.in" "conftest.nl"
4005 $as_echo 'GREP' >> "conftest.nl"
4006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008 as_fn_arith $ac_count + 1 && ac_count=$as_val
4009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4010 # Best one so far, save it but keep looking for a better one
4011 ac_cv_path_GREP="$ac_path_GREP"
4012 ac_path_GREP_max=$ac_count
4013 fi
4014 # 10*(2^10) chars as input seems more than enough
4015 test $ac_count -gt 10 && break
4016 done
4017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018 esac
4019
4020 $ac_path_GREP_found && break 3
4021 done
4022 done
4023 done
4024 IFS=$as_save_IFS
4025 if test -z "$ac_cv_path_GREP"; then
4026 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4027 fi
4028 else
4029 ac_cv_path_GREP=$GREP
4030 fi
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4034 $as_echo "$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4036
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4039 $as_echo_n "checking for egrep... " >&6; }
4040 if ${ac_cv_path_EGREP+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
4046 if test -z "$EGREP"; then
4047 ac_path_EGREP_found=false
4048 # Loop through the user's path and test for each of PROGNAME-LIST
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_prog in egrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4058 # Check for GNU ac_path_EGREP and select it if it is found.
4059 # Check for GNU $ac_path_EGREP
4060 case `"$ac_path_EGREP" --version 2>&1` in
4061 *GNU*)
4062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4063 *)
4064 ac_count=0
4065 $as_echo_n 0123456789 >"conftest.in"
4066 while :
4067 do
4068 cat "conftest.in" "conftest.in" >"conftest.tmp"
4069 mv "conftest.tmp" "conftest.in"
4070 cp "conftest.in" "conftest.nl"
4071 $as_echo 'EGREP' >> "conftest.nl"
4072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074 as_fn_arith $ac_count + 1 && ac_count=$as_val
4075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_EGREP="$ac_path_EGREP"
4078 ac_path_EGREP_max=$ac_count
4079 fi
4080 # 10*(2^10) chars as input seems more than enough
4081 test $ac_count -gt 10 && break
4082 done
4083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 esac
4085
4086 $ac_path_EGREP_found && break 3
4087 done
4088 done
4089 done
4090 IFS=$as_save_IFS
4091 if test -z "$ac_cv_path_EGREP"; then
4092 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093 fi
4094 else
4095 ac_cv_path_EGREP=$EGREP
4096 fi
4097
4098 fi
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4101 $as_echo "$ac_cv_path_EGREP" >&6; }
4102 EGREP="$ac_cv_path_EGREP"
4103
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4106 $as_echo_n "checking for ANSI C header files... " >&6; }
4107 if ${ac_cv_header_stdc+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <stdlib.h>
4113 #include <stdarg.h>
4114 #include <string.h>
4115 #include <float.h>
4116
4117 int
4118 main ()
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_header_stdc=yes
4127 else
4128 ac_cv_header_stdc=no
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131
4132 if test $ac_cv_header_stdc = yes; then
4133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <string.h>
4137
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "memchr" >/dev/null 2>&1; then :
4141
4142 else
4143 ac_cv_header_stdc=no
4144 fi
4145 rm -f conftest*
4146
4147 fi
4148
4149 if test $ac_cv_header_stdc = yes; then
4150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <stdlib.h>
4154
4155 _ACEOF
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157 $EGREP "free" >/dev/null 2>&1; then :
4158
4159 else
4160 ac_cv_header_stdc=no
4161 fi
4162 rm -f conftest*
4163
4164 fi
4165
4166 if test $ac_cv_header_stdc = yes; then
4167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4168 if test "$cross_compiling" = yes; then :
4169 :
4170 else
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <ctype.h>
4174 #include <stdlib.h>
4175 #if ((' ' & 0x0FF) == 0x020)
4176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4178 #else
4179 # define ISLOWER(c) \
4180 (('a' <= (c) && (c) <= 'i') \
4181 || ('j' <= (c) && (c) <= 'r') \
4182 || ('s' <= (c) && (c) <= 'z'))
4183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4184 #endif
4185
4186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4187 int
4188 main ()
4189 {
4190 int i;
4191 for (i = 0; i < 256; i++)
4192 if (XOR (islower (i), ISLOWER (i))
4193 || toupper (i) != TOUPPER (i))
4194 return 2;
4195 return 0;
4196 }
4197 _ACEOF
4198 if ac_fn_c_try_run "$LINENO"; then :
4199
4200 else
4201 ac_cv_header_stdc=no
4202 fi
4203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4204 conftest.$ac_objext conftest.beam conftest.$ac_ext
4205 fi
4206
4207 fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4210 $as_echo "$ac_cv_header_stdc" >&6; }
4211 if test $ac_cv_header_stdc = yes; then
4212
4213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4214
4215 fi
4216
4217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4219 inttypes.h stdint.h unistd.h
4220 do :
4221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4223 "
4224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4225 cat >>confdefs.h <<_ACEOF
4226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4227 _ACEOF
4228
4229 fi
4230
4231 done
4232
4233
4234
4235
4236
4237
4238 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4239 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4240 CLANGCC="yes"
4241 else
4242 CLANGCC="no"
4243 fi
4244
4245 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4246 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4247 INTELCC="yes"
4248 else
4249 INTELCC="no"
4250 fi
4251
4252 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4253 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4254 SUNCC="yes"
4255 else
4256 SUNCC="no"
4257 fi
4258
4259
4260
4261
4262 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 case $PKG_CONFIG in
4272 [\\/]* | ?:[\\/]*)
4273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4274 ;;
4275 *)
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 ;;
4292 esac
4293 fi
4294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4295 if test -n "$PKG_CONFIG"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4297 $as_echo "$PKG_CONFIG" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304 fi
4305 if test -z "$ac_cv_path_PKG_CONFIG"; then
4306 ac_pt_PKG_CONFIG=$PKG_CONFIG
4307 # Extract the first word of "pkg-config", so it can be a program name with args.
4308 set dummy pkg-config; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 case $ac_pt_PKG_CONFIG in
4315 [\\/]* | ?:[\\/]*)
4316 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4317 ;;
4318 *)
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 ;;
4335 esac
4336 fi
4337 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4338 if test -n "$ac_pt_PKG_CONFIG"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4340 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 fi
4345
4346 if test "x$ac_pt_PKG_CONFIG" = x; then
4347 PKG_CONFIG=""
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 PKG_CONFIG=$ac_pt_PKG_CONFIG
4356 fi
4357 else
4358 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4359 fi
4360
4361 fi
4362 if test -n "$PKG_CONFIG"; then
4363 _pkg_min_version=0.9.0
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4365 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4366 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 PKG_CONFIG=""
4373 fi
4374
4375 fi
4376 # Make sure we can run config.sub.
4377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4381 $as_echo_n "checking build system type... " >&6; }
4382 if ${ac_cv_build+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 ac_build_alias=$build_alias
4386 test "x$ac_build_alias" = x &&
4387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4388 test "x$ac_build_alias" = x &&
4389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4395 $as_echo "$ac_cv_build" >&6; }
4396 case $ac_cv_build in
4397 *-*-*) ;;
4398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4399 esac
4400 build=$ac_cv_build
4401 ac_save_IFS=$IFS; IFS='-'
4402 set x $ac_cv_build
4403 shift
4404 build_cpu=$1
4405 build_vendor=$2
4406 shift; shift
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4409 build_os=$*
4410 IFS=$ac_save_IFS
4411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4412
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4415 $as_echo_n "checking host system type... " >&6; }
4416 if ${ac_cv_host+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test "x$host_alias" = x; then
4420 ac_cv_host=$ac_cv_build
4421 else
4422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4424 fi
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4428 $as_echo "$ac_cv_host" >&6; }
4429 case $ac_cv_host in
4430 *-*-*) ;;
4431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4432 esac
4433 host=$ac_cv_host
4434 ac_save_IFS=$IFS; IFS='-'
4435 set x $ac_cv_host
4436 shift
4437 host_cpu=$1
4438 host_vendor=$2
4439 shift; shift
4440 # Remember, the first character of IFS is used to create $*,
4441 # except with old shells:
4442 host_os=$*
4443 IFS=$ac_save_IFS
4444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4445
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4448 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4449 if ${ac_cv_path_SED+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4453 for ac_i in 1 2 3 4 5 6 7; do
4454 ac_script="$ac_script$as_nl$ac_script"
4455 done
4456 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4457 { ac_script=; unset ac_script;}
4458 if test -z "$SED"; then
4459 ac_path_SED_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in sed gsed; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4470 # Check for GNU ac_path_SED and select it if it is found.
4471 # Check for GNU $ac_path_SED
4472 case `"$ac_path_SED" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4475 *)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo '' >> "conftest.nl"
4484 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_SED_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_SED="$ac_path_SED"
4490 ac_path_SED_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498 $ac_path_SED_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_SED"; then
4504 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4505 fi
4506 else
4507 ac_cv_path_SED=$SED
4508 fi
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4512 $as_echo "$ac_cv_path_SED" >&6; }
4513 SED="$ac_cv_path_SED"
4514 rm -f conftest.sed
4515
4516
4517
4518
4519
4520
4521 # Check whether --enable-selective-werror was given.
4522 if test "${enable_selective_werror+set}" = set; then :
4523 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4524 else
4525 SELECTIVE_WERROR=yes
4526 fi
4527
4528
4529
4530
4531
4532 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4533 if test "x$SUNCC" = "xyes"; then
4534 BASE_CFLAGS="-v"
4535 else
4536 BASE_CFLAGS=""
4537 fi
4538
4539 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553 xorg_testset_save_CFLAGS="$CFLAGS"
4554
4555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 int i;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 xorg_cv_cc_flag_unknown_warning_option=yes
4568 else
4569 xorg_cv_cc_flag_unknown_warning_option=no
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4576 CFLAGS="$xorg_testset_save_CFLAGS"
4577 fi
4578
4579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4582 fi
4583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 int i;
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 xorg_cv_cc_flag_unused_command_line_argument=yes
4595 else
4596 xorg_cv_cc_flag_unused_command_line_argument=no
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4603 CFLAGS="$xorg_testset_save_CFLAGS"
4604 fi
4605
4606 found="no"
4607
4608 if test $found = "no" ; then
4609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 fi
4612
4613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4615 fi
4616
4617 CFLAGS="$CFLAGS -Wall"
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4620 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4621 cacheid=xorg_cv_cc_flag__Wall
4622 if eval \${$cacheid+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 int i;
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_link "$LINENO"; then :
4637 eval $cacheid=yes
4638 else
4639 eval $cacheid=no
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext \
4642 conftest$ac_exeext conftest.$ac_ext
4643 fi
4644
4645
4646 CFLAGS="$xorg_testset_save_CFLAGS"
4647
4648 eval supported=\$$cacheid
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4650 $as_echo "$supported" >&6; }
4651 if test "$supported" = "yes" ; then
4652 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4653 found="yes"
4654 fi
4655 fi
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671 xorg_testset_save_CFLAGS="$CFLAGS"
4672
4673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 int i;
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 xorg_cv_cc_flag_unknown_warning_option=yes
4686 else
4687 xorg_cv_cc_flag_unknown_warning_option=no
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4694 CFLAGS="$xorg_testset_save_CFLAGS"
4695 fi
4696
4697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4700 fi
4701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 int i;
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 xorg_cv_cc_flag_unused_command_line_argument=yes
4713 else
4714 xorg_cv_cc_flag_unused_command_line_argument=no
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4721 CFLAGS="$xorg_testset_save_CFLAGS"
4722 fi
4723
4724 found="no"
4725
4726 if test $found = "no" ; then
4727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729 fi
4730
4731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4733 fi
4734
4735 CFLAGS="$CFLAGS -Wpointer-arith"
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4738 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4739 cacheid=xorg_cv_cc_flag__Wpointer_arith
4740 if eval \${$cacheid+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 int i;
4746 int
4747 main ()
4748 {
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_link "$LINENO"; then :
4755 eval $cacheid=yes
4756 else
4757 eval $cacheid=no
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext \
4760 conftest$ac_exeext conftest.$ac_ext
4761 fi
4762
4763
4764 CFLAGS="$xorg_testset_save_CFLAGS"
4765
4766 eval supported=\$$cacheid
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4768 $as_echo "$supported" >&6; }
4769 if test "$supported" = "yes" ; then
4770 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4771 found="yes"
4772 fi
4773 fi
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789 xorg_testset_save_CFLAGS="$CFLAGS"
4790
4791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 int i;
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 xorg_cv_cc_flag_unknown_warning_option=yes
4804 else
4805 xorg_cv_cc_flag_unknown_warning_option=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4812 CFLAGS="$xorg_testset_save_CFLAGS"
4813 fi
4814
4815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4818 fi
4819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 int i;
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 xorg_cv_cc_flag_unused_command_line_argument=yes
4831 else
4832 xorg_cv_cc_flag_unused_command_line_argument=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4839 CFLAGS="$xorg_testset_save_CFLAGS"
4840 fi
4841
4842 found="no"
4843
4844 if test $found = "no" ; then
4845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847 fi
4848
4849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4851 fi
4852
4853 CFLAGS="$CFLAGS -Wmissing-declarations"
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4856 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4857 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4858 if eval \${$cacheid+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 int i;
4864 int
4865 main ()
4866 {
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_link "$LINENO"; then :
4873 eval $cacheid=yes
4874 else
4875 eval $cacheid=no
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4879 fi
4880
4881
4882 CFLAGS="$xorg_testset_save_CFLAGS"
4883
4884 eval supported=\$$cacheid
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4886 $as_echo "$supported" >&6; }
4887 if test "$supported" = "yes" ; then
4888 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4889 found="yes"
4890 fi
4891 fi
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 xorg_testset_save_CFLAGS="$CFLAGS"
4908
4909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 int i;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 xorg_cv_cc_flag_unknown_warning_option=yes
4922 else
4923 xorg_cv_cc_flag_unknown_warning_option=no
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4930 CFLAGS="$xorg_testset_save_CFLAGS"
4931 fi
4932
4933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4936 fi
4937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 int i;
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 xorg_cv_cc_flag_unused_command_line_argument=yes
4949 else
4950 xorg_cv_cc_flag_unused_command_line_argument=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958 fi
4959
4960 found="no"
4961
4962 if test $found = "no" ; then
4963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 fi
4966
4967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969 fi
4970
4971 CFLAGS="$CFLAGS -Wformat=2"
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4974 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4975 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4976 if eval \${$cacheid+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981 int i;
4982 int
4983 main ()
4984 {
4985
4986 ;
4987 return 0;
4988 }
4989 _ACEOF
4990 if ac_fn_c_try_link "$LINENO"; then :
4991 eval $cacheid=yes
4992 else
4993 eval $cacheid=no
4994 fi
4995 rm -f core conftest.err conftest.$ac_objext \
4996 conftest$ac_exeext conftest.$ac_ext
4997 fi
4998
4999
5000 CFLAGS="$xorg_testset_save_CFLAGS"
5001
5002 eval supported=\$$cacheid
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5004 $as_echo "$supported" >&6; }
5005 if test "$supported" = "yes" ; then
5006 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5007 found="yes"
5008 fi
5009 fi
5010
5011 if test $found = "no" ; then
5012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 fi
5015
5016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018 fi
5019
5020 CFLAGS="$CFLAGS -Wformat"
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5023 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5024 cacheid=xorg_cv_cc_flag__Wformat
5025 if eval \${$cacheid+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_link "$LINENO"; then :
5040 eval $cacheid=yes
5041 else
5042 eval $cacheid=no
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5046 fi
5047
5048
5049 CFLAGS="$xorg_testset_save_CFLAGS"
5050
5051 eval supported=\$$cacheid
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5053 $as_echo "$supported" >&6; }
5054 if test "$supported" = "yes" ; then
5055 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5056 found="yes"
5057 fi
5058 fi
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 xorg_testset_save_CFLAGS="$CFLAGS"
5077
5078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 int i;
5088 _ACEOF
5089 if ac_fn_c_try_compile "$LINENO"; then :
5090 xorg_cv_cc_flag_unknown_warning_option=yes
5091 else
5092 xorg_cv_cc_flag_unknown_warning_option=no
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5099 CFLAGS="$xorg_testset_save_CFLAGS"
5100 fi
5101
5102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 fi
5106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 int i;
5115 _ACEOF
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 xorg_cv_cc_flag_unused_command_line_argument=yes
5118 else
5119 xorg_cv_cc_flag_unused_command_line_argument=no
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5126 CFLAGS="$xorg_testset_save_CFLAGS"
5127 fi
5128
5129 found="no"
5130
5131 if test $found = "no" ; then
5132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134 fi
5135
5136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5138 fi
5139
5140 CFLAGS="$CFLAGS -Wstrict-prototypes"
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5143 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5144 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5145 if eval \${$cacheid+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 int i;
5151 int
5152 main ()
5153 {
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 if ac_fn_c_try_link "$LINENO"; then :
5160 eval $cacheid=yes
5161 else
5162 eval $cacheid=no
5163 fi
5164 rm -f core conftest.err conftest.$ac_objext \
5165 conftest$ac_exeext conftest.$ac_ext
5166 fi
5167
5168
5169 CFLAGS="$xorg_testset_save_CFLAGS"
5170
5171 eval supported=\$$cacheid
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5173 $as_echo "$supported" >&6; }
5174 if test "$supported" = "yes" ; then
5175 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5176 found="yes"
5177 fi
5178 fi
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 xorg_testset_save_CFLAGS="$CFLAGS"
5195
5196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 int i;
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 xorg_cv_cc_flag_unknown_warning_option=yes
5209 else
5210 xorg_cv_cc_flag_unknown_warning_option=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5218 fi
5219
5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223 fi
5224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 int i;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 xorg_cv_cc_flag_unused_command_line_argument=yes
5236 else
5237 xorg_cv_cc_flag_unused_command_line_argument=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5244 CFLAGS="$xorg_testset_save_CFLAGS"
5245 fi
5246
5247 found="no"
5248
5249 if test $found = "no" ; then
5250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252 fi
5253
5254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5256 fi
5257
5258 CFLAGS="$CFLAGS -Wmissing-prototypes"
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5261 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5262 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5263 if eval \${$cacheid+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 int i;
5269 int
5270 main ()
5271 {
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_link "$LINENO"; then :
5278 eval $cacheid=yes
5279 else
5280 eval $cacheid=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
5284 fi
5285
5286
5287 CFLAGS="$xorg_testset_save_CFLAGS"
5288
5289 eval supported=\$$cacheid
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5291 $as_echo "$supported" >&6; }
5292 if test "$supported" = "yes" ; then
5293 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5294 found="yes"
5295 fi
5296 fi
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 xorg_testset_save_CFLAGS="$CFLAGS"
5313
5314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 int i;
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 xorg_cv_cc_flag_unknown_warning_option=yes
5327 else
5328 xorg_cv_cc_flag_unknown_warning_option=no
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5335 CFLAGS="$xorg_testset_save_CFLAGS"
5336 fi
5337
5338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5341 fi
5342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 int i;
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353 xorg_cv_cc_flag_unused_command_line_argument=yes
5354 else
5355 xorg_cv_cc_flag_unused_command_line_argument=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5362 CFLAGS="$xorg_testset_save_CFLAGS"
5363 fi
5364
5365 found="no"
5366
5367 if test $found = "no" ; then
5368 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 fi
5371
5372 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374 fi
5375
5376 CFLAGS="$CFLAGS -Wnested-externs"
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5379 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5380 cacheid=xorg_cv_cc_flag__Wnested_externs
5381 if eval \${$cacheid+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 int i;
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"; then :
5396 eval $cacheid=yes
5397 else
5398 eval $cacheid=no
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402 fi
5403
5404
5405 CFLAGS="$xorg_testset_save_CFLAGS"
5406
5407 eval supported=\$$cacheid
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409 $as_echo "$supported" >&6; }
5410 if test "$supported" = "yes" ; then
5411 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5412 found="yes"
5413 fi
5414 fi
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 xorg_testset_save_CFLAGS="$CFLAGS"
5431
5432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 int i;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 xorg_cv_cc_flag_unknown_warning_option=yes
5445 else
5446 xorg_cv_cc_flag_unknown_warning_option=no
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5453 CFLAGS="$xorg_testset_save_CFLAGS"
5454 fi
5455
5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459 fi
5460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 int i;
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 xorg_cv_cc_flag_unused_command_line_argument=yes
5472 else
5473 xorg_cv_cc_flag_unused_command_line_argument=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5480 CFLAGS="$xorg_testset_save_CFLAGS"
5481 fi
5482
5483 found="no"
5484
5485 if test $found = "no" ; then
5486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 fi
5489
5490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5492 fi
5493
5494 CFLAGS="$CFLAGS -Wbad-function-cast"
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5497 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5498 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5499 if eval \${$cacheid+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 int i;
5505 int
5506 main ()
5507 {
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514 eval $cacheid=yes
5515 else
5516 eval $cacheid=no
5517 fi
5518 rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520 fi
5521
5522
5523 CFLAGS="$xorg_testset_save_CFLAGS"
5524
5525 eval supported=\$$cacheid
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5527 $as_echo "$supported" >&6; }
5528 if test "$supported" = "yes" ; then
5529 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5530 found="yes"
5531 fi
5532 fi
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548 xorg_testset_save_CFLAGS="$CFLAGS"
5549
5550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 int i;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 xorg_cv_cc_flag_unknown_warning_option=yes
5563 else
5564 xorg_cv_cc_flag_unknown_warning_option=no
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5571 CFLAGS="$xorg_testset_save_CFLAGS"
5572 fi
5573
5574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577 fi
5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 int i;
5587 _ACEOF
5588 if ac_fn_c_try_compile "$LINENO"; then :
5589 xorg_cv_cc_flag_unused_command_line_argument=yes
5590 else
5591 xorg_cv_cc_flag_unused_command_line_argument=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5598 CFLAGS="$xorg_testset_save_CFLAGS"
5599 fi
5600
5601 found="no"
5602
5603 if test $found = "no" ; then
5604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 fi
5607
5608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5610 fi
5611
5612 CFLAGS="$CFLAGS -Wold-style-definition"
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5615 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5616 cacheid=xorg_cv_cc_flag__Wold_style_definition
5617 if eval \${$cacheid+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 eval $cacheid=yes
5633 else
5634 eval $cacheid=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 fi
5639
5640
5641 CFLAGS="$xorg_testset_save_CFLAGS"
5642
5643 eval supported=\$$cacheid
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5645 $as_echo "$supported" >&6; }
5646 if test "$supported" = "yes" ; then
5647 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5648 found="yes"
5649 fi
5650 fi
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 xorg_testset_save_CFLAGS="$CFLAGS"
5667
5668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 int i;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 xorg_cv_cc_flag_unknown_warning_option=yes
5681 else
5682 xorg_cv_cc_flag_unknown_warning_option=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5689 CFLAGS="$xorg_testset_save_CFLAGS"
5690 fi
5691
5692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5695 fi
5696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 int i;
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 xorg_cv_cc_flag_unused_command_line_argument=yes
5708 else
5709 xorg_cv_cc_flag_unused_command_line_argument=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717 fi
5718
5719 found="no"
5720
5721 if test $found = "no" ; then
5722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724 fi
5725
5726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5728 fi
5729
5730 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5733 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5734 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5735 if eval \${$cacheid+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 int i;
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 if ac_fn_c_try_link "$LINENO"; then :
5750 eval $cacheid=yes
5751 else
5752 eval $cacheid=no
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext \
5755 conftest$ac_exeext conftest.$ac_ext
5756 fi
5757
5758
5759 CFLAGS="$xorg_testset_save_CFLAGS"
5760
5761 eval supported=\$$cacheid
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5763 $as_echo "$supported" >&6; }
5764 if test "$supported" = "yes" ; then
5765 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5766 found="yes"
5767 fi
5768 fi
5769
5770
5771
5772
5773
5774 # This chunk adds additional warnings that could catch undesired effects.
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 xorg_testset_save_CFLAGS="$CFLAGS"
5789
5790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5793 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5794 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 int i;
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 xorg_cv_cc_flag_unknown_warning_option=yes
5803 else
5804 xorg_cv_cc_flag_unknown_warning_option=no
5805 fi
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5809 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5811 CFLAGS="$xorg_testset_save_CFLAGS"
5812 fi
5813
5814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817 fi
5818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5820 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5821 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"; then :
5829 xorg_cv_cc_flag_unused_command_line_argument=yes
5830 else
5831 xorg_cv_cc_flag_unused_command_line_argument=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5836 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5838 CFLAGS="$xorg_testset_save_CFLAGS"
5839 fi
5840
5841 found="no"
5842
5843 if test $found = "no" ; then
5844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 fi
5847
5848 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5850 fi
5851
5852 CFLAGS="$CFLAGS -Wunused"
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5855 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5856 cacheid=xorg_cv_cc_flag__Wunused
5857 if eval \${$cacheid+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 int
5864 main ()
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_link "$LINENO"; then :
5872 eval $cacheid=yes
5873 else
5874 eval $cacheid=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 fi
5879
5880
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882
5883 eval supported=\$$cacheid
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5885 $as_echo "$supported" >&6; }
5886 if test "$supported" = "yes" ; then
5887 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5888 found="yes"
5889 fi
5890 fi
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906 xorg_testset_save_CFLAGS="$CFLAGS"
5907
5908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 int i;
5918 _ACEOF
5919 if ac_fn_c_try_compile "$LINENO"; then :
5920 xorg_cv_cc_flag_unknown_warning_option=yes
5921 else
5922 xorg_cv_cc_flag_unknown_warning_option=no
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930 fi
5931
5932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 fi
5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 int i;
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 xorg_cv_cc_flag_unused_command_line_argument=yes
5948 else
5949 xorg_cv_cc_flag_unused_command_line_argument=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957 fi
5958
5959 found="no"
5960
5961 if test $found = "no" ; then
5962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 fi
5965
5966 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5968 fi
5969
5970 CFLAGS="$CFLAGS -Wuninitialized"
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5973 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5974 cacheid=xorg_cv_cc_flag__Wuninitialized
5975 if eval \${$cacheid+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 int i;
5981 int
5982 main ()
5983 {
5984
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 if ac_fn_c_try_link "$LINENO"; then :
5990 eval $cacheid=yes
5991 else
5992 eval $cacheid=no
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext \
5995 conftest$ac_exeext conftest.$ac_ext
5996 fi
5997
5998
5999 CFLAGS="$xorg_testset_save_CFLAGS"
6000
6001 eval supported=\$$cacheid
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6003 $as_echo "$supported" >&6; }
6004 if test "$supported" = "yes" ; then
6005 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6006 found="yes"
6007 fi
6008 fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 xorg_testset_save_CFLAGS="$CFLAGS"
6025
6026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6030 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 int i;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6038 xorg_cv_cc_flag_unknown_warning_option=yes
6039 else
6040 xorg_cv_cc_flag_unknown_warning_option=no
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6045 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6047 CFLAGS="$xorg_testset_save_CFLAGS"
6048 fi
6049
6050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6053 fi
6054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6056 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6057 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 _ACEOF
6064 if ac_fn_c_try_compile "$LINENO"; then :
6065 xorg_cv_cc_flag_unused_command_line_argument=yes
6066 else
6067 xorg_cv_cc_flag_unused_command_line_argument=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6072 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075 fi
6076
6077 found="no"
6078
6079 if test $found = "no" ; then
6080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 fi
6083
6084 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086 fi
6087
6088 CFLAGS="$CFLAGS -Wshadow"
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6091 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6092 cacheid=xorg_cv_cc_flag__Wshadow
6093 if eval \${$cacheid+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 int i;
6099 int
6100 main ()
6101 {
6102
6103 ;
6104 return 0;
6105 }
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 eval $cacheid=yes
6109 else
6110 eval $cacheid=no
6111 fi
6112 rm -f core conftest.err conftest.$ac_objext \
6113 conftest$ac_exeext conftest.$ac_ext
6114 fi
6115
6116
6117 CFLAGS="$xorg_testset_save_CFLAGS"
6118
6119 eval supported=\$$cacheid
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6121 $as_echo "$supported" >&6; }
6122 if test "$supported" = "yes" ; then
6123 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6124 found="yes"
6125 fi
6126 fi
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 xorg_testset_save_CFLAGS="$CFLAGS"
6143
6144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6147 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6148 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 int i;
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"; then :
6156 xorg_cv_cc_flag_unknown_warning_option=yes
6157 else
6158 xorg_cv_cc_flag_unknown_warning_option=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6163 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6165 CFLAGS="$xorg_testset_save_CFLAGS"
6166 fi
6167
6168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171 fi
6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6174 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6175 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 xorg_cv_cc_flag_unused_command_line_argument=yes
6184 else
6185 xorg_cv_cc_flag_unused_command_line_argument=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6190 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193 fi
6194
6195 found="no"
6196
6197 if test $found = "no" ; then
6198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 fi
6201
6202 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204 fi
6205
6206 CFLAGS="$CFLAGS -Wcast-qual"
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6209 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6210 cacheid=xorg_cv_cc_flag__Wcast_qual
6211 if eval \${$cacheid+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 int i;
6217 int
6218 main ()
6219 {
6220
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 eval $cacheid=yes
6227 else
6228 eval $cacheid=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 fi
6233
6234
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6236
6237 eval supported=\$$cacheid
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6239 $as_echo "$supported" >&6; }
6240 if test "$supported" = "yes" ; then
6241 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6242 found="yes"
6243 fi
6244 fi
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260 xorg_testset_save_CFLAGS="$CFLAGS"
6261
6262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 int i;
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274 xorg_cv_cc_flag_unknown_warning_option=yes
6275 else
6276 xorg_cv_cc_flag_unknown_warning_option=no
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6283 CFLAGS="$xorg_testset_save_CFLAGS"
6284 fi
6285
6286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289 fi
6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 int i;
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 xorg_cv_cc_flag_unused_command_line_argument=yes
6302 else
6303 xorg_cv_cc_flag_unused_command_line_argument=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311 fi
6312
6313 found="no"
6314
6315 if test $found = "no" ; then
6316 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 fi
6319
6320 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322 fi
6323
6324 CFLAGS="$CFLAGS -Wmissing-noreturn"
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6327 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6328 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6329 if eval \${$cacheid+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 int i;
6335 int
6336 main ()
6337 {
6338
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_link "$LINENO"; then :
6344 eval $cacheid=yes
6345 else
6346 eval $cacheid=no
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext \
6349 conftest$ac_exeext conftest.$ac_ext
6350 fi
6351
6352
6353 CFLAGS="$xorg_testset_save_CFLAGS"
6354
6355 eval supported=\$$cacheid
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6357 $as_echo "$supported" >&6; }
6358 if test "$supported" = "yes" ; then
6359 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6360 found="yes"
6361 fi
6362 fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 xorg_testset_save_CFLAGS="$CFLAGS"
6379
6380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 int i;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 xorg_cv_cc_flag_unknown_warning_option=yes
6393 else
6394 xorg_cv_cc_flag_unknown_warning_option=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6401 CFLAGS="$xorg_testset_save_CFLAGS"
6402 fi
6403
6404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407 fi
6408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 xorg_cv_cc_flag_unused_command_line_argument=yes
6420 else
6421 xorg_cv_cc_flag_unused_command_line_argument=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429 fi
6430
6431 found="no"
6432
6433 if test $found = "no" ; then
6434 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 fi
6437
6438 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440 fi
6441
6442 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6445 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6446 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6447 if eval \${$cacheid+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 int i;
6453 int
6454 main ()
6455 {
6456
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_link "$LINENO"; then :
6462 eval $cacheid=yes
6463 else
6464 eval $cacheid=no
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6468 fi
6469
6470
6471 CFLAGS="$xorg_testset_save_CFLAGS"
6472
6473 eval supported=\$$cacheid
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6475 $as_echo "$supported" >&6; }
6476 if test "$supported" = "yes" ; then
6477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6478 found="yes"
6479 fi
6480 fi
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496 xorg_testset_save_CFLAGS="$CFLAGS"
6497
6498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 xorg_cv_cc_flag_unknown_warning_option=yes
6511 else
6512 xorg_cv_cc_flag_unknown_warning_option=no
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 fi
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6519 CFLAGS="$xorg_testset_save_CFLAGS"
6520 fi
6521
6522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525 fi
6526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 int i;
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 xorg_cv_cc_flag_unused_command_line_argument=yes
6538 else
6539 xorg_cv_cc_flag_unused_command_line_argument=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547 fi
6548
6549 found="no"
6550
6551 if test $found = "no" ; then
6552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 fi
6555
6556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558 fi
6559
6560 CFLAGS="$CFLAGS -Wredundant-decls"
6561
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6563 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6564 cacheid=xorg_cv_cc_flag__Wredundant_decls
6565 if eval \${$cacheid+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 int i;
6571 int
6572 main ()
6573 {
6574
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"; then :
6580 eval $cacheid=yes
6581 else
6582 eval $cacheid=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 fi
6587
6588
6589 CFLAGS="$xorg_testset_save_CFLAGS"
6590
6591 eval supported=\$$cacheid
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6593 $as_echo "$supported" >&6; }
6594 if test "$supported" = "yes" ; then
6595 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6596 found="yes"
6597 fi
6598 fi
6599
6600
6601
6602 # These are currently disabled because they are noisy. They will be enabled
6603 # in the future once the codebase is sufficiently modernized to silence
6604 # them. For now, I don't want them to drown out the other warnings.
6605 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6606 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6607 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6608
6609 # Turn some warnings into errors, so we don't accidently get successful builds
6610 # when there are problems that should be fixed.
6611
6612 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6641 else
6642 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650 fi
6651
6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 fi
6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 xorg_cv_cc_flag_unused_command_line_argument=yes
6668 else
6669 xorg_cv_cc_flag_unused_command_line_argument=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677 fi
6678
6679 found="no"
6680
6681 if test $found = "no" ; then
6682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 fi
6685
6686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688 fi
6689
6690 CFLAGS="$CFLAGS -Werror=implicit"
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6693 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6694 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6695 if eval \${$cacheid+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 eval $cacheid=yes
6711 else
6712 eval $cacheid=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 fi
6717
6718
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721 eval supported=\$$cacheid
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723 $as_echo "$supported" >&6; }
6724 if test "$supported" = "yes" ; then
6725 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6726 found="yes"
6727 fi
6728 fi
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6742 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6743 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6744 if eval \${$cacheid+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 eval $cacheid=yes
6760 else
6761 eval $cacheid=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770 eval supported=\$$cacheid
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772 $as_echo "$supported" >&6; }
6773 if test "$supported" = "yes" ; then
6774 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6775 found="yes"
6776 fi
6777 fi
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 xorg_testset_save_CFLAGS="$CFLAGS"
6794
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 xorg_cv_cc_flag_unknown_warning_option=yes
6808 else
6809 xorg_cv_cc_flag_unknown_warning_option=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 fi
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 xorg_cv_cc_flag_unused_command_line_argument=yes
6835 else
6836 xorg_cv_cc_flag_unused_command_line_argument=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6843 CFLAGS="$xorg_testset_save_CFLAGS"
6844 fi
6845
6846 found="no"
6847
6848 if test $found = "no" ; then
6849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851 fi
6852
6853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6855 fi
6856
6857 CFLAGS="$CFLAGS -Werror=nonnull"
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6860 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6861 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6862 if eval \${$cacheid+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int i;
6868 int
6869 main ()
6870 {
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 eval $cacheid=yes
6878 else
6879 eval $cacheid=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 fi
6884
6885
6886 CFLAGS="$xorg_testset_save_CFLAGS"
6887
6888 eval supported=\$$cacheid
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6890 $as_echo "$supported" >&6; }
6891 if test "$supported" = "yes" ; then
6892 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6893 found="yes"
6894 fi
6895 fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911 xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 int i;
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 xorg_cv_cc_flag_unknown_warning_option=yes
6926 else
6927 xorg_cv_cc_flag_unknown_warning_option=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934 CFLAGS="$xorg_testset_save_CFLAGS"
6935 fi
6936
6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 fi
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 int i;
6950 _ACEOF
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 xorg_cv_cc_flag_unused_command_line_argument=yes
6953 else
6954 xorg_cv_cc_flag_unused_command_line_argument=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962 fi
6963
6964 found="no"
6965
6966 if test $found = "no" ; then
6967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 fi
6970
6971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 fi
6974
6975 CFLAGS="$CFLAGS -Werror=init-self"
6976
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6978 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6979 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6980 if eval \${$cacheid+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 int i;
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 eval $cacheid=yes
6996 else
6997 eval $cacheid=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002
7003
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006 eval supported=\$$cacheid
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008 $as_echo "$supported" >&6; }
7009 if test "$supported" = "yes" ; then
7010 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7011 found="yes"
7012 fi
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 int i;
7041 _ACEOF
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 xorg_cv_cc_flag_unknown_warning_option=yes
7044 else
7045 xorg_cv_cc_flag_unknown_warning_option=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7053 fi
7054
7055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058 fi
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 int i;
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 xorg_cv_cc_flag_unused_command_line_argument=yes
7071 else
7072 xorg_cv_cc_flag_unused_command_line_argument=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080 fi
7081
7082 found="no"
7083
7084 if test $found = "no" ; then
7085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 fi
7088
7089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091 fi
7092
7093 CFLAGS="$CFLAGS -Werror=main"
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7096 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7097 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7098 if eval \${$cacheid+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 int i;
7104 int
7105 main ()
7106 {
7107
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113 eval $cacheid=yes
7114 else
7115 eval $cacheid=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7119 fi
7120
7121
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7123
7124 eval supported=\$$cacheid
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126 $as_echo "$supported" >&6; }
7127 if test "$supported" = "yes" ; then
7128 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7129 found="yes"
7130 fi
7131 fi
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147 xorg_testset_save_CFLAGS="$CFLAGS"
7148
7149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int i;
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 xorg_cv_cc_flag_unknown_warning_option=yes
7162 else
7163 xorg_cv_cc_flag_unknown_warning_option=no
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7170 CFLAGS="$xorg_testset_save_CFLAGS"
7171 fi
7172
7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176 fi
7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 int i;
7186 _ACEOF
7187 if ac_fn_c_try_compile "$LINENO"; then :
7188 xorg_cv_cc_flag_unused_command_line_argument=yes
7189 else
7190 xorg_cv_cc_flag_unused_command_line_argument=no
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7197 CFLAGS="$xorg_testset_save_CFLAGS"
7198 fi
7199
7200 found="no"
7201
7202 if test $found = "no" ; then
7203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 fi
7206
7207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7209 fi
7210
7211 CFLAGS="$CFLAGS -Werror=missing-braces"
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7214 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7215 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7216 if eval \${$cacheid+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 int i;
7222 int
7223 main ()
7224 {
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"; then :
7231 eval $cacheid=yes
7232 else
7233 eval $cacheid=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 fi
7238
7239
7240 CFLAGS="$xorg_testset_save_CFLAGS"
7241
7242 eval supported=\$$cacheid
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7244 $as_echo "$supported" >&6; }
7245 if test "$supported" = "yes" ; then
7246 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7247 found="yes"
7248 fi
7249 fi
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 xorg_testset_save_CFLAGS="$CFLAGS"
7266
7267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 xorg_cv_cc_flag_unknown_warning_option=yes
7280 else
7281 xorg_cv_cc_flag_unknown_warning_option=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7289 fi
7290
7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 fi
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unused_command_line_argument=yes
7307 else
7308 xorg_cv_cc_flag_unused_command_line_argument=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 found="no"
7319
7320 if test $found = "no" ; then
7321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 fi
7324
7325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327 fi
7328
7329 CFLAGS="$CFLAGS -Werror=sequence-point"
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7332 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7333 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7334 if eval \${$cacheid+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 int i;
7340 int
7341 main ()
7342 {
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 eval $cacheid=yes
7350 else
7351 eval $cacheid=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 fi
7356
7357
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7359
7360 eval supported=\$$cacheid
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7362 $as_echo "$supported" >&6; }
7363 if test "$supported" = "yes" ; then
7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7365 found="yes"
7366 fi
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 xorg_testset_save_CFLAGS="$CFLAGS"
7384
7385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 int i;
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"; then :
7397 xorg_cv_cc_flag_unknown_warning_option=yes
7398 else
7399 xorg_cv_cc_flag_unknown_warning_option=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7406 CFLAGS="$xorg_testset_save_CFLAGS"
7407 fi
7408
7409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 fi
7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 xorg_cv_cc_flag_unused_command_line_argument=yes
7425 else
7426 xorg_cv_cc_flag_unused_command_line_argument=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 found="no"
7437
7438 if test $found = "no" ; then
7439 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 fi
7442
7443 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445 fi
7446
7447 CFLAGS="$CFLAGS -Werror=return-type"
7448
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7450 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7451 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7452 if eval \${$cacheid+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 int i;
7458 int
7459 main ()
7460 {
7461
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467 eval $cacheid=yes
7468 else
7469 eval $cacheid=no
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 fi
7474
7475
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478 eval supported=\$$cacheid
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480 $as_echo "$supported" >&6; }
7481 if test "$supported" = "yes" ; then
7482 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7483 found="yes"
7484 fi
7485 fi
7486
7487 if test $found = "no" ; then
7488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 fi
7491
7492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494 fi
7495
7496 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7499 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7500 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7501 if eval \${$cacheid+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 int
7508 main ()
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 eval $cacheid=yes
7517 else
7518 eval $cacheid=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 fi
7523
7524
7525 CFLAGS="$xorg_testset_save_CFLAGS"
7526
7527 eval supported=\$$cacheid
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7529 $as_echo "$supported" >&6; }
7530 if test "$supported" = "yes" ; then
7531 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7532 found="yes"
7533 fi
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 xorg_testset_save_CFLAGS="$CFLAGS"
7551
7552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 int i;
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564 xorg_cv_cc_flag_unknown_warning_option=yes
7565 else
7566 xorg_cv_cc_flag_unknown_warning_option=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7573 CFLAGS="$xorg_testset_save_CFLAGS"
7574 fi
7575
7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579 fi
7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 int i;
7589 _ACEOF
7590 if ac_fn_c_try_compile "$LINENO"; then :
7591 xorg_cv_cc_flag_unused_command_line_argument=yes
7592 else
7593 xorg_cv_cc_flag_unused_command_line_argument=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7600 CFLAGS="$xorg_testset_save_CFLAGS"
7601 fi
7602
7603 found="no"
7604
7605 if test $found = "no" ; then
7606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608 fi
7609
7610 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612 fi
7613
7614 CFLAGS="$CFLAGS -Werror=trigraphs"
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7617 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7618 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7619 if eval \${$cacheid+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 int i;
7625 int
7626 main ()
7627 {
7628
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_link "$LINENO"; then :
7634 eval $cacheid=yes
7635 else
7636 eval $cacheid=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640 fi
7641
7642
7643 CFLAGS="$xorg_testset_save_CFLAGS"
7644
7645 eval supported=\$$cacheid
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7647 $as_echo "$supported" >&6; }
7648 if test "$supported" = "yes" ; then
7649 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7650 found="yes"
7651 fi
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 xorg_testset_save_CFLAGS="$CFLAGS"
7669
7670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 int i;
7680 _ACEOF
7681 if ac_fn_c_try_compile "$LINENO"; then :
7682 xorg_cv_cc_flag_unknown_warning_option=yes
7683 else
7684 xorg_cv_cc_flag_unknown_warning_option=no
7685 fi
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7691 CFLAGS="$xorg_testset_save_CFLAGS"
7692 fi
7693
7694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697 fi
7698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 int i;
7707 _ACEOF
7708 if ac_fn_c_try_compile "$LINENO"; then :
7709 xorg_cv_cc_flag_unused_command_line_argument=yes
7710 else
7711 xorg_cv_cc_flag_unused_command_line_argument=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719 fi
7720
7721 found="no"
7722
7723 if test $found = "no" ; then
7724 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 fi
7727
7728 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 fi
7731
7732 CFLAGS="$CFLAGS -Werror=array-bounds"
7733
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7735 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7736 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7737 if eval \${$cacheid+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 int i;
7743 int
7744 main ()
7745 {
7746
7747 ;
7748 return 0;
7749 }
7750 _ACEOF
7751 if ac_fn_c_try_link "$LINENO"; then :
7752 eval $cacheid=yes
7753 else
7754 eval $cacheid=no
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 fi
7759
7760
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7762
7763 eval supported=\$$cacheid
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7765 $as_echo "$supported" >&6; }
7766 if test "$supported" = "yes" ; then
7767 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7768 found="yes"
7769 fi
7770 fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786 xorg_testset_save_CFLAGS="$CFLAGS"
7787
7788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 int i;
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"; then :
7800 xorg_cv_cc_flag_unknown_warning_option=yes
7801 else
7802 xorg_cv_cc_flag_unknown_warning_option=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810 fi
7811
7812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 fi
7816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 int i;
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827 xorg_cv_cc_flag_unused_command_line_argument=yes
7828 else
7829 xorg_cv_cc_flag_unused_command_line_argument=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7836 CFLAGS="$xorg_testset_save_CFLAGS"
7837 fi
7838
7839 found="no"
7840
7841 if test $found = "no" ; then
7842 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 fi
7845
7846 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 fi
7849
7850 CFLAGS="$CFLAGS -Werror=write-strings"
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7853 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7854 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7855 if eval \${$cacheid+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 int i;
7861 int
7862 main ()
7863 {
7864
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 eval $cacheid=yes
7871 else
7872 eval $cacheid=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 fi
7877
7878
7879 CFLAGS="$xorg_testset_save_CFLAGS"
7880
7881 eval supported=\$$cacheid
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7883 $as_echo "$supported" >&6; }
7884 if test "$supported" = "yes" ; then
7885 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7886 found="yes"
7887 fi
7888 fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904 xorg_testset_save_CFLAGS="$CFLAGS"
7905
7906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 _ACEOF
7917 if ac_fn_c_try_compile "$LINENO"; then :
7918 xorg_cv_cc_flag_unknown_warning_option=yes
7919 else
7920 xorg_cv_cc_flag_unknown_warning_option=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7927 CFLAGS="$xorg_testset_save_CFLAGS"
7928 fi
7929
7930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933 fi
7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 int i;
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 xorg_cv_cc_flag_unused_command_line_argument=yes
7946 else
7947 xorg_cv_cc_flag_unused_command_line_argument=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 found="no"
7958
7959 if test $found = "no" ; then
7960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963
7964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 fi
7967
7968 CFLAGS="$CFLAGS -Werror=address"
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7971 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7972 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7973 if eval \${$cacheid+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 int i;
7979 int
7980 main ()
7981 {
7982
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 eval $cacheid=yes
7989 else
7990 eval $cacheid=no
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 fi
7995
7996
7997 CFLAGS="$xorg_testset_save_CFLAGS"
7998
7999 eval supported=\$$cacheid
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001 $as_echo "$supported" >&6; }
8002 if test "$supported" = "yes" ; then
8003 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8004 found="yes"
8005 fi
8006 fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 xorg_testset_save_CFLAGS="$CFLAGS"
8023
8024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"; then :
8036 xorg_cv_cc_flag_unknown_warning_option=yes
8037 else
8038 xorg_cv_cc_flag_unknown_warning_option=no
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8045 CFLAGS="$xorg_testset_save_CFLAGS"
8046 fi
8047
8048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051 fi
8052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 int i;
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 xorg_cv_cc_flag_unused_command_line_argument=yes
8064 else
8065 xorg_cv_cc_flag_unused_command_line_argument=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073 fi
8074
8075 found="no"
8076
8077 if test $found = "no" ; then
8078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 fi
8081
8082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084 fi
8085
8086 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8089 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8090 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8091 if eval \${$cacheid+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 int i;
8097 int
8098 main ()
8099 {
8100
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 eval $cacheid=yes
8107 else
8108 eval $cacheid=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 fi
8113
8114
8115 CFLAGS="$xorg_testset_save_CFLAGS"
8116
8117 eval supported=\$$cacheid
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8119 $as_echo "$supported" >&6; }
8120 if test "$supported" = "yes" ; then
8121 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8122 found="yes"
8123 fi
8124 fi
8125
8126 if test $found = "no" ; then
8127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 fi
8130
8131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133 fi
8134
8135 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8138 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8139 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8140 if eval \${$cacheid+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 int i;
8146 int
8147 main ()
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 eval $cacheid=yes
8156 else
8157 eval $cacheid=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 fi
8162
8163
8164 CFLAGS="$xorg_testset_save_CFLAGS"
8165
8166 eval supported=\$$cacheid
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8168 $as_echo "$supported" >&6; }
8169 if test "$supported" = "yes" ; then
8170 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8171 found="yes"
8172 fi
8173 fi
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 xorg_testset_save_CFLAGS="$CFLAGS"
8190
8191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int i;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 xorg_cv_cc_flag_unknown_warning_option=yes
8204 else
8205 xorg_cv_cc_flag_unknown_warning_option=no
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8212 CFLAGS="$xorg_testset_save_CFLAGS"
8213 fi
8214
8215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218 fi
8219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 int i;
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"; then :
8230 xorg_cv_cc_flag_unused_command_line_argument=yes
8231 else
8232 xorg_cv_cc_flag_unused_command_line_argument=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8239 CFLAGS="$xorg_testset_save_CFLAGS"
8240 fi
8241
8242 found="no"
8243
8244 if test $found = "no" ; then
8245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247 fi
8248
8249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8251 fi
8252
8253 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8256 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8257 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8258 if eval \${$cacheid+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 int
8265 main ()
8266 {
8267
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 eval $cacheid=yes
8274 else
8275 eval $cacheid=no
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 fi
8280
8281
8282 CFLAGS="$xorg_testset_save_CFLAGS"
8283
8284 eval supported=\$$cacheid
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8286 $as_echo "$supported" >&6; }
8287 if test "$supported" = "yes" ; then
8288 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8289 found="yes"
8290 fi
8291 fi
8292
8293 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8294 else
8295 { $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
8296 $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;}
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 xorg_testset_save_CFLAGS="$CFLAGS"
8311
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 xorg_cv_cc_flag_unknown_warning_option=yes
8325 else
8326 xorg_cv_cc_flag_unknown_warning_option=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8333 CFLAGS="$xorg_testset_save_CFLAGS"
8334 fi
8335
8336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339 fi
8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 _ACEOF
8350 if ac_fn_c_try_compile "$LINENO"; then :
8351 xorg_cv_cc_flag_unused_command_line_argument=yes
8352 else
8353 xorg_cv_cc_flag_unused_command_line_argument=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361 fi
8362
8363 found="no"
8364
8365 if test $found = "no" ; then
8366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 fi
8369
8370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372 fi
8373
8374 CFLAGS="$CFLAGS -Wimplicit"
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8377 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8378 cacheid=xorg_cv_cc_flag__Wimplicit
8379 if eval \${$cacheid+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 int i;
8385 int
8386 main ()
8387 {
8388
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_link "$LINENO"; then :
8394 eval $cacheid=yes
8395 else
8396 eval $cacheid=no
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 fi
8401
8402
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8404
8405 eval supported=\$$cacheid
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8407 $as_echo "$supported" >&6; }
8408 if test "$supported" = "yes" ; then
8409 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8410 found="yes"
8411 fi
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428 xorg_testset_save_CFLAGS="$CFLAGS"
8429
8430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 xorg_cv_cc_flag_unknown_warning_option=yes
8443 else
8444 xorg_cv_cc_flag_unknown_warning_option=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452 fi
8453
8454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457 fi
8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469 xorg_cv_cc_flag_unused_command_line_argument=yes
8470 else
8471 xorg_cv_cc_flag_unused_command_line_argument=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8478 CFLAGS="$xorg_testset_save_CFLAGS"
8479 fi
8480
8481 found="no"
8482
8483 if test $found = "no" ; then
8484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 fi
8487
8488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8490 fi
8491
8492 CFLAGS="$CFLAGS -Wnonnull"
8493
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8495 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8496 cacheid=xorg_cv_cc_flag__Wnonnull
8497 if eval \${$cacheid+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 int i;
8503 int
8504 main ()
8505 {
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 eval $cacheid=yes
8513 else
8514 eval $cacheid=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 fi
8519
8520
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523 eval supported=\$$cacheid
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8525 $as_echo "$supported" >&6; }
8526 if test "$supported" = "yes" ; then
8527 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8528 found="yes"
8529 fi
8530 fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546 xorg_testset_save_CFLAGS="$CFLAGS"
8547
8548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 int i;
8558 _ACEOF
8559 if ac_fn_c_try_compile "$LINENO"; then :
8560 xorg_cv_cc_flag_unknown_warning_option=yes
8561 else
8562 xorg_cv_cc_flag_unknown_warning_option=no
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8569 CFLAGS="$xorg_testset_save_CFLAGS"
8570 fi
8571
8572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575 fi
8576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 int i;
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 xorg_cv_cc_flag_unused_command_line_argument=yes
8588 else
8589 xorg_cv_cc_flag_unused_command_line_argument=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597 fi
8598
8599 found="no"
8600
8601 if test $found = "no" ; then
8602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 fi
8605
8606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608 fi
8609
8610 CFLAGS="$CFLAGS -Winit-self"
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8613 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8614 cacheid=xorg_cv_cc_flag__Winit_self
8615 if eval \${$cacheid+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 int i;
8621 int
8622 main ()
8623 {
8624
8625 ;
8626 return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 eval $cacheid=yes
8631 else
8632 eval $cacheid=no
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 fi
8637
8638
8639 CFLAGS="$xorg_testset_save_CFLAGS"
8640
8641 eval supported=\$$cacheid
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8643 $as_echo "$supported" >&6; }
8644 if test "$supported" = "yes" ; then
8645 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8646 found="yes"
8647 fi
8648 fi
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 xorg_testset_save_CFLAGS="$CFLAGS"
8665
8666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 int i;
8676 _ACEOF
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 xorg_cv_cc_flag_unknown_warning_option=yes
8679 else
8680 xorg_cv_cc_flag_unknown_warning_option=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8687 CFLAGS="$xorg_testset_save_CFLAGS"
8688 fi
8689
8690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693 fi
8694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 int i;
8703 _ACEOF
8704 if ac_fn_c_try_compile "$LINENO"; then :
8705 xorg_cv_cc_flag_unused_command_line_argument=yes
8706 else
8707 xorg_cv_cc_flag_unused_command_line_argument=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8714 CFLAGS="$xorg_testset_save_CFLAGS"
8715 fi
8716
8717 found="no"
8718
8719 if test $found = "no" ; then
8720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 fi
8723
8724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726 fi
8727
8728 CFLAGS="$CFLAGS -Wmain"
8729
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8731 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8732 cacheid=xorg_cv_cc_flag__Wmain
8733 if eval \${$cacheid+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 int i;
8739 int
8740 main ()
8741 {
8742
8743 ;
8744 return 0;
8745 }
8746 _ACEOF
8747 if ac_fn_c_try_link "$LINENO"; then :
8748 eval $cacheid=yes
8749 else
8750 eval $cacheid=no
8751 fi
8752 rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754 fi
8755
8756
8757 CFLAGS="$xorg_testset_save_CFLAGS"
8758
8759 eval supported=\$$cacheid
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8761 $as_echo "$supported" >&6; }
8762 if test "$supported" = "yes" ; then
8763 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8764 found="yes"
8765 fi
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782 xorg_testset_save_CFLAGS="$CFLAGS"
8783
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 int i;
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 xorg_cv_cc_flag_unknown_warning_option=yes
8797 else
8798 xorg_cv_cc_flag_unknown_warning_option=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8805 CFLAGS="$xorg_testset_save_CFLAGS"
8806 fi
8807
8808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811 fi
8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 int i;
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 xorg_cv_cc_flag_unused_command_line_argument=yes
8824 else
8825 xorg_cv_cc_flag_unused_command_line_argument=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833 fi
8834
8835 found="no"
8836
8837 if test $found = "no" ; then
8838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 fi
8841
8842 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844 fi
8845
8846 CFLAGS="$CFLAGS -Wmissing-braces"
8847
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8849 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8850 cacheid=xorg_cv_cc_flag__Wmissing_braces
8851 if eval \${$cacheid+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 int i;
8857 int
8858 main ()
8859 {
8860
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 eval $cacheid=yes
8867 else
8868 eval $cacheid=no
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 fi
8873
8874
8875 CFLAGS="$xorg_testset_save_CFLAGS"
8876
8877 eval supported=\$$cacheid
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8879 $as_echo "$supported" >&6; }
8880 if test "$supported" = "yes" ; then
8881 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8882 found="yes"
8883 fi
8884 fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900 xorg_testset_save_CFLAGS="$CFLAGS"
8901
8902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"; then :
8914 xorg_cv_cc_flag_unknown_warning_option=yes
8915 else
8916 xorg_cv_cc_flag_unknown_warning_option=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923 CFLAGS="$xorg_testset_save_CFLAGS"
8924 fi
8925
8926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929 fi
8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 _ACEOF
8940 if ac_fn_c_try_compile "$LINENO"; then :
8941 xorg_cv_cc_flag_unused_command_line_argument=yes
8942 else
8943 xorg_cv_cc_flag_unused_command_line_argument=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951 fi
8952
8953 found="no"
8954
8955 if test $found = "no" ; then
8956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 fi
8959
8960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8962 fi
8963
8964 CFLAGS="$CFLAGS -Wsequence-point"
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8967 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8968 cacheid=xorg_cv_cc_flag__Wsequence_point
8969 if eval \${$cacheid+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 int i;
8975 int
8976 main ()
8977 {
8978
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 if ac_fn_c_try_link "$LINENO"; then :
8984 eval $cacheid=yes
8985 else
8986 eval $cacheid=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 fi
8991
8992
8993 CFLAGS="$xorg_testset_save_CFLAGS"
8994
8995 eval supported=\$$cacheid
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8997 $as_echo "$supported" >&6; }
8998 if test "$supported" = "yes" ; then
8999 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9000 found="yes"
9001 fi
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018 xorg_testset_save_CFLAGS="$CFLAGS"
9019
9020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 int i;
9030 _ACEOF
9031 if ac_fn_c_try_compile "$LINENO"; then :
9032 xorg_cv_cc_flag_unknown_warning_option=yes
9033 else
9034 xorg_cv_cc_flag_unknown_warning_option=no
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9041 CFLAGS="$xorg_testset_save_CFLAGS"
9042 fi
9043
9044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9047 fi
9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 xorg_cv_cc_flag_unused_command_line_argument=yes
9060 else
9061 xorg_cv_cc_flag_unused_command_line_argument=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069 fi
9070
9071 found="no"
9072
9073 if test $found = "no" ; then
9074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 fi
9077
9078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9080 fi
9081
9082 CFLAGS="$CFLAGS -Wreturn-type"
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9085 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9086 cacheid=xorg_cv_cc_flag__Wreturn_type
9087 if eval \${$cacheid+:} false; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092 int i;
9093 int
9094 main ()
9095 {
9096
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"; then :
9102 eval $cacheid=yes
9103 else
9104 eval $cacheid=no
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108 fi
9109
9110
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9112
9113 eval supported=\$$cacheid
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9115 $as_echo "$supported" >&6; }
9116 if test "$supported" = "yes" ; then
9117 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9118 found="yes"
9119 fi
9120 fi
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136 xorg_testset_save_CFLAGS="$CFLAGS"
9137
9138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 int i;
9148 _ACEOF
9149 if ac_fn_c_try_compile "$LINENO"; then :
9150 xorg_cv_cc_flag_unknown_warning_option=yes
9151 else
9152 xorg_cv_cc_flag_unknown_warning_option=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9159 CFLAGS="$xorg_testset_save_CFLAGS"
9160 fi
9161
9162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165 fi
9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 xorg_cv_cc_flag_unused_command_line_argument=yes
9178 else
9179 xorg_cv_cc_flag_unused_command_line_argument=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187 fi
9188
9189 found="no"
9190
9191 if test $found = "no" ; then
9192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 fi
9195
9196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198 fi
9199
9200 CFLAGS="$CFLAGS -Wtrigraphs"
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9203 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9204 cacheid=xorg_cv_cc_flag__Wtrigraphs
9205 if eval \${$cacheid+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 int i;
9211 int
9212 main ()
9213 {
9214
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220 eval $cacheid=yes
9221 else
9222 eval $cacheid=no
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 fi
9227
9228
9229 CFLAGS="$xorg_testset_save_CFLAGS"
9230
9231 eval supported=\$$cacheid
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9233 $as_echo "$supported" >&6; }
9234 if test "$supported" = "yes" ; then
9235 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9236 found="yes"
9237 fi
9238 fi
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254 xorg_testset_save_CFLAGS="$CFLAGS"
9255
9256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int i;
9266 _ACEOF
9267 if ac_fn_c_try_compile "$LINENO"; then :
9268 xorg_cv_cc_flag_unknown_warning_option=yes
9269 else
9270 xorg_cv_cc_flag_unknown_warning_option=no
9271 fi
9272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9277 CFLAGS="$xorg_testset_save_CFLAGS"
9278 fi
9279
9280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283 fi
9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int i;
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 xorg_cv_cc_flag_unused_command_line_argument=yes
9296 else
9297 xorg_cv_cc_flag_unused_command_line_argument=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305 fi
9306
9307 found="no"
9308
9309 if test $found = "no" ; then
9310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 fi
9313
9314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9316 fi
9317
9318 CFLAGS="$CFLAGS -Warray-bounds"
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9321 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9322 cacheid=xorg_cv_cc_flag__Warray_bounds
9323 if eval \${$cacheid+:} false; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 int i;
9329 int
9330 main ()
9331 {
9332
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 if ac_fn_c_try_link "$LINENO"; then :
9338 eval $cacheid=yes
9339 else
9340 eval $cacheid=no
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 fi
9345
9346
9347 CFLAGS="$xorg_testset_save_CFLAGS"
9348
9349 eval supported=\$$cacheid
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9351 $as_echo "$supported" >&6; }
9352 if test "$supported" = "yes" ; then
9353 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9354 found="yes"
9355 fi
9356 fi
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 xorg_testset_save_CFLAGS="$CFLAGS"
9373
9374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 int i;
9384 _ACEOF
9385 if ac_fn_c_try_compile "$LINENO"; then :
9386 xorg_cv_cc_flag_unknown_warning_option=yes
9387 else
9388 xorg_cv_cc_flag_unknown_warning_option=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9395 CFLAGS="$xorg_testset_save_CFLAGS"
9396 fi
9397
9398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401 fi
9402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 int i;
9411 _ACEOF
9412 if ac_fn_c_try_compile "$LINENO"; then :
9413 xorg_cv_cc_flag_unused_command_line_argument=yes
9414 else
9415 xorg_cv_cc_flag_unused_command_line_argument=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423 fi
9424
9425 found="no"
9426
9427 if test $found = "no" ; then
9428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 fi
9431
9432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9434 fi
9435
9436 CFLAGS="$CFLAGS -Wwrite-strings"
9437
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9439 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9440 cacheid=xorg_cv_cc_flag__Wwrite_strings
9441 if eval \${$cacheid+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 int i;
9447 int
9448 main ()
9449 {
9450
9451 ;
9452 return 0;
9453 }
9454 _ACEOF
9455 if ac_fn_c_try_link "$LINENO"; then :
9456 eval $cacheid=yes
9457 else
9458 eval $cacheid=no
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 fi
9463
9464
9465 CFLAGS="$xorg_testset_save_CFLAGS"
9466
9467 eval supported=\$$cacheid
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9469 $as_echo "$supported" >&6; }
9470 if test "$supported" = "yes" ; then
9471 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9472 found="yes"
9473 fi
9474 fi
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490 xorg_testset_save_CFLAGS="$CFLAGS"
9491
9492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int i;
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"; then :
9504 xorg_cv_cc_flag_unknown_warning_option=yes
9505 else
9506 xorg_cv_cc_flag_unknown_warning_option=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 fi
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514 fi
9515
9516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519 fi
9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 int i;
9529 _ACEOF
9530 if ac_fn_c_try_compile "$LINENO"; then :
9531 xorg_cv_cc_flag_unused_command_line_argument=yes
9532 else
9533 xorg_cv_cc_flag_unused_command_line_argument=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 found="no"
9544
9545 if test $found = "no" ; then
9546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549
9550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 fi
9553
9554 CFLAGS="$CFLAGS -Waddress"
9555
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9557 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9558 cacheid=xorg_cv_cc_flag__Waddress
9559 if eval \${$cacheid+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 int i;
9565 int
9566 main ()
9567 {
9568
9569 ;
9570 return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574 eval $cacheid=yes
9575 else
9576 eval $cacheid=no
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 fi
9581
9582
9583 CFLAGS="$xorg_testset_save_CFLAGS"
9584
9585 eval supported=\$$cacheid
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9587 $as_echo "$supported" >&6; }
9588 if test "$supported" = "yes" ; then
9589 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9590 found="yes"
9591 fi
9592 fi
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608 xorg_testset_save_CFLAGS="$CFLAGS"
9609
9610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 _ACEOF
9621 if ac_fn_c_try_compile "$LINENO"; then :
9622 xorg_cv_cc_flag_unknown_warning_option=yes
9623 else
9624 xorg_cv_cc_flag_unknown_warning_option=no
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9631 CFLAGS="$xorg_testset_save_CFLAGS"
9632 fi
9633
9634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637 fi
9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 _ACEOF
9648 if ac_fn_c_try_compile "$LINENO"; then :
9649 xorg_cv_cc_flag_unused_command_line_argument=yes
9650 else
9651 xorg_cv_cc_flag_unused_command_line_argument=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659 fi
9660
9661 found="no"
9662
9663 if test $found = "no" ; then
9664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 fi
9667
9668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9670 fi
9671
9672 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9673
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9675 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9676 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9677 if eval \${$cacheid+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 int i;
9683 int
9684 main ()
9685 {
9686
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"; then :
9692 eval $cacheid=yes
9693 else
9694 eval $cacheid=no
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 fi
9699
9700
9701 CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703 eval supported=\$$cacheid
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705 $as_echo "$supported" >&6; }
9706 if test "$supported" = "yes" ; then
9707 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9708 found="yes"
9709 fi
9710 fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726 xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 _ACEOF
9739 if ac_fn_c_try_compile "$LINENO"; then :
9740 xorg_cv_cc_flag_unknown_warning_option=yes
9741 else
9742 xorg_cv_cc_flag_unknown_warning_option=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9749 CFLAGS="$xorg_testset_save_CFLAGS"
9750 fi
9751
9752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755 fi
9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 int i;
9765 _ACEOF
9766 if ac_fn_c_try_compile "$LINENO"; then :
9767 xorg_cv_cc_flag_unused_command_line_argument=yes
9768 else
9769 xorg_cv_cc_flag_unused_command_line_argument=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 found="no"
9780
9781 if test $found = "no" ; then
9782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 fi
9785
9786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9788 fi
9789
9790 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9791
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9793 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9794 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9795 if eval \${$cacheid+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 int i;
9801 int
9802 main ()
9803 {
9804
9805 ;
9806 return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810 eval $cacheid=yes
9811 else
9812 eval $cacheid=no
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 fi
9817
9818
9819 CFLAGS="$xorg_testset_save_CFLAGS"
9820
9821 eval supported=\$$cacheid
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9823 $as_echo "$supported" >&6; }
9824 if test "$supported" = "yes" ; then
9825 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9826 found="yes"
9827 fi
9828 fi
9829
9830
9831 fi
9832
9833
9834
9835
9836
9837
9838
9839 CWARNFLAGS="$BASE_CFLAGS"
9840 if test "x$GCC" = xyes ; then
9841 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9842 fi
9843
9844
9845
9846
9847
9848
9849
9850
9851 # Check whether --enable-strict-compilation was given.
9852 if test "${enable_strict_compilation+set}" = set; then :
9853 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9854 else
9855 STRICT_COMPILE=no
9856 fi
9857
9858
9859
9860
9861
9862
9863 STRICT_CFLAGS=""
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 xorg_cv_cc_flag_unknown_warning_option=yes
9892 else
9893 xorg_cv_cc_flag_unknown_warning_option=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else
9920 xorg_cv_cc_flag_unused_command_line_argument=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 found="no"
9931
9932 if test $found = "no" ; then
9933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936
9937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939 fi
9940
9941 CFLAGS="$CFLAGS -pedantic"
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9944 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9945 cacheid=xorg_cv_cc_flag__pedantic
9946 if eval \${$cacheid+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 int
9953 main ()
9954 {
9955
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 eval $cacheid=yes
9962 else
9963 eval $cacheid=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968
9969
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971
9972 eval supported=\$$cacheid
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9974 $as_echo "$supported" >&6; }
9975 if test "$supported" = "yes" ; then
9976 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9977 found="yes"
9978 fi
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 xorg_testset_save_CFLAGS="$CFLAGS"
9996
9997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int i;
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 xorg_cv_cc_flag_unknown_warning_option=yes
10010 else
10011 xorg_cv_cc_flag_unknown_warning_option=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019 fi
10020
10021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 fi
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 xorg_cv_cc_flag_unused_command_line_argument=yes
10037 else
10038 xorg_cv_cc_flag_unused_command_line_argument=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046 fi
10047
10048 found="no"
10049
10050 if test $found = "no" ; then
10051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 fi
10054
10055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057 fi
10058
10059 CFLAGS="$CFLAGS -Werror"
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10062 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10063 cacheid=xorg_cv_cc_flag__Werror
10064 if eval \${$cacheid+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int i;
10070 int
10071 main ()
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"; then :
10079 eval $cacheid=yes
10080 else
10081 eval $cacheid=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 fi
10086
10087
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089
10090 eval supported=\$$cacheid
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10092 $as_echo "$supported" >&6; }
10093 if test "$supported" = "yes" ; then
10094 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10095 found="yes"
10096 fi
10097 fi
10098
10099 if test $found = "no" ; then
10100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 fi
10103
10104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106 fi
10107
10108 CFLAGS="$CFLAGS -errwarn"
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10111 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10112 cacheid=xorg_cv_cc_flag__errwarn
10113 if eval \${$cacheid+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 int
10120 main ()
10121 {
10122
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 eval $cacheid=yes
10129 else
10130 eval $cacheid=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 fi
10135
10136
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138
10139 eval supported=\$$cacheid
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10141 $as_echo "$supported" >&6; }
10142 if test "$supported" = "yes" ; then
10143 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10144 found="yes"
10145 fi
10146 fi
10147
10148
10149
10150 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10151 # activate it with -Werror, so we add it here explicitly.
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165 xorg_testset_save_CFLAGS="$CFLAGS"
10166
10167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int i;
10177 _ACEOF
10178 if ac_fn_c_try_compile "$LINENO"; then :
10179 xorg_cv_cc_flag_unknown_warning_option=yes
10180 else
10181 xorg_cv_cc_flag_unknown_warning_option=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10188 CFLAGS="$xorg_testset_save_CFLAGS"
10189 fi
10190
10191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194 fi
10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 int i;
10204 _ACEOF
10205 if ac_fn_c_try_compile "$LINENO"; then :
10206 xorg_cv_cc_flag_unused_command_line_argument=yes
10207 else
10208 xorg_cv_cc_flag_unused_command_line_argument=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10215 CFLAGS="$xorg_testset_save_CFLAGS"
10216 fi
10217
10218 found="no"
10219
10220 if test $found = "no" ; then
10221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223 fi
10224
10225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10227 fi
10228
10229 CFLAGS="$CFLAGS -Werror=attributes"
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10232 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10233 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10234 if eval \${$cacheid+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 int i;
10240 int
10241 main ()
10242 {
10243
10244 ;
10245 return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"; then :
10249 eval $cacheid=yes
10250 else
10251 eval $cacheid=no
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 fi
10256
10257
10258 CFLAGS="$xorg_testset_save_CFLAGS"
10259
10260 eval supported=\$$cacheid
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10262 $as_echo "$supported" >&6; }
10263 if test "$supported" = "yes" ; then
10264 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10265 found="yes"
10266 fi
10267 fi
10268
10269
10270
10271 if test "x$STRICT_COMPILE" = "xyes"; then
10272 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10273 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10274 fi
10275
10276
10277
10278
10279
10280
10281 cat >>confdefs.h <<_ACEOF
10282 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10283 _ACEOF
10284
10285 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10286 if test "x$PVM" = "x"; then
10287 PVM="0"
10288 fi
10289
10290 cat >>confdefs.h <<_ACEOF
10291 #define PACKAGE_VERSION_MINOR $PVM
10292 _ACEOF
10293
10294 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10295 if test "x$PVP" = "x"; then
10296 PVP="0"
10297 fi
10298
10299 cat >>confdefs.h <<_ACEOF
10300 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10301 _ACEOF
10302
10303
10304
10305 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10306 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10307 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10308 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10309
10310
10311
10312
10313 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10314 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10315 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10316 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10317 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10318
10319
10320
10321
10322
10323
10324 if test x$APP_MAN_SUFFIX = x ; then
10325 APP_MAN_SUFFIX=1
10326 fi
10327 if test x$APP_MAN_DIR = x ; then
10328 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10329 fi
10330
10331 if test x$LIB_MAN_SUFFIX = x ; then
10332 LIB_MAN_SUFFIX=3
10333 fi
10334 if test x$LIB_MAN_DIR = x ; then
10335 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10336 fi
10337
10338 if test x$FILE_MAN_SUFFIX = x ; then
10339 case $host_os in
10340 solaris*) FILE_MAN_SUFFIX=4 ;;
10341 *) FILE_MAN_SUFFIX=5 ;;
10342 esac
10343 fi
10344 if test x$FILE_MAN_DIR = x ; then
10345 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10346 fi
10347
10348 if test x$MISC_MAN_SUFFIX = x ; then
10349 case $host_os in
10350 solaris*) MISC_MAN_SUFFIX=5 ;;
10351 *) MISC_MAN_SUFFIX=7 ;;
10352 esac
10353 fi
10354 if test x$MISC_MAN_DIR = x ; then
10355 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10356 fi
10357
10358 if test x$DRIVER_MAN_SUFFIX = x ; then
10359 case $host_os in
10360 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10361 *) DRIVER_MAN_SUFFIX=4 ;;
10362 esac
10363 fi
10364 if test x$DRIVER_MAN_DIR = x ; then
10365 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10366 fi
10367
10368 if test x$ADMIN_MAN_SUFFIX = x ; then
10369 case $host_os in
10370 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10371 *) ADMIN_MAN_SUFFIX=8 ;;
10372 esac
10373 fi
10374 if test x$ADMIN_MAN_DIR = x ; then
10375 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10376 fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 XORG_MAN_PAGE="X Version 11"
10393
10394 MAN_SUBSTS="\
10395 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10396 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10397 -e 's|__xservername__|Xorg|g' \
10398 -e 's|__xconfigfile__|xorg.conf|g' \
10399 -e 's|__projectroot__|\$(prefix)|g' \
10400 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10401 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10402 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10403 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10404 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10405 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10406 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10407
10408
10409
10410 # Check whether --enable-silent-rules was given.
10411 if test "${enable_silent_rules+set}" = set; then :
10412 enableval=$enable_silent_rules;
10413 fi
10414
10415 case $enable_silent_rules in # (((
10416 yes) AM_DEFAULT_VERBOSITY=0;;
10417 no) AM_DEFAULT_VERBOSITY=1;;
10418 *) AM_DEFAULT_VERBOSITY=0;;
10419 esac
10420 am_make=${MAKE-make}
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10422 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10423 if ${am_cv_make_support_nested_variables+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 if $as_echo 'TRUE=$(BAR$(V))
10427 BAR0=false
10428 BAR1=true
10429 V=1
10430 am__doit:
10431 @$(TRUE)
10432 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10433 am_cv_make_support_nested_variables=yes
10434 else
10435 am_cv_make_support_nested_variables=no
10436 fi
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10439 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10440 if test $am_cv_make_support_nested_variables = yes; then
10441 AM_V='$(V)'
10442 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10443 else
10444 AM_V=$AM_DEFAULT_VERBOSITY
10445 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10446 fi
10447 AM_BACKSLASH='\'
10448
10449
10450
10451 # Checks for pkg-config packages
10452
10453 pkg_failed=no
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPRES" >&5
10455 $as_echo_n "checking for APPRES... " >&6; }
10456
10457 if test -n "$APPRES_CFLAGS"; then
10458 pkg_cv_APPRES_CFLAGS="$APPRES_CFLAGS"
10459 elif test -n "$PKG_CONFIG"; then
10460 if test -n "$PKG_CONFIG" && \
10461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5
10462 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5
10463 ac_status=$?
10464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465 test $ac_status = 0; }; then
10466 pkg_cv_APPRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xproto >= 7.0.17" 2>/dev/null`
10467 else
10468 pkg_failed=yes
10469 fi
10470 else
10471 pkg_failed=untried
10472 fi
10473 if test -n "$APPRES_LIBS"; then
10474 pkg_cv_APPRES_LIBS="$APPRES_LIBS"
10475 elif test -n "$PKG_CONFIG"; then
10476 if test -n "$PKG_CONFIG" && \
10477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5
10478 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }; then
10482 pkg_cv_APPRES_LIBS=`$PKG_CONFIG --libs "x11 xt xproto >= 7.0.17" 2>/dev/null`
10483 else
10484 pkg_failed=yes
10485 fi
10486 else
10487 pkg_failed=untried
10488 fi
10489
10490
10491
10492 if test $pkg_failed = yes; then
10493
10494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10495 _pkg_short_errors_supported=yes
10496 else
10497 _pkg_short_errors_supported=no
10498 fi
10499 if test $_pkg_short_errors_supported = yes; then
10500 APPRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt xproto >= 7.0.17" 2>&1`
10501 else
10502 APPRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt xproto >= 7.0.17" 2>&1`
10503 fi
10504 # Put the nasty error message in config.log where it belongs
10505 echo "$APPRES_PKG_ERRORS" >&5
10506
10507 as_fn_error $? "Package requirements (x11 xt xproto >= 7.0.17) were not met:
10508
10509 $APPRES_PKG_ERRORS
10510
10511 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10512 installed software in a non-standard prefix.
10513
10514 Alternatively, you may set the environment variables APPRES_CFLAGS
10515 and APPRES_LIBS to avoid the need to call pkg-config.
10516 See the pkg-config man page for more details.
10517 " "$LINENO" 5
10518 elif test $pkg_failed = untried; then
10519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10521 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10522 is in your PATH or set the PKG_CONFIG environment variable to the full
10523 path to pkg-config.
10524
10525 Alternatively, you may set the environment variables APPRES_CFLAGS
10526 and APPRES_LIBS to avoid the need to call pkg-config.
10527 See the pkg-config man page for more details.
10528
10529 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10530 See \`config.log' for more details" "$LINENO" 5; }
10531 else
10532 APPRES_CFLAGS=$pkg_cv_APPRES_CFLAGS
10533 APPRES_LIBS=$pkg_cv_APPRES_LIBS
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10536 :
10537 fi
10538
10539 ac_config_files="$ac_config_files Makefile man/Makefile"
10540
10541 cat >confcache <<\_ACEOF
10542 # This file is a shell script that caches the results of configure
10543 # tests run on this system so they can be shared between configure
10544 # scripts and configure runs, see configure's option --config-cache.
10545 # It is not useful on other systems. If it contains results you don't
10546 # want to keep, you may remove or edit it.
10547 #
10548 # config.status only pays attention to the cache file if you give it
10549 # the --recheck option to rerun configure.
10550 #
10551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10553 # following values.
10554
10555 _ACEOF
10556
10557 # The following way of writing the cache mishandles newlines in values,
10558 # but we know of no workaround that is simple, portable, and efficient.
10559 # So, we kill variables containing newlines.
10560 # Ultrix sh set writes to stderr and can't be redirected directly,
10561 # and sets the high bit in the cache file unless we assign to the vars.
10562 (
10563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10564 eval ac_val=\$$ac_var
10565 case $ac_val in #(
10566 *${as_nl}*)
10567 case $ac_var in #(
10568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10570 esac
10571 case $ac_var in #(
10572 _ | IFS | as_nl) ;; #(
10573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10574 *) { eval $ac_var=; unset $ac_var;} ;;
10575 esac ;;
10576 esac
10577 done
10578
10579 (set) 2>&1 |
10580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10581 *${as_nl}ac_space=\ *)
10582 # `set' does not quote correctly, so add quotes: double-quote
10583 # substitution turns \\\\ into \\, and sed turns \\ into \.
10584 sed -n \
10585 "s/'/'\\\\''/g;
10586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10587 ;; #(
10588 *)
10589 # `set' quotes correctly as required by POSIX, so do not add quotes.
10590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10591 ;;
10592 esac |
10593 sort
10594 ) |
10595 sed '
10596 /^ac_cv_env_/b end
10597 t clear
10598 :clear
10599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10600 t end
10601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10602 :end' >>confcache
10603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10604 if test -w "$cache_file"; then
10605 if test "x$cache_file" != "x/dev/null"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10607 $as_echo "$as_me: updating cache $cache_file" >&6;}
10608 if test ! -f "$cache_file" || test -h "$cache_file"; then
10609 cat confcache >"$cache_file"
10610 else
10611 case $cache_file in #(
10612 */* | ?:*)
10613 mv -f confcache "$cache_file"$$ &&
10614 mv -f "$cache_file"$$ "$cache_file" ;; #(
10615 *)
10616 mv -f confcache "$cache_file" ;;
10617 esac
10618 fi
10619 fi
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10623 fi
10624 fi
10625 rm -f confcache
10626
10627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10628 # Let make expand exec_prefix.
10629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10630
10631 DEFS=-DHAVE_CONFIG_H
10632
10633 ac_libobjs=
10634 ac_ltlibobjs=
10635 U=
10636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10637 # 1. Remove the extension, and $U if already installed.
10638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10641 # will be set to the directory where LIBOBJS objects are built.
10642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10644 done
10645 LIBOBJS=$ac_libobjs
10646
10647 LTLIBOBJS=$ac_ltlibobjs
10648
10649
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10652 if test -n "$am_sleep_pid"; then
10653 # Hide warnings about reused PIDs.
10654 wait $am_sleep_pid 2>/dev/null
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10657 $as_echo "done" >&6; }
10658 if test -n "$EXEEXT"; then
10659 am__EXEEXT_TRUE=
10660 am__EXEEXT_FALSE='#'
10661 else
10662 am__EXEEXT_TRUE='#'
10663 am__EXEEXT_FALSE=
10664 fi
10665
10666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10669 fi
10670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10671 as_fn_error $? "conditional \"AMDEP\" was never defined.
10672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10673 fi
10674 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10675 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10677 fi
10678
10679 : "${CONFIG_STATUS=./config.status}"
10680 ac_write_fail=0
10681 ac_clean_files_save=$ac_clean_files
10682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10685 as_write_fail=0
10686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10687 #! $SHELL
10688 # Generated by $as_me.
10689 # Run this file to recreate the current configuration.
10690 # Compiler output produced by configure, useful for debugging
10691 # configure, is in config.log if it exists.
10692
10693 debug=false
10694 ac_cs_recheck=false
10695 ac_cs_silent=false
10696
10697 SHELL=\${CONFIG_SHELL-$SHELL}
10698 export SHELL
10699 _ASEOF
10700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10701 ## -------------------- ##
10702 ## M4sh Initialization. ##
10703 ## -------------------- ##
10704
10705 # Be more Bourne compatible
10706 DUALCASE=1; export DUALCASE # for MKS sh
10707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10708 emulate sh
10709 NULLCMD=:
10710 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10711 # is contrary to our usage. Disable this feature.
10712 alias -g '${1+"$@"}'='"$@"'
10713 setopt NO_GLOB_SUBST
10714 else
10715 case `(set -o) 2>/dev/null` in #(
10716 *posix*) :
10717 set -o posix ;; #(
10718 *) :
10719 ;;
10720 esac
10721 fi
10722
10723
10724 as_nl='
10725 '
10726 export as_nl
10727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10728 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10731 # Prefer a ksh shell builtin over an external printf program on Solaris,
10732 # but without wasting forks for bash or zsh.
10733 if test -z "$BASH_VERSION$ZSH_VERSION" \
10734 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10735 as_echo='print -r --'
10736 as_echo_n='print -rn --'
10737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10738 as_echo='printf %s\n'
10739 as_echo_n='printf %s'
10740 else
10741 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10742 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10743 as_echo_n='/usr/ucb/echo -n'
10744 else
10745 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10746 as_echo_n_body='eval
10747 arg=$1;
10748 case $arg in #(
10749 *"$as_nl"*)
10750 expr "X$arg" : "X\\(.*\\)$as_nl";
10751 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10752 esac;
10753 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10754 '
10755 export as_echo_n_body
10756 as_echo_n='sh -c $as_echo_n_body as_echo'
10757 fi
10758 export as_echo_body
10759 as_echo='sh -c $as_echo_body as_echo'
10760 fi
10761
10762 # The user is always right.
10763 if test "${PATH_SEPARATOR+set}" != set; then
10764 PATH_SEPARATOR=:
10765 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10766 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10767 PATH_SEPARATOR=';'
10768 }
10769 fi
10770
10771
10772 # IFS
10773 # We need space, tab and new line, in precisely that order. Quoting is
10774 # there to prevent editors from complaining about space-tab.
10775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10776 # splitting by setting IFS to empty value.)
10777 IFS=" "" $as_nl"
10778
10779 # Find who we are. Look in the path if we contain no directory separator.
10780 as_myself=
10781 case $0 in #((
10782 *[\\/]* ) as_myself=$0 ;;
10783 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784 for as_dir in $PATH
10785 do
10786 IFS=$as_save_IFS
10787 test -z "$as_dir" && as_dir=.
10788 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10789 done
10790 IFS=$as_save_IFS
10791
10792 ;;
10793 esac
10794 # We did not find ourselves, most probably we were run as `sh COMMAND'
10795 # in which case we are not to be found in the path.
10796 if test "x$as_myself" = x; then
10797 as_myself=$0
10798 fi
10799 if test ! -f "$as_myself"; then
10800 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10801 exit 1
10802 fi
10803
10804 # Unset variables that we do not need and which cause bugs (e.g. in
10805 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10806 # suppresses any "Segmentation fault" message there. '((' could
10807 # trigger a bug in pdksh 5.2.14.
10808 for as_var in BASH_ENV ENV MAIL MAILPATH
10809 do eval test x\${$as_var+set} = xset \
10810 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10811 done
10812 PS1='$ '
10813 PS2='> '
10814 PS4='+ '
10815
10816 # NLS nuisances.
10817 LC_ALL=C
10818 export LC_ALL
10819 LANGUAGE=C
10820 export LANGUAGE
10821
10822 # CDPATH.
10823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10824
10825
10826 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10827 # ----------------------------------------
10828 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10829 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10830 # script with STATUS, using 1 if that was 0.
10831 as_fn_error ()
10832 {
10833 as_status=$1; test $as_status -eq 0 && as_status=1
10834 if test "$4"; then
10835 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10836 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10837 fi
10838 $as_echo "$as_me: error: $2" >&2
10839 as_fn_exit $as_status
10840 } # as_fn_error
10841
10842
10843 # as_fn_set_status STATUS
10844 # -----------------------
10845 # Set $? to STATUS, without forking.
10846 as_fn_set_status ()
10847 {
10848 return $1
10849 } # as_fn_set_status
10850
10851 # as_fn_exit STATUS
10852 # -----------------
10853 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10854 as_fn_exit ()
10855 {
10856 set +e
10857 as_fn_set_status $1
10858 exit $1
10859 } # as_fn_exit
10860
10861 # as_fn_unset VAR
10862 # ---------------
10863 # Portably unset VAR.
10864 as_fn_unset ()
10865 {
10866 { eval $1=; unset $1;}
10867 }
10868 as_unset=as_fn_unset
10869 # as_fn_append VAR VALUE
10870 # ----------------------
10871 # Append the text in VALUE to the end of the definition contained in VAR. Take
10872 # advantage of any shell optimizations that allow amortized linear growth over
10873 # repeated appends, instead of the typical quadratic growth present in naive
10874 # implementations.
10875 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10876 eval 'as_fn_append ()
10877 {
10878 eval $1+=\$2
10879 }'
10880 else
10881 as_fn_append ()
10882 {
10883 eval $1=\$$1\$2
10884 }
10885 fi # as_fn_append
10886
10887 # as_fn_arith ARG...
10888 # ------------------
10889 # Perform arithmetic evaluation on the ARGs, and store the result in the
10890 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10891 # must be portable across $(()) and expr.
10892 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10893 eval 'as_fn_arith ()
10894 {
10895 as_val=$(( $* ))
10896 }'
10897 else
10898 as_fn_arith ()
10899 {
10900 as_val=`expr "$@" || test $? -eq 1`
10901 }
10902 fi # as_fn_arith
10903
10904
10905 if expr a : '\(a\)' >/dev/null 2>&1 &&
10906 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10907 as_expr=expr
10908 else
10909 as_expr=false
10910 fi
10911
10912 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10913 as_basename=basename
10914 else
10915 as_basename=false
10916 fi
10917
10918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10919 as_dirname=dirname
10920 else
10921 as_dirname=false
10922 fi
10923
10924 as_me=`$as_basename -- "$0" ||
10925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10926 X"$0" : 'X\(//\)$' \| \
10927 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10928 $as_echo X/"$0" |
10929 sed '/^.*\/\([^/][^/]*\)\/*$/{
10930 s//\1/
10931 q
10932 }
10933 /^X\/\(\/\/\)$/{
10934 s//\1/
10935 q
10936 }
10937 /^X\/\(\/\).*/{
10938 s//\1/
10939 q
10940 }
10941 s/.*/./; q'`
10942
10943 # Avoid depending upon Character Ranges.
10944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10947 as_cr_digits='0123456789'
10948 as_cr_alnum=$as_cr_Letters$as_cr_digits
10949
10950 ECHO_C= ECHO_N= ECHO_T=
10951 case `echo -n x` in #(((((
10952 -n*)
10953 case `echo 'xy\c'` in
10954 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10955 xy) ECHO_C='\c';;
10956 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10957 ECHO_T=' ';;
10958 esac;;
10959 *)
10960 ECHO_N='-n';;
10961 esac
10962
10963 rm -f conf$$ conf$$.exe conf$$.file
10964 if test -d conf$$.dir; then
10965 rm -f conf$$.dir/conf$$.file
10966 else
10967 rm -f conf$$.dir
10968 mkdir conf$$.dir 2>/dev/null
10969 fi
10970 if (echo >conf$$.file) 2>/dev/null; then
10971 if ln -s conf$$.file conf$$ 2>/dev/null; then
10972 as_ln_s='ln -s'
10973 # ... but there are two gotchas:
10974 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10975 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10976 # In both cases, we have to default to `cp -p'.
10977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10978 as_ln_s='cp -p'
10979 elif ln conf$$.file conf$$ 2>/dev/null; then
10980 as_ln_s=ln
10981 else
10982 as_ln_s='cp -p'
10983 fi
10984 else
10985 as_ln_s='cp -p'
10986 fi
10987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10988 rmdir conf$$.dir 2>/dev/null
10989
10990
10991 # as_fn_mkdir_p
10992 # -------------
10993 # Create "$as_dir" as a directory, including parents if necessary.
10994 as_fn_mkdir_p ()
10995 {
10996
10997 case $as_dir in #(
10998 -*) as_dir=./$as_dir;;
10999 esac
11000 test -d "$as_dir" || eval $as_mkdir_p || {
11001 as_dirs=
11002 while :; do
11003 case $as_dir in #(
11004 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11005 *) as_qdir=$as_dir;;
11006 esac
11007 as_dirs="'$as_qdir' $as_dirs"
11008 as_dir=`$as_dirname -- "$as_dir" ||
11009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11010 X"$as_dir" : 'X\(//\)[^/]' \| \
11011 X"$as_dir" : 'X\(//\)$' \| \
11012 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11013 $as_echo X"$as_dir" |
11014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11015 s//\1/
11016 q
11017 }
11018 /^X\(\/\/\)[^/].*/{
11019 s//\1/
11020 q
11021 }
11022 /^X\(\/\/\)$/{
11023 s//\1/
11024 q
11025 }
11026 /^X\(\/\).*/{
11027 s//\1/
11028 q
11029 }
11030 s/.*/./; q'`
11031 test -d "$as_dir" && break
11032 done
11033 test -z "$as_dirs" || eval "mkdir $as_dirs"
11034 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11035
11036
11037 } # as_fn_mkdir_p
11038 if mkdir -p . 2>/dev/null; then
11039 as_mkdir_p='mkdir -p "$as_dir"'
11040 else
11041 test -d ./-p && rmdir ./-p
11042 as_mkdir_p=false
11043 fi
11044
11045 if test -x / >/dev/null 2>&1; then
11046 as_test_x='test -x'
11047 else
11048 if ls -dL / >/dev/null 2>&1; then
11049 as_ls_L_option=L
11050 else
11051 as_ls_L_option=
11052 fi
11053 as_test_x='
11054 eval sh -c '\''
11055 if test -d "$1"; then
11056 test -d "$1/.";
11057 else
11058 case $1 in #(
11059 -*)set "./$1";;
11060 esac;
11061 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11062 ???[sx]*):;;*)false;;esac;fi
11063 '\'' sh
11064 '
11065 fi
11066 as_executable_p=$as_test_x
11067
11068 # Sed expression to map a string onto a valid CPP name.
11069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11070
11071 # Sed expression to map a string onto a valid variable name.
11072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11073
11074
11075 exec 6>&1
11076 ## ----------------------------------- ##
11077 ## Main body of $CONFIG_STATUS script. ##
11078 ## ----------------------------------- ##
11079 _ASEOF
11080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11081
11082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11083 # Save the log message, to keep $0 and so on meaningful, and to
11084 # report actual input values of CONFIG_FILES etc. instead of their
11085 # values after options handling.
11086 ac_log="
11087 This file was extended by appres $as_me 1.0.4, which was
11088 generated by GNU Autoconf 2.68. Invocation command line was
11089
11090 CONFIG_FILES = $CONFIG_FILES
11091 CONFIG_HEADERS = $CONFIG_HEADERS
11092 CONFIG_LINKS = $CONFIG_LINKS
11093 CONFIG_COMMANDS = $CONFIG_COMMANDS
11094 $ $0 $@
11095
11096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11097 "
11098
11099 _ACEOF
11100
11101 case $ac_config_files in *"
11102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11103 esac
11104
11105 case $ac_config_headers in *"
11106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11107 esac
11108
11109
11110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11111 # Files that config.status was made for.
11112 config_files="$ac_config_files"
11113 config_headers="$ac_config_headers"
11114 config_commands="$ac_config_commands"
11115
11116 _ACEOF
11117
11118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11119 ac_cs_usage="\
11120 \`$as_me' instantiates files and other configuration actions
11121 from templates according to the current configuration. Unless the files
11122 and actions are specified as TAGs, all are instantiated by default.
11123
11124 Usage: $0 [OPTION]... [TAG]...
11125
11126 -h, --help print this help, then exit
11127 -V, --version print version number and configuration settings, then exit
11128 --config print configuration, then exit
11129 -q, --quiet, --silent
11130 do not print progress messages
11131 -d, --debug don't remove temporary files
11132 --recheck update $as_me by reconfiguring in the same conditions
11133 --file=FILE[:TEMPLATE]
11134 instantiate the configuration file FILE
11135 --header=FILE[:TEMPLATE]
11136 instantiate the configuration header FILE
11137
11138 Configuration files:
11139 $config_files
11140
11141 Configuration headers:
11142 $config_headers
11143
11144 Configuration commands:
11145 $config_commands
11146
11147 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11148
11149 _ACEOF
11150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11152 ac_cs_version="\\
11153 appres config.status 1.0.4
11154 configured by $0, generated by GNU Autoconf 2.68,
11155 with options \\"\$ac_cs_config\\"
11156
11157 Copyright (C) 2010 Free Software Foundation, Inc.
11158 This config.status script is free software; the Free Software Foundation
11159 gives unlimited permission to copy, distribute and modify it."
11160
11161 ac_pwd='$ac_pwd'
11162 srcdir='$srcdir'
11163 INSTALL='$INSTALL'
11164 MKDIR_P='$MKDIR_P'
11165 AWK='$AWK'
11166 test -n "\$AWK" || AWK=awk
11167 _ACEOF
11168
11169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11170 # The default lists apply if the user does not specify any file.
11171 ac_need_defaults=:
11172 while test $# != 0
11173 do
11174 case $1 in
11175 --*=?*)
11176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11178 ac_shift=:
11179 ;;
11180 --*=)
11181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11182 ac_optarg=
11183 ac_shift=:
11184 ;;
11185 *)
11186 ac_option=$1
11187 ac_optarg=$2
11188 ac_shift=shift
11189 ;;
11190 esac
11191
11192 case $ac_option in
11193 # Handling of the options.
11194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11195 ac_cs_recheck=: ;;
11196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11197 $as_echo "$ac_cs_version"; exit ;;
11198 --config | --confi | --conf | --con | --co | --c )
11199 $as_echo "$ac_cs_config"; exit ;;
11200 --debug | --debu | --deb | --de | --d | -d )
11201 debug=: ;;
11202 --file | --fil | --fi | --f )
11203 $ac_shift
11204 case $ac_optarg in
11205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11206 '') as_fn_error $? "missing file argument" ;;
11207 esac
11208 as_fn_append CONFIG_FILES " '$ac_optarg'"
11209 ac_need_defaults=false;;
11210 --header | --heade | --head | --hea )
11211 $ac_shift
11212 case $ac_optarg in
11213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11214 esac
11215 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11216 ac_need_defaults=false;;
11217 --he | --h)
11218 # Conflict between --help and --header
11219 as_fn_error $? "ambiguous option: \`$1'
11220 Try \`$0 --help' for more information.";;
11221 --help | --hel | -h )
11222 $as_echo "$ac_cs_usage"; exit ;;
11223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11225 ac_cs_silent=: ;;
11226
11227 # This is an error.
11228 -*) as_fn_error $? "unrecognized option: \`$1'
11229 Try \`$0 --help' for more information." ;;
11230
11231 *) as_fn_append ac_config_targets " $1"
11232 ac_need_defaults=false ;;
11233
11234 esac
11235 shift
11236 done
11237
11238 ac_configure_extra_args=
11239
11240 if $ac_cs_silent; then
11241 exec 6>/dev/null
11242 ac_configure_extra_args="$ac_configure_extra_args --silent"
11243 fi
11244
11245 _ACEOF
11246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11247 if \$ac_cs_recheck; then
11248 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11249 shift
11250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11251 CONFIG_SHELL='$SHELL'
11252 export CONFIG_SHELL
11253 exec "\$@"
11254 fi
11255
11256 _ACEOF
11257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11258 exec 5>>config.log
11259 {
11260 echo
11261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11262 ## Running $as_me. ##
11263 _ASBOX
11264 $as_echo "$ac_log"
11265 } >&5
11266
11267 _ACEOF
11268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11269 #
11270 # INIT-COMMANDS
11271 #
11272 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11273
11274 _ACEOF
11275
11276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11277
11278 # Handling of arguments.
11279 for ac_config_target in $ac_config_targets
11280 do
11281 case $ac_config_target in
11282 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11283 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11285 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11286
11287 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11288 esac
11289 done
11290
11291
11292 # If the user did not use the arguments to specify the items to instantiate,
11293 # then the envvar interface is used. Set only those that are not.
11294 # We use the long form for the default assignment because of an extremely
11295 # bizarre bug on SunOS 4.1.3.
11296 if $ac_need_defaults; then
11297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11299 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11300 fi
11301
11302 # Have a temporary directory for convenience. Make it in the build tree
11303 # simply because there is no reason against having it here, and in addition,
11304 # creating and moving files from /tmp can sometimes cause problems.
11305 # Hook for its removal unless debugging.
11306 # Note that there is a small window in which the directory will not be cleaned:
11307 # after its creation but before its name has been assigned to `$tmp'.
11308 $debug ||
11309 {
11310 tmp= ac_tmp=
11311 trap 'exit_status=$?
11312 : "${ac_tmp:=$tmp}"
11313 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11314 ' 0
11315 trap 'as_fn_exit 1' 1 2 13 15
11316 }
11317 # Create a (secure) tmp directory for tmp files.
11318
11319 {
11320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11321 test -d "$tmp"
11322 } ||
11323 {
11324 tmp=./conf$$-$RANDOM
11325 (umask 077 && mkdir "$tmp")
11326 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11327 ac_tmp=$tmp
11328
11329 # Set up the scripts for CONFIG_FILES section.
11330 # No need to generate them if there are no CONFIG_FILES.
11331 # This happens for instance with `./config.status config.h'.
11332 if test -n "$CONFIG_FILES"; then
11333
11334
11335 ac_cr=`echo X | tr X '\015'`
11336 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11337 # But we know of no other shell where ac_cr would be empty at this
11338 # point, so we can use a bashism as a fallback.
11339 if test "x$ac_cr" = x; then
11340 eval ac_cr=\$\'\\r\'
11341 fi
11342 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11343 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11344 ac_cs_awk_cr='\\r'
11345 else
11346 ac_cs_awk_cr=$ac_cr
11347 fi
11348
11349 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11350 _ACEOF
11351
11352
11353 {
11354 echo "cat >conf$$subs.awk <<_ACEOF" &&
11355 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11356 echo "_ACEOF"
11357 } >conf$$subs.sh ||
11358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11359 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11360 ac_delim='%!_!# '
11361 for ac_last_try in false false false false false :; do
11362 . ./conf$$subs.sh ||
11363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11364
11365 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11366 if test $ac_delim_n = $ac_delim_num; then
11367 break
11368 elif $ac_last_try; then
11369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11370 else
11371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11372 fi
11373 done
11374 rm -f conf$$subs.sh
11375
11376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11377 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11378 _ACEOF
11379 sed -n '
11380 h
11381 s/^/S["/; s/!.*/"]=/
11382 p
11383 g
11384 s/^[^!]*!//
11385 :repl
11386 t repl
11387 s/'"$ac_delim"'$//
11388 t delim
11389 :nl
11390 h
11391 s/\(.\{148\}\)..*/\1/
11392 t more1
11393 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11394 p
11395 n
11396 b repl
11397 :more1
11398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11399 p
11400 g
11401 s/.\{148\}//
11402 t nl
11403 :delim
11404 h
11405 s/\(.\{148\}\)..*/\1/
11406 t more2
11407 s/["\\]/\\&/g; s/^/"/; s/$/"/
11408 p
11409 b
11410 :more2
11411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11412 p
11413 g
11414 s/.\{148\}//
11415 t delim
11416 ' <conf$$subs.awk | sed '
11417 /^[^""]/{
11418 N
11419 s/\n//
11420 }
11421 ' >>$CONFIG_STATUS || ac_write_fail=1
11422 rm -f conf$$subs.awk
11423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11424 _ACAWK
11425 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11426 for (key in S) S_is_set[key] = 1
11427 FS = ""
11428
11429 }
11430 {
11431 line = $ 0
11432 nfields = split(line, field, "@")
11433 substed = 0
11434 len = length(field[1])
11435 for (i = 2; i < nfields; i++) {
11436 key = field[i]
11437 keylen = length(key)
11438 if (S_is_set[key]) {
11439 value = S[key]
11440 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11441 len += length(value) + length(field[++i])
11442 substed = 1
11443 } else
11444 len += 1 + keylen
11445 }
11446
11447 print line
11448 }
11449
11450 _ACAWK
11451 _ACEOF
11452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11453 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11455 else
11456 cat
11457 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11458 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11459 _ACEOF
11460
11461 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11462 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11463 # trailing colons and then remove the whole line if VPATH becomes empty
11464 # (actually we leave an empty line to preserve line numbers).
11465 if test "x$srcdir" = x.; then
11466 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11467 h
11468 s///
11469 s/^/:/
11470 s/[ ]*$/:/
11471 s/:\$(srcdir):/:/g
11472 s/:\${srcdir}:/:/g
11473 s/:@srcdir@:/:/g
11474 s/^:*//
11475 s/:*$//
11476 x
11477 s/\(=[ ]*\).*/\1/
11478 G
11479 s/\n//
11480 s/^[^=]*=[ ]*$//
11481 }'
11482 fi
11483
11484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11485 fi # test -n "$CONFIG_FILES"
11486
11487 # Set up the scripts for CONFIG_HEADERS section.
11488 # No need to generate them if there are no CONFIG_HEADERS.
11489 # This happens for instance with `./config.status Makefile'.
11490 if test -n "$CONFIG_HEADERS"; then
11491 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11492 BEGIN {
11493 _ACEOF
11494
11495 # Transform confdefs.h into an awk script `defines.awk', embedded as
11496 # here-document in config.status, that substitutes the proper values into
11497 # config.h.in to produce config.h.
11498
11499 # Create a delimiter string that does not exist in confdefs.h, to ease
11500 # handling of long lines.
11501 ac_delim='%!_!# '
11502 for ac_last_try in false false :; do
11503 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11504 if test -z "$ac_tt"; then
11505 break
11506 elif $ac_last_try; then
11507 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11508 else
11509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11510 fi
11511 done
11512
11513 # For the awk script, D is an array of macro values keyed by name,
11514 # likewise P contains macro parameters if any. Preserve backslash
11515 # newline sequences.
11516
11517 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11518 sed -n '
11519 s/.\{148\}/&'"$ac_delim"'/g
11520 t rset
11521 :rset
11522 s/^[ ]*#[ ]*define[ ][ ]*/ /
11523 t def
11524 d
11525 :def
11526 s/\\$//
11527 t bsnl
11528 s/["\\]/\\&/g
11529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11530 D["\1"]=" \3"/p
11531 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11532 d
11533 :bsnl
11534 s/["\\]/\\&/g
11535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11536 D["\1"]=" \3\\\\\\n"\\/p
11537 t cont
11538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11539 t cont
11540 d
11541 :cont
11542 n
11543 s/.\{148\}/&'"$ac_delim"'/g
11544 t clear
11545 :clear
11546 s/\\$//
11547 t bsnlc
11548 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11549 d
11550 :bsnlc
11551 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11552 b cont
11553 ' <confdefs.h | sed '
11554 s/'"$ac_delim"'/"\\\
11555 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11556
11557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11558 for (key in D) D_is_set[key] = 1
11559 FS = ""
11560 }
11561 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11562 line = \$ 0
11563 split(line, arg, " ")
11564 if (arg[1] == "#") {
11565 defundef = arg[2]
11566 mac1 = arg[3]
11567 } else {
11568 defundef = substr(arg[1], 2)
11569 mac1 = arg[2]
11570 }
11571 split(mac1, mac2, "(") #)
11572 macro = mac2[1]
11573 prefix = substr(line, 1, index(line, defundef) - 1)
11574 if (D_is_set[macro]) {
11575 # Preserve the white space surrounding the "#".
11576 print prefix "define", macro P[macro] D[macro]
11577 next
11578 } else {
11579 # Replace #undef with comments. This is necessary, for example,
11580 # in the case of _POSIX_SOURCE, which is predefined and required
11581 # on some systems where configure will not decide to define it.
11582 if (defundef == "undef") {
11583 print "/*", prefix defundef, macro, "*/"
11584 next
11585 }
11586 }
11587 }
11588 { print }
11589 _ACAWK
11590 _ACEOF
11591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11592 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11593 fi # test -n "$CONFIG_HEADERS"
11594
11595
11596 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11597 shift
11598 for ac_tag
11599 do
11600 case $ac_tag in
11601 :[FHLC]) ac_mode=$ac_tag; continue;;
11602 esac
11603 case $ac_mode$ac_tag in
11604 :[FHL]*:*);;
11605 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11606 :[FH]-) ac_tag=-:-;;
11607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11608 esac
11609 ac_save_IFS=$IFS
11610 IFS=:
11611 set x $ac_tag
11612 IFS=$ac_save_IFS
11613 shift
11614 ac_file=$1
11615 shift
11616
11617 case $ac_mode in
11618 :L) ac_source=$1;;
11619 :[FH])
11620 ac_file_inputs=
11621 for ac_f
11622 do
11623 case $ac_f in
11624 -) ac_f="$ac_tmp/stdin";;
11625 *) # Look for the file first in the build tree, then in the source tree
11626 # (if the path is not absolute). The absolute path cannot be DOS-style,
11627 # because $ac_f cannot contain `:'.
11628 test -f "$ac_f" ||
11629 case $ac_f in
11630 [\\/$]*) false;;
11631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11632 esac ||
11633 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11634 esac
11635 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11636 as_fn_append ac_file_inputs " '$ac_f'"
11637 done
11638
11639 # Let's still pretend it is `configure' which instantiates (i.e., don't
11640 # use $as_me), people would be surprised to read:
11641 # /* config.h. Generated by config.status. */
11642 configure_input='Generated from '`
11643 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11644 `' by configure.'
11645 if test x"$ac_file" != x-; then
11646 configure_input="$ac_file. $configure_input"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11648 $as_echo "$as_me: creating $ac_file" >&6;}
11649 fi
11650 # Neutralize special characters interpreted by sed in replacement strings.
11651 case $configure_input in #(
11652 *\&* | *\|* | *\\* )
11653 ac_sed_conf_input=`$as_echo "$configure_input" |
11654 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11655 *) ac_sed_conf_input=$configure_input;;
11656 esac
11657
11658 case $ac_tag in
11659 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11661 esac
11662 ;;
11663 esac
11664
11665 ac_dir=`$as_dirname -- "$ac_file" ||
11666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11667 X"$ac_file" : 'X\(//\)[^/]' \| \
11668 X"$ac_file" : 'X\(//\)$' \| \
11669 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11670 $as_echo X"$ac_file" |
11671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11672 s//\1/
11673 q
11674 }
11675 /^X\(\/\/\)[^/].*/{
11676 s//\1/
11677 q
11678 }
11679 /^X\(\/\/\)$/{
11680 s//\1/
11681 q
11682 }
11683 /^X\(\/\).*/{
11684 s//\1/
11685 q
11686 }
11687 s/.*/./; q'`
11688 as_dir="$ac_dir"; as_fn_mkdir_p
11689 ac_builddir=.
11690
11691 case "$ac_dir" in
11692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11693 *)
11694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11695 # A ".." for each directory in $ac_dir_suffix.
11696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11697 case $ac_top_builddir_sub in
11698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11700 esac ;;
11701 esac
11702 ac_abs_top_builddir=$ac_pwd
11703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11704 # for backward compatibility:
11705 ac_top_builddir=$ac_top_build_prefix
11706
11707 case $srcdir in
11708 .) # We are building in place.
11709 ac_srcdir=.
11710 ac_top_srcdir=$ac_top_builddir_sub
11711 ac_abs_top_srcdir=$ac_pwd ;;
11712 [\\/]* | ?:[\\/]* ) # Absolute name.
11713 ac_srcdir=$srcdir$ac_dir_suffix;
11714 ac_top_srcdir=$srcdir
11715 ac_abs_top_srcdir=$srcdir ;;
11716 *) # Relative name.
11717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11718 ac_top_srcdir=$ac_top_build_prefix$srcdir
11719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11720 esac
11721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11722
11723
11724 case $ac_mode in
11725 :F)
11726 #
11727 # CONFIG_FILE
11728 #
11729
11730 case $INSTALL in
11731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11733 esac
11734 ac_MKDIR_P=$MKDIR_P
11735 case $MKDIR_P in
11736 [\\/$]* | ?:[\\/]* ) ;;
11737 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11738 esac
11739 _ACEOF
11740
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 # If the template does not know about datarootdir, expand it.
11743 # FIXME: This hack should be removed a few years after 2.60.
11744 ac_datarootdir_hack=; ac_datarootdir_seen=
11745 ac_sed_dataroot='
11746 /datarootdir/ {
11747 p
11748 q
11749 }
11750 /@datadir@/p
11751 /@docdir@/p
11752 /@infodir@/p
11753 /@localedir@/p
11754 /@mandir@/p'
11755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11756 *datarootdir*) ac_datarootdir_seen=yes;;
11757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11759 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11760 _ACEOF
11761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11762 ac_datarootdir_hack='
11763 s&@datadir@&$datadir&g
11764 s&@docdir@&$docdir&g
11765 s&@infodir@&$infodir&g
11766 s&@localedir@&$localedir&g
11767 s&@mandir@&$mandir&g
11768 s&\\\${datarootdir}&$datarootdir&g' ;;
11769 esac
11770 _ACEOF
11771
11772 # Neutralize VPATH when `$srcdir' = `.'.
11773 # Shell code in configure.ac might set extrasub.
11774 # FIXME: do we really want to maintain this feature?
11775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11776 ac_sed_extra="$ac_vpsub
11777 $extrasub
11778 _ACEOF
11779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11780 :t
11781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11782 s|@configure_input@|$ac_sed_conf_input|;t t
11783 s&@top_builddir@&$ac_top_builddir_sub&;t t
11784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11785 s&@srcdir@&$ac_srcdir&;t t
11786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11787 s&@top_srcdir@&$ac_top_srcdir&;t t
11788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11789 s&@builddir@&$ac_builddir&;t t
11790 s&@abs_builddir@&$ac_abs_builddir&;t t
11791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11792 s&@INSTALL@&$ac_INSTALL&;t t
11793 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11794 $ac_datarootdir_hack
11795 "
11796 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11797 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11798
11799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11800 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11801 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11802 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11804 which seems to be undefined. Please make sure it is defined" >&5
11805 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11806 which seems to be undefined. Please make sure it is defined" >&2;}
11807
11808 rm -f "$ac_tmp/stdin"
11809 case $ac_file in
11810 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11811 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11812 esac \
11813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11814 ;;
11815 :H)
11816 #
11817 # CONFIG_HEADER
11818 #
11819 if test x"$ac_file" != x-; then
11820 {
11821 $as_echo "/* $configure_input */" \
11822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11823 } >"$ac_tmp/config.h" \
11824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11825 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11827 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11828 else
11829 rm -f "$ac_file"
11830 mv "$ac_tmp/config.h" "$ac_file" \
11831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11832 fi
11833 else
11834 $as_echo "/* $configure_input */" \
11835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11836 || as_fn_error $? "could not create -" "$LINENO" 5
11837 fi
11838 # Compute "$ac_file"'s index in $config_headers.
11839 _am_arg="$ac_file"
11840 _am_stamp_count=1
11841 for _am_header in $config_headers :; do
11842 case $_am_header in
11843 $_am_arg | $_am_arg:* )
11844 break ;;
11845 * )
11846 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11847 esac
11848 done
11849 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11850 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11851 X"$_am_arg" : 'X\(//\)[^/]' \| \
11852 X"$_am_arg" : 'X\(//\)$' \| \
11853 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11854 $as_echo X"$_am_arg" |
11855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11856 s//\1/
11857 q
11858 }
11859 /^X\(\/\/\)[^/].*/{
11860 s//\1/
11861 q
11862 }
11863 /^X\(\/\/\)$/{
11864 s//\1/
11865 q
11866 }
11867 /^X\(\/\).*/{
11868 s//\1/
11869 q
11870 }
11871 s/.*/./; q'`/stamp-h$_am_stamp_count
11872 ;;
11873
11874 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11875 $as_echo "$as_me: executing $ac_file commands" >&6;}
11876 ;;
11877 esac
11878
11879
11880 case $ac_file$ac_mode in
11881 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11882 # Older Autoconf quotes --file arguments for eval, but not when files
11883 # are listed without --file. Let's play safe and only enable the eval
11884 # if we detect the quoting.
11885 case $CONFIG_FILES in
11886 *\'*) eval set x "$CONFIG_FILES" ;;
11887 *) set x $CONFIG_FILES ;;
11888 esac
11889 shift
11890 for mf
11891 do
11892 # Strip MF so we end up with the name of the file.
11893 mf=`echo "$mf" | sed -e 's/:.*$//'`
11894 # Check whether this is an Automake generated Makefile or not.
11895 # We used to match only the files named 'Makefile.in', but
11896 # some people rename them; so instead we look at the file content.
11897 # Grep'ing the first line is not enough: some people post-process
11898 # each Makefile.in and add a new line on top of each file to say so.
11899 # Grep'ing the whole file is not good either: AIX grep has a line
11900 # limit of 2048, but all sed's we know have understand at least 4000.
11901 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11902 dirpart=`$as_dirname -- "$mf" ||
11903 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11904 X"$mf" : 'X\(//\)[^/]' \| \
11905 X"$mf" : 'X\(//\)$' \| \
11906 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11907 $as_echo X"$mf" |
11908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11909 s//\1/
11910 q
11911 }
11912 /^X\(\/\/\)[^/].*/{
11913 s//\1/
11914 q
11915 }
11916 /^X\(\/\/\)$/{
11917 s//\1/
11918 q
11919 }
11920 /^X\(\/\).*/{
11921 s//\1/
11922 q
11923 }
11924 s/.*/./; q'`
11925 else
11926 continue
11927 fi
11928 # Extract the definition of DEPDIR, am__include, and am__quote
11929 # from the Makefile without running 'make'.
11930 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11931 test -z "$DEPDIR" && continue
11932 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11933 test -z "$am__include" && continue
11934 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11935 # Find all dependency output files, they are included files with
11936 # $(DEPDIR) in their names. We invoke sed twice because it is the
11937 # simplest approach to changing $(DEPDIR) to its actual value in the
11938 # expansion.
11939 for file in `sed -n "
11940 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11941 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11942 # Make sure the directory exists.
11943 test -f "$dirpart/$file" && continue
11944 fdir=`$as_dirname -- "$file" ||
11945 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11946 X"$file" : 'X\(//\)[^/]' \| \
11947 X"$file" : 'X\(//\)$' \| \
11948 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11949 $as_echo X"$file" |
11950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11951 s//\1/
11952 q
11953 }
11954 /^X\(\/\/\)[^/].*/{
11955 s//\1/
11956 q
11957 }
11958 /^X\(\/\/\)$/{
11959 s//\1/
11960 q
11961 }
11962 /^X\(\/\).*/{
11963 s//\1/
11964 q
11965 }
11966 s/.*/./; q'`
11967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11968 # echo "creating $dirpart/$file"
11969 echo '# dummy' > "$dirpart/$file"
11970 done
11971 done
11972 }
11973 ;;
11974
11975 esac
11976 done # for ac_tag
11977
11978
11979 as_fn_exit 0
11980 _ACEOF
11981 ac_clean_files=$ac_clean_files_save
11982
11983 test $ac_write_fail = 0 ||
11984 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11985
11986
11987 # configure is writing to config.log, and then calls config.status.
11988 # config.status does its own redirection, appending to config.log.
11989 # Unfortunately, on DOS this fails, as config.log is still kept open
11990 # by configure, so config.status won't be able to write to it; its
11991 # output is simply discarded. So we exec the FD to /dev/null,
11992 # effectively closing config.log, so it can be properly (re)opened and
11993 # appended to by config.status. When coming back to configure, we
11994 # need to make the FD available again.
11995 if test "$no_create" != yes; then
11996 ac_cs_success=:
11997 ac_config_status_args=
11998 test "$silent" = yes &&
11999 ac_config_status_args="$ac_config_status_args --quiet"
12000 exec 5>/dev/null
12001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12002 exec 5>>config.log
12003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12004 # would make configure fail if this is the last instruction.
12005 $ac_cs_success || as_fn_exit 1
12006 fi
12007 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12009 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12010 fi
12011
12012