Debian Codegraph @

gccmakedep/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gccmakedep 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='gccmakedep'
583 PACKAGE_TARNAME='gccmakedep'
584 PACKAGE_VERSION='1.0.3'
585 PACKAGE_STRING='gccmakedep 1.0.3'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 MAN_SUBSTS
631 XORG_MAN_PAGE
632 ADMIN_MAN_DIR
633 DRIVER_MAN_DIR
634 MISC_MAN_DIR
635 FILE_MAN_DIR
636 LIB_MAN_DIR
637 APP_MAN_DIR
638 ADMIN_MAN_SUFFIX
639 DRIVER_MAN_SUFFIX
640 MISC_MAN_SUFFIX
641 FILE_MAN_SUFFIX
642 LIB_MAN_SUFFIX
643 APP_MAN_SUFFIX
644 SED
645 host_os
646 host_vendor
647 host_cpu
648 host
649 build_os
650 build_vendor
651 build_cpu
652 build
653 INSTALL_CMD
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 CHANGELOG_CMD
658 STRICT_CFLAGS
659 CWARNFLAGS
660 BASE_CFLAGS
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 AM_BACKSLASH
685 AM_DEFAULT_VERBOSITY
686 AM_DEFAULT_V
687 AM_V
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_silent_rules
753 enable_maintainer_mode
754 enable_dependency_tracking
755 enable_selective_werror
756 enable_strict_compilation
757 '
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP
767 PKG_CONFIG
768 PKG_CONFIG_PATH
769 PKG_CONFIG_LIBDIR'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275 else
1276 ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures gccmakedep 1.0.3 to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/gccmakedep]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of gccmakedep 1.0.3:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-maintainer-mode
1391 enable make rules and dependencies not useful (and
1392 sometimes confusing) to the casual installer
1393 --enable-dependency-tracking
1394 do not reject slow dependency extractors
1395 --disable-dependency-tracking
1396 speeds up one-time build
1397 --disable-selective-werror
1398 Turn off selective compiler errors. (default:
1399 enabled)
1400 --enable-strict-compilation
1401 Enable all warnings from compiler and make them
1402 errors (default: disabled)
1403
1404 Some influential environment variables:
1405 CC C compiler command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1408 nonstandard directory <lib dir>
1409 LIBS libraries to pass to the linker, e.g. -l<library>
1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1411 you have headers in a nonstandard directory <include dir>
1412 CPP C preprocessor
1413 PKG_CONFIG path to pkg-config utility
1414 PKG_CONFIG_PATH
1415 directories to add to pkg-config's search path
1416 PKG_CONFIG_LIBDIR
1417 path overriding pkg-config's built-in search path
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 gccmakedep configure 1.0.3
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1538 # ---------------------------------------------
1539 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1540 # accordingly.
1541 ac_fn_c_check_decl ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 as_decl_name=`echo $2|sed 's/ *(.*//'`
1545 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1547 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1550 else
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1553 $4
1554 int
1555 main ()
1556 {
1557 #ifndef $as_decl_name
1558 #ifdef __cplusplus
1559 (void) $as_decl_use;
1560 #else
1561 (void) $as_decl_name;
1562 #endif
1563 #endif
1564
1565 ;
1566 return 0;
1567 }
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 eval "$3=yes"
1571 else
1572 eval "$3=no"
1573 fi
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 fi
1576 eval ac_res=\$$3
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578 $as_echo "$ac_res" >&6; }
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580
1581 } # ac_fn_c_check_decl
1582
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_cpp
1619
1620 # ac_fn_c_try_run LINENO
1621 # ----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1623 # that executables *can* be run.
1624 ac_fn_c_try_run ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1638 { { case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_try") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; }; }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: program exited with status $ac_status" >&5
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=$ac_status
1655 fi
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_run
1661
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 fi
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_header_compile
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738 cat >config.log <<_ACEOF
1739 This file contains any messages produced by compilers while
1740 running configure, to aid debugging if configure makes a mistake.
1741
1742 It was created by gccmakedep $as_me 1.0.3, which was
1743 generated by GNU Autoconf 2.69. Invocation command line was
1744
1745 $ $0 $@
1746
1747 _ACEOF
1748 exec 5>>config.log
1749 {
1750 cat <<_ASUNAME
1751 ## --------- ##
1752 ## Platform. ##
1753 ## --------- ##
1754
1755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1759 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760
1761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1762 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1763
1764 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1765 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1767 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1768 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1769 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1770 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1771
1772 _ASUNAME
1773
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 $as_echo "PATH: $as_dir"
1780 done
1781 IFS=$as_save_IFS
1782
1783 } >&5
1784
1785 cat >&5 <<_ACEOF
1786
1787
1788 ## ----------- ##
1789 ## Core tests. ##
1790 ## ----------- ##
1791
1792 _ACEOF
1793
1794
1795 # Keep a trace of the command line.
1796 # Strip out --no-create and --no-recursion so they do not pile up.
1797 # Strip out --silent because we don't want to record it for future runs.
1798 # Also quote any args containing shell meta-characters.
1799 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_configure_args=
1801 ac_configure_args0=
1802 ac_configure_args1=
1803 ac_must_keep_next=false
1804 for ac_pass in 1 2
1805 do
1806 for ac_arg
1807 do
1808 case $ac_arg in
1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1811 | -silent | --silent | --silen | --sile | --sil)
1812 continue ;;
1813 *\'*)
1814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 esac
1816 case $ac_pass in
1817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1818 2)
1819 as_fn_append ac_configure_args1 " '$ac_arg'"
1820 if test $ac_must_keep_next = true; then
1821 ac_must_keep_next=false # Got value, back to normal.
1822 else
1823 case $ac_arg in
1824 *=* | --config-cache | -C | -disable-* | --disable-* \
1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1827 | -with-* | --with-* | -without-* | --without-* | --x)
1828 case "$ac_configure_args0 " in
1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 esac
1831 ;;
1832 -* ) ac_must_keep_next=true ;;
1833 esac
1834 fi
1835 as_fn_append ac_configure_args " '$ac_arg'"
1836 ;;
1837 esac
1838 done
1839 done
1840 { ac_configure_args0=; unset ac_configure_args0;}
1841 { ac_configure_args1=; unset ac_configure_args1;}
1842
1843 # When interrupted or exit'd, cleanup temporary files, and complete
1844 # config.log. We remove comments because anyway the quotes in there
1845 # would cause problems or look ugly.
1846 # WARNING: Use '\'' to represent an apostrophe within the trap.
1847 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1848 trap 'exit_status=$?
1849 # Save into config.log some information that might help in debugging.
1850 {
1851 echo
1852
1853 $as_echo "## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##"
1856 echo
1857 # The following way of writing the cache mishandles newlines in values,
1858 (
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in #(
1862 *${as_nl}*)
1863 case $ac_var in #(
1864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866 esac
1867 case $ac_var in #(
1868 _ | IFS | as_nl) ;; #(
1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870 *) { eval $ac_var=; unset $ac_var;} ;;
1871 esac ;;
1872 esac
1873 done
1874 (set) 2>&1 |
1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876 *${as_nl}ac_space=\ *)
1877 sed -n \
1878 "s/'\''/'\''\\\\'\'''\''/g;
1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 ;; #(
1881 *)
1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883 ;;
1884 esac |
1885 sort
1886 )
1887 echo
1888
1889 $as_echo "## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##"
1892 echo
1893 for ac_var in $ac_subst_vars
1894 do
1895 eval ac_val=\$$ac_var
1896 case $ac_val in
1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 esac
1899 $as_echo "$ac_var='\''$ac_val'\''"
1900 done | sort
1901 echo
1902
1903 if test -n "$ac_subst_files"; then
1904 $as_echo "## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##"
1907 echo
1908 for ac_var in $ac_subst_files
1909 do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 $as_echo "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1917 fi
1918
1919 if test -s confdefs.h; then
1920 $as_echo "## ----------- ##
1921 ## confdefs.h. ##
1922 ## ----------- ##"
1923 echo
1924 cat confdefs.h
1925 echo
1926 fi
1927 test "$ac_signal" != 0 &&
1928 $as_echo "$as_me: caught signal $ac_signal"
1929 $as_echo "$as_me: exit $exit_status"
1930 } >&5
1931 rm -f core *.core core.conftest.* &&
1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1933 exit $exit_status
1934 ' 0
1935 for ac_signal in 1 2 13 15; do
1936 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1937 done
1938 ac_signal=0
1939
1940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1941 rm -f -r conftest* confdefs.h
1942
1943 $as_echo "/* confdefs.h */" > confdefs.h
1944
1945 # Predefined preprocessor variables.
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 _ACEOF
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953 _ACEOF
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1957 _ACEOF
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_STRING "$PACKAGE_STRING"
1961 _ACEOF
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965 _ACEOF
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_URL "$PACKAGE_URL"
1969 _ACEOF
1970
1971
1972 # Let the site file select an alternate cache file if it wants to.
1973 # Prefer an explicitly selected file to automatically selected ones.
1974 ac_site_file1=NONE
1975 ac_site_file2=NONE
1976 if test -n "$CONFIG_SITE"; then
1977 # We do not want a PATH search for config.site.
1978 case $CONFIG_SITE in #((
1979 -*) ac_site_file1=./$CONFIG_SITE;;
1980 */*) ac_site_file1=$CONFIG_SITE;;
1981 *) ac_site_file1=./$CONFIG_SITE;;
1982 esac
1983 elif test "x$prefix" != xNONE; then
1984 ac_site_file1=$prefix/share/config.site
1985 ac_site_file2=$prefix/etc/config.site
1986 else
1987 ac_site_file1=$ac_default_prefix/share/config.site
1988 ac_site_file2=$ac_default_prefix/etc/config.site
1989 fi
1990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991 do
1992 test "x$ac_site_file" = xNONE && continue
1993 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1996 sed 's/^/| /' "$ac_site_file" >&5
1997 . "$ac_site_file" \
1998 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 as_fn_error $? "failed to load site script $ac_site_file
2001 See \`config.log' for more details" "$LINENO" 5; }
2002 fi
2003 done
2004
2005 if test -r "$cache_file"; then
2006 # Some versions of bash will fail to source /dev/null (special files
2007 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2011 case $cache_file in
2012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013 *) . "./$cache_file";;
2014 esac
2015 fi
2016 else
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2019 >$cache_file
2020 fi
2021
2022 # Check that the precious variables saved in the cache have kept the same
2023 # value.
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027 eval ac_new_set=\$ac_env_${ac_var}_set
2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029 eval ac_new_val=\$ac_env_${ac_var}_value
2030 case $ac_old_set,$ac_new_set in
2031 set,)
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2035 ,set)
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2039 ,);;
2040 *)
2041 if test "x$ac_old_val" != "x$ac_new_val"; then
2042 # differences in whitespace do not lead to failure.
2043 ac_old_val_w=`echo x $ac_old_val`
2044 ac_new_val_w=`echo x $ac_new_val`
2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048 ac_cache_corrupted=:
2049 else
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052 eval $ac_var=\$ac_old_val
2053 fi
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2055 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2058 fi;;
2059 esac
2060 # Pass precious variables to config.status.
2061 if test "$ac_new_set" = set; then
2062 case $ac_new_val in
2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 *) ac_arg=$ac_var=$ac_new_val ;;
2065 esac
2066 case " $ac_configure_args " in
2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2068 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2069 esac
2070 fi
2071 done
2072 if $ac_cache_corrupted; then
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2078 fi
2079 ## -------------------- ##
2080 ## Main body of script. ##
2081 ## -------------------- ##
2082
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
2090
2091
2092 # Initialize Automake
2093 am__api_version='1.14'
2094
2095 ac_aux_dir=
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2100 break
2101 elif test -f "$ac_dir/install.sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2104 break
2105 elif test -f "$ac_dir/shtool"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 break
2109 fi
2110 done
2111 if test -z "$ac_aux_dir"; then
2112 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2113 fi
2114
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122
2123
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 # Reject install programs that cannot install multiple files.
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2139 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2140 if test -z "$INSTALL"; then
2141 if ${ac_cv_path_install+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 # Account for people who put trailing slashes in PATH elements.
2150 case $as_dir/ in #((
2151 ./ | .// | /[cC]/* | \
2152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2154 /usr/ucb/* ) ;;
2155 *)
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2158 # by default.
2159 for ac_prog in ginstall scoinst install; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2162 if test $ac_prog = install &&
2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2165 :
2166 elif test $ac_prog = install &&
2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2169 :
2170 else
2171 rm -rf conftest.one conftest.two conftest.dir
2172 echo one > conftest.one
2173 echo two > conftest.two
2174 mkdir conftest.dir
2175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176 test -s conftest.one && test -s conftest.two &&
2177 test -s conftest.dir/conftest.one &&
2178 test -s conftest.dir/conftest.two
2179 then
2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 break 3
2182 fi
2183 fi
2184 fi
2185 done
2186 done
2187 ;;
2188 esac
2189
2190 done
2191 IFS=$as_save_IFS
2192
2193 rm -rf conftest.one conftest.two conftest.dir
2194
2195 fi
2196 if test "${ac_cv_path_install+set}" = set; then
2197 INSTALL=$ac_cv_path_install
2198 else
2199 # As a last resort, use the slow shell script. Don't cache a
2200 # value for INSTALL within a source directory, because that will
2201 # break other packages using the cache if that directory is
2202 # removed, or if the value is a relative name.
2203 INSTALL=$ac_install_sh
2204 fi
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2207 $as_echo "$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2218 $as_echo_n "checking whether build environment is sane... " >&6; }
2219 # Reject unsafe characters in $srcdir or the absolute working directory
2220 # name. Accept space and tab only in the latter.
2221 am_lf='
2222 '
2223 case `pwd` in
2224 *[\\\"\#\$\&\'\`$am_lf]*)
2225 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2226 esac
2227 case $srcdir in
2228 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2229 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2230 esac
2231
2232 # Do 'set' in a subshell so we don't clobber the current shell's
2233 # arguments. Must try -L first in case configure is actually a
2234 # symlink; some systems play weird games with the mod time of symlinks
2235 # (eg FreeBSD returns the mod time of the symlink's containing
2236 # directory).
2237 if (
2238 am_has_slept=no
2239 for am_try in 1 2; do
2240 echo "timestamp, slept: $am_has_slept" > conftest.file
2241 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2242 if test "$*" = "X"; then
2243 # -L didn't work.
2244 set X `ls -t "$srcdir/configure" conftest.file`
2245 fi
2246 if test "$*" != "X $srcdir/configure conftest.file" \
2247 && test "$*" != "X conftest.file $srcdir/configure"; then
2248
2249 # If neither matched, then we have a broken ls. This can happen
2250 # if, for instance, CONFIG_SHELL is bash and it inherits a
2251 # broken ls alias from the environment. This has actually
2252 # happened. Such a system could not be considered "sane".
2253 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2254 alias in your environment" "$LINENO" 5
2255 fi
2256 if test "$2" = conftest.file || test $am_try -eq 2; then
2257 break
2258 fi
2259 # Just in case.
2260 sleep 1
2261 am_has_slept=yes
2262 done
2263 test "$2" = conftest.file
2264 )
2265 then
2266 # Ok.
2267 :
2268 else
2269 as_fn_error $? "newly created file is older than distributed files!
2270 Check your system clock" "$LINENO" 5
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2273 $as_echo "yes" >&6; }
2274 # If we didn't sleep, we still need to ensure time stamps of config.status and
2275 # generated files are strictly newer.
2276 am_sleep_pid=
2277 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2278 ( sleep 1 ) &
2279 am_sleep_pid=$!
2280 fi
2281
2282 rm -f conftest.file
2283
2284 test "$program_prefix" != NONE &&
2285 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2286 # Use a double $ so make ignores it.
2287 test "$program_suffix" != NONE &&
2288 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2289 # Double any \ or $.
2290 # By default was `s,x,x', remove it if useless.
2291 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2292 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2293
2294 # expand $ac_aux_dir to an absolute path
2295 am_aux_dir=`cd $ac_aux_dir && pwd`
2296
2297 if test x"${MISSING+set}" != xset; then
2298 case $am_aux_dir in
2299 *\ * | *\ *)
2300 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2301 *)
2302 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2303 esac
2304 fi
2305 # Use eval to expand $SHELL
2306 if eval "$MISSING --is-lightweight"; then
2307 am_missing_run="$MISSING "
2308 else
2309 am_missing_run=
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2311 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2312 fi
2313
2314 if test x"${install_sh}" != xset; then
2315 case $am_aux_dir in
2316 *\ * | *\ *)
2317 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2318 *)
2319 install_sh="\${SHELL} $am_aux_dir/install-sh"
2320 esac
2321 fi
2322
2323 # Installed binaries are usually stripped using 'strip' when the user
2324 # run "make install-strip". However 'strip' might not be the right
2325 # tool to use in cross-compilation environments, therefore Automake
2326 # will honor the 'STRIP' environment variable to overrule this program.
2327 if test "$cross_compiling" != no; then
2328 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}strip; ac_word=$2
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2332 $as_echo_n "checking for $ac_word... " >&6; }
2333 if ${ac_cv_prog_STRIP+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test -n "$STRIP"; then
2337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 STRIP=$ac_cv_prog_STRIP
2357 if test -n "$STRIP"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2359 $as_echo "$STRIP" >&6; }
2360 else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2362 $as_echo "no" >&6; }
2363 fi
2364
2365
2366 fi
2367 if test -z "$ac_cv_prog_STRIP"; then
2368 ac_ct_STRIP=$STRIP
2369 # Extract the first word of "strip", so it can be a program name with args.
2370 set dummy strip; ac_word=$2
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test -n "$ac_ct_STRIP"; then
2377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_ac_ct_STRIP="strip"
2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2397 if test -n "$ac_ct_STRIP"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2399 $as_echo "$ac_ct_STRIP" >&6; }
2400 else
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402 $as_echo "no" >&6; }
2403 fi
2404
2405 if test "x$ac_ct_STRIP" = x; then
2406 STRIP=":"
2407 else
2408 case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2412 ac_tool_warned=yes ;;
2413 esac
2414 STRIP=$ac_ct_STRIP
2415 fi
2416 else
2417 STRIP="$ac_cv_prog_STRIP"
2418 fi
2419
2420 fi
2421 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2422
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2424 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2425 if test -z "$MKDIR_P"; then
2426 if ${ac_cv_path_mkdir+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_prog in mkdir gmkdir; do
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2437 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2438 'mkdir (GNU coreutils) '* | \
2439 'mkdir (coreutils) '* | \
2440 'mkdir (fileutils) '4.1*)
2441 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2442 break 3;;
2443 esac
2444 done
2445 done
2446 done
2447 IFS=$as_save_IFS
2448
2449 fi
2450
2451 test -d ./--version && rmdir ./--version
2452 if test "${ac_cv_path_mkdir+set}" = set; then
2453 MKDIR_P="$ac_cv_path_mkdir -p"
2454 else
2455 # As a last resort, use the slow shell script. Don't cache a
2456 # value for MKDIR_P within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the value is a relative name.
2459 MKDIR_P="$ac_install_sh -d"
2460 fi
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2463 $as_echo "$MKDIR_P" >&6; }
2464
2465 for ac_prog in gawk mawk nawk awk
2466 do
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_AWK+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$AWK"; then
2475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_AWK="$ac_prog"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 AWK=$ac_cv_prog_AWK
2495 if test -n "$AWK"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2497 $as_echo "$AWK" >&6; }
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503
2504 test -n "$AWK" && break
2505 done
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2509 set x ${MAKE-make}
2510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 cat >conftest.make <<\_ACEOF
2515 SHELL = /bin/sh
2516 all:
2517 @echo '@@@%%%=$(MAKE)=@@@%%%'
2518 _ACEOF
2519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2521 *@@@%%%=?*=@@@%%%*)
2522 eval ac_cv_prog_make_${ac_make}_set=yes;;
2523 *)
2524 eval ac_cv_prog_make_${ac_make}_set=no;;
2525 esac
2526 rm -f conftest.make
2527 fi
2528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2531 SET_MAKE=
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 SET_MAKE="MAKE=${MAKE-make}"
2536 fi
2537
2538 rm -rf .tst 2>/dev/null
2539 mkdir .tst 2>/dev/null
2540 if test -d .tst; then
2541 am__leading_dot=.
2542 else
2543 am__leading_dot=_
2544 fi
2545 rmdir .tst 2>/dev/null
2546
2547 # Check whether --enable-silent-rules was given.
2548 if test "${enable_silent_rules+set}" = set; then :
2549 enableval=$enable_silent_rules;
2550 fi
2551
2552 case $enable_silent_rules in # (((
2553 yes) AM_DEFAULT_VERBOSITY=0;;
2554 no) AM_DEFAULT_VERBOSITY=1;;
2555 *) AM_DEFAULT_VERBOSITY=1;;
2556 esac
2557 am_make=${MAKE-make}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2559 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2560 if ${am_cv_make_support_nested_variables+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if $as_echo 'TRUE=$(BAR$(V))
2564 BAR0=false
2565 BAR1=true
2566 V=1
2567 am__doit:
2568 @$(TRUE)
2569 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2570 am_cv_make_support_nested_variables=yes
2571 else
2572 am_cv_make_support_nested_variables=no
2573 fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2576 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2577 if test $am_cv_make_support_nested_variables = yes; then
2578 AM_V='$(V)'
2579 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2580 else
2581 AM_V=$AM_DEFAULT_VERBOSITY
2582 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2583 fi
2584 AM_BACKSLASH='\'
2585
2586 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2587 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2588 # is not polluted with repeated "-I."
2589 am__isrc=' -I$(srcdir)'
2590 # test to see if srcdir already configured
2591 if test -f $srcdir/config.status; then
2592 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2593 fi
2594 fi
2595
2596 # test whether we have cygpath
2597 if test -z "$CYGPATH_W"; then
2598 if (cygpath --version) >/dev/null 2>/dev/null; then
2599 CYGPATH_W='cygpath -w'
2600 else
2601 CYGPATH_W=echo
2602 fi
2603 fi
2604
2605
2606 # Define the identity of the package.
2607 PACKAGE='gccmakedep'
2608 VERSION='1.0.3'
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE "$PACKAGE"
2613 _ACEOF
2614
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define VERSION "$VERSION"
2618 _ACEOF
2619
2620 # Some tools Automake needs.
2621
2622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2623
2624
2625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2626
2627
2628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2629
2630
2631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2632
2633
2634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2635
2636 # For better backward compatibility. To be removed once Automake 1.9.x
2637 # dies out for good. For more background, see:
2638 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2639 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2640 mkdir_p='$(MKDIR_P)'
2641
2642 # We need awk for the "check" target. The system "awk" is bad on
2643 # some platforms.
2644 # Always define AMTAR for backward compatibility. Yes, it's still used
2645 # in the wild :-( We should find a proper way to deprecate it ...
2646 AMTAR='$${TAR-tar}'
2647
2648
2649 # We'll loop over all known methods to create a tar archive until one works.
2650 _am_tools='gnutar pax cpio none'
2651
2652 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2653
2654
2655
2656
2657
2658
2659 # POSIX will say in a future version that running "rm -f" with no argument
2660 # is OK; and we want to be able to make that assumption in our Makefile
2661 # recipes. So use an aggressive probe to check that the usage we want is
2662 # actually supported "in the wild" to an acceptable degree.
2663 # See automake bug#10828.
2664 # To make any issue more visible, cause the running configure to be aborted
2665 # by default if the 'rm' program in use doesn't match our expectations; the
2666 # user can still override this though.
2667 if rm -f && rm -fr && rm -rf; then : OK; else
2668 cat >&2 <<'END'
2669 Oops!
2670
2671 Your 'rm' program seems unable to run without file operands specified
2672 on the command line, even when the '-f' option is present. This is contrary
2673 to the behaviour of most rm programs out there, and not conforming with
2674 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2675
2676 Please tell [email protected] about your system, including the value
2677 of your $PATH and any error possibly output before this message. This
2678 can help us improve future automake versions.
2679
2680 END
2681 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2682 echo 'Configuration will proceed anyway, since you have set the' >&2
2683 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2684 echo >&2
2685 else
2686 cat >&2 <<'END'
2687 Aborting the configuration process, to ensure you take notice of the issue.
2688
2689 You can download and install GNU coreutils to get an 'rm' implementation
2690 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2691
2692 If you want to complete the configuration process using your problematic
2693 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2694 to "yes", and re-run configure.
2695
2696 END
2697 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2698 fi
2699 fi
2700
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2703 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2704 # Check whether --enable-maintainer-mode was given.
2705 if test "${enable_maintainer_mode+set}" = set; then :
2706 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2707 else
2708 USE_MAINTAINER_MODE=no
2709 fi
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2712 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2713 if test $USE_MAINTAINER_MODE = yes; then
2714 MAINTAINER_MODE_TRUE=
2715 MAINTAINER_MODE_FALSE='#'
2716 else
2717 MAINTAINER_MODE_TRUE='#'
2718 MAINTAINER_MODE_FALSE=
2719 fi
2720
2721 MAINT=$MAINTAINER_MODE_TRUE
2722
2723
2724
2725 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737 DEPDIR="${am__leading_dot}deps"
2738
2739 ac_config_commands="$ac_config_commands depfiles"
2740
2741
2742 am_make=${MAKE-make}
2743 cat > confinc << 'END'
2744 am__doit:
2745 @echo this is the am__doit target
2746 .PHONY: am__doit
2747 END
2748 # If we don't find an include directive, just comment out the code.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2750 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2751 am__include="#"
2752 am__quote=
2753 _am_result=none
2754 # First try GNU make style include.
2755 echo "include confinc" > confmf
2756 # Ignore all kinds of additional output from 'make'.
2757 case `$am_make -s -f confmf 2> /dev/null` in #(
2758 *the\ am__doit\ target*)
2759 am__include=include
2760 am__quote=
2761 _am_result=GNU
2762 ;;
2763 esac
2764 # Now try BSD make style include.
2765 if test "$am__include" = "#"; then
2766 echo '.include "confinc"' > confmf
2767 case `$am_make -s -f confmf 2> /dev/null` in #(
2768 *the\ am__doit\ target*)
2769 am__include=.include
2770 am__quote="\""
2771 _am_result=BSD
2772 ;;
2773 esac
2774 fi
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2778 $as_echo "$_am_result" >&6; }
2779 rm -f confinc confmf
2780
2781 # Check whether --enable-dependency-tracking was given.
2782 if test "${enable_dependency_tracking+set}" = set; then :
2783 enableval=$enable_dependency_tracking;
2784 fi
2785
2786 if test "x$enable_dependency_tracking" != xno; then
2787 am_depcomp="$ac_aux_dir/depcomp"
2788 AMDEPBACKSLASH='\'
2789 am__nodep='_no'
2790 fi
2791 if test "x$enable_dependency_tracking" != xno; then
2792 AMDEP_TRUE=
2793 AMDEP_FALSE='#'
2794 else
2795 AMDEP_TRUE='#'
2796 AMDEP_FALSE=
2797 fi
2798
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 fi
2844 if test -z "$ac_cv_prog_CC"; then
2845 ac_ct_CC=$CC
2846 # Extract the first word of "gcc", so it can be a program name with args.
2847 set dummy gcc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2876 $as_echo "$ac_ct_CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882 if test "x$ac_ct_CC" = x; then
2883 CC=""
2884 else
2885 case $cross_compiling:$ac_tool_warned in
2886 yes:)
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2890 esac
2891 CC=$ac_ct_CC
2892 fi
2893 else
2894 CC="$ac_cv_prog_CC"
2895 fi
2896
2897 if test -z "$CC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_CC="${ac_tool_prefix}cc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936 fi
2937 fi
2938 if test -z "$CC"; then
2939 # Extract the first word of "cc", so it can be a program name with args.
2940 set dummy cc; 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 ac_prog_rejected=no
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958 ac_prog_rejected=yes
2959 continue
2960 fi
2961 ac_cv_prog_CC="cc"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2972 shift
2973 if test $# != 0; then
2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2977 shift
2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2979 fi
2980 fi
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in cl.exe
2997 do
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 test -n "$CC" && break
3036 done
3037 fi
3038 if test -z "$CC"; then
3039 ac_ct_CC=$CC
3040 for ac_prog in cl.exe
3041 do
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 test -n "$ac_ct_CC" && break
3080 done
3081
3082 if test "x$ac_ct_CC" = x; then
3083 CC=""
3084 else
3085 case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091 CC=$ac_ct_CC
3092 fi
3093 fi
3094
3095 fi
3096
3097
3098 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error $? "no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details" "$LINENO" 5; }
3102
3103 # Provide some information about the compiler.
3104 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105 set X $ac_compile
3106 ac_compiler=$2
3107 for ac_option in --version -v -V -qversion; do
3108 { { ac_try="$ac_compiler $ac_option >&5"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3116 ac_status=$?
3117 if test -s conftest.err; then
3118 sed '10a\
3119 ... rest of stderr output deleted ...
3120 10q' conftest.err >conftest.er1
3121 cat conftest.er1 >&5
3122 fi
3123 rm -f conftest.er1 conftest.err
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3126 done
3127
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 ac_clean_files_save=$ac_clean_files
3140 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3141 # Try to create an executable without -o first, disregard a.out.
3142 # It will help us diagnose broken compilers, and finding out an intuition
3143 # of exeext.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145 $as_echo_n "checking whether the C compiler works... " >&6; }
3146 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3147
3148 # The possible output files:
3149 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150
3151 ac_rmfiles=
3152 for ac_file in $ac_files
3153 do
3154 case $ac_file in
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157 esac
3158 done
3159 rm -f $ac_rmfiles
3160
3161 if { { ac_try="$ac_link_default"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link_default") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3175 # so that the user can short-circuit this test for compilers unknown to
3176 # Autoconf.
3177 for ac_file in $ac_files ''
3178 do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182 ;;
3183 [ab].out )
3184 # We found the default executable, but exeext='' is most
3185 # certainly right.
3186 break;;
3187 *.* )
3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3189 then :; else
3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 fi
3192 # We set ac_cv_exeext here because the later test for it is not
3193 # safe: cross compilers may not add the suffix if given an `-o'
3194 # argument, so we may need to know it at that point already.
3195 # Even if this section looks crufty: it has the advantage of
3196 # actually working.
3197 break;;
3198 * )
3199 break;;
3200 esac
3201 done
3202 test "$ac_cv_exeext" = no && ac_cv_exeext=
3203
3204 else
3205 ac_file=''
3206 fi
3207 if test -z "$ac_file"; then :
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error 77 "C compiler cannot create executables
3216 See \`config.log' for more details" "$LINENO" 5; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3222 $as_echo_n "checking for C compiler default output file name... " >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3224 $as_echo "$ac_file" >&6; }
3225 ac_exeext=$ac_cv_exeext
3226
3227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3228 ac_clean_files=$ac_clean_files_save
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3230 $as_echo_n "checking for suffix of executables... " >&6; }
3231 if { { ac_try="$ac_link"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 # `rm'.
3246 for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 break;;
3252 * ) break;;
3253 esac
3254 done
3255 else
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 fi
3261 rm -f conftest conftest$ac_cv_exeext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3263 $as_echo "$ac_cv_exeext" >&6; }
3264
3265 rm -f conftest.$ac_ext
3266 EXEEXT=$ac_cv_exeext
3267 ac_exeext=$EXEEXT
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3270 #include <stdio.h>
3271 int
3272 main ()
3273 {
3274 FILE *f = fopen ("conftest.out", "w");
3275 return ferror (f) || fclose (f) != 0;
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 ac_clean_files="$ac_clean_files conftest.out"
3282 # Check that the compiler produces executables we can run. If not, either
3283 # the compiler is broken, or we cross compile.
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3285 $as_echo_n "checking whether we are cross compiling... " >&6; }
3286 if test "$cross_compiling" != yes; then
3287 { { ac_try="$ac_link"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3298 if { ac_try='./conftest$ac_cv_exeext'
3299 { { case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_try") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; }; then
3309 cross_compiling=no
3310 else
3311 if test "$cross_compiling" = maybe; then
3312 cross_compiling=yes
3313 else
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "cannot run C compiled programs.
3317 If you meant to cross compile, use \`--host'.
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 fi
3320 fi
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3323 $as_echo "$cross_compiling" >&6; }
3324
3325 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3326 ac_clean_files=$ac_clean_files_save
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328 $as_echo_n "checking for suffix of object files... " >&6; }
3329 if ${ac_cv_objext+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334
3335 int
3336 main ()
3337 {
3338
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.o conftest.obj
3344 if { { ac_try="$ac_compile"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compile") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 for ac_file in conftest.o conftest.obj conftest.*; do
3356 test -f "$ac_file" || continue;
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360 break;;
3361 esac
3362 done
3363 else
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details" "$LINENO" 5; }
3371 fi
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373 fi
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375 $as_echo "$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380 if ${ac_cv_c_compiler_gnu+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389 #ifndef __GNUC__
3390 choke me
3391 #endif
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_compiler_gnu=yes
3399 else
3400 ac_compiler_gnu=no
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408 if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410 else
3411 GCC=
3412 fi
3413 ac_test_CFLAGS=${CFLAGS+set}
3414 ac_save_CFLAGS=$CFLAGS
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3417 if ${ac_cv_prog_cc_g+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3422 ac_cv_prog_cc_g=no
3423 CFLAGS="-g"
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426
3427 int
3428 main ()
3429 {
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_cv_prog_cc_g=yes
3437 else
3438 CFLAGS=""
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451
3452 else
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_g=yes
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3482 CFLAGS="-g -O2"
3483 else
3484 CFLAGS="-g"
3485 fi
3486 else
3487 if test "$GCC" = yes; then
3488 CFLAGS="-O2"
3489 else
3490 CFLAGS=
3491 fi
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if ${ac_cv_prog_cc_c89+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 ac_cv_prog_cc_c89=no
3499 ac_save_CC=$CC
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502 #include <stdarg.h>
3503 #include <stdio.h>
3504 struct stat;
3505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3506 struct buf { int x; };
3507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508 static char *e (p, i)
3509 char **p;
3510 int i;
3511 {
3512 return p[i];
3513 }
3514 static char *f (char * (*g) (char **, int), char **p, ...)
3515 {
3516 char *s;
3517 va_list v;
3518 va_start (v,p);
3519 s = g (p, va_arg (v,int));
3520 va_end (v);
3521 return s;
3522 }
3523
3524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3525 function prototypes and stuff, but not '\xHH' hex character constants.
3526 These don't provoke an error unfortunately, instead are silently treated
3527 as 'x'. The following induces an error, until -std is added to get
3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3529 array size at least. It's necessary to write '\x00'==0 to get something
3530 that's true only with -std. */
3531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3532
3533 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534 inside strings and character constants. */
3535 #define FOO(x) 'x'
3536 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3537
3538 int test (int i, double x);
3539 struct s1 {int (*f) (int a);};
3540 struct s2 {int (*f) (double a);};
3541 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542 int argc;
3543 char **argv;
3544 int
3545 main ()
3546 {
3547 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3554 do
3555 CC="$ac_save_CC $ac_arg"
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_c89=$ac_arg
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext
3560 test "x$ac_cv_prog_cc_c89" != "xno" && break
3561 done
3562 rm -f conftest.$ac_ext
3563 CC=$ac_save_CC
3564
3565 fi
3566 # AC_CACHE_VAL
3567 case "x$ac_cv_prog_cc_c89" in
3568 x)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570 $as_echo "none needed" >&6; } ;;
3571 xno)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3573 $as_echo "unsupported" >&6; } ;;
3574 *)
3575 CC="$CC $ac_cv_prog_cc_c89"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3577 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3578 esac
3579 if test "x$ac_cv_prog_cc_c89" != xno; then :
3580
3581 fi
3582
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3595 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3596 if ${am_cv_prog_cc_c_o+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 # Make sure it works both with $CC and with simple cc.
3611 # Following AC_PROG_CC_C_O, we do the test twice because some
3612 # compilers refuse to overwrite an existing .o file with -o,
3613 # though they will create one.
3614 am_cv_prog_cc_c_o=yes
3615 for am_i in 1 2; do
3616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } \
3621 && test -f conftest2.$ac_objext; then
3622 : OK
3623 else
3624 am_cv_prog_cc_c_o=no
3625 break
3626 fi
3627 done
3628 rm -f core conftest*
3629 unset am_i
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3632 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3633 if test "$am_cv_prog_cc_c_o" != yes; then
3634 # Losing compiler, so override with the script.
3635 # FIXME: It is wrong to rewrite CC.
3636 # But if we don't then we get into trouble of one sort or another.
3637 # A longer-term fix would be to have automake use am__CC in this case,
3638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3639 CC="$am_aux_dir/compile $CC"
3640 fi
3641 ac_ext=c
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648 depcc="$CC" am_compiler_list=
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3651 $as_echo_n "checking dependency style of $depcc... " >&6; }
3652 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656 # We make a subdir and do the tests there. Otherwise we can end up
3657 # making bogus files that we don't know about and never remove. For
3658 # instance it was reported that on HP-UX the gcc test will end up
3659 # making a dummy file named 'D' -- because '-MD' means "put the output
3660 # in D".
3661 rm -rf conftest.dir
3662 mkdir conftest.dir
3663 # Copy depcomp to subdir because otherwise we won't find it if we're
3664 # using a relative directory.
3665 cp "$am_depcomp" conftest.dir
3666 cd conftest.dir
3667 # We will build objects and dependencies in a subdirectory because
3668 # it helps to detect inapplicable dependency modes. For instance
3669 # both Tru64's cc and ICC support -MD to output dependencies as a
3670 # side effect of compilation, but ICC will put the dependencies in
3671 # the current directory while Tru64 will put them in the object
3672 # directory.
3673 mkdir sub
3674
3675 am_cv_CC_dependencies_compiler_type=none
3676 if test "$am_compiler_list" = ""; then
3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678 fi
3679 am__universal=false
3680 case " $depcc " in #(
3681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3682 esac
3683
3684 for depmode in $am_compiler_list; do
3685 # Setup a source with many dependencies, because some compilers
3686 # like to wrap large dependency lists on column 80 (with \), and
3687 # we should not choose a depcomp mode which is confused by this.
3688 #
3689 # We need to recreate these files for each test, as the compiler may
3690 # overwrite some of them when testing with obscure command lines.
3691 # This happens at least with the AIX C compiler.
3692 : > sub/conftest.c
3693 for i in 1 2 3 4 5 6; do
3694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3696 # Solaris 10 /bin/sh.
3697 echo '/* dummy */' > sub/conftst$i.h
3698 done
3699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3700
3701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3702 # mode. It turns out that the SunPro C++ compiler does not properly
3703 # handle '-M -o', and we need to detect this. Also, some Intel
3704 # versions had trouble with output in subdirs.
3705 am__obj=sub/conftest.${OBJEXT-o}
3706 am__minus_obj="-o $am__obj"
3707 case $depmode in
3708 gcc)
3709 # This depmode causes a compiler race in universal mode.
3710 test "$am__universal" = false || continue
3711 ;;
3712 nosideeffect)
3713 # After this tag, mechanisms are not by side-effect, so they'll
3714 # only be used when explicitly requested.
3715 if test "x$enable_dependency_tracking" = xyes; then
3716 continue
3717 else
3718 break
3719 fi
3720 ;;
3721 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3722 # This compiler won't grok '-c -o', but also, the minuso test has
3723 # not run yet. These depmodes are late enough in the game, and
3724 # so weak that their functioning should not be impacted.
3725 am__obj=conftest.${OBJEXT-o}
3726 am__minus_obj=
3727 ;;
3728 none) break ;;
3729 esac
3730 if depmode=$depmode \
3731 source=sub/conftest.c object=$am__obj \
3732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3734 >/dev/null 2>conftest.err &&
3735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739 # icc doesn't choke on unknown options, it will just issue warnings
3740 # or remarks (even with -Werror). So we grep stderr for any message
3741 # that says an option was ignored or not supported.
3742 # When given -MP, icc 7.0 and 7.1 complain thusly:
3743 # icc: Command line warning: ignoring option '-M'; no argument required
3744 # The diagnosis changed in icc 8.0:
3745 # icc: Command line remark: option '-MP' not supported
3746 if (grep 'ignoring option' conftest.err ||
3747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748 am_cv_CC_dependencies_compiler_type=$depmode
3749 break
3750 fi
3751 fi
3752 done
3753
3754 cd ..
3755 rm -rf conftest.dir
3756 else
3757 am_cv_CC_dependencies_compiler_type=none
3758 fi
3759
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3762 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764
3765 if
3766 test "x$enable_dependency_tracking" != xno \
3767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3768 am__fastdepCC_TRUE=
3769 am__fastdepCC_FALSE='#'
3770 else
3771 am__fastdepCC_TRUE='#'
3772 am__fastdepCC_FALSE=
3773 fi
3774
3775
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3777 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3778 if ${ac_cv_prog_cc_c99+:} false; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 ac_cv_prog_cc_c99=no
3782 ac_save_CC=$CC
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #include <stdarg.h>
3786 #include <stdbool.h>
3787 #include <stdlib.h>
3788 #include <wchar.h>
3789 #include <stdio.h>
3790
3791 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3792 #define debug(...) fprintf (stderr, __VA_ARGS__)
3793 #define showlist(...) puts (#__VA_ARGS__)
3794 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3795 static void
3796 test_varargs_macros (void)
3797 {
3798 int x = 1234;
3799 int y = 5678;
3800 debug ("Flag");
3801 debug ("X = %d\n", x);
3802 showlist (The first, second, and third items.);
3803 report (x>y, "x is %d but y is %d", x, y);
3804 }
3805
3806 // Check long long types.
3807 #define BIG64 18446744073709551615ull
3808 #define BIG32 4294967295ul
3809 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3810 #if !BIG_OK
3811 your preprocessor is broken;
3812 #endif
3813 #if BIG_OK
3814 #else
3815 your preprocessor is broken;
3816 #endif
3817 static long long int bignum = -9223372036854775807LL;
3818 static unsigned long long int ubignum = BIG64;
3819
3820 struct incomplete_array
3821 {
3822 int datasize;
3823 double data[];
3824 };
3825
3826 struct named_init {
3827 int number;
3828 const wchar_t *name;
3829 double average;
3830 };
3831
3832 typedef const char *ccp;
3833
3834 static inline int
3835 test_restrict (ccp restrict text)
3836 {
3837 // See if C++-style comments work.
3838 // Iterate through items via the restricted pointer.
3839 // Also check for declarations in for loops.
3840 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3841 continue;
3842 return 0;
3843 }
3844
3845 // Check varargs and va_copy.
3846 static void
3847 test_varargs (const char *format, ...)
3848 {
3849 va_list args;
3850 va_start (args, format);
3851 va_list args_copy;
3852 va_copy (args_copy, args);
3853
3854 const char *str;
3855 int number;
3856 float fnumber;
3857
3858 while (*format)
3859 {
3860 switch (*format++)
3861 {
3862 case 's': // string
3863 str = va_arg (args_copy, const char *);
3864 break;
3865 case 'd': // int
3866 number = va_arg (args_copy, int);
3867 break;
3868 case 'f': // float
3869 fnumber = va_arg (args_copy, double);
3870 break;
3871 default:
3872 break;
3873 }
3874 }
3875 va_end (args_copy);
3876 va_end (args);
3877 }
3878
3879 int
3880 main ()
3881 {
3882
3883 // Check bool.
3884 _Bool success = false;
3885
3886 // Check restrict.
3887 if (test_restrict ("String literal") == 0)
3888 success = true;
3889 char *restrict newvar = "Another string";
3890
3891 // Check varargs.
3892 test_varargs ("s, d' f .", "string", 65, 34.234);
3893 test_varargs_macros ();
3894
3895 // Check flexible array members.
3896 struct incomplete_array *ia =
3897 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3898 ia->datasize = 10;
3899 for (int i = 0; i < ia->datasize; ++i)
3900 ia->data[i] = i * 1.234;
3901
3902 // Check named initializers.
3903 struct named_init ni = {
3904 .number = 34,
3905 .name = L"Test wide string",
3906 .average = 543.34343,
3907 };
3908
3909 ni.number = 58;
3910
3911 int dynamic_array[ni.number];
3912 dynamic_array[ni.number - 1] = 543;
3913
3914 // work around unused variable warnings
3915 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3916 || dynamic_array[ni.number - 1] != 543);
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3923 do
3924 CC="$ac_save_CC $ac_arg"
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_prog_cc_c99=$ac_arg
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext
3929 test "x$ac_cv_prog_cc_c99" != "xno" && break
3930 done
3931 rm -f conftest.$ac_ext
3932 CC=$ac_save_CC
3933
3934 fi
3935 # AC_CACHE_VAL
3936 case "x$ac_cv_prog_cc_c99" in
3937 x)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3939 $as_echo "none needed" >&6; } ;;
3940 xno)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3942 $as_echo "unsupported" >&6; } ;;
3943 *)
3944 CC="$CC $ac_cv_prog_cc_c99"
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3946 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3947 esac
3948 if test "x$ac_cv_prog_cc_c99" != xno; then :
3949
3950 fi
3951
3952
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3961 # On Suns, sometimes $CPP names a directory.
3962 if test -n "$CPP" && test -d "$CPP"; then
3963 CPP=
3964 fi
3965 if test -z "$CPP"; then
3966 if ${ac_cv_prog_CPP+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 # Double quotes because CPP needs to be expanded
3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3971 do
3972 ac_preproc_ok=false
3973 for ac_c_preproc_warn_flag in '' yes
3974 do
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #ifdef __STDC__
3984 # include <limits.h>
3985 #else
3986 # include <assert.h>
3987 #endif
3988 Syntax error
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991
3992 else
3993 # Broken: fails on valid input.
3994 continue
3995 fi
3996 rm -f conftest.err conftest.i conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4003 _ACEOF
4004 if ac_fn_c_try_cpp "$LINENO"; then :
4005 # Broken: success on invalid input.
4006 continue
4007 else
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4011 fi
4012 rm -f conftest.err conftest.i conftest.$ac_ext
4013
4014 done
4015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016 rm -f conftest.i conftest.err conftest.$ac_ext
4017 if $ac_preproc_ok; then :
4018 break
4019 fi
4020
4021 done
4022 ac_cv_prog_CPP=$CPP
4023
4024 fi
4025 CPP=$ac_cv_prog_CPP
4026 else
4027 ac_cv_prog_CPP=$CPP
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4030 $as_echo "$CPP" >&6; }
4031 ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4033 do
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047 Syntax error
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050
4051 else
4052 # Broken: fails on valid input.
4053 continue
4054 fi
4055 rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <ac_nonexistent.h>
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4064 # Broken: success on invalid input.
4065 continue
4066 else
4067 # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.i conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then :
4077
4078 else
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4082 See \`config.log' for more details" "$LINENO" 5; }
4083 fi
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4094 if ${ac_cv_path_GREP+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -z "$GREP"; then
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 as_fn_executable_p "$ac_path_GREP" || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4112 *GNU*)
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114 *)
4115 ac_count=0
4116 $as_echo_n 0123456789 >"conftest.in"
4117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 as_fn_arith $ac_count + 1 && ac_count=$as_val
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4130 fi
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137 $ac_path_GREP_found && break 3
4138 done
4139 done
4140 done
4141 IFS=$as_save_IFS
4142 if test -z "$ac_cv_path_GREP"; then
4143 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 fi
4145 else
4146 ac_cv_path_GREP=$GREP
4147 fi
4148
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4151 $as_echo "$ac_cv_path_GREP" >&6; }
4152 GREP="$ac_cv_path_GREP"
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4156 $as_echo_n "checking for egrep... " >&6; }
4157 if ${ac_cv_path_EGREP+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4161 then ac_cv_path_EGREP="$GREP -E"
4162 else
4163 if test -z "$EGREP"; then
4164 ac_path_EGREP_found=false
4165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168 do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_prog in egrep; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4174 as_fn_executable_p "$ac_path_EGREP" || continue
4175 # Check for GNU ac_path_EGREP and select it if it is found.
4176 # Check for GNU $ac_path_EGREP
4177 case `"$ac_path_EGREP" --version 2>&1` in
4178 *GNU*)
4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4180 *)
4181 ac_count=0
4182 $as_echo_n 0123456789 >"conftest.in"
4183 while :
4184 do
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
4188 $as_echo 'EGREP' >> "conftest.nl"
4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4191 as_fn_arith $ac_count + 1 && ac_count=$as_val
4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_EGREP="$ac_path_EGREP"
4195 ac_path_EGREP_max=$ac_count
4196 fi
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 esac
4202
4203 $ac_path_EGREP_found && break 3
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208 if test -z "$ac_cv_path_EGREP"; then
4209 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210 fi
4211 else
4212 ac_cv_path_EGREP=$EGREP
4213 fi
4214
4215 fi
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4218 $as_echo "$ac_cv_path_EGREP" >&6; }
4219 EGREP="$ac_cv_path_EGREP"
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4223 $as_echo_n "checking for ANSI C header files... " >&6; }
4224 if ${ac_cv_header_stdc+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230 #include <stdarg.h>
4231 #include <string.h>
4232 #include <float.h>
4233
4234 int
4235 main ()
4236 {
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_header_stdc=yes
4244 else
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248
4249 if test $ac_cv_header_stdc = yes; then
4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <string.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "memchr" >/dev/null 2>&1; then :
4258
4259 else
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdlib.h>
4271
4272 _ACEOF
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274 $EGREP "free" >/dev/null 2>&1; then :
4275
4276 else
4277 ac_cv_header_stdc=no
4278 fi
4279 rm -f conftest*
4280
4281 fi
4282
4283 if test $ac_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4285 if test "$cross_compiling" = yes; then :
4286 :
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <ctype.h>
4291 #include <stdlib.h>
4292 #if ((' ' & 0x0FF) == 0x020)
4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 #else
4296 # define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301 #endif
4302
4303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304 int
4305 main ()
4306 {
4307 int i;
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4311 return 2;
4312 return 0;
4313 }
4314 _ACEOF
4315 if ac_fn_c_try_run "$LINENO"; then :
4316
4317 else
4318 ac_cv_header_stdc=no
4319 fi
4320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4321 conftest.$ac_objext conftest.beam conftest.$ac_ext
4322 fi
4323
4324 fi
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4327 $as_echo "$ac_cv_header_stdc" >&6; }
4328 if test $ac_cv_header_stdc = yes; then
4329
4330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4331
4332 fi
4333
4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
4337 do :
4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340 "
4341 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4342 cat >>confdefs.h <<_ACEOF
4343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 _ACEOF
4345
4346 fi
4347
4348 done
4349
4350
4351
4352
4353
4354
4355 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4356 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4357 CLANGCC="yes"
4358 else
4359 CLANGCC="no"
4360 fi
4361
4362 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4363 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4364 INTELCC="yes"
4365 else
4366 INTELCC="no"
4367 fi
4368
4369 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4370 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4371 SUNCC="yes"
4372 else
4373 SUNCC="no"
4374 fi
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 case $PKG_CONFIG in
4394 [\\/]* | ?:[\\/]*)
4395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4396 ;;
4397 *)
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 ;;
4414 esac
4415 fi
4416 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4417 if test -n "$PKG_CONFIG"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4419 $as_echo "$PKG_CONFIG" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426 fi
4427 if test -z "$ac_cv_path_PKG_CONFIG"; then
4428 ac_pt_PKG_CONFIG=$PKG_CONFIG
4429 # Extract the first word of "pkg-config", so it can be a program name with args.
4430 set dummy pkg-config; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 case $ac_pt_PKG_CONFIG in
4437 [\\/]* | ?:[\\/]*)
4438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4439 ;;
4440 *)
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 ;;
4457 esac
4458 fi
4459 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4460 if test -n "$ac_pt_PKG_CONFIG"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4462 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468 if test "x$ac_pt_PKG_CONFIG" = x; then
4469 PKG_CONFIG=""
4470 else
4471 case $cross_compiling:$ac_tool_warned in
4472 yes:)
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477 PKG_CONFIG=$ac_pt_PKG_CONFIG
4478 fi
4479 else
4480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4481 fi
4482
4483 fi
4484 if test -n "$PKG_CONFIG"; then
4485 _pkg_min_version=0.9.0
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4487 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 $as_echo "yes" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4494 PKG_CONFIG=""
4495 fi
4496 fi
4497 # Make sure we can run config.sub.
4498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4502 $as_echo_n "checking build system type... " >&6; }
4503 if ${ac_cv_build+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 ac_build_alias=$build_alias
4507 test "x$ac_build_alias" = x &&
4508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4509 test "x$ac_build_alias" = x &&
4510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4516 $as_echo "$ac_cv_build" >&6; }
4517 case $ac_cv_build in
4518 *-*-*) ;;
4519 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4520 esac
4521 build=$ac_cv_build
4522 ac_save_IFS=$IFS; IFS='-'
4523 set x $ac_cv_build
4524 shift
4525 build_cpu=$1
4526 build_vendor=$2
4527 shift; shift
4528 # Remember, the first character of IFS is used to create $*,
4529 # except with old shells:
4530 build_os=$*
4531 IFS=$ac_save_IFS
4532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4536 $as_echo_n "checking host system type... " >&6; }
4537 if ${ac_cv_host+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test "x$host_alias" = x; then
4541 ac_cv_host=$ac_cv_build
4542 else
4543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4545 fi
4546
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4549 $as_echo "$ac_cv_host" >&6; }
4550 case $ac_cv_host in
4551 *-*-*) ;;
4552 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4553 esac
4554 host=$ac_cv_host
4555 ac_save_IFS=$IFS; IFS='-'
4556 set x $ac_cv_host
4557 shift
4558 host_cpu=$1
4559 host_vendor=$2
4560 shift; shift
4561 # Remember, the first character of IFS is used to create $*,
4562 # except with old shells:
4563 host_os=$*
4564 IFS=$ac_save_IFS
4565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4570 if ${ac_cv_path_SED+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4574 for ac_i in 1 2 3 4 5 6 7; do
4575 ac_script="$ac_script$as_nl$ac_script"
4576 done
4577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4578 { ac_script=; unset ac_script;}
4579 if test -z "$SED"; then
4580 ac_path_SED_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in sed gsed; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4590 as_fn_executable_p "$ac_path_SED" || continue
4591 # Check for GNU ac_path_SED and select it if it is found.
4592 # Check for GNU $ac_path_SED
4593 case `"$ac_path_SED" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4596 *)
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo '' >> "conftest.nl"
4605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_SED_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_SED="$ac_path_SED"
4611 ac_path_SED_max=$ac_count
4612 fi
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4618
4619 $ac_path_SED_found && break 3
4620 done
4621 done
4622 done
4623 IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_SED"; then
4625 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4626 fi
4627 else
4628 ac_cv_path_SED=$SED
4629 fi
4630
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4633 $as_echo "$ac_cv_path_SED" >&6; }
4634 SED="$ac_cv_path_SED"
4635 rm -f conftest.sed
4636
4637
4638
4639
4640
4641
4642 # Check whether --enable-selective-werror was given.
4643 if test "${enable_selective_werror+set}" = set; then :
4644 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4645 else
4646 SELECTIVE_WERROR=yes
4647 fi
4648
4649
4650
4651
4652
4653 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4654 if test "x$SUNCC" = "xyes"; then
4655 BASE_CFLAGS="-v"
4656 else
4657 BASE_CFLAGS=""
4658 fi
4659
4660 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 xorg_testset_save_CFLAGS="$CFLAGS"
4675
4676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 int i;
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 xorg_cv_cc_flag_unknown_warning_option=yes
4689 else
4690 xorg_cv_cc_flag_unknown_warning_option=no
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4697 CFLAGS="$xorg_testset_save_CFLAGS"
4698 fi
4699
4700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4703 fi
4704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 int i;
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 xorg_cv_cc_flag_unused_command_line_argument=yes
4716 else
4717 xorg_cv_cc_flag_unused_command_line_argument=no
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4724 CFLAGS="$xorg_testset_save_CFLAGS"
4725 fi
4726
4727 found="no"
4728
4729 if test $found = "no" ; then
4730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4732 fi
4733
4734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4736 fi
4737
4738 CFLAGS="$CFLAGS -Wall"
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4741 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4742 cacheid=xorg_cv_cc_flag__Wall
4743 if eval \${$cacheid+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 int i;
4749 int
4750 main ()
4751 {
4752
4753 ;
4754 return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_link "$LINENO"; then :
4758 eval $cacheid=yes
4759 else
4760 eval $cacheid=no
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
4764 fi
4765
4766
4767 CFLAGS="$xorg_testset_save_CFLAGS"
4768
4769 eval supported=\$$cacheid
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4771 $as_echo "$supported" >&6; }
4772 if test "$supported" = "yes" ; then
4773 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4774 found="yes"
4775 fi
4776 fi
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792 xorg_testset_save_CFLAGS="$CFLAGS"
4793
4794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 int i;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 xorg_cv_cc_flag_unknown_warning_option=yes
4807 else
4808 xorg_cv_cc_flag_unknown_warning_option=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4815 CFLAGS="$xorg_testset_save_CFLAGS"
4816 fi
4817
4818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4821 fi
4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 int i;
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 xorg_cv_cc_flag_unused_command_line_argument=yes
4834 else
4835 xorg_cv_cc_flag_unused_command_line_argument=no
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4842 CFLAGS="$xorg_testset_save_CFLAGS"
4843 fi
4844
4845 found="no"
4846
4847 if test $found = "no" ; then
4848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4850 fi
4851
4852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4854 fi
4855
4856 CFLAGS="$CFLAGS -Wpointer-arith"
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4859 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4860 cacheid=xorg_cv_cc_flag__Wpointer_arith
4861 if eval \${$cacheid+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 int i;
4867 int
4868 main ()
4869 {
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_link "$LINENO"; then :
4876 eval $cacheid=yes
4877 else
4878 eval $cacheid=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext \
4881 conftest$ac_exeext conftest.$ac_ext
4882 fi
4883
4884
4885 CFLAGS="$xorg_testset_save_CFLAGS"
4886
4887 eval supported=\$$cacheid
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4889 $as_echo "$supported" >&6; }
4890 if test "$supported" = "yes" ; then
4891 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4892 found="yes"
4893 fi
4894 fi
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 xorg_testset_save_CFLAGS="$CFLAGS"
4911
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 int i;
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 xorg_cv_cc_flag_unknown_warning_option=yes
4925 else
4926 xorg_cv_cc_flag_unknown_warning_option=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4933 CFLAGS="$xorg_testset_save_CFLAGS"
4934 fi
4935
4936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939 fi
4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 xorg_cv_cc_flag_unused_command_line_argument=yes
4952 else
4953 xorg_cv_cc_flag_unused_command_line_argument=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4960 CFLAGS="$xorg_testset_save_CFLAGS"
4961 fi
4962
4963 found="no"
4964
4965 if test $found = "no" ; then
4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 fi
4969
4970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4972 fi
4973
4974 CFLAGS="$CFLAGS -Wmissing-declarations"
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4977 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4978 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4979 if eval \${$cacheid+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_link "$LINENO"; then :
4994 eval $cacheid=yes
4995 else
4996 eval $cacheid=no
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 fi
5001
5002
5003 CFLAGS="$xorg_testset_save_CFLAGS"
5004
5005 eval supported=\$$cacheid
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5007 $as_echo "$supported" >&6; }
5008 if test "$supported" = "yes" ; then
5009 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5010 found="yes"
5011 fi
5012 fi
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 xorg_testset_save_CFLAGS="$CFLAGS"
5029
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 xorg_cv_cc_flag_unknown_warning_option=yes
5043 else
5044 xorg_cv_cc_flag_unknown_warning_option=no
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051 CFLAGS="$xorg_testset_save_CFLAGS"
5052 fi
5053
5054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057 fi
5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 int i;
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 xorg_cv_cc_flag_unused_command_line_argument=yes
5070 else
5071 xorg_cv_cc_flag_unused_command_line_argument=no
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5079 fi
5080
5081 found="no"
5082
5083 if test $found = "no" ; then
5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086 fi
5087
5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090 fi
5091
5092 CFLAGS="$CFLAGS -Wformat=2"
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5095 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5096 cacheid=xorg_cv_cc_flag__Wformat_2
5097 if eval \${$cacheid+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_link "$LINENO"; then :
5112 eval $cacheid=yes
5113 else
5114 eval $cacheid=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 fi
5119
5120
5121 CFLAGS="$xorg_testset_save_CFLAGS"
5122
5123 eval supported=\$$cacheid
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5125 $as_echo "$supported" >&6; }
5126 if test "$supported" = "yes" ; then
5127 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5128 found="yes"
5129 fi
5130 fi
5131
5132 if test $found = "no" ; then
5133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5135 fi
5136
5137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5139 fi
5140
5141 CFLAGS="$CFLAGS -Wformat"
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5144 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5145 cacheid=xorg_cv_cc_flag__Wformat
5146 if eval \${$cacheid+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 int i;
5152 int
5153 main ()
5154 {
5155
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 if ac_fn_c_try_link "$LINENO"; then :
5161 eval $cacheid=yes
5162 else
5163 eval $cacheid=no
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext \
5166 conftest$ac_exeext conftest.$ac_ext
5167 fi
5168
5169
5170 CFLAGS="$xorg_testset_save_CFLAGS"
5171
5172 eval supported=\$$cacheid
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5174 $as_echo "$supported" >&6; }
5175 if test "$supported" = "yes" ; then
5176 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5177 found="yes"
5178 fi
5179 fi
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 xorg_testset_save_CFLAGS="$CFLAGS"
5198
5199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int i;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 xorg_cv_cc_flag_unknown_warning_option=yes
5212 else
5213 xorg_cv_cc_flag_unknown_warning_option=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221 fi
5222
5223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226 fi
5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 int i;
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 xorg_cv_cc_flag_unused_command_line_argument=yes
5239 else
5240 xorg_cv_cc_flag_unused_command_line_argument=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5247 CFLAGS="$xorg_testset_save_CFLAGS"
5248 fi
5249
5250 found="no"
5251
5252 if test $found = "no" ; then
5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255 fi
5256
5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259 fi
5260
5261 CFLAGS="$CFLAGS -Wstrict-prototypes"
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5264 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5265 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5266 if eval \${$cacheid+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_c_try_link "$LINENO"; then :
5281 eval $cacheid=yes
5282 else
5283 eval $cacheid=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 fi
5288
5289
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291
5292 eval supported=\$$cacheid
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5294 $as_echo "$supported" >&6; }
5295 if test "$supported" = "yes" ; then
5296 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5297 found="yes"
5298 fi
5299 fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 xorg_testset_save_CFLAGS="$CFLAGS"
5316
5317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 int i;
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 xorg_cv_cc_flag_unknown_warning_option=yes
5330 else
5331 xorg_cv_cc_flag_unknown_warning_option=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5338 CFLAGS="$xorg_testset_save_CFLAGS"
5339 fi
5340
5341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5344 fi
5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 int i;
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 xorg_cv_cc_flag_unused_command_line_argument=yes
5357 else
5358 xorg_cv_cc_flag_unused_command_line_argument=no
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5365 CFLAGS="$xorg_testset_save_CFLAGS"
5366 fi
5367
5368 found="no"
5369
5370 if test $found = "no" ; then
5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5373 fi
5374
5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377 fi
5378
5379 CFLAGS="$CFLAGS -Wmissing-prototypes"
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5382 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5383 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5384 if eval \${$cacheid+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_link "$LINENO"; then :
5399 eval $cacheid=yes
5400 else
5401 eval $cacheid=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext \
5404 conftest$ac_exeext conftest.$ac_ext
5405 fi
5406
5407
5408 CFLAGS="$xorg_testset_save_CFLAGS"
5409
5410 eval supported=\$$cacheid
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412 $as_echo "$supported" >&6; }
5413 if test "$supported" = "yes" ; then
5414 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5415 found="yes"
5416 fi
5417 fi
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 xorg_testset_save_CFLAGS="$CFLAGS"
5434
5435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 xorg_cv_cc_flag_unknown_warning_option=yes
5448 else
5449 xorg_cv_cc_flag_unknown_warning_option=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5456 CFLAGS="$xorg_testset_save_CFLAGS"
5457 fi
5458
5459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462 fi
5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 xorg_cv_cc_flag_unused_command_line_argument=yes
5475 else
5476 xorg_cv_cc_flag_unused_command_line_argument=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5483 CFLAGS="$xorg_testset_save_CFLAGS"
5484 fi
5485
5486 found="no"
5487
5488 if test $found = "no" ; then
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 fi
5492
5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495 fi
5496
5497 CFLAGS="$CFLAGS -Wnested-externs"
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5500 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5501 cacheid=xorg_cv_cc_flag__Wnested_externs
5502 if eval \${$cacheid+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_link "$LINENO"; then :
5517 eval $cacheid=yes
5518 else
5519 eval $cacheid=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5523 fi
5524
5525
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527
5528 eval supported=\$$cacheid
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5530 $as_echo "$supported" >&6; }
5531 if test "$supported" = "yes" ; then
5532 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5533 found="yes"
5534 fi
5535 fi
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 xorg_testset_save_CFLAGS="$CFLAGS"
5552
5553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 xorg_cv_cc_flag_unknown_warning_option=yes
5566 else
5567 xorg_cv_cc_flag_unknown_warning_option=no
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5574 CFLAGS="$xorg_testset_save_CFLAGS"
5575 fi
5576
5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 fi
5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 xorg_cv_cc_flag_unused_command_line_argument=yes
5593 else
5594 xorg_cv_cc_flag_unused_command_line_argument=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 found="no"
5605
5606 if test $found = "no" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610
5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613 fi
5614
5615 CFLAGS="$CFLAGS -Wbad-function-cast"
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5618 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5619 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5620 if eval \${$cacheid+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 int i;
5626 int
5627 main ()
5628 {
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 if ac_fn_c_try_link "$LINENO"; then :
5635 eval $cacheid=yes
5636 else
5637 eval $cacheid=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641 fi
5642
5643
5644 CFLAGS="$xorg_testset_save_CFLAGS"
5645
5646 eval supported=\$$cacheid
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5648 $as_echo "$supported" >&6; }
5649 if test "$supported" = "yes" ; then
5650 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5651 found="yes"
5652 fi
5653 fi
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 xorg_testset_save_CFLAGS="$CFLAGS"
5670
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 xorg_cv_cc_flag_unknown_warning_option=yes
5684 else
5685 xorg_cv_cc_flag_unknown_warning_option=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693 fi
5694
5695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 xorg_cv_cc_flag_unused_command_line_argument=yes
5711 else
5712 xorg_cv_cc_flag_unused_command_line_argument=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5719 CFLAGS="$xorg_testset_save_CFLAGS"
5720 fi
5721
5722 found="no"
5723
5724 if test $found = "no" ; then
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728
5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731 fi
5732
5733 CFLAGS="$CFLAGS -Wold-style-definition"
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5736 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5737 cacheid=xorg_cv_cc_flag__Wold_style_definition
5738 if eval \${$cacheid+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_link "$LINENO"; then :
5753 eval $cacheid=yes
5754 else
5755 eval $cacheid=no
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5759 fi
5760
5761
5762 CFLAGS="$xorg_testset_save_CFLAGS"
5763
5764 eval supported=\$$cacheid
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5766 $as_echo "$supported" >&6; }
5767 if test "$supported" = "yes" ; then
5768 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5769 found="yes"
5770 fi
5771 fi
5772
5773 if test $found = "no" ; then
5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776 fi
5777
5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780 fi
5781
5782 CFLAGS="$CFLAGS -fd"
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5785 $as_echo_n "checking if $CC supports -fd... " >&6; }
5786 cacheid=xorg_cv_cc_flag__fd
5787 if eval \${$cacheid+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 int i;
5793 int
5794 main ()
5795 {
5796
5797 ;
5798 return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_c_try_link "$LINENO"; then :
5802 eval $cacheid=yes
5803 else
5804 eval $cacheid=no
5805 fi
5806 rm -f core conftest.err conftest.$ac_objext \
5807 conftest$ac_exeext conftest.$ac_ext
5808 fi
5809
5810
5811 CFLAGS="$xorg_testset_save_CFLAGS"
5812
5813 eval supported=\$$cacheid
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5815 $as_echo "$supported" >&6; }
5816 if test "$supported" = "yes" ; then
5817 BASE_CFLAGS="$BASE_CFLAGS -fd"
5818 found="yes"
5819 fi
5820 fi
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 xorg_testset_save_CFLAGS="$CFLAGS"
5837
5838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 int i;
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 xorg_cv_cc_flag_unknown_warning_option=yes
5851 else
5852 xorg_cv_cc_flag_unknown_warning_option=no
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5859 CFLAGS="$xorg_testset_save_CFLAGS"
5860 fi
5861
5862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865 fi
5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877 xorg_cv_cc_flag_unused_command_line_argument=yes
5878 else
5879 xorg_cv_cc_flag_unused_command_line_argument=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5886 CFLAGS="$xorg_testset_save_CFLAGS"
5887 fi
5888
5889 found="no"
5890
5891 if test $found = "no" ; then
5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5894 fi
5895
5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5898 fi
5899
5900 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5903 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5904 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5905 if eval \${$cacheid+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 int i;
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_c_try_link "$LINENO"; then :
5920 eval $cacheid=yes
5921 else
5922 eval $cacheid=no
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926 fi
5927
5928
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930
5931 eval supported=\$$cacheid
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5933 $as_echo "$supported" >&6; }
5934 if test "$supported" = "yes" ; then
5935 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5936 found="yes"
5937 fi
5938 fi
5939
5940
5941
5942
5943
5944 # This chunk adds additional warnings that could catch undesired effects.
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 xorg_testset_save_CFLAGS="$CFLAGS"
5959
5960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 int i;
5970 _ACEOF
5971 if ac_fn_c_try_compile "$LINENO"; then :
5972 xorg_cv_cc_flag_unknown_warning_option=yes
5973 else
5974 xorg_cv_cc_flag_unknown_warning_option=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 fi
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5981 CFLAGS="$xorg_testset_save_CFLAGS"
5982 fi
5983
5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 fi
5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999 xorg_cv_cc_flag_unused_command_line_argument=yes
6000 else
6001 xorg_cv_cc_flag_unused_command_line_argument=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6008 CFLAGS="$xorg_testset_save_CFLAGS"
6009 fi
6010
6011 found="no"
6012
6013 if test $found = "no" ; then
6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016 fi
6017
6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020 fi
6021
6022 CFLAGS="$CFLAGS -Wunused"
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6025 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6026 cacheid=xorg_cv_cc_flag__Wunused
6027 if eval \${$cacheid+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 int i;
6033 int
6034 main ()
6035 {
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_link "$LINENO"; then :
6042 eval $cacheid=yes
6043 else
6044 eval $cacheid=no
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 fi
6049
6050
6051 CFLAGS="$xorg_testset_save_CFLAGS"
6052
6053 eval supported=\$$cacheid
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6055 $as_echo "$supported" >&6; }
6056 if test "$supported" = "yes" ; then
6057 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6058 found="yes"
6059 fi
6060 fi
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 xorg_testset_save_CFLAGS="$CFLAGS"
6077
6078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 int i;
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 xorg_cv_cc_flag_unknown_warning_option=yes
6091 else
6092 xorg_cv_cc_flag_unknown_warning_option=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6099 CFLAGS="$xorg_testset_save_CFLAGS"
6100 fi
6101
6102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 fi
6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 int i;
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117 xorg_cv_cc_flag_unused_command_line_argument=yes
6118 else
6119 xorg_cv_cc_flag_unused_command_line_argument=no
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6126 CFLAGS="$xorg_testset_save_CFLAGS"
6127 fi
6128
6129 found="no"
6130
6131 if test $found = "no" ; then
6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6134 fi
6135
6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138 fi
6139
6140 CFLAGS="$CFLAGS -Wuninitialized"
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6143 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6144 cacheid=xorg_cv_cc_flag__Wuninitialized
6145 if eval \${$cacheid+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 int i;
6151 int
6152 main ()
6153 {
6154
6155 ;
6156 return 0;
6157 }
6158 _ACEOF
6159 if ac_fn_c_try_link "$LINENO"; then :
6160 eval $cacheid=yes
6161 else
6162 eval $cacheid=no
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext \
6165 conftest$ac_exeext conftest.$ac_ext
6166 fi
6167
6168
6169 CFLAGS="$xorg_testset_save_CFLAGS"
6170
6171 eval supported=\$$cacheid
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6173 $as_echo "$supported" >&6; }
6174 if test "$supported" = "yes" ; then
6175 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6176 found="yes"
6177 fi
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194 xorg_testset_save_CFLAGS="$CFLAGS"
6195
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 int i;
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208 xorg_cv_cc_flag_unknown_warning_option=yes
6209 else
6210 xorg_cv_cc_flag_unknown_warning_option=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6217 CFLAGS="$xorg_testset_save_CFLAGS"
6218 fi
6219
6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 fi
6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 int i;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 xorg_cv_cc_flag_unused_command_line_argument=yes
6236 else
6237 xorg_cv_cc_flag_unused_command_line_argument=no
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6244 CFLAGS="$xorg_testset_save_CFLAGS"
6245 fi
6246
6247 found="no"
6248
6249 if test $found = "no" ; then
6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6252 fi
6253
6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256 fi
6257
6258 CFLAGS="$CFLAGS -Wshadow"
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6261 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6262 cacheid=xorg_cv_cc_flag__Wshadow
6263 if eval \${$cacheid+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 int
6270 main ()
6271 {
6272
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 eval $cacheid=yes
6279 else
6280 eval $cacheid=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 fi
6285
6286
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288
6289 eval supported=\$$cacheid
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6291 $as_echo "$supported" >&6; }
6292 if test "$supported" = "yes" ; then
6293 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6294 found="yes"
6295 fi
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 xorg_testset_save_CFLAGS="$CFLAGS"
6313
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6323 int i;
6324 _ACEOF
6325 if ac_fn_c_try_compile "$LINENO"; then :
6326 xorg_cv_cc_flag_unknown_warning_option=yes
6327 else
6328 xorg_cv_cc_flag_unknown_warning_option=no
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6335 CFLAGS="$xorg_testset_save_CFLAGS"
6336 fi
6337
6338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341 fi
6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"; then :
6353 xorg_cv_cc_flag_unused_command_line_argument=yes
6354 else
6355 xorg_cv_cc_flag_unused_command_line_argument=no
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6362 CFLAGS="$xorg_testset_save_CFLAGS"
6363 fi
6364
6365 found="no"
6366
6367 if test $found = "no" ; then
6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6370 fi
6371
6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374 fi
6375
6376 CFLAGS="$CFLAGS -Wmissing-noreturn"
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6379 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6380 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6381 if eval \${$cacheid+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 int i;
6387 int
6388 main ()
6389 {
6390
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396 eval $cacheid=yes
6397 else
6398 eval $cacheid=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 fi
6403
6404
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406
6407 eval supported=\$$cacheid
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6409 $as_echo "$supported" >&6; }
6410 if test "$supported" = "yes" ; then
6411 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6412 found="yes"
6413 fi
6414 fi
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 xorg_testset_save_CFLAGS="$CFLAGS"
6431
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 xorg_cv_cc_flag_unknown_warning_option=yes
6445 else
6446 xorg_cv_cc_flag_unknown_warning_option=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454 fi
6455
6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 fi
6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 xorg_cv_cc_flag_unused_command_line_argument=yes
6472 else
6473 xorg_cv_cc_flag_unused_command_line_argument=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6481 fi
6482
6483 found="no"
6484
6485 if test $found = "no" ; then
6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488 fi
6489
6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492 fi
6493
6494 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6497 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6498 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6499 if eval \${$cacheid+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 int i;
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 eval $cacheid=yes
6515 else
6516 eval $cacheid=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 fi
6521
6522
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525 eval supported=\$$cacheid
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527 $as_echo "$supported" >&6; }
6528 if test "$supported" = "yes" ; then
6529 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6530 found="yes"
6531 fi
6532 fi
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 xorg_testset_save_CFLAGS="$CFLAGS"
6549
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562 xorg_cv_cc_flag_unknown_warning_option=yes
6563 else
6564 xorg_cv_cc_flag_unknown_warning_option=no
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6571 CFLAGS="$xorg_testset_save_CFLAGS"
6572 fi
6573
6574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577 fi
6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 int i;
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 xorg_cv_cc_flag_unused_command_line_argument=yes
6590 else
6591 xorg_cv_cc_flag_unused_command_line_argument=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6598 CFLAGS="$xorg_testset_save_CFLAGS"
6599 fi
6600
6601 found="no"
6602
6603 if test $found = "no" ; then
6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610 fi
6611
6612 CFLAGS="$CFLAGS -Wredundant-decls"
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6615 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6616 cacheid=xorg_cv_cc_flag__Wredundant_decls
6617 if eval \${$cacheid+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 int i;
6623 int
6624 main ()
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_c_try_link "$LINENO"; then :
6632 eval $cacheid=yes
6633 else
6634 eval $cacheid=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 fi
6639
6640
6641 CFLAGS="$xorg_testset_save_CFLAGS"
6642
6643 eval supported=\$$cacheid
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6645 $as_echo "$supported" >&6; }
6646 if test "$supported" = "yes" ; then
6647 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6648 found="yes"
6649 fi
6650 fi
6651
6652
6653
6654 # These are currently disabled because they are noisy. They will be enabled
6655 # in the future once the codebase is sufficiently modernized to silence
6656 # them. For now, I don't want them to drown out the other warnings.
6657 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6658 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6659 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6660 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6661
6662 # Turn some warnings into errors, so we don't accidently get successful builds
6663 # when there are problems that should be fixed.
6664
6665 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 xorg_testset_save_CFLAGS="$CFLAGS"
6680
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int i;
6691 _ACEOF
6692 if ac_fn_c_try_compile "$LINENO"; then :
6693 xorg_cv_cc_flag_unknown_warning_option=yes
6694 else
6695 xorg_cv_cc_flag_unknown_warning_option=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 fi
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6702 CFLAGS="$xorg_testset_save_CFLAGS"
6703 fi
6704
6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708 fi
6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 int i;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 xorg_cv_cc_flag_unused_command_line_argument=yes
6721 else
6722 xorg_cv_cc_flag_unused_command_line_argument=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 fi
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730 fi
6731
6732 found="no"
6733
6734 if test $found = "no" ; then
6735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737 fi
6738
6739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741 fi
6742
6743 CFLAGS="$CFLAGS -Werror=implicit"
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6746 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6747 cacheid=xorg_cv_cc_flag__Werror_implicit
6748 if eval \${$cacheid+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 int i;
6754 int
6755 main ()
6756 {
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_link "$LINENO"; then :
6763 eval $cacheid=yes
6764 else
6765 eval $cacheid=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769 fi
6770
6771
6772 CFLAGS="$xorg_testset_save_CFLAGS"
6773
6774 eval supported=\$$cacheid
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6776 $as_echo "$supported" >&6; }
6777 if test "$supported" = "yes" ; then
6778 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6779 found="yes"
6780 fi
6781 fi
6782
6783 if test $found = "no" ; then
6784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6786 fi
6787
6788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790 fi
6791
6792 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6795 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6796 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6797 if eval \${$cacheid+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 int i;
6803 int
6804 main ()
6805 {
6806
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 if ac_fn_c_try_link "$LINENO"; then :
6812 eval $cacheid=yes
6813 else
6814 eval $cacheid=no
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 fi
6819
6820
6821 CFLAGS="$xorg_testset_save_CFLAGS"
6822
6823 eval supported=\$$cacheid
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6825 $as_echo "$supported" >&6; }
6826 if test "$supported" = "yes" ; then
6827 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6828 found="yes"
6829 fi
6830 fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 xorg_testset_save_CFLAGS="$CFLAGS"
6847
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 xorg_cv_cc_flag_unknown_warning_option=yes
6861 else
6862 xorg_cv_cc_flag_unknown_warning_option=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 fi
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int i;
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 xorg_cv_cc_flag_unused_command_line_argument=yes
6888 else
6889 xorg_cv_cc_flag_unused_command_line_argument=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 found="no"
6900
6901 if test $found = "no" ; then
6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905
6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 fi
6909
6910 CFLAGS="$CFLAGS -Werror=nonnull"
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6913 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6914 cacheid=xorg_cv_cc_flag__Werror_nonnull
6915 if eval \${$cacheid+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int i;
6921 int
6922 main ()
6923 {
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 eval $cacheid=yes
6931 else
6932 eval $cacheid=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 fi
6937
6938
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941 eval supported=\$$cacheid
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943 $as_echo "$supported" >&6; }
6944 if test "$supported" = "yes" ; then
6945 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6946 found="yes"
6947 fi
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 xorg_cv_cc_flag_unused_command_line_argument=yes
7006 else
7007 xorg_cv_cc_flag_unused_command_line_argument=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7014 CFLAGS="$xorg_testset_save_CFLAGS"
7015 fi
7016
7017 found="no"
7018
7019 if test $found = "no" ; then
7020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022 fi
7023
7024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026 fi
7027
7028 CFLAGS="$CFLAGS -Werror=init-self"
7029
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7031 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7032 cacheid=xorg_cv_cc_flag__Werror_init_self
7033 if eval \${$cacheid+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 int
7040 main ()
7041 {
7042
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 eval $cacheid=yes
7049 else
7050 eval $cacheid=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 fi
7055
7056
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059 eval supported=\$$cacheid
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061 $as_echo "$supported" >&6; }
7062 if test "$supported" = "yes" ; then
7063 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7064 found="yes"
7065 fi
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 xorg_cv_cc_flag_unknown_warning_option=yes
7097 else
7098 xorg_cv_cc_flag_unknown_warning_option=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111 fi
7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 int i;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 xorg_cv_cc_flag_unused_command_line_argument=yes
7124 else
7125 xorg_cv_cc_flag_unused_command_line_argument=no
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 found="no"
7136
7137 if test $found = "no" ; then
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141
7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 fi
7145
7146 CFLAGS="$CFLAGS -Werror=main"
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7149 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7150 cacheid=xorg_cv_cc_flag__Werror_main
7151 if eval \${$cacheid+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 int
7158 main ()
7159 {
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 eval $cacheid=yes
7167 else
7168 eval $cacheid=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 $as_echo "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7182 found="yes"
7183 fi
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 int i;
7212 _ACEOF
7213 if ac_fn_c_try_compile "$LINENO"; then :
7214 xorg_cv_cc_flag_unknown_warning_option=yes
7215 else
7216 xorg_cv_cc_flag_unknown_warning_option=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229 fi
7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int i;
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 xorg_cv_cc_flag_unused_command_line_argument=yes
7242 else
7243 xorg_cv_cc_flag_unused_command_line_argument=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7250 CFLAGS="$xorg_testset_save_CFLAGS"
7251 fi
7252
7253 found="no"
7254
7255 if test $found = "no" ; then
7256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258 fi
7259
7260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262 fi
7263
7264 CFLAGS="$CFLAGS -Werror=missing-braces"
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7267 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7268 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7269 if eval \${$cacheid+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 int
7276 main ()
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"; then :
7284 eval $cacheid=yes
7285 else
7286 eval $cacheid=no
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 fi
7291
7292
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295 eval supported=\$$cacheid
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297 $as_echo "$supported" >&6; }
7298 if test "$supported" = "yes" ; then
7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7300 found="yes"
7301 fi
7302 fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 xorg_cv_cc_flag_unknown_warning_option=yes
7333 else
7334 xorg_cv_cc_flag_unknown_warning_option=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7341 CFLAGS="$xorg_testset_save_CFLAGS"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347 fi
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 int i;
7357 _ACEOF
7358 if ac_fn_c_try_compile "$LINENO"; then :
7359 xorg_cv_cc_flag_unused_command_line_argument=yes
7360 else
7361 xorg_cv_cc_flag_unused_command_line_argument=no
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7369 fi
7370
7371 found="no"
7372
7373 if test $found = "no" ; then
7374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376 fi
7377
7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7380 fi
7381
7382 CFLAGS="$CFLAGS -Werror=sequence-point"
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7385 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7386 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7387 if eval \${$cacheid+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 int
7394 main ()
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 eval $cacheid=yes
7403 else
7404 eval $cacheid=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
7408 fi
7409
7410
7411 CFLAGS="$xorg_testset_save_CFLAGS"
7412
7413 eval supported=\$$cacheid
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7415 $as_echo "$supported" >&6; }
7416 if test "$supported" = "yes" ; then
7417 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7418 found="yes"
7419 fi
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 xorg_testset_save_CFLAGS="$CFLAGS"
7437
7438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 int i;
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"; then :
7450 xorg_cv_cc_flag_unknown_warning_option=yes
7451 else
7452 xorg_cv_cc_flag_unknown_warning_option=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7459 CFLAGS="$xorg_testset_save_CFLAGS"
7460 fi
7461
7462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465 fi
7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 xorg_cv_cc_flag_unused_command_line_argument=yes
7478 else
7479 xorg_cv_cc_flag_unused_command_line_argument=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487 fi
7488
7489 found="no"
7490
7491 if test $found = "no" ; then
7492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494 fi
7495
7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7498 fi
7499
7500 CFLAGS="$CFLAGS -Werror=return-type"
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7503 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7504 cacheid=xorg_cv_cc_flag__Werror_return_type
7505 if eval \${$cacheid+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 int
7512 main ()
7513 {
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520 eval $cacheid=yes
7521 else
7522 eval $cacheid=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 fi
7527
7528
7529 CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531 eval supported=\$$cacheid
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533 $as_echo "$supported" >&6; }
7534 if test "$supported" = "yes" ; then
7535 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7536 found="yes"
7537 fi
7538 fi
7539
7540 if test $found = "no" ; then
7541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 fi
7544
7545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547 fi
7548
7549 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7552 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7553 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7554 if eval \${$cacheid+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 int i;
7560 int
7561 main ()
7562 {
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 eval $cacheid=yes
7570 else
7571 eval $cacheid=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 fi
7576
7577
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580 eval supported=\$$cacheid
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582 $as_echo "$supported" >&6; }
7583 if test "$supported" = "yes" ; then
7584 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7585 found="yes"
7586 fi
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 xorg_testset_save_CFLAGS="$CFLAGS"
7604
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 xorg_cv_cc_flag_unknown_warning_option=yes
7618 else
7619 xorg_cv_cc_flag_unknown_warning_option=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7626 CFLAGS="$xorg_testset_save_CFLAGS"
7627 fi
7628
7629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 fi
7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 int i;
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 xorg_cv_cc_flag_unused_command_line_argument=yes
7645 else
7646 xorg_cv_cc_flag_unused_command_line_argument=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654 fi
7655
7656 found="no"
7657
7658 if test $found = "no" ; then
7659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 fi
7662
7663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665 fi
7666
7667 CFLAGS="$CFLAGS -Werror=trigraphs"
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7670 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7671 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7672 if eval \${$cacheid+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 int
7679 main ()
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 eval $cacheid=yes
7688 else
7689 eval $cacheid=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 fi
7694
7695
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698 eval supported=\$$cacheid
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700 $as_echo "$supported" >&6; }
7701 if test "$supported" = "yes" ; then
7702 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7703 found="yes"
7704 fi
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 xorg_testset_save_CFLAGS="$CFLAGS"
7722
7723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 int i;
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735 xorg_cv_cc_flag_unknown_warning_option=yes
7736 else
7737 xorg_cv_cc_flag_unknown_warning_option=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745 fi
7746
7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750 fi
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 xorg_cv_cc_flag_unused_command_line_argument=yes
7763 else
7764 xorg_cv_cc_flag_unused_command_line_argument=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771 CFLAGS="$xorg_testset_save_CFLAGS"
7772 fi
7773
7774 found="no"
7775
7776 if test $found = "no" ; then
7777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779 fi
7780
7781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783 fi
7784
7785 CFLAGS="$CFLAGS -Werror=array-bounds"
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7788 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7789 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7790 if eval \${$cacheid+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 int i;
7796 int
7797 main ()
7798 {
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 eval $cacheid=yes
7806 else
7807 eval $cacheid=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 fi
7812
7813
7814 CFLAGS="$xorg_testset_save_CFLAGS"
7815
7816 eval supported=\$$cacheid
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7818 $as_echo "$supported" >&6; }
7819 if test "$supported" = "yes" ; then
7820 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7821 found="yes"
7822 fi
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 xorg_testset_save_CFLAGS="$CFLAGS"
7840
7841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 int i;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 xorg_cv_cc_flag_unknown_warning_option=yes
7854 else
7855 xorg_cv_cc_flag_unknown_warning_option=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 fi
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"; then :
7880 xorg_cv_cc_flag_unused_command_line_argument=yes
7881 else
7882 xorg_cv_cc_flag_unused_command_line_argument=no
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7889 CFLAGS="$xorg_testset_save_CFLAGS"
7890 fi
7891
7892 found="no"
7893
7894 if test $found = "no" ; then
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 fi
7898
7899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7901 fi
7902
7903 CFLAGS="$CFLAGS -Werror=write-strings"
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7906 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7907 cacheid=xorg_cv_cc_flag__Werror_write_strings
7908 if eval \${$cacheid+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 int i;
7914 int
7915 main ()
7916 {
7917
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 eval $cacheid=yes
7924 else
7925 eval $cacheid=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 fi
7930
7931
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933
7934 eval supported=\$$cacheid
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7936 $as_echo "$supported" >&6; }
7937 if test "$supported" = "yes" ; then
7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7939 found="yes"
7940 fi
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 int i;
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"; then :
7971 xorg_cv_cc_flag_unknown_warning_option=yes
7972 else
7973 xorg_cv_cc_flag_unknown_warning_option=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 xorg_cv_cc_flag_unused_command_line_argument=yes
7999 else
8000 xorg_cv_cc_flag_unused_command_line_argument=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008 fi
8009
8010 found="no"
8011
8012 if test $found = "no" ; then
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 fi
8016
8017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019 fi
8020
8021 CFLAGS="$CFLAGS -Werror=address"
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8024 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8025 cacheid=xorg_cv_cc_flag__Werror_address
8026 if eval \${$cacheid+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 int
8033 main ()
8034 {
8035
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"; then :
8041 eval $cacheid=yes
8042 else
8043 eval $cacheid=no
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 fi
8048
8049
8050 CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052 eval supported=\$$cacheid
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054 $as_echo "$supported" >&6; }
8055 if test "$supported" = "yes" ; then
8056 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8057 found="yes"
8058 fi
8059 fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 xorg_testset_save_CFLAGS="$CFLAGS"
8076
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8080 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8081 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int i;
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089 xorg_cv_cc_flag_unknown_warning_option=yes
8090 else
8091 xorg_cv_cc_flag_unknown_warning_option=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8096 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8098 CFLAGS="$xorg_testset_save_CFLAGS"
8099 fi
8100
8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104 fi
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8107 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8108 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 int i;
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 xorg_cv_cc_flag_unused_command_line_argument=yes
8117 else
8118 xorg_cv_cc_flag_unused_command_line_argument=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8123 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8125 CFLAGS="$xorg_testset_save_CFLAGS"
8126 fi
8127
8128 found="no"
8129
8130 if test $found = "no" ; then
8131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133 fi
8134
8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8137 fi
8138
8139 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8142 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8143 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8144 if eval \${$cacheid+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 int
8151 main ()
8152 {
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_link "$LINENO"; then :
8159 eval $cacheid=yes
8160 else
8161 eval $cacheid=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166
8167
8168 CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170 eval supported=\$$cacheid
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172 $as_echo "$supported" >&6; }
8173 if test "$supported" = "yes" ; then
8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8175 found="yes"
8176 fi
8177 fi
8178
8179 if test $found = "no" ; then
8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182 fi
8183
8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186 fi
8187
8188 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8191 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8192 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8193 if eval \${$cacheid+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 int i;
8199 int
8200 main ()
8201 {
8202
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_link "$LINENO"; then :
8208 eval $cacheid=yes
8209 else
8210 eval $cacheid=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 fi
8215
8216
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218
8219 eval supported=\$$cacheid
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8221 $as_echo "$supported" >&6; }
8222 if test "$supported" = "yes" ; then
8223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8224 found="yes"
8225 fi
8226 fi
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 xorg_testset_save_CFLAGS="$CFLAGS"
8243
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8248 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 int i;
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 xorg_cv_cc_flag_unknown_warning_option=yes
8257 else
8258 xorg_cv_cc_flag_unknown_warning_option=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8263 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8266 fi
8267
8268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271 fi
8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8274 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8275 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 int i;
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 xorg_cv_cc_flag_unused_command_line_argument=yes
8284 else
8285 xorg_cv_cc_flag_unused_command_line_argument=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8290 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293 fi
8294
8295 found="no"
8296
8297 if test $found = "no" ; then
8298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300 fi
8301
8302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304 fi
8305
8306 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8307
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8309 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8310 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8311 if eval \${$cacheid+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 int i;
8317 int
8318 main ()
8319 {
8320
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 eval $cacheid=yes
8327 else
8328 eval $cacheid=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 fi
8333
8334
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336
8337 eval supported=\$$cacheid
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8339 $as_echo "$supported" >&6; }
8340 if test "$supported" = "yes" ; then
8341 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8342 found="yes"
8343 fi
8344 fi
8345
8346 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8347 else
8348 { $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
8349 $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;}
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 int i;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 xorg_cv_cc_flag_unknown_warning_option=yes
8378 else
8379 xorg_cv_cc_flag_unknown_warning_option=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386 CFLAGS="$xorg_testset_save_CFLAGS"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392 fi
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 xorg_cv_cc_flag_unused_command_line_argument=yes
8405 else
8406 xorg_cv_cc_flag_unused_command_line_argument=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413 CFLAGS="$xorg_testset_save_CFLAGS"
8414 fi
8415
8416 found="no"
8417
8418 if test $found = "no" ; then
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422
8423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 fi
8426
8427 CFLAGS="$CFLAGS -Wimplicit"
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8430 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8431 cacheid=xorg_cv_cc_flag__Wimplicit
8432 if eval \${$cacheid+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int i;
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval $cacheid=yes
8448 else
8449 eval $cacheid=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 fi
8454
8455
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458 eval supported=\$$cacheid
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460 $as_echo "$supported" >&6; }
8461 if test "$supported" = "yes" ; then
8462 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8463 found="yes"
8464 fi
8465 fi
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 xorg_testset_save_CFLAGS="$CFLAGS"
8482
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 xorg_cv_cc_flag_unknown_warning_option=yes
8496 else
8497 xorg_cv_cc_flag_unknown_warning_option=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8504 CFLAGS="$xorg_testset_save_CFLAGS"
8505 fi
8506
8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 fi
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 xorg_cv_cc_flag_unused_command_line_argument=yes
8523 else
8524 xorg_cv_cc_flag_unused_command_line_argument=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532 fi
8533
8534 found="no"
8535
8536 if test $found = "no" ; then
8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540
8541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543 fi
8544
8545 CFLAGS="$CFLAGS -Wnonnull"
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8548 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8549 cacheid=xorg_cv_cc_flag__Wnonnull
8550 if eval \${$cacheid+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 int i;
8556 int
8557 main ()
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 eval $cacheid=yes
8566 else
8567 eval $cacheid=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 $as_echo "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 int i;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else
8615 xorg_cv_cc_flag_unknown_warning_option=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 xorg_cv_cc_flag_unused_command_line_argument=yes
8641 else
8642 xorg_cv_cc_flag_unused_command_line_argument=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8649 CFLAGS="$xorg_testset_save_CFLAGS"
8650 fi
8651
8652 found="no"
8653
8654 if test $found = "no" ; then
8655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 fi
8658
8659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8661 fi
8662
8663 CFLAGS="$CFLAGS -Winit-self"
8664
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8666 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8667 cacheid=xorg_cv_cc_flag__Winit_self
8668 if eval \${$cacheid+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 int
8675 main ()
8676 {
8677
8678 ;
8679 return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 eval $cacheid=yes
8684 else
8685 eval $cacheid=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 fi
8690
8691
8692 CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694 eval supported=\$$cacheid
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696 $as_echo "$supported" >&6; }
8697 if test "$supported" = "yes" ; then
8698 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8699 found="yes"
8700 fi
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int i;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"; then :
8731 xorg_cv_cc_flag_unknown_warning_option=yes
8732 else
8733 xorg_cv_cc_flag_unknown_warning_option=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740 CFLAGS="$xorg_testset_save_CFLAGS"
8741 fi
8742
8743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 fi
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 int i;
8756 _ACEOF
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758 xorg_cv_cc_flag_unused_command_line_argument=yes
8759 else
8760 xorg_cv_cc_flag_unused_command_line_argument=no
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767 CFLAGS="$xorg_testset_save_CFLAGS"
8768 fi
8769
8770 found="no"
8771
8772 if test $found = "no" ; then
8773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 fi
8776
8777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779 fi
8780
8781 CFLAGS="$CFLAGS -Wmain"
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8784 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8785 cacheid=xorg_cv_cc_flag__Wmain
8786 if eval \${$cacheid+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 int
8793 main ()
8794 {
8795
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801 eval $cacheid=yes
8802 else
8803 eval $cacheid=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 fi
8808
8809
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812 eval supported=\$$cacheid
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814 $as_echo "$supported" >&6; }
8815 if test "$supported" = "yes" ; then
8816 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8817 found="yes"
8818 fi
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 int i;
8847 _ACEOF
8848 if ac_fn_c_try_compile "$LINENO"; then :
8849 xorg_cv_cc_flag_unknown_warning_option=yes
8850 else
8851 xorg_cv_cc_flag_unknown_warning_option=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859 fi
8860
8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 fi
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 int i;
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 xorg_cv_cc_flag_unused_command_line_argument=yes
8877 else
8878 xorg_cv_cc_flag_unused_command_line_argument=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886 fi
8887
8888 found="no"
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -Wmissing-braces"
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8902 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8903 cacheid=xorg_cv_cc_flag__Wmissing_braces
8904 if eval \${$cacheid+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 int
8911 main ()
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 eval $cacheid=yes
8920 else
8921 eval $cacheid=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 fi
8926
8927
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930 eval supported=\$$cacheid
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932 $as_echo "$supported" >&6; }
8933 if test "$supported" = "yes" ; then
8934 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8935 found="yes"
8936 fi
8937 fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953 xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"; then :
8967 xorg_cv_cc_flag_unknown_warning_option=yes
8968 else
8969 xorg_cv_cc_flag_unknown_warning_option=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8976 CFLAGS="$xorg_testset_save_CFLAGS"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982 fi
8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 xorg_cv_cc_flag_unused_command_line_argument=yes
8995 else
8996 xorg_cv_cc_flag_unused_command_line_argument=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004 fi
9005
9006 found="no"
9007
9008 if test $found = "no" ; then
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012
9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015 fi
9016
9017 CFLAGS="$CFLAGS -Wsequence-point"
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9020 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9021 cacheid=xorg_cv_cc_flag__Wsequence_point
9022 if eval \${$cacheid+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 int
9029 main ()
9030 {
9031
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 eval $cacheid=yes
9038 else
9039 eval $cacheid=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 fi
9044
9045
9046 CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048 eval supported=\$$cacheid
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050 $as_echo "$supported" >&6; }
9051 if test "$supported" = "yes" ; then
9052 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9053 found="yes"
9054 fi
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071 xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 int i;
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085 xorg_cv_cc_flag_unknown_warning_option=yes
9086 else
9087 xorg_cv_cc_flag_unknown_warning_option=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9094 CFLAGS="$xorg_testset_save_CFLAGS"
9095 fi
9096
9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100 fi
9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 _ACEOF
9111 if ac_fn_c_try_compile "$LINENO"; then :
9112 xorg_cv_cc_flag_unused_command_line_argument=yes
9113 else
9114 xorg_cv_cc_flag_unused_command_line_argument=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122 fi
9123
9124 found="no"
9125
9126 if test $found = "no" ; then
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130
9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 fi
9134
9135 CFLAGS="$CFLAGS -Wreturn-type"
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9138 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9139 cacheid=xorg_cv_cc_flag__Wreturn_type
9140 if eval \${$cacheid+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 int
9147 main ()
9148 {
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 eval $cacheid=yes
9156 else
9157 eval $cacheid=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 fi
9162
9163
9164 CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166 eval supported=\$$cacheid
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9168 $as_echo "$supported" >&6; }
9169 if test "$supported" = "yes" ; then
9170 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9171 found="yes"
9172 fi
9173 fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189 xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"; then :
9203 xorg_cv_cc_flag_unknown_warning_option=yes
9204 else
9205 xorg_cv_cc_flag_unknown_warning_option=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212 CFLAGS="$xorg_testset_save_CFLAGS"
9213 fi
9214
9215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218 fi
9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"; then :
9230 xorg_cv_cc_flag_unused_command_line_argument=yes
9231 else
9232 xorg_cv_cc_flag_unused_command_line_argument=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 found="no"
9243
9244 if test $found = "no" ; then
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248
9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 fi
9252
9253 CFLAGS="$CFLAGS -Wtrigraphs"
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9256 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9257 cacheid=xorg_cv_cc_flag__Wtrigraphs
9258 if eval \${$cacheid+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 int
9265 main ()
9266 {
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 eval $cacheid=yes
9274 else
9275 eval $cacheid=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 fi
9280
9281
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284 eval supported=\$$cacheid
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286 $as_echo "$supported" >&6; }
9287 if test "$supported" = "yes" ; then
9288 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9289 found="yes"
9290 fi
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int i;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321 xorg_cv_cc_flag_unknown_warning_option=yes
9322 else
9323 xorg_cv_cc_flag_unknown_warning_option=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 xorg_cv_cc_flag_unused_command_line_argument=yes
9349 else
9350 xorg_cv_cc_flag_unused_command_line_argument=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358 fi
9359
9360 found="no"
9361
9362 if test $found = "no" ; then
9363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 fi
9366
9367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369 fi
9370
9371 CFLAGS="$CFLAGS -Warray-bounds"
9372
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9374 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9375 cacheid=xorg_cv_cc_flag__Warray_bounds
9376 if eval \${$cacheid+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 int
9383 main ()
9384 {
9385
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 eval $cacheid=yes
9392 else
9393 eval $cacheid=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 fi
9398
9399
9400 CFLAGS="$xorg_testset_save_CFLAGS"
9401
9402 eval supported=\$$cacheid
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9404 $as_echo "$supported" >&6; }
9405 if test "$supported" = "yes" ; then
9406 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9407 found="yes"
9408 fi
9409 fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425 xorg_testset_save_CFLAGS="$CFLAGS"
9426
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 int i;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 xorg_cv_cc_flag_unknown_warning_option=yes
9440 else
9441 xorg_cv_cc_flag_unknown_warning_option=no
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9448 CFLAGS="$xorg_testset_save_CFLAGS"
9449 fi
9450
9451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454 fi
9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 xorg_cv_cc_flag_unused_command_line_argument=yes
9467 else
9468 xorg_cv_cc_flag_unused_command_line_argument=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476 fi
9477
9478 found="no"
9479
9480 if test $found = "no" ; then
9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483 fi
9484
9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487 fi
9488
9489 CFLAGS="$CFLAGS -Wwrite-strings"
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9492 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9493 cacheid=xorg_cv_cc_flag__Wwrite_strings
9494 if eval \${$cacheid+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 int
9501 main ()
9502 {
9503
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 eval $cacheid=yes
9510 else
9511 eval $cacheid=no
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 fi
9516
9517
9518 CFLAGS="$xorg_testset_save_CFLAGS"
9519
9520 eval supported=\$$cacheid
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9522 $as_echo "$supported" >&6; }
9523 if test "$supported" = "yes" ; then
9524 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9525 found="yes"
9526 fi
9527 fi
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 xorg_testset_save_CFLAGS="$CFLAGS"
9544
9545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int i;
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 xorg_cv_cc_flag_unknown_warning_option=yes
9558 else
9559 xorg_cv_cc_flag_unknown_warning_option=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9567 fi
9568
9569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unused_command_line_argument=yes
9585 else
9586 xorg_cv_cc_flag_unused_command_line_argument=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 found="no"
9597
9598 if test $found = "no" ; then
9599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601 fi
9602
9603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605 fi
9606
9607 CFLAGS="$CFLAGS -Waddress"
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9610 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9611 cacheid=xorg_cv_cc_flag__Waddress
9612 if eval \${$cacheid+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main ()
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 eval $cacheid=yes
9628 else
9629 eval $cacheid=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 fi
9634
9635
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638 eval supported=\$$cacheid
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640 $as_echo "$supported" >&6; }
9641 if test "$supported" = "yes" ; then
9642 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9643 found="yes"
9644 fi
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661 xorg_testset_save_CFLAGS="$CFLAGS"
9662
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int i;
9673 _ACEOF
9674 if ac_fn_c_try_compile "$LINENO"; then :
9675 xorg_cv_cc_flag_unknown_warning_option=yes
9676 else
9677 xorg_cv_cc_flag_unknown_warning_option=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9684 CFLAGS="$xorg_testset_save_CFLAGS"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690 fi
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 xorg_cv_cc_flag_unused_command_line_argument=yes
9703 else
9704 xorg_cv_cc_flag_unused_command_line_argument=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712 fi
9713
9714 found="no"
9715
9716 if test $found = "no" ; then
9717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719 fi
9720
9721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723 fi
9724
9725 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9728 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9729 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9730 if eval \${$cacheid+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 int
9737 main ()
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 eval $cacheid=yes
9746 else
9747 eval $cacheid=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752
9753
9754 CFLAGS="$xorg_testset_save_CFLAGS"
9755
9756 eval supported=\$$cacheid
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9758 $as_echo "$supported" >&6; }
9759 if test "$supported" = "yes" ; then
9760 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9761 found="yes"
9762 fi
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779 xorg_testset_save_CFLAGS="$CFLAGS"
9780
9781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 int i;
9791 _ACEOF
9792 if ac_fn_c_try_compile "$LINENO"; then :
9793 xorg_cv_cc_flag_unknown_warning_option=yes
9794 else
9795 xorg_cv_cc_flag_unknown_warning_option=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 fi
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9802 CFLAGS="$xorg_testset_save_CFLAGS"
9803 fi
9804
9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808 fi
9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 int i;
9818 _ACEOF
9819 if ac_fn_c_try_compile "$LINENO"; then :
9820 xorg_cv_cc_flag_unused_command_line_argument=yes
9821 else
9822 xorg_cv_cc_flag_unused_command_line_argument=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9829 CFLAGS="$xorg_testset_save_CFLAGS"
9830 fi
9831
9832 found="no"
9833
9834 if test $found = "no" ; then
9835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837 fi
9838
9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9841 fi
9842
9843 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9846 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9847 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9848 if eval \${$cacheid+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 int
9855 main ()
9856 {
9857
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863 eval $cacheid=yes
9864 else
9865 eval $cacheid=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 fi
9870
9871
9872 CFLAGS="$xorg_testset_save_CFLAGS"
9873
9874 eval supported=\$$cacheid
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9876 $as_echo "$supported" >&6; }
9877 if test "$supported" = "yes" ; then
9878 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9879 found="yes"
9880 fi
9881 fi
9882
9883
9884 fi
9885
9886
9887
9888
9889
9890
9891
9892 CWARNFLAGS="$BASE_CFLAGS"
9893 if test "x$GCC" = xyes ; then
9894 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9895 fi
9896
9897
9898
9899
9900
9901
9902
9903
9904 # Check whether --enable-strict-compilation was given.
9905 if test "${enable_strict_compilation+set}" = set; then :
9906 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9907 else
9908 STRICT_COMPILE=no
9909 fi
9910
9911
9912
9913
9914
9915
9916 STRICT_CFLAGS=""
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930 xorg_testset_save_CFLAGS="$CFLAGS"
9931
9932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int i;
9942 _ACEOF
9943 if ac_fn_c_try_compile "$LINENO"; then :
9944 xorg_cv_cc_flag_unknown_warning_option=yes
9945 else
9946 xorg_cv_cc_flag_unknown_warning_option=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954 fi
9955
9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 fi
9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 int i;
9969 _ACEOF
9970 if ac_fn_c_try_compile "$LINENO"; then :
9971 xorg_cv_cc_flag_unused_command_line_argument=yes
9972 else
9973 xorg_cv_cc_flag_unused_command_line_argument=no
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 fi
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9980 CFLAGS="$xorg_testset_save_CFLAGS"
9981 fi
9982
9983 found="no"
9984
9985 if test $found = "no" ; then
9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988 fi
9989
9990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992 fi
9993
9994 CFLAGS="$CFLAGS -pedantic"
9995
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9997 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9998 cacheid=xorg_cv_cc_flag__pedantic
9999 if eval \${$cacheid+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 int i;
10005 int
10006 main ()
10007 {
10008
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 if ac_fn_c_try_link "$LINENO"; then :
10014 eval $cacheid=yes
10015 else
10016 eval $cacheid=no
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 fi
10021
10022
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024
10025 eval supported=\$$cacheid
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10027 $as_echo "$supported" >&6; }
10028 if test "$supported" = "yes" ; then
10029 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10030 found="yes"
10031 fi
10032 fi
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 xorg_testset_save_CFLAGS="$CFLAGS"
10049
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int i;
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062 xorg_cv_cc_flag_unknown_warning_option=yes
10063 else
10064 xorg_cv_cc_flag_unknown_warning_option=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072 fi
10073
10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 fi
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 int i;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 xorg_cv_cc_flag_unused_command_line_argument=yes
10090 else
10091 xorg_cv_cc_flag_unused_command_line_argument=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10098 CFLAGS="$xorg_testset_save_CFLAGS"
10099 fi
10100
10101 found="no"
10102
10103 if test $found = "no" ; then
10104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106 fi
10107
10108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10110 fi
10111
10112 CFLAGS="$CFLAGS -Werror"
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10115 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10116 cacheid=xorg_cv_cc_flag__Werror
10117 if eval \${$cacheid+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 int i;
10123 int
10124 main ()
10125 {
10126
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 eval $cacheid=yes
10133 else
10134 eval $cacheid=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 fi
10139
10140
10141 CFLAGS="$xorg_testset_save_CFLAGS"
10142
10143 eval supported=\$$cacheid
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10145 $as_echo "$supported" >&6; }
10146 if test "$supported" = "yes" ; then
10147 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10148 found="yes"
10149 fi
10150 fi
10151
10152 if test $found = "no" ; then
10153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10155 fi
10156
10157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10159 fi
10160
10161 CFLAGS="$CFLAGS -errwarn"
10162
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10164 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10165 cacheid=xorg_cv_cc_flag__errwarn
10166 if eval \${$cacheid+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int i;
10172 int
10173 main ()
10174 {
10175
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 eval $cacheid=yes
10182 else
10183 eval $cacheid=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 fi
10188
10189
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191
10192 eval supported=\$$cacheid
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10194 $as_echo "$supported" >&6; }
10195 if test "$supported" = "yes" ; then
10196 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10197 found="yes"
10198 fi
10199 fi
10200
10201
10202
10203 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10204 # activate it with -Werror, so we add it here explicitly.
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218 xorg_testset_save_CFLAGS="$CFLAGS"
10219
10220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h. */
10229 int i;
10230 _ACEOF
10231 if ac_fn_c_try_compile "$LINENO"; then :
10232 xorg_cv_cc_flag_unknown_warning_option=yes
10233 else
10234 xorg_cv_cc_flag_unknown_warning_option=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242 fi
10243
10244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247 fi
10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 int i;
10257 _ACEOF
10258 if ac_fn_c_try_compile "$LINENO"; then :
10259 xorg_cv_cc_flag_unused_command_line_argument=yes
10260 else
10261 xorg_cv_cc_flag_unused_command_line_argument=no
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 fi
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10268 CFLAGS="$xorg_testset_save_CFLAGS"
10269 fi
10270
10271 found="no"
10272
10273 if test $found = "no" ; then
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277
10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 fi
10281
10282 CFLAGS="$CFLAGS -Werror=attributes"
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10285 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10286 cacheid=xorg_cv_cc_flag__Werror_attributes
10287 if eval \${$cacheid+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 int i;
10293 int
10294 main ()
10295 {
10296
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 eval $cacheid=yes
10303 else
10304 eval $cacheid=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 fi
10309
10310
10311 CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313 eval supported=\$$cacheid
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315 $as_echo "$supported" >&6; }
10316 if test "$supported" = "yes" ; then
10317 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10318 found="yes"
10319 fi
10320 fi
10321
10322
10323
10324 if test "x$STRICT_COMPILE" = "xyes"; then
10325 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10326 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10327 fi
10328
10329
10330
10331
10332
10333
10334 cat >>confdefs.h <<_ACEOF
10335 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10336 _ACEOF
10337
10338 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10339 if test "x$PVM" = "x"; then
10340 PVM="0"
10341 fi
10342
10343 cat >>confdefs.h <<_ACEOF
10344 #define PACKAGE_VERSION_MINOR $PVM
10345 _ACEOF
10346
10347 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10348 if test "x$PVP" = "x"; then
10349 PVP="0"
10350 fi
10351
10352 cat >>confdefs.h <<_ACEOF
10353 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10354 _ACEOF
10355
10356
10357
10358 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10359 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10360 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10361 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10362
10363
10364
10365
10366 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10367 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10368 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10369 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10370 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10371
10372
10373
10374
10375
10376
10377 if test x$APP_MAN_SUFFIX = x ; then
10378 APP_MAN_SUFFIX=1
10379 fi
10380 if test x$APP_MAN_DIR = x ; then
10381 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10382 fi
10383
10384 if test x$LIB_MAN_SUFFIX = x ; then
10385 LIB_MAN_SUFFIX=3
10386 fi
10387 if test x$LIB_MAN_DIR = x ; then
10388 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10389 fi
10390
10391 if test x$FILE_MAN_SUFFIX = x ; then
10392 case $host_os in
10393 solaris*) FILE_MAN_SUFFIX=4 ;;
10394 *) FILE_MAN_SUFFIX=5 ;;
10395 esac
10396 fi
10397 if test x$FILE_MAN_DIR = x ; then
10398 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10399 fi
10400
10401 if test x$MISC_MAN_SUFFIX = x ; then
10402 case $host_os in
10403 solaris*) MISC_MAN_SUFFIX=5 ;;
10404 *) MISC_MAN_SUFFIX=7 ;;
10405 esac
10406 fi
10407 if test x$MISC_MAN_DIR = x ; then
10408 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10409 fi
10410
10411 if test x$DRIVER_MAN_SUFFIX = x ; then
10412 case $host_os in
10413 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10414 *) DRIVER_MAN_SUFFIX=4 ;;
10415 esac
10416 fi
10417 if test x$DRIVER_MAN_DIR = x ; then
10418 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10419 fi
10420
10421 if test x$ADMIN_MAN_SUFFIX = x ; then
10422 case $host_os in
10423 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10424 *) ADMIN_MAN_SUFFIX=8 ;;
10425 esac
10426 fi
10427 if test x$ADMIN_MAN_DIR = x ; then
10428 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10429 fi
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445 XORG_MAN_PAGE="X Version 11"
10446
10447 MAN_SUBSTS="\
10448 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10449 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10450 -e 's|__xservername__|Xorg|g' \
10451 -e 's|__xconfigfile__|xorg.conf|g' \
10452 -e 's|__projectroot__|\$(prefix)|g' \
10453 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10454 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10455 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10456 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10457 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10458 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10459 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10460
10461
10462
10463 # Check whether --enable-silent-rules was given.
10464 if test "${enable_silent_rules+set}" = set; then :
10465 enableval=$enable_silent_rules;
10466 fi
10467
10468 case $enable_silent_rules in # (((
10469 yes) AM_DEFAULT_VERBOSITY=0;;
10470 no) AM_DEFAULT_VERBOSITY=1;;
10471 *) AM_DEFAULT_VERBOSITY=0;;
10472 esac
10473 am_make=${MAKE-make}
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10475 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10476 if ${am_cv_make_support_nested_variables+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 if $as_echo 'TRUE=$(BAR$(V))
10480 BAR0=false
10481 BAR1=true
10482 V=1
10483 am__doit:
10484 @$(TRUE)
10485 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10486 am_cv_make_support_nested_variables=yes
10487 else
10488 am_cv_make_support_nested_variables=no
10489 fi
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10492 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10493 if test $am_cv_make_support_nested_variables = yes; then
10494 AM_V='$(V)'
10495 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10496 else
10497 AM_V=$AM_DEFAULT_VERBOSITY
10498 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10499 fi
10500 AM_BACKSLASH='\'
10501
10502
10503
10504 ac_config_files="$ac_config_files Makefile gccmakedep"
10505
10506 cat >confcache <<\_ACEOF
10507 # This file is a shell script that caches the results of configure
10508 # tests run on this system so they can be shared between configure
10509 # scripts and configure runs, see configure's option --config-cache.
10510 # It is not useful on other systems. If it contains results you don't
10511 # want to keep, you may remove or edit it.
10512 #
10513 # config.status only pays attention to the cache file if you give it
10514 # the --recheck option to rerun configure.
10515 #
10516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10518 # following values.
10519
10520 _ACEOF
10521
10522 # The following way of writing the cache mishandles newlines in values,
10523 # but we know of no workaround that is simple, portable, and efficient.
10524 # So, we kill variables containing newlines.
10525 # Ultrix sh set writes to stderr and can't be redirected directly,
10526 # and sets the high bit in the cache file unless we assign to the vars.
10527 (
10528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10529 eval ac_val=\$$ac_var
10530 case $ac_val in #(
10531 *${as_nl}*)
10532 case $ac_var in #(
10533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10535 esac
10536 case $ac_var in #(
10537 _ | IFS | as_nl) ;; #(
10538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10539 *) { eval $ac_var=; unset $ac_var;} ;;
10540 esac ;;
10541 esac
10542 done
10543
10544 (set) 2>&1 |
10545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10546 *${as_nl}ac_space=\ *)
10547 # `set' does not quote correctly, so add quotes: double-quote
10548 # substitution turns \\\\ into \\, and sed turns \\ into \.
10549 sed -n \
10550 "s/'/'\\\\''/g;
10551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10552 ;; #(
10553 *)
10554 # `set' quotes correctly as required by POSIX, so do not add quotes.
10555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10556 ;;
10557 esac |
10558 sort
10559 ) |
10560 sed '
10561 /^ac_cv_env_/b end
10562 t clear
10563 :clear
10564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10565 t end
10566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10567 :end' >>confcache
10568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10569 if test -w "$cache_file"; then
10570 if test "x$cache_file" != "x/dev/null"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10572 $as_echo "$as_me: updating cache $cache_file" >&6;}
10573 if test ! -f "$cache_file" || test -h "$cache_file"; then
10574 cat confcache >"$cache_file"
10575 else
10576 case $cache_file in #(
10577 */* | ?:*)
10578 mv -f confcache "$cache_file"$$ &&
10579 mv -f "$cache_file"$$ "$cache_file" ;; #(
10580 *)
10581 mv -f confcache "$cache_file" ;;
10582 esac
10583 fi
10584 fi
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10588 fi
10589 fi
10590 rm -f confcache
10591
10592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10593 # Let make expand exec_prefix.
10594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10595
10596 # Transform confdefs.h into DEFS.
10597 # Protect against shell expansion while executing Makefile rules.
10598 # Protect against Makefile macro expansion.
10599 #
10600 # If the first sed substitution is executed (which looks for macros that
10601 # take arguments), then branch to the quote section. Otherwise,
10602 # look for a macro that doesn't take arguments.
10603 ac_script='
10604 :mline
10605 /\\$/{
10606 N
10607 s,\\\n,,
10608 b mline
10609 }
10610 t clear
10611 :clear
10612 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10613 t quote
10614 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10615 t quote
10616 b any
10617 :quote
10618 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10619 s/\[/\\&/g
10620 s/\]/\\&/g
10621 s/\$/$$/g
10622 H
10623 :any
10624 ${
10625 g
10626 s/^\n//
10627 s/\n/ /g
10628 p
10629 }
10630 '
10631 DEFS=`sed -n "$ac_script" confdefs.h`
10632
10633
10634 ac_libobjs=
10635 ac_ltlibobjs=
10636 U=
10637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10638 # 1. Remove the extension, and $U if already installed.
10639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10640 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10642 # will be set to the directory where LIBOBJS objects are built.
10643 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10644 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10645 done
10646 LIBOBJS=$ac_libobjs
10647
10648 LTLIBOBJS=$ac_ltlibobjs
10649
10650
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10652 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10653 if test -n "$am_sleep_pid"; then
10654 # Hide warnings about reused PIDs.
10655 wait $am_sleep_pid 2>/dev/null
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10658 $as_echo "done" >&6; }
10659 if test -n "$EXEEXT"; then
10660 am__EXEEXT_TRUE=
10661 am__EXEEXT_FALSE='#'
10662 else
10663 am__EXEEXT_TRUE='#'
10664 am__EXEEXT_FALSE=
10665 fi
10666
10667 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10668 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10670 fi
10671 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10672 as_fn_error $? "conditional \"AMDEP\" was never defined.
10673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10674 fi
10675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10676 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10678 fi
10679
10680 : "${CONFIG_STATUS=./config.status}"
10681 ac_write_fail=0
10682 ac_clean_files_save=$ac_clean_files
10683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10685 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10686 as_write_fail=0
10687 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10688 #! $SHELL
10689 # Generated by $as_me.
10690 # Run this file to recreate the current configuration.
10691 # Compiler output produced by configure, useful for debugging
10692 # configure, is in config.log if it exists.
10693
10694 debug=false
10695 ac_cs_recheck=false
10696 ac_cs_silent=false
10697
10698 SHELL=\${CONFIG_SHELL-$SHELL}
10699 export SHELL
10700 _ASEOF
10701 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10702 ## -------------------- ##
10703 ## M4sh Initialization. ##
10704 ## -------------------- ##
10705
10706 # Be more Bourne compatible
10707 DUALCASE=1; export DUALCASE # for MKS sh
10708 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10709 emulate sh
10710 NULLCMD=:
10711 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10712 # is contrary to our usage. Disable this feature.
10713 alias -g '${1+"$@"}'='"$@"'
10714 setopt NO_GLOB_SUBST
10715 else
10716 case `(set -o) 2>/dev/null` in #(
10717 *posix*) :
10718 set -o posix ;; #(
10719 *) :
10720 ;;
10721 esac
10722 fi
10723
10724
10725 as_nl='
10726 '
10727 export as_nl
10728 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10729 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10732 # Prefer a ksh shell builtin over an external printf program on Solaris,
10733 # but without wasting forks for bash or zsh.
10734 if test -z "$BASH_VERSION$ZSH_VERSION" \
10735 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10736 as_echo='print -r --'
10737 as_echo_n='print -rn --'
10738 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10739 as_echo='printf %s\n'
10740 as_echo_n='printf %s'
10741 else
10742 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10743 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10744 as_echo_n='/usr/ucb/echo -n'
10745 else
10746 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10747 as_echo_n_body='eval
10748 arg=$1;
10749 case $arg in #(
10750 *"$as_nl"*)
10751 expr "X$arg" : "X\\(.*\\)$as_nl";
10752 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10753 esac;
10754 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10755 '
10756 export as_echo_n_body
10757 as_echo_n='sh -c $as_echo_n_body as_echo'
10758 fi
10759 export as_echo_body
10760 as_echo='sh -c $as_echo_body as_echo'
10761 fi
10762
10763 # The user is always right.
10764 if test "${PATH_SEPARATOR+set}" != set; then
10765 PATH_SEPARATOR=:
10766 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10767 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10768 PATH_SEPARATOR=';'
10769 }
10770 fi
10771
10772
10773 # IFS
10774 # We need space, tab and new line, in precisely that order. Quoting is
10775 # there to prevent editors from complaining about space-tab.
10776 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10777 # splitting by setting IFS to empty value.)
10778 IFS=" "" $as_nl"
10779
10780 # Find who we are. Look in the path if we contain no directory separator.
10781 as_myself=
10782 case $0 in #((
10783 *[\\/]* ) as_myself=$0 ;;
10784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10786 do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10790 done
10791 IFS=$as_save_IFS
10792
10793 ;;
10794 esac
10795 # We did not find ourselves, most probably we were run as `sh COMMAND'
10796 # in which case we are not to be found in the path.
10797 if test "x$as_myself" = x; then
10798 as_myself=$0
10799 fi
10800 if test ! -f "$as_myself"; then
10801 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10802 exit 1
10803 fi
10804
10805 # Unset variables that we do not need and which cause bugs (e.g. in
10806 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10807 # suppresses any "Segmentation fault" message there. '((' could
10808 # trigger a bug in pdksh 5.2.14.
10809 for as_var in BASH_ENV ENV MAIL MAILPATH
10810 do eval test x\${$as_var+set} = xset \
10811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10812 done
10813 PS1='$ '
10814 PS2='> '
10815 PS4='+ '
10816
10817 # NLS nuisances.
10818 LC_ALL=C
10819 export LC_ALL
10820 LANGUAGE=C
10821 export LANGUAGE
10822
10823 # CDPATH.
10824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10825
10826
10827 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10828 # ----------------------------------------
10829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10831 # script with STATUS, using 1 if that was 0.
10832 as_fn_error ()
10833 {
10834 as_status=$1; test $as_status -eq 0 && as_status=1
10835 if test "$4"; then
10836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10837 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10838 fi
10839 $as_echo "$as_me: error: $2" >&2
10840 as_fn_exit $as_status
10841 } # as_fn_error
10842
10843
10844 # as_fn_set_status STATUS
10845 # -----------------------
10846 # Set $? to STATUS, without forking.
10847 as_fn_set_status ()
10848 {
10849 return $1
10850 } # as_fn_set_status
10851
10852 # as_fn_exit STATUS
10853 # -----------------
10854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10855 as_fn_exit ()
10856 {
10857 set +e
10858 as_fn_set_status $1
10859 exit $1
10860 } # as_fn_exit
10861
10862 # as_fn_unset VAR
10863 # ---------------
10864 # Portably unset VAR.
10865 as_fn_unset ()
10866 {
10867 { eval $1=; unset $1;}
10868 }
10869 as_unset=as_fn_unset
10870 # as_fn_append VAR VALUE
10871 # ----------------------
10872 # Append the text in VALUE to the end of the definition contained in VAR. Take
10873 # advantage of any shell optimizations that allow amortized linear growth over
10874 # repeated appends, instead of the typical quadratic growth present in naive
10875 # implementations.
10876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10877 eval 'as_fn_append ()
10878 {
10879 eval $1+=\$2
10880 }'
10881 else
10882 as_fn_append ()
10883 {
10884 eval $1=\$$1\$2
10885 }
10886 fi # as_fn_append
10887
10888 # as_fn_arith ARG...
10889 # ------------------
10890 # Perform arithmetic evaluation on the ARGs, and store the result in the
10891 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10892 # must be portable across $(()) and expr.
10893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10894 eval 'as_fn_arith ()
10895 {
10896 as_val=$(( $* ))
10897 }'
10898 else
10899 as_fn_arith ()
10900 {
10901 as_val=`expr "$@" || test $? -eq 1`
10902 }
10903 fi # as_fn_arith
10904
10905
10906 if expr a : '\(a\)' >/dev/null 2>&1 &&
10907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10908 as_expr=expr
10909 else
10910 as_expr=false
10911 fi
10912
10913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10914 as_basename=basename
10915 else
10916 as_basename=false
10917 fi
10918
10919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10920 as_dirname=dirname
10921 else
10922 as_dirname=false
10923 fi
10924
10925 as_me=`$as_basename -- "$0" ||
10926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10927 X"$0" : 'X\(//\)$' \| \
10928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10929 $as_echo X/"$0" |
10930 sed '/^.*\/\([^/][^/]*\)\/*$/{
10931 s//\1/
10932 q
10933 }
10934 /^X\/\(\/\/\)$/{
10935 s//\1/
10936 q
10937 }
10938 /^X\/\(\/\).*/{
10939 s//\1/
10940 q
10941 }
10942 s/.*/./; q'`
10943
10944 # Avoid depending upon Character Ranges.
10945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10948 as_cr_digits='0123456789'
10949 as_cr_alnum=$as_cr_Letters$as_cr_digits
10950
10951 ECHO_C= ECHO_N= ECHO_T=
10952 case `echo -n x` in #(((((
10953 -n*)
10954 case `echo 'xy\c'` in
10955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10956 xy) ECHO_C='\c';;
10957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10958 ECHO_T=' ';;
10959 esac;;
10960 *)
10961 ECHO_N='-n';;
10962 esac
10963
10964 rm -f conf$$ conf$$.exe conf$$.file
10965 if test -d conf$$.dir; then
10966 rm -f conf$$.dir/conf$$.file
10967 else
10968 rm -f conf$$.dir
10969 mkdir conf$$.dir 2>/dev/null
10970 fi
10971 if (echo >conf$$.file) 2>/dev/null; then
10972 if ln -s conf$$.file conf$$ 2>/dev/null; then
10973 as_ln_s='ln -s'
10974 # ... but there are two gotchas:
10975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10977 # In both cases, we have to default to `cp -pR'.
10978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10979 as_ln_s='cp -pR'
10980 elif ln conf$$.file conf$$ 2>/dev/null; then
10981 as_ln_s=ln
10982 else
10983 as_ln_s='cp -pR'
10984 fi
10985 else
10986 as_ln_s='cp -pR'
10987 fi
10988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10989 rmdir conf$$.dir 2>/dev/null
10990
10991
10992 # as_fn_mkdir_p
10993 # -------------
10994 # Create "$as_dir" as a directory, including parents if necessary.
10995 as_fn_mkdir_p ()
10996 {
10997
10998 case $as_dir in #(
10999 -*) as_dir=./$as_dir;;
11000 esac
11001 test -d "$as_dir" || eval $as_mkdir_p || {
11002 as_dirs=
11003 while :; do
11004 case $as_dir in #(
11005 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11006 *) as_qdir=$as_dir;;
11007 esac
11008 as_dirs="'$as_qdir' $as_dirs"
11009 as_dir=`$as_dirname -- "$as_dir" ||
11010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11011 X"$as_dir" : 'X\(//\)[^/]' \| \
11012 X"$as_dir" : 'X\(//\)$' \| \
11013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11014 $as_echo X"$as_dir" |
11015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11016 s//\1/
11017 q
11018 }
11019 /^X\(\/\/\)[^/].*/{
11020 s//\1/
11021 q
11022 }
11023 /^X\(\/\/\)$/{
11024 s//\1/
11025 q
11026 }
11027 /^X\(\/\).*/{
11028 s//\1/
11029 q
11030 }
11031 s/.*/./; q'`
11032 test -d "$as_dir" && break
11033 done
11034 test -z "$as_dirs" || eval "mkdir $as_dirs"
11035 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11036
11037
11038 } # as_fn_mkdir_p
11039 if mkdir -p . 2>/dev/null; then
11040 as_mkdir_p='mkdir -p "$as_dir"'
11041 else
11042 test -d ./-p && rmdir ./-p
11043 as_mkdir_p=false
11044 fi
11045
11046
11047 # as_fn_executable_p FILE
11048 # -----------------------
11049 # Test if FILE is an executable regular file.
11050 as_fn_executable_p ()
11051 {
11052 test -f "$1" && test -x "$1"
11053 } # as_fn_executable_p
11054 as_test_x='test -x'
11055 as_executable_p=as_fn_executable_p
11056
11057 # Sed expression to map a string onto a valid CPP name.
11058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11059
11060 # Sed expression to map a string onto a valid variable name.
11061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11062
11063
11064 exec 6>&1
11065 ## ----------------------------------- ##
11066 ## Main body of $CONFIG_STATUS script. ##
11067 ## ----------------------------------- ##
11068 _ASEOF
11069 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11070
11071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11072 # Save the log message, to keep $0 and so on meaningful, and to
11073 # report actual input values of CONFIG_FILES etc. instead of their
11074 # values after options handling.
11075 ac_log="
11076 This file was extended by gccmakedep $as_me 1.0.3, which was
11077 generated by GNU Autoconf 2.69. Invocation command line was
11078
11079 CONFIG_FILES = $CONFIG_FILES
11080 CONFIG_HEADERS = $CONFIG_HEADERS
11081 CONFIG_LINKS = $CONFIG_LINKS
11082 CONFIG_COMMANDS = $CONFIG_COMMANDS
11083 $ $0 $@
11084
11085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11086 "
11087
11088 _ACEOF
11089
11090 case $ac_config_files in *"
11091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11092 esac
11093
11094
11095
11096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11097 # Files that config.status was made for.
11098 config_files="$ac_config_files"
11099 config_commands="$ac_config_commands"
11100
11101 _ACEOF
11102
11103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11104 ac_cs_usage="\
11105 \`$as_me' instantiates files and other configuration actions
11106 from templates according to the current configuration. Unless the files
11107 and actions are specified as TAGs, all are instantiated by default.
11108
11109 Usage: $0 [OPTION]... [TAG]...
11110
11111 -h, --help print this help, then exit
11112 -V, --version print version number and configuration settings, then exit
11113 --config print configuration, then exit
11114 -q, --quiet, --silent
11115 do not print progress messages
11116 -d, --debug don't remove temporary files
11117 --recheck update $as_me by reconfiguring in the same conditions
11118 --file=FILE[:TEMPLATE]
11119 instantiate the configuration file FILE
11120
11121 Configuration files:
11122 $config_files
11123
11124 Configuration commands:
11125 $config_commands
11126
11127 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11128
11129 _ACEOF
11130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11131 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11132 ac_cs_version="\\
11133 gccmakedep config.status 1.0.3
11134 configured by $0, generated by GNU Autoconf 2.69,
11135 with options \\"\$ac_cs_config\\"
11136
11137 Copyright (C) 2012 Free Software Foundation, Inc.
11138 This config.status script is free software; the Free Software Foundation
11139 gives unlimited permission to copy, distribute and modify it."
11140
11141 ac_pwd='$ac_pwd'
11142 srcdir='$srcdir'
11143 INSTALL='$INSTALL'
11144 MKDIR_P='$MKDIR_P'
11145 AWK='$AWK'
11146 test -n "\$AWK" || AWK=awk
11147 _ACEOF
11148
11149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11150 # The default lists apply if the user does not specify any file.
11151 ac_need_defaults=:
11152 while test $# != 0
11153 do
11154 case $1 in
11155 --*=?*)
11156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11158 ac_shift=:
11159 ;;
11160 --*=)
11161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11162 ac_optarg=
11163 ac_shift=:
11164 ;;
11165 *)
11166 ac_option=$1
11167 ac_optarg=$2
11168 ac_shift=shift
11169 ;;
11170 esac
11171
11172 case $ac_option in
11173 # Handling of the options.
11174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11175 ac_cs_recheck=: ;;
11176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11177 $as_echo "$ac_cs_version"; exit ;;
11178 --config | --confi | --conf | --con | --co | --c )
11179 $as_echo "$ac_cs_config"; exit ;;
11180 --debug | --debu | --deb | --de | --d | -d )
11181 debug=: ;;
11182 --file | --fil | --fi | --f )
11183 $ac_shift
11184 case $ac_optarg in
11185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11186 '') as_fn_error $? "missing file argument" ;;
11187 esac
11188 as_fn_append CONFIG_FILES " '$ac_optarg'"
11189 ac_need_defaults=false;;
11190 --he | --h | --help | --hel | -h )
11191 $as_echo "$ac_cs_usage"; exit ;;
11192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11194 ac_cs_silent=: ;;
11195
11196 # This is an error.
11197 -*) as_fn_error $? "unrecognized option: \`$1'
11198 Try \`$0 --help' for more information." ;;
11199
11200 *) as_fn_append ac_config_targets " $1"
11201 ac_need_defaults=false ;;
11202
11203 esac
11204 shift
11205 done
11206
11207 ac_configure_extra_args=
11208
11209 if $ac_cs_silent; then
11210 exec 6>/dev/null
11211 ac_configure_extra_args="$ac_configure_extra_args --silent"
11212 fi
11213
11214 _ACEOF
11215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216 if \$ac_cs_recheck; then
11217 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11218 shift
11219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11220 CONFIG_SHELL='$SHELL'
11221 export CONFIG_SHELL
11222 exec "\$@"
11223 fi
11224
11225 _ACEOF
11226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11227 exec 5>>config.log
11228 {
11229 echo
11230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11231 ## Running $as_me. ##
11232 _ASBOX
11233 $as_echo "$ac_log"
11234 } >&5
11235
11236 _ACEOF
11237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11238 #
11239 # INIT-COMMANDS
11240 #
11241 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11242
11243 _ACEOF
11244
11245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11246
11247 # Handling of arguments.
11248 for ac_config_target in $ac_config_targets
11249 do
11250 case $ac_config_target in
11251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11253 "gccmakedep") CONFIG_FILES="$CONFIG_FILES gccmakedep" ;;
11254
11255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11256 esac
11257 done
11258
11259
11260 # If the user did not use the arguments to specify the items to instantiate,
11261 # then the envvar interface is used. Set only those that are not.
11262 # We use the long form for the default assignment because of an extremely
11263 # bizarre bug on SunOS 4.1.3.
11264 if $ac_need_defaults; then
11265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11267 fi
11268
11269 # Have a temporary directory for convenience. Make it in the build tree
11270 # simply because there is no reason against having it here, and in addition,
11271 # creating and moving files from /tmp can sometimes cause problems.
11272 # Hook for its removal unless debugging.
11273 # Note that there is a small window in which the directory will not be cleaned:
11274 # after its creation but before its name has been assigned to `$tmp'.
11275 $debug ||
11276 {
11277 tmp= ac_tmp=
11278 trap 'exit_status=$?
11279 : "${ac_tmp:=$tmp}"
11280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11281 ' 0
11282 trap 'as_fn_exit 1' 1 2 13 15
11283 }
11284 # Create a (secure) tmp directory for tmp files.
11285
11286 {
11287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11288 test -d "$tmp"
11289 } ||
11290 {
11291 tmp=./conf$$-$RANDOM
11292 (umask 077 && mkdir "$tmp")
11293 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11294 ac_tmp=$tmp
11295
11296 # Set up the scripts for CONFIG_FILES section.
11297 # No need to generate them if there are no CONFIG_FILES.
11298 # This happens for instance with `./config.status config.h'.
11299 if test -n "$CONFIG_FILES"; then
11300
11301
11302 ac_cr=`echo X | tr X '\015'`
11303 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11304 # But we know of no other shell where ac_cr would be empty at this
11305 # point, so we can use a bashism as a fallback.
11306 if test "x$ac_cr" = x; then
11307 eval ac_cr=\$\'\\r\'
11308 fi
11309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11311 ac_cs_awk_cr='\\r'
11312 else
11313 ac_cs_awk_cr=$ac_cr
11314 fi
11315
11316 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11317 _ACEOF
11318
11319
11320 {
11321 echo "cat >conf$$subs.awk <<_ACEOF" &&
11322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11323 echo "_ACEOF"
11324 } >conf$$subs.sh ||
11325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11326 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11327 ac_delim='%!_!# '
11328 for ac_last_try in false false false false false :; do
11329 . ./conf$$subs.sh ||
11330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11331
11332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11333 if test $ac_delim_n = $ac_delim_num; then
11334 break
11335 elif $ac_last_try; then
11336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11337 else
11338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11339 fi
11340 done
11341 rm -f conf$$subs.sh
11342
11343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11344 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11345 _ACEOF
11346 sed -n '
11347 h
11348 s/^/S["/; s/!.*/"]=/
11349 p
11350 g
11351 s/^[^!]*!//
11352 :repl
11353 t repl
11354 s/'"$ac_delim"'$//
11355 t delim
11356 :nl
11357 h
11358 s/\(.\{148\}\)..*/\1/
11359 t more1
11360 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11361 p
11362 n
11363 b repl
11364 :more1
11365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11366 p
11367 g
11368 s/.\{148\}//
11369 t nl
11370 :delim
11371 h
11372 s/\(.\{148\}\)..*/\1/
11373 t more2
11374 s/["\\]/\\&/g; s/^/"/; s/$/"/
11375 p
11376 b
11377 :more2
11378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11379 p
11380 g
11381 s/.\{148\}//
11382 t delim
11383 ' <conf$$subs.awk | sed '
11384 /^[^""]/{
11385 N
11386 s/\n//
11387 }
11388 ' >>$CONFIG_STATUS || ac_write_fail=1
11389 rm -f conf$$subs.awk
11390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11391 _ACAWK
11392 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11393 for (key in S) S_is_set[key] = 1
11394 FS = ""
11395
11396 }
11397 {
11398 line = $ 0
11399 nfields = split(line, field, "@")
11400 substed = 0
11401 len = length(field[1])
11402 for (i = 2; i < nfields; i++) {
11403 key = field[i]
11404 keylen = length(key)
11405 if (S_is_set[key]) {
11406 value = S[key]
11407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11408 len += length(value) + length(field[++i])
11409 substed = 1
11410 } else
11411 len += 1 + keylen
11412 }
11413
11414 print line
11415 }
11416
11417 _ACAWK
11418 _ACEOF
11419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11420 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11422 else
11423 cat
11424 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11426 _ACEOF
11427
11428 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11429 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11430 # trailing colons and then remove the whole line if VPATH becomes empty
11431 # (actually we leave an empty line to preserve line numbers).
11432 if test "x$srcdir" = x.; then
11433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11434 h
11435 s///
11436 s/^/:/
11437 s/[ ]*$/:/
11438 s/:\$(srcdir):/:/g
11439 s/:\${srcdir}:/:/g
11440 s/:@srcdir@:/:/g
11441 s/^:*//
11442 s/:*$//
11443 x
11444 s/\(=[ ]*\).*/\1/
11445 G
11446 s/\n//
11447 s/^[^=]*=[ ]*$//
11448 }'
11449 fi
11450
11451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11452 fi # test -n "$CONFIG_FILES"
11453
11454
11455 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11456 shift
11457 for ac_tag
11458 do
11459 case $ac_tag in
11460 :[FHLC]) ac_mode=$ac_tag; continue;;
11461 esac
11462 case $ac_mode$ac_tag in
11463 :[FHL]*:*);;
11464 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11465 :[FH]-) ac_tag=-:-;;
11466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11467 esac
11468 ac_save_IFS=$IFS
11469 IFS=:
11470 set x $ac_tag
11471 IFS=$ac_save_IFS
11472 shift
11473 ac_file=$1
11474 shift
11475
11476 case $ac_mode in
11477 :L) ac_source=$1;;
11478 :[FH])
11479 ac_file_inputs=
11480 for ac_f
11481 do
11482 case $ac_f in
11483 -) ac_f="$ac_tmp/stdin";;
11484 *) # Look for the file first in the build tree, then in the source tree
11485 # (if the path is not absolute). The absolute path cannot be DOS-style,
11486 # because $ac_f cannot contain `:'.
11487 test -f "$ac_f" ||
11488 case $ac_f in
11489 [\\/$]*) false;;
11490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11491 esac ||
11492 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11493 esac
11494 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11495 as_fn_append ac_file_inputs " '$ac_f'"
11496 done
11497
11498 # Let's still pretend it is `configure' which instantiates (i.e., don't
11499 # use $as_me), people would be surprised to read:
11500 # /* config.h. Generated by config.status. */
11501 configure_input='Generated from '`
11502 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11503 `' by configure.'
11504 if test x"$ac_file" != x-; then
11505 configure_input="$ac_file. $configure_input"
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11507 $as_echo "$as_me: creating $ac_file" >&6;}
11508 fi
11509 # Neutralize special characters interpreted by sed in replacement strings.
11510 case $configure_input in #(
11511 *\&* | *\|* | *\\* )
11512 ac_sed_conf_input=`$as_echo "$configure_input" |
11513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11514 *) ac_sed_conf_input=$configure_input;;
11515 esac
11516
11517 case $ac_tag in
11518 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11520 esac
11521 ;;
11522 esac
11523
11524 ac_dir=`$as_dirname -- "$ac_file" ||
11525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11526 X"$ac_file" : 'X\(//\)[^/]' \| \
11527 X"$ac_file" : 'X\(//\)$' \| \
11528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11529 $as_echo X"$ac_file" |
11530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11531 s//\1/
11532 q
11533 }
11534 /^X\(\/\/\)[^/].*/{
11535 s//\1/
11536 q
11537 }
11538 /^X\(\/\/\)$/{
11539 s//\1/
11540 q
11541 }
11542 /^X\(\/\).*/{
11543 s//\1/
11544 q
11545 }
11546 s/.*/./; q'`
11547 as_dir="$ac_dir"; as_fn_mkdir_p
11548 ac_builddir=.
11549
11550 case "$ac_dir" in
11551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11552 *)
11553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11554 # A ".." for each directory in $ac_dir_suffix.
11555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11556 case $ac_top_builddir_sub in
11557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11559 esac ;;
11560 esac
11561 ac_abs_top_builddir=$ac_pwd
11562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11563 # for backward compatibility:
11564 ac_top_builddir=$ac_top_build_prefix
11565
11566 case $srcdir in
11567 .) # We are building in place.
11568 ac_srcdir=.
11569 ac_top_srcdir=$ac_top_builddir_sub
11570 ac_abs_top_srcdir=$ac_pwd ;;
11571 [\\/]* | ?:[\\/]* ) # Absolute name.
11572 ac_srcdir=$srcdir$ac_dir_suffix;
11573 ac_top_srcdir=$srcdir
11574 ac_abs_top_srcdir=$srcdir ;;
11575 *) # Relative name.
11576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11577 ac_top_srcdir=$ac_top_build_prefix$srcdir
11578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11579 esac
11580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11581
11582
11583 case $ac_mode in
11584 :F)
11585 #
11586 # CONFIG_FILE
11587 #
11588
11589 case $INSTALL in
11590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11592 esac
11593 ac_MKDIR_P=$MKDIR_P
11594 case $MKDIR_P in
11595 [\\/$]* | ?:[\\/]* ) ;;
11596 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11597 esac
11598 _ACEOF
11599
11600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11601 # If the template does not know about datarootdir, expand it.
11602 # FIXME: This hack should be removed a few years after 2.60.
11603 ac_datarootdir_hack=; ac_datarootdir_seen=
11604 ac_sed_dataroot='
11605 /datarootdir/ {
11606 p
11607 q
11608 }
11609 /@datadir@/p
11610 /@docdir@/p
11611 /@infodir@/p
11612 /@localedir@/p
11613 /@mandir@/p'
11614 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11615 *datarootdir*) ac_datarootdir_seen=yes;;
11616 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11618 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11619 _ACEOF
11620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11621 ac_datarootdir_hack='
11622 s&@datadir@&$datadir&g
11623 s&@docdir@&$docdir&g
11624 s&@infodir@&$infodir&g
11625 s&@localedir@&$localedir&g
11626 s&@mandir@&$mandir&g
11627 s&\\\${datarootdir}&$datarootdir&g' ;;
11628 esac
11629 _ACEOF
11630
11631 # Neutralize VPATH when `$srcdir' = `.'.
11632 # Shell code in configure.ac might set extrasub.
11633 # FIXME: do we really want to maintain this feature?
11634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11635 ac_sed_extra="$ac_vpsub
11636 $extrasub
11637 _ACEOF
11638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11639 :t
11640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11641 s|@configure_input@|$ac_sed_conf_input|;t t
11642 s&@top_builddir@&$ac_top_builddir_sub&;t t
11643 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11644 s&@srcdir@&$ac_srcdir&;t t
11645 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11646 s&@top_srcdir@&$ac_top_srcdir&;t t
11647 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11648 s&@builddir@&$ac_builddir&;t t
11649 s&@abs_builddir@&$ac_abs_builddir&;t t
11650 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11651 s&@INSTALL@&$ac_INSTALL&;t t
11652 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11653 $ac_datarootdir_hack
11654 "
11655 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11656 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11657
11658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11659 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11661 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11663 which seems to be undefined. Please make sure it is defined" >&5
11664 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11665 which seems to be undefined. Please make sure it is defined" >&2;}
11666
11667 rm -f "$ac_tmp/stdin"
11668 case $ac_file in
11669 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11670 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11671 esac \
11672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11673 ;;
11674
11675
11676 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11677 $as_echo "$as_me: executing $ac_file commands" >&6;}
11678 ;;
11679 esac
11680
11681
11682 case $ac_file$ac_mode in
11683 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11684 # Older Autoconf quotes --file arguments for eval, but not when files
11685 # are listed without --file. Let's play safe and only enable the eval
11686 # if we detect the quoting.
11687 case $CONFIG_FILES in
11688 *\'*) eval set x "$CONFIG_FILES" ;;
11689 *) set x $CONFIG_FILES ;;
11690 esac
11691 shift
11692 for mf
11693 do
11694 # Strip MF so we end up with the name of the file.
11695 mf=`echo "$mf" | sed -e 's/:.*$//'`
11696 # Check whether this is an Automake generated Makefile or not.
11697 # We used to match only the files named 'Makefile.in', but
11698 # some people rename them; so instead we look at the file content.
11699 # Grep'ing the first line is not enough: some people post-process
11700 # each Makefile.in and add a new line on top of each file to say so.
11701 # Grep'ing the whole file is not good either: AIX grep has a line
11702 # limit of 2048, but all sed's we know have understand at least 4000.
11703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11704 dirpart=`$as_dirname -- "$mf" ||
11705 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11706 X"$mf" : 'X\(//\)[^/]' \| \
11707 X"$mf" : 'X\(//\)$' \| \
11708 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11709 $as_echo X"$mf" |
11710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11711 s//\1/
11712 q
11713 }
11714 /^X\(\/\/\)[^/].*/{
11715 s//\1/
11716 q
11717 }
11718 /^X\(\/\/\)$/{
11719 s//\1/
11720 q
11721 }
11722 /^X\(\/\).*/{
11723 s//\1/
11724 q
11725 }
11726 s/.*/./; q'`
11727 else
11728 continue
11729 fi
11730 # Extract the definition of DEPDIR, am__include, and am__quote
11731 # from the Makefile without running 'make'.
11732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11733 test -z "$DEPDIR" && continue
11734 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11735 test -z "$am__include" && continue
11736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11737 # Find all dependency output files, they are included files with
11738 # $(DEPDIR) in their names. We invoke sed twice because it is the
11739 # simplest approach to changing $(DEPDIR) to its actual value in the
11740 # expansion.
11741 for file in `sed -n "
11742 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11743 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11744 # Make sure the directory exists.
11745 test -f "$dirpart/$file" && continue
11746 fdir=`$as_dirname -- "$file" ||
11747 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11748 X"$file" : 'X\(//\)[^/]' \| \
11749 X"$file" : 'X\(//\)$' \| \
11750 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11751 $as_echo X"$file" |
11752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11753 s//\1/
11754 q
11755 }
11756 /^X\(\/\/\)[^/].*/{
11757 s//\1/
11758 q
11759 }
11760 /^X\(\/\/\)$/{
11761 s//\1/
11762 q
11763 }
11764 /^X\(\/\).*/{
11765 s//\1/
11766 q
11767 }
11768 s/.*/./; q'`
11769 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11770 # echo "creating $dirpart/$file"
11771 echo '# dummy' > "$dirpart/$file"
11772 done
11773 done
11774 }
11775 ;;
11776
11777 esac
11778 done # for ac_tag
11779
11780
11781 as_fn_exit 0
11782 _ACEOF
11783 ac_clean_files=$ac_clean_files_save
11784
11785 test $ac_write_fail = 0 ||
11786 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11787
11788
11789 # configure is writing to config.log, and then calls config.status.
11790 # config.status does its own redirection, appending to config.log.
11791 # Unfortunately, on DOS this fails, as config.log is still kept open
11792 # by configure, so config.status won't be able to write to it; its
11793 # output is simply discarded. So we exec the FD to /dev/null,
11794 # effectively closing config.log, so it can be properly (re)opened and
11795 # appended to by config.status. When coming back to configure, we
11796 # need to make the FD available again.
11797 if test "$no_create" != yes; then
11798 ac_cs_success=:
11799 ac_config_status_args=
11800 test "$silent" = yes &&
11801 ac_config_status_args="$ac_config_status_args --quiet"
11802 exec 5>/dev/null
11803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11804 exec 5>>config.log
11805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11806 # would make configure fail if this is the last instruction.
11807 $ac_cs_success || as_fn_exit 1
11808 fi
11809 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11811 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11812 fi
11813