configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xload 1.1.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 bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xload'
583 PACKAGE_TARNAME='xload'
584 PACKAGE_VERSION='1.1.3'
585 PACKAGE_STRING='xload 1.1.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 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 XLOAD_LIBS
634 XLOAD_CFLAGS
635 USE_GETTEXT_FALSE
636 USE_GETTEXT_TRUE
637 LOCALEDIR
638 MAN_SUBSTS
639 XORG_MAN_PAGE
640 ADMIN_MAN_DIR
641 DRIVER_MAN_DIR
642 MISC_MAN_DIR
643 FILE_MAN_DIR
644 LIB_MAN_DIR
645 APP_MAN_DIR
646 ADMIN_MAN_SUFFIX
647 DRIVER_MAN_SUFFIX
648 MISC_MAN_SUFFIX
649 FILE_MAN_SUFFIX
650 LIB_MAN_SUFFIX
651 APP_MAN_SUFFIX
652 SED
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 INSTALL_CMD
662 PKG_CONFIG_LIBDIR
663 PKG_CONFIG_PATH
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 AM_BACKSLASH
670 AM_DEFAULT_VERBOSITY
671 AM_DEFAULT_V
672 AM_V
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 EGREP
707 GREP
708 CPP
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_dependency_tracking
758 enable_silent_rules
759 enable_selective_werror
760 enable_strict_compilation
761 with_localedir
762 with_appdefaultdir
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 XLOAD_CFLAGS
777 XLOAD_LIBS
778 APPDEFS_CFLAGS
779 APPDEFS_LIBS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures xload 1.1.3 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/xload]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of xload 1.1.3:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
1402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --disable-selective-werror
1405 Turn off selective compiler errors. (default:
1406 enabled)
1407 --enable-strict-compilation
1408 Enable all warnings from compiler and make them
1409 errors (default: disabled)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-localedir=<path> Path to install message files in (default:
1415 datadir/locale)
1416 --with-appdefaultdir=<pathname>
1417 specify directory for app-defaults files (default is
1418 autodetected)
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 XLOAD_CFLAGS
1435 C compiler flags for XLOAD, overriding pkg-config
1436 XLOAD_LIBS linker flags for XLOAD, overriding pkg-config
1437 APPDEFS_CFLAGS
1438 C compiler flags for APPDEFS, overriding pkg-config
1439 APPDEFS_LIBS
1440 linker flags for APPDEFS, overriding pkg-config
1441
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 xload configure 1.1.3
1509 generated by GNU Autoconf 2.69
1510
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_cpp
1596
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if eval \${$3+:} false; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 fi
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1631
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1643 fi
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1647
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 ;;
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( $as_echo "## ---------------------------------------------------------------------- ##
1668 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1669 ## ---------------------------------------------------------------------- ##"
1670 ) | sed "s/^/$as_me: WARNING: /" >&2
1671 ;;
1672 esac
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 eval "$3=\$ac_header_compiler"
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_mongrel
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749 else
1750 eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_header_compile
1760
1761 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1762 # ---------------------------------------------
1763 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_decl ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 as_decl_name=`echo $2|sed 's/ *(.*//'`
1769 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1771 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 int
1779 main ()
1780 {
1781 #ifndef $as_decl_name
1782 #ifdef __cplusplus
1783 (void) $as_decl_use;
1784 #else
1785 (void) $as_decl_name;
1786 #endif
1787 #endif
1788
1789 ;
1790 return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_decl
1806
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 test -x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_link
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1869
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1874
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1880
1881 #undef $2
1882
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1896
1897 int
1898 main ()
1899 {
1900 return $2 ();
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_func
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1922
1923 It was created by xload $as_me 1.1.3, which was
1924 generated by GNU Autoconf 2.69. Invocation command line was
1925
1926 $ $0 $@
1927
1928 _ACEOF
1929 exec 5>>config.log
1930 {
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1935
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953 _ASUNAME
1954
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
2034 $as_echo "## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##"
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2039 (
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2062 *)
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064 ;;
2065 esac |
2066 sort
2067 )
2068 echo
2069
2070 $as_echo "## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##"
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 $as_echo "## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##"
2088 echo
2089 for ac_var in $ac_subst_files
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
2101 $as_echo "## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##"
2104 echo
2105 cat confdefs.h
2106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
2109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
2111 } >&5
2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2114 exit $exit_status
2115 ' 0
2116 for ac_signal in 1 2 13 15; do
2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2118 done
2119 ac_signal=0
2120
2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2122 rm -f -r conftest* confdefs.h
2123
2124 $as_echo "/* confdefs.h */" > confdefs.h
2125
2126 # Predefined preprocessor variables.
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_NAME "$PACKAGE_NAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_STRING "$PACKAGE_STRING"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_URL "$PACKAGE_URL"
2150 _ACEOF
2151
2152
2153 # Let the site file select an alternate cache file if it wants to.
2154 # Prefer an explicitly selected file to automatically selected ones.
2155 ac_site_file1=NONE
2156 ac_site_file2=NONE
2157 if test -n "$CONFIG_SITE"; then
2158 # We do not want a PATH search for config.site.
2159 case $CONFIG_SITE in #((
2160 -*) ac_site_file1=./$CONFIG_SITE;;
2161 */*) ac_site_file1=$CONFIG_SITE;;
2162 *) ac_site_file1=./$CONFIG_SITE;;
2163 esac
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167 else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170 fi
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 do
2173 test "x$ac_site_file" = xNONE && continue
2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file" \
2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 as_fn_error $? "failed to load site script $ac_site_file
2182 See \`config.log' for more details" "$LINENO" 5; }
2183 fi
2184 done
2185
2186 if test -r "$cache_file"; then
2187 # Some versions of bash will fail to source /dev/null (special files
2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2191 $as_echo "$as_me: loading cache $cache_file" >&6;}
2192 case $cache_file in
2193 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194 *) . "./$cache_file";;
2195 esac
2196 fi
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2199 $as_echo "$as_me: creating cache $cache_file" >&6;}
2200 >$cache_file
2201 fi
2202
2203 # Check that the precious variables saved in the cache have kept the same
2204 # value.
2205 ac_cache_corrupted=false
2206 for ac_var in $ac_precious_vars; do
2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
2211 case $ac_old_set,$ac_new_set in
2212 set,)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,set)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,);;
2221 *)
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
2223 # differences in whitespace do not lead to failure.
2224 ac_old_val_w=`echo x $ac_old_val`
2225 ac_new_val_w=`echo x $ac_new_val`
2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2228 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229 ac_cache_corrupted=:
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2232 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233 eval $ac_var=\$ac_old_val
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2236 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2238 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2239 fi;;
2240 esac
2241 # Pass precious variables to config.status.
2242 if test "$ac_new_set" = set; then
2243 case $ac_new_val in
2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 *) ac_arg=$ac_var=$ac_new_val ;;
2246 esac
2247 case " $ac_configure_args " in
2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2250 esac
2251 fi
2252 done
2253 if $ac_cache_corrupted; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2257 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 fi
2260 ## -------------------- ##
2261 ## Main body of script. ##
2262 ## -------------------- ##
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269
2270
2271
2272
2273 ac_config_headers="$ac_config_headers config.h"
2274
2275 ac_aux_dir=
2276 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2277 if test -f "$ac_dir/install-sh"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2280 break
2281 elif test -f "$ac_dir/install.sh"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2284 break
2285 elif test -f "$ac_dir/shtool"; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 break
2289 fi
2290 done
2291 if test -z "$ac_aux_dir"; then
2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2293 fi
2294
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
2303
2304 # Expand $ac_aux_dir to an absolute path.
2305 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_CC+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 fi
2339 fi
2340 CC=$ac_cv_prog_CC
2341 if test -n "$CC"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2343 $as_echo "$CC" >&6; }
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2347 fi
2348
2349
2350 fi
2351 if test -z "$ac_cv_prog_CC"; then
2352 ac_ct_CC=$CC
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354 set dummy gcc; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="gcc"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389 if test "x$ac_ct_CC" = x; then
2390 CC=""
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398 CC=$ac_ct_CC
2399 fi
2400 else
2401 CC="$ac_cv_prog_CC"
2402 fi
2403
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}cc; ac_word=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_CC+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="${ac_tool_prefix}cc"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442
2443 fi
2444 fi
2445 if test -z "$CC"; then
2446 # Extract the first word of "cc", so it can be a program name with args.
2447 set dummy cc; ac_word=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if ${ac_cv_prog_CC+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 else
2456 ac_prog_rejected=no
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465 ac_prog_rejected=yes
2466 continue
2467 fi
2468 ac_cv_prog_CC="cc"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 if test $ac_prog_rejected = yes; then
2477 # We found a bogon in the path, so make sure we never use it.
2478 set dummy $ac_cv_prog_CC
2479 shift
2480 if test $# != 0; then
2481 # We chose a different compiler from the bogus one.
2482 # However, it has the same basename, so the bogon will be chosen
2483 # first if we set CC to just the basename; use the full file name.
2484 shift
2485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2486 fi
2487 fi
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog in cl.exe
2504 do
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_CC+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 test -n "$CC" && break
2543 done
2544 fi
2545 if test -z "$CC"; then
2546 ac_ct_CC=$CC
2547 for ac_prog in cl.exe
2548 do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CC="$ac_prog"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2579 $as_echo "$ac_ct_CC" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 test -n "$ac_ct_CC" && break
2587 done
2588
2589 if test "x$ac_ct_CC" = x; then
2590 CC=""
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598 CC=$ac_ct_CC
2599 fi
2600 fi
2601
2602 fi
2603
2604
2605 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error $? "no acceptable C compiler found in \$PATH
2608 See \`config.log' for more details" "$LINENO" 5; }
2609
2610 # Provide some information about the compiler.
2611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2612 set X $ac_compile
2613 ac_compiler=$2
2614 for ac_option in --version -v -V -qversion; do
2615 { { ac_try="$ac_compiler $ac_option >&5"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2623 ac_status=$?
2624 if test -s conftest.err; then
2625 sed '10a\
2626 ... rest of stderr output deleted ...
2627 10q' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 fi
2630 rm -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }
2633 done
2634
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637
2638 int
2639 main ()
2640 {
2641
2642 ;
2643 return 0;
2644 }
2645 _ACEOF
2646 ac_clean_files_save=$ac_clean_files
2647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2648 # Try to create an executable without -o first, disregard a.out.
2649 # It will help us diagnose broken compilers, and finding out an intuition
2650 # of exeext.
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2652 $as_echo_n "checking whether the C compiler works... " >&6; }
2653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2654
2655 # The possible output files:
2656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2657
2658 ac_rmfiles=
2659 for ac_file in $ac_files
2660 do
2661 case $ac_file in
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2664 esac
2665 done
2666 rm -f $ac_rmfiles
2667
2668 if { { ac_try="$ac_link_default"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_link_default") 2>&5
2676 ac_status=$?
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; }; then :
2679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2681 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2682 # so that the user can short-circuit this test for compilers unknown to
2683 # Autoconf.
2684 for ac_file in $ac_files ''
2685 do
2686 test -f "$ac_file" || continue
2687 case $ac_file in
2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2689 ;;
2690 [ab].out )
2691 # We found the default executable, but exeext='' is most
2692 # certainly right.
2693 break;;
2694 *.* )
2695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2696 then :; else
2697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 fi
2699 # We set ac_cv_exeext here because the later test for it is not
2700 # safe: cross compilers may not add the suffix if given an `-o'
2701 # argument, so we may need to know it at that point already.
2702 # Even if this section looks crufty: it has the advantage of
2703 # actually working.
2704 break;;
2705 * )
2706 break;;
2707 esac
2708 done
2709 test "$ac_cv_exeext" = no && ac_cv_exeext=
2710
2711 else
2712 ac_file=''
2713 fi
2714 if test -z "$ac_file"; then :
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error 77 "C compiler cannot create executables
2723 See \`config.log' for more details" "$LINENO" 5; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 $as_echo "yes" >&6; }
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2729 $as_echo_n "checking for C compiler default output file name... " >&6; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2731 $as_echo "$ac_file" >&6; }
2732 ac_exeext=$ac_cv_exeext
2733
2734 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2735 ac_clean_files=$ac_clean_files_save
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2737 $as_echo_n "checking for suffix of executables... " >&6; }
2738 if { { ac_try="$ac_link"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link") 2>&5
2746 ac_status=$?
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2751 # work properly (i.e., refer to `conftest.exe'), while it won't with
2752 # `rm'.
2753 for ac_file in conftest.exe conftest conftest.*; do
2754 test -f "$ac_file" || continue
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 break;;
2759 * ) break;;
2760 esac
2761 done
2762 else
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2766 See \`config.log' for more details" "$LINENO" 5; }
2767 fi
2768 rm -f conftest conftest$ac_cv_exeext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2770 $as_echo "$ac_cv_exeext" >&6; }
2771
2772 rm -f conftest.$ac_ext
2773 EXEEXT=$ac_cv_exeext
2774 ac_exeext=$EXEEXT
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 #include <stdio.h>
2778 int
2779 main ()
2780 {
2781 FILE *f = fopen ("conftest.out", "w");
2782 return ferror (f) || fclose (f) != 0;
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 ac_clean_files="$ac_clean_files conftest.out"
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2792 $as_echo_n "checking whether we are cross compiling... " >&6; }
2793 if test "$cross_compiling" != yes; then
2794 { { ac_try="$ac_link"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link") 2>&5
2802 ac_status=$?
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }
2805 if { ac_try='./conftest$ac_cv_exeext'
2806 { { case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_try") 2>&5
2813 ac_status=$?
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; }; then
2816 cross_compiling=no
2817 else
2818 if test "$cross_compiling" = maybe; then
2819 cross_compiling=yes
2820 else
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 as_fn_error $? "cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details" "$LINENO" 5; }
2826 fi
2827 fi
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2830 $as_echo "$cross_compiling" >&6; }
2831
2832 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2833 ac_clean_files=$ac_clean_files_save
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2835 $as_echo_n "checking for suffix of object files... " >&6; }
2836 if ${ac_cv_objext+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2841
2842 int
2843 main ()
2844 {
2845
2846 ;
2847 return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.o conftest.obj
2851 if { { ac_try="$ac_compile"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857 $as_echo "$ac_try_echo"; } >&5
2858 (eval "$ac_compile") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }; then :
2862 for ac_file in conftest.o conftest.obj conftest.*; do
2863 test -f "$ac_file" || continue;
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2867 break;;
2868 esac
2869 done
2870 else
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "cannot compute suffix of object files: cannot compile
2877 See \`config.log' for more details" "$LINENO" 5; }
2878 fi
2879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2880 fi
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2882 $as_echo "$ac_cv_objext" >&6; }
2883 OBJEXT=$ac_cv_objext
2884 ac_objext=$OBJEXT
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2886 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2887 if ${ac_cv_c_compiler_gnu+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h. */
2892
2893 int
2894 main ()
2895 {
2896 #ifndef __GNUC__
2897 choke me
2898 #endif
2899
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905 ac_compiler_gnu=yes
2906 else
2907 ac_compiler_gnu=no
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2914 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2915 if test $ac_compiler_gnu = yes; then
2916 GCC=yes
2917 else
2918 GCC=
2919 fi
2920 ac_test_CFLAGS=${CFLAGS+set}
2921 ac_save_CFLAGS=$CFLAGS
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2923 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2924 if ${ac_cv_prog_cc_g+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 ac_save_c_werror_flag=$ac_c_werror_flag
2928 ac_c_werror_flag=yes
2929 ac_cv_prog_cc_g=no
2930 CFLAGS="-g"
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933
2934 int
2935 main ()
2936 {
2937
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 if ac_fn_c_try_compile "$LINENO"; then :
2943 ac_cv_prog_cc_g=yes
2944 else
2945 CFLAGS=""
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2948
2949 int
2950 main ()
2951 {
2952
2953 ;
2954 return 0;
2955 }
2956 _ACEOF
2957 if ac_fn_c_try_compile "$LINENO"; then :
2958
2959 else
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2961 CFLAGS="-g"
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2964
2965 int
2966 main ()
2967 {
2968
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_cv_prog_cc_g=yes
2975 fi
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 fi
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 fi
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_c_werror_flag=$ac_save_c_werror_flag
2982 fi
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2984 $as_echo "$ac_cv_prog_cc_g" >&6; }
2985 if test "$ac_test_CFLAGS" = set; then
2986 CFLAGS=$ac_save_CFLAGS
2987 elif test $ac_cv_prog_cc_g = yes; then
2988 if test "$GCC" = yes; then
2989 CFLAGS="-g -O2"
2990 else
2991 CFLAGS="-g"
2992 fi
2993 else
2994 if test "$GCC" = yes; then
2995 CFLAGS="-O2"
2996 else
2997 CFLAGS=
2998 fi
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3002 if ${ac_cv_prog_cc_c89+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 ac_cv_prog_cc_c89=no
3006 ac_save_CC=$CC
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3009 #include <stdarg.h>
3010 #include <stdio.h>
3011 struct stat;
3012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013 struct buf { int x; };
3014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015 static char *e (p, i)
3016 char **p;
3017 int i;
3018 {
3019 return p[i];
3020 }
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3022 {
3023 char *s;
3024 va_list v;
3025 va_start (v,p);
3026 s = g (p, va_arg (v,int));
3027 va_end (v);
3028 return s;
3029 }
3030
3031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
3034 as 'x'. The following induces an error, until -std is added to get
3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
3037 that's true only with -std. */
3038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039
3040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3042 #define FOO(x) 'x'
3043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044
3045 int test (int i, double x);
3046 struct s1 {int (*f) (int a);};
3047 struct s2 {int (*f) (double a);};
3048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3049 int argc;
3050 char **argv;
3051 int
3052 main ()
3053 {
3054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3055 ;
3056 return 0;
3057 }
3058 _ACEOF
3059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3061 do
3062 CC="$ac_save_CC $ac_arg"
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_cv_prog_cc_c89=$ac_arg
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext
3067 test "x$ac_cv_prog_cc_c89" != "xno" && break
3068 done
3069 rm -f conftest.$ac_ext
3070 CC=$ac_save_CC
3071
3072 fi
3073 # AC_CACHE_VAL
3074 case "x$ac_cv_prog_cc_c89" in
3075 x)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3077 $as_echo "none needed" >&6; } ;;
3078 xno)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3080 $as_echo "unsupported" >&6; } ;;
3081 *)
3082 CC="$CC $ac_cv_prog_cc_c89"
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3085 esac
3086 if test "x$ac_cv_prog_cc_c89" != xno; then :
3087
3088 fi
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3102 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3103 if ${am_cv_prog_cc_c_o+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 # Make sure it works both with $CC and with simple cc.
3118 # Following AC_PROG_CC_C_O, we do the test twice because some
3119 # compilers refuse to overwrite an existing .o file with -o,
3120 # though they will create one.
3121 am_cv_prog_cc_c_o=yes
3122 for am_i in 1 2; do
3123 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3124 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } \
3128 && test -f conftest2.$ac_objext; then
3129 : OK
3130 else
3131 am_cv_prog_cc_c_o=no
3132 break
3133 fi
3134 done
3135 rm -f core conftest*
3136 unset am_i
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3139 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3140 if test "$am_cv_prog_cc_c_o" != yes; then
3141 # Losing compiler, so override with the script.
3142 # FIXME: It is wrong to rewrite CC.
3143 # But if we don't then we get into trouble of one sort or another.
3144 # A longer-term fix would be to have automake use am__CC in this case,
3145 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3146 CC="$am_aux_dir/compile $CC"
3147 fi
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153
3154
3155
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3163 # On Suns, sometimes $CPP names a directory.
3164 if test -n "$CPP" && test -d "$CPP"; then
3165 CPP=
3166 fi
3167 if test -z "$CPP"; then
3168 if ${ac_cv_prog_CPP+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 # Double quotes because CPP needs to be expanded
3172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3173 do
3174 ac_preproc_ok=false
3175 for ac_c_preproc_warn_flag in '' yes
3176 do
3177 # Use a header file that comes with gcc, so configuring glibc
3178 # with a fresh cross-compiler works.
3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180 # <limits.h> exists even on freestanding compilers.
3181 # On the NeXT, cc -E runs the code through the compiler's parser,
3182 # not just through cpp. "Syntax error" is here to catch this case.
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185 #ifdef __STDC__
3186 # include <limits.h>
3187 #else
3188 # include <assert.h>
3189 #endif
3190 Syntax error
3191 _ACEOF
3192 if ac_fn_c_try_cpp "$LINENO"; then :
3193
3194 else
3195 # Broken: fails on valid input.
3196 continue
3197 fi
3198 rm -f conftest.err conftest.i conftest.$ac_ext
3199
3200 # OK, works on sane cases. Now check whether nonexistent headers
3201 # can be detected and how.
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204 #include <ac_nonexistent.h>
3205 _ACEOF
3206 if ac_fn_c_try_cpp "$LINENO"; then :
3207 # Broken: success on invalid input.
3208 continue
3209 else
3210 # Passes both tests.
3211 ac_preproc_ok=:
3212 break
3213 fi
3214 rm -f conftest.err conftest.i conftest.$ac_ext
3215
3216 done
3217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218 rm -f conftest.i conftest.err conftest.$ac_ext
3219 if $ac_preproc_ok; then :
3220 break
3221 fi
3222
3223 done
3224 ac_cv_prog_CPP=$CPP
3225
3226 fi
3227 CPP=$ac_cv_prog_CPP
3228 else
3229 ac_cv_prog_CPP=$CPP
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3232 $as_echo "$CPP" >&6; }
3233 ac_preproc_ok=false
3234 for ac_c_preproc_warn_flag in '' yes
3235 do
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3244 #ifdef __STDC__
3245 # include <limits.h>
3246 #else
3247 # include <assert.h>
3248 #endif
3249 Syntax error
3250 _ACEOF
3251 if ac_fn_c_try_cpp "$LINENO"; then :
3252
3253 else
3254 # Broken: fails on valid input.
3255 continue
3256 fi
3257 rm -f conftest.err conftest.i conftest.$ac_ext
3258
3259 # OK, works on sane cases. Now check whether nonexistent headers
3260 # can be detected and how.
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <ac_nonexistent.h>
3264 _ACEOF
3265 if ac_fn_c_try_cpp "$LINENO"; then :
3266 # Broken: success on invalid input.
3267 continue
3268 else
3269 # Passes both tests.
3270 ac_preproc_ok=:
3271 break
3272 fi
3273 rm -f conftest.err conftest.i conftest.$ac_ext
3274
3275 done
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.i conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then :
3279
3280 else
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 fi
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3295 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3296 if ${ac_cv_path_GREP+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -z "$GREP"; then
3300 ac_path_GREP_found=false
3301 # Loop through the user's path and test for each of PROGNAME-LIST
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_prog in grep ggrep; do
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3310 as_fn_executable_p "$ac_path_GREP" || continue
3311 # Check for GNU ac_path_GREP and select it if it is found.
3312 # Check for GNU $ac_path_GREP
3313 case `"$ac_path_GREP" --version 2>&1` in
3314 *GNU*)
3315 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3316 *)
3317 ac_count=0
3318 $as_echo_n 0123456789 >"conftest.in"
3319 while :
3320 do
3321 cat "conftest.in" "conftest.in" >"conftest.tmp"
3322 mv "conftest.tmp" "conftest.in"
3323 cp "conftest.in" "conftest.nl"
3324 $as_echo 'GREP' >> "conftest.nl"
3325 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3327 as_fn_arith $ac_count + 1 && ac_count=$as_val
3328 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3329 # Best one so far, save it but keep looking for a better one
3330 ac_cv_path_GREP="$ac_path_GREP"
3331 ac_path_GREP_max=$ac_count
3332 fi
3333 # 10*(2^10) chars as input seems more than enough
3334 test $ac_count -gt 10 && break
3335 done
3336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3337 esac
3338
3339 $ac_path_GREP_found && break 3
3340 done
3341 done
3342 done
3343 IFS=$as_save_IFS
3344 if test -z "$ac_cv_path_GREP"; then
3345 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3346 fi
3347 else
3348 ac_cv_path_GREP=$GREP
3349 fi
3350
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3353 $as_echo "$ac_cv_path_GREP" >&6; }
3354 GREP="$ac_cv_path_GREP"
3355
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3358 $as_echo_n "checking for egrep... " >&6; }
3359 if ${ac_cv_path_EGREP+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3363 then ac_cv_path_EGREP="$GREP -E"
3364 else
3365 if test -z "$EGREP"; then
3366 ac_path_EGREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370 do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in egrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3376 as_fn_executable_p "$ac_path_EGREP" || continue
3377 # Check for GNU ac_path_EGREP and select it if it is found.
3378 # Check for GNU $ac_path_EGREP
3379 case `"$ac_path_EGREP" --version 2>&1` in
3380 *GNU*)
3381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3382 *)
3383 ac_count=0
3384 $as_echo_n 0123456789 >"conftest.in"
3385 while :
3386 do
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 $as_echo 'EGREP' >> "conftest.nl"
3391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 as_fn_arith $ac_count + 1 && ac_count=$as_val
3394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_EGREP="$ac_path_EGREP"
3397 ac_path_EGREP_max=$ac_count
3398 fi
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3401 done
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403 esac
3404
3405 $ac_path_EGREP_found && break 3
3406 done
3407 done
3408 done
3409 IFS=$as_save_IFS
3410 if test -z "$ac_cv_path_EGREP"; then
3411 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3412 fi
3413 else
3414 ac_cv_path_EGREP=$EGREP
3415 fi
3416
3417 fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3420 $as_echo "$ac_cv_path_EGREP" >&6; }
3421 EGREP="$ac_cv_path_EGREP"
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3425 $as_echo_n "checking for ANSI C header files... " >&6; }
3426 if ${ac_cv_header_stdc+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431 #include <stdlib.h>
3432 #include <stdarg.h>
3433 #include <string.h>
3434 #include <float.h>
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_header_stdc=yes
3446 else
3447 ac_cv_header_stdc=no
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450
3451 if test $ac_cv_header_stdc = yes; then
3452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455 #include <string.h>
3456
3457 _ACEOF
3458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3459 $EGREP "memchr" >/dev/null 2>&1; then :
3460
3461 else
3462 ac_cv_header_stdc=no
3463 fi
3464 rm -f conftest*
3465
3466 fi
3467
3468 if test $ac_cv_header_stdc = yes; then
3469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #include <stdlib.h>
3473
3474 _ACEOF
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 $EGREP "free" >/dev/null 2>&1; then :
3477
3478 else
3479 ac_cv_header_stdc=no
3480 fi
3481 rm -f conftest*
3482
3483 fi
3484
3485 if test $ac_cv_header_stdc = yes; then
3486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3487 if test "$cross_compiling" = yes; then :
3488 :
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #include <ctype.h>
3493 #include <stdlib.h>
3494 #if ((' ' & 0x0FF) == 0x020)
3495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3497 #else
3498 # define ISLOWER(c) \
3499 (('a' <= (c) && (c) <= 'i') \
3500 || ('j' <= (c) && (c) <= 'r') \
3501 || ('s' <= (c) && (c) <= 'z'))
3502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3503 #endif
3504
3505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3506 int
3507 main ()
3508 {
3509 int i;
3510 for (i = 0; i < 256; i++)
3511 if (XOR (islower (i), ISLOWER (i))
3512 || toupper (i) != TOUPPER (i))
3513 return 2;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_run "$LINENO"; then :
3518
3519 else
3520 ac_cv_header_stdc=no
3521 fi
3522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3523 conftest.$ac_objext conftest.beam conftest.$ac_ext
3524 fi
3525
3526 fi
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3529 $as_echo "$ac_cv_header_stdc" >&6; }
3530 if test $ac_cv_header_stdc = yes; then
3531
3532 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3533
3534 fi
3535
3536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3538 inttypes.h stdint.h unistd.h
3539 do :
3540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3541 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3542 "
3543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3544 cat >>confdefs.h <<_ACEOF
3545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3546 _ACEOF
3547
3548 fi
3549
3550 done
3551
3552
3553
3554 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3555 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3556 MINIX=yes
3557 else
3558 MINIX=
3559 fi
3560
3561
3562 if test "$MINIX" = yes; then
3563
3564 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3565
3566
3567 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3568
3569
3570 $as_echo "#define _MINIX 1" >>confdefs.h
3571
3572 fi
3573
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3576 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3577 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 # define __EXTENSIONS__ 1
3584 $ac_includes_default
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_safe_to_define___extensions__=yes
3595 else
3596 ac_cv_safe_to_define___extensions__=no
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3601 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3602 test $ac_cv_safe_to_define___extensions__ = yes &&
3603 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3604
3605 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3606
3607 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3608
3609 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3610
3611 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3612
3613
3614
3615 # Initialize Automake
3616 am__api_version='1.15'
3617
3618 # Find a good install program. We prefer a C program (faster),
3619 # so one script is as good as another. But avoid the broken or
3620 # incompatible versions:
3621 # SysV /etc/install, /usr/sbin/install
3622 # SunOS /usr/etc/install
3623 # IRIX /sbin/install
3624 # AIX /bin/install
3625 # AmigaOS /C/install, which installs bootblocks on floppy discs
3626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3629 # OS/2's system install, which has a completely different semantic
3630 # ./install, which can be erroneously created by make from ./install.sh.
3631 # Reject install programs that cannot install multiple files.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3633 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3634 if test -z "$INSTALL"; then
3635 if ${ac_cv_path_install+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 # Account for people who put trailing slashes in PATH elements.
3644 case $as_dir/ in #((
3645 ./ | .// | /[cC]/* | \
3646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3647 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3648 /usr/ucb/* ) ;;
3649 *)
3650 # OSF1 and SCO ODT 3.0 have their own names for install.
3651 # Don't use installbsd from OSF since it installs stuff as root
3652 # by default.
3653 for ac_prog in ginstall scoinst install; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3656 if test $ac_prog = install &&
3657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # AIX install. It has an incompatible calling convention.
3659 :
3660 elif test $ac_prog = install &&
3661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3662 # program-specific install script used by HP pwplus--don't use.
3663 :
3664 else
3665 rm -rf conftest.one conftest.two conftest.dir
3666 echo one > conftest.one
3667 echo two > conftest.two
3668 mkdir conftest.dir
3669 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3670 test -s conftest.one && test -s conftest.two &&
3671 test -s conftest.dir/conftest.one &&
3672 test -s conftest.dir/conftest.two
3673 then
3674 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3675 break 3
3676 fi
3677 fi
3678 fi
3679 done
3680 done
3681 ;;
3682 esac
3683
3684 done
3685 IFS=$as_save_IFS
3686
3687 rm -rf conftest.one conftest.two conftest.dir
3688
3689 fi
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL=$ac_cv_path_install
3692 else
3693 # As a last resort, use the slow shell script. Don't cache a
3694 # value for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the value is a relative name.
3697 INSTALL=$ac_install_sh
3698 fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3701 $as_echo "$INSTALL" >&6; }
3702
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3706
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3708
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3712 $as_echo_n "checking whether build environment is sane... " >&6; }
3713 # Reject unsafe characters in $srcdir or the absolute working directory
3714 # name. Accept space and tab only in the latter.
3715 am_lf='
3716 '
3717 case `pwd` in
3718 *[\\\"\#\$\&\'\`$am_lf]*)
3719 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3720 esac
3721 case $srcdir in
3722 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3723 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3724 esac
3725
3726 # Do 'set' in a subshell so we don't clobber the current shell's
3727 # arguments. Must try -L first in case configure is actually a
3728 # symlink; some systems play weird games with the mod time of symlinks
3729 # (eg FreeBSD returns the mod time of the symlink's containing
3730 # directory).
3731 if (
3732 am_has_slept=no
3733 for am_try in 1 2; do
3734 echo "timestamp, slept: $am_has_slept" > conftest.file
3735 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3736 if test "$*" = "X"; then
3737 # -L didn't work.
3738 set X `ls -t "$srcdir/configure" conftest.file`
3739 fi
3740 if test "$*" != "X $srcdir/configure conftest.file" \
3741 && test "$*" != "X conftest.file $srcdir/configure"; then
3742
3743 # If neither matched, then we have a broken ls. This can happen
3744 # if, for instance, CONFIG_SHELL is bash and it inherits a
3745 # broken ls alias from the environment. This has actually
3746 # happened. Such a system could not be considered "sane".
3747 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3748 alias in your environment" "$LINENO" 5
3749 fi
3750 if test "$2" = conftest.file || test $am_try -eq 2; then
3751 break
3752 fi
3753 # Just in case.
3754 sleep 1
3755 am_has_slept=yes
3756 done
3757 test "$2" = conftest.file
3758 )
3759 then
3760 # Ok.
3761 :
3762 else
3763 as_fn_error $? "newly created file is older than distributed files!
3764 Check your system clock" "$LINENO" 5
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767 $as_echo "yes" >&6; }
3768 # If we didn't sleep, we still need to ensure time stamps of config.status and
3769 # generated files are strictly newer.
3770 am_sleep_pid=
3771 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3772 ( sleep 1 ) &
3773 am_sleep_pid=$!
3774 fi
3775
3776 rm -f conftest.file
3777
3778 test "$program_prefix" != NONE &&
3779 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3780 # Use a double $ so make ignores it.
3781 test "$program_suffix" != NONE &&
3782 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3783 # Double any \ or $.
3784 # By default was `s,x,x', remove it if useless.
3785 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3786 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3787
3788 if test x"${MISSING+set}" != xset; then
3789 case $am_aux_dir in
3790 *\ * | *\ *)
3791 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3792 *)
3793 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3794 esac
3795 fi
3796 # Use eval to expand $SHELL
3797 if eval "$MISSING --is-lightweight"; then
3798 am_missing_run="$MISSING "
3799 else
3800 am_missing_run=
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3802 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3803 fi
3804
3805 if test x"${install_sh+set}" != xset; then
3806 case $am_aux_dir in
3807 *\ * | *\ *)
3808 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3809 *)
3810 install_sh="\${SHELL} $am_aux_dir/install-sh"
3811 esac
3812 fi
3813
3814 # Installed binaries are usually stripped using 'strip' when the user
3815 # run "make install-strip". However 'strip' might not be the right
3816 # tool to use in cross-compilation environments, therefore Automake
3817 # will honor the 'STRIP' environment variable to overrule this program.
3818 if test "$cross_compiling" != no; then
3819 if test -n "$ac_tool_prefix"; then
3820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}strip; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_prog_STRIP+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$STRIP"; then
3828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 STRIP=$ac_cv_prog_STRIP
3848 if test -n "$STRIP"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3850 $as_echo "$STRIP" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857 fi
3858 if test -z "$ac_cv_prog_STRIP"; then
3859 ac_ct_STRIP=$STRIP
3860 # Extract the first word of "strip", so it can be a program name with args.
3861 set dummy strip; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$ac_ct_STRIP"; then
3868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_STRIP="strip"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3888 if test -n "$ac_ct_STRIP"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3890 $as_echo "$ac_ct_STRIP" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896 if test "x$ac_ct_STRIP" = x; then
3897 STRIP=":"
3898 else
3899 case $cross_compiling:$ac_tool_warned in
3900 yes:)
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3903 ac_tool_warned=yes ;;
3904 esac
3905 STRIP=$ac_ct_STRIP
3906 fi
3907 else
3908 STRIP="$ac_cv_prog_STRIP"
3909 fi
3910
3911 fi
3912 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3915 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3916 if test -z "$MKDIR_P"; then
3917 if ${ac_cv_path_mkdir+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in mkdir gmkdir; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3928 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3929 'mkdir (GNU coreutils) '* | \
3930 'mkdir (coreutils) '* | \
3931 'mkdir (fileutils) '4.1*)
3932 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3933 break 3;;
3934 esac
3935 done
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi
3941
3942 test -d ./--version && rmdir ./--version
3943 if test "${ac_cv_path_mkdir+set}" = set; then
3944 MKDIR_P="$ac_cv_path_mkdir -p"
3945 else
3946 # As a last resort, use the slow shell script. Don't cache a
3947 # value for MKDIR_P within a source directory, because that will
3948 # break other packages using the cache if that directory is
3949 # removed, or if the value is a relative name.
3950 MKDIR_P="$ac_install_sh -d"
3951 fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3954 $as_echo "$MKDIR_P" >&6; }
3955
3956 for ac_prog in gawk mawk nawk awk
3957 do
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959 set dummy $ac_prog; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_AWK+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -n "$AWK"; then
3966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_AWK="$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979 done
3980 done
3981 IFS=$as_save_IFS
3982
3983 fi
3984 fi
3985 AWK=$ac_cv_prog_AWK
3986 if test -n "$AWK"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3988 $as_echo "$AWK" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994
3995 test -n "$AWK" && break
3996 done
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3999 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4000 set x ${MAKE-make}
4001 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4002 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat >conftest.make <<\_ACEOF
4006 SHELL = /bin/sh
4007 all:
4008 @echo '@@@%%%=$(MAKE)=@@@%%%'
4009 _ACEOF
4010 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4012 *@@@%%%=?*=@@@%%%*)
4013 eval ac_cv_prog_make_${ac_make}_set=yes;;
4014 *)
4015 eval ac_cv_prog_make_${ac_make}_set=no;;
4016 esac
4017 rm -f conftest.make
4018 fi
4019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4022 SET_MAKE=
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 SET_MAKE="MAKE=${MAKE-make}"
4027 fi
4028
4029 rm -rf .tst 2>/dev/null
4030 mkdir .tst 2>/dev/null
4031 if test -d .tst; then
4032 am__leading_dot=.
4033 else
4034 am__leading_dot=_
4035 fi
4036 rmdir .tst 2>/dev/null
4037
4038 DEPDIR="${am__leading_dot}deps"
4039
4040 ac_config_commands="$ac_config_commands depfiles"
4041
4042
4043 am_make=${MAKE-make}
4044 cat > confinc << 'END'
4045 am__doit:
4046 @echo this is the am__doit target
4047 .PHONY: am__doit
4048 END
4049 # If we don't find an include directive, just comment out the code.
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4052 am__include="#"
4053 am__quote=
4054 _am_result=none
4055 # First try GNU make style include.
4056 echo "include confinc" > confmf
4057 # Ignore all kinds of additional output from 'make'.
4058 case `$am_make -s -f confmf 2> /dev/null` in #(
4059 *the\ am__doit\ target*)
4060 am__include=include
4061 am__quote=
4062 _am_result=GNU
4063 ;;
4064 esac
4065 # Now try BSD make style include.
4066 if test "$am__include" = "#"; then
4067 echo '.include "confinc"' > confmf
4068 case `$am_make -s -f confmf 2> /dev/null` in #(
4069 *the\ am__doit\ target*)
4070 am__include=.include
4071 am__quote="\""
4072 _am_result=BSD
4073 ;;
4074 esac
4075 fi
4076
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4079 $as_echo "$_am_result" >&6; }
4080 rm -f confinc confmf
4081
4082 # Check whether --enable-dependency-tracking was given.
4083 if test "${enable_dependency_tracking+set}" = set; then :
4084 enableval=$enable_dependency_tracking;
4085 fi
4086
4087 if test "x$enable_dependency_tracking" != xno; then
4088 am_depcomp="$ac_aux_dir/depcomp"
4089 AMDEPBACKSLASH='\'
4090 am__nodep='_no'
4091 fi
4092 if test "x$enable_dependency_tracking" != xno; then
4093 AMDEP_TRUE=
4094 AMDEP_FALSE='#'
4095 else
4096 AMDEP_TRUE='#'
4097 AMDEP_FALSE=
4098 fi
4099
4100
4101 # Check whether --enable-silent-rules was given.
4102 if test "${enable_silent_rules+set}" = set; then :
4103 enableval=$enable_silent_rules;
4104 fi
4105
4106 case $enable_silent_rules in # (((
4107 yes) AM_DEFAULT_VERBOSITY=0;;
4108 no) AM_DEFAULT_VERBOSITY=1;;
4109 *) AM_DEFAULT_VERBOSITY=1;;
4110 esac
4111 am_make=${MAKE-make}
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4113 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4114 if ${am_cv_make_support_nested_variables+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if $as_echo 'TRUE=$(BAR$(V))
4118 BAR0=false
4119 BAR1=true
4120 V=1
4121 am__doit:
4122 @$(TRUE)
4123 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4124 am_cv_make_support_nested_variables=yes
4125 else
4126 am_cv_make_support_nested_variables=no
4127 fi
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4130 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4131 if test $am_cv_make_support_nested_variables = yes; then
4132 AM_V='$(V)'
4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4134 else
4135 AM_V=$AM_DEFAULT_VERBOSITY
4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4137 fi
4138 AM_BACKSLASH='\'
4139
4140 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4142 # is not polluted with repeated "-I."
4143 am__isrc=' -I$(srcdir)'
4144 # test to see if srcdir already configured
4145 if test -f $srcdir/config.status; then
4146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4147 fi
4148 fi
4149
4150 # test whether we have cygpath
4151 if test -z "$CYGPATH_W"; then
4152 if (cygpath --version) >/dev/null 2>/dev/null; then
4153 CYGPATH_W='cygpath -w'
4154 else
4155 CYGPATH_W=echo
4156 fi
4157 fi
4158
4159
4160 # Define the identity of the package.
4161 PACKAGE='xload'
4162 VERSION='1.1.3'
4163
4164
4165 cat >>confdefs.h <<_ACEOF
4166 #define PACKAGE "$PACKAGE"
4167 _ACEOF
4168
4169
4170 cat >>confdefs.h <<_ACEOF
4171 #define VERSION "$VERSION"
4172 _ACEOF
4173
4174 # Some tools Automake needs.
4175
4176 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4177
4178
4179 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4180
4181
4182 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4183
4184
4185 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4186
4187
4188 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4189
4190 # For better backward compatibility. To be removed once Automake 1.9.x
4191 # dies out for good. For more background, see:
4192 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4193 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4194 mkdir_p='$(MKDIR_P)'
4195
4196 # We need awk for the "check" target (and possibly the TAP driver). The
4197 # system "awk" is bad on some platforms.
4198 # Always define AMTAR for backward compatibility. Yes, it's still used
4199 # in the wild :-( We should find a proper way to deprecate it ...
4200 AMTAR='$${TAR-tar}'
4201
4202
4203 # We'll loop over all known methods to create a tar archive until one works.
4204 _am_tools='gnutar pax cpio none'
4205
4206 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4207
4208
4209
4210
4211
4212 depcc="$CC" am_compiler_list=
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4215 $as_echo_n "checking dependency style of $depcc... " >&6; }
4216 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4220 # We make a subdir and do the tests there. Otherwise we can end up
4221 # making bogus files that we don't know about and never remove. For
4222 # instance it was reported that on HP-UX the gcc test will end up
4223 # making a dummy file named 'D' -- because '-MD' means "put the output
4224 # in D".
4225 rm -rf conftest.dir
4226 mkdir conftest.dir
4227 # Copy depcomp to subdir because otherwise we won't find it if we're
4228 # using a relative directory.
4229 cp "$am_depcomp" conftest.dir
4230 cd conftest.dir
4231 # We will build objects and dependencies in a subdirectory because
4232 # it helps to detect inapplicable dependency modes. For instance
4233 # both Tru64's cc and ICC support -MD to output dependencies as a
4234 # side effect of compilation, but ICC will put the dependencies in
4235 # the current directory while Tru64 will put them in the object
4236 # directory.
4237 mkdir sub
4238
4239 am_cv_CC_dependencies_compiler_type=none
4240 if test "$am_compiler_list" = ""; then
4241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4242 fi
4243 am__universal=false
4244 case " $depcc " in #(
4245 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4246 esac
4247
4248 for depmode in $am_compiler_list; do
4249 # Setup a source with many dependencies, because some compilers
4250 # like to wrap large dependency lists on column 80 (with \), and
4251 # we should not choose a depcomp mode which is confused by this.
4252 #
4253 # We need to recreate these files for each test, as the compiler may
4254 # overwrite some of them when testing with obscure command lines.
4255 # This happens at least with the AIX C compiler.
4256 : > sub/conftest.c
4257 for i in 1 2 3 4 5 6; do
4258 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4259 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4260 # Solaris 10 /bin/sh.
4261 echo '/* dummy */' > sub/conftst$i.h
4262 done
4263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4264
4265 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4266 # mode. It turns out that the SunPro C++ compiler does not properly
4267 # handle '-M -o', and we need to detect this. Also, some Intel
4268 # versions had trouble with output in subdirs.
4269 am__obj=sub/conftest.${OBJEXT-o}
4270 am__minus_obj="-o $am__obj"
4271 case $depmode in
4272 gcc)
4273 # This depmode causes a compiler race in universal mode.
4274 test "$am__universal" = false || continue
4275 ;;
4276 nosideeffect)
4277 # After this tag, mechanisms are not by side-effect, so they'll
4278 # only be used when explicitly requested.
4279 if test "x$enable_dependency_tracking" = xyes; then
4280 continue
4281 else
4282 break
4283 fi
4284 ;;
4285 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4286 # This compiler won't grok '-c -o', but also, the minuso test has
4287 # not run yet. These depmodes are late enough in the game, and
4288 # so weak that their functioning should not be impacted.
4289 am__obj=conftest.${OBJEXT-o}
4290 am__minus_obj=
4291 ;;
4292 none) break ;;
4293 esac
4294 if depmode=$depmode \
4295 source=sub/conftest.c object=$am__obj \
4296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4297 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4298 >/dev/null 2>conftest.err &&
4299 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4301 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4303 # icc doesn't choke on unknown options, it will just issue warnings
4304 # or remarks (even with -Werror). So we grep stderr for any message
4305 # that says an option was ignored or not supported.
4306 # When given -MP, icc 7.0 and 7.1 complain thusly:
4307 # icc: Command line warning: ignoring option '-M'; no argument required
4308 # The diagnosis changed in icc 8.0:
4309 # icc: Command line remark: option '-MP' not supported
4310 if (grep 'ignoring option' conftest.err ||
4311 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4312 am_cv_CC_dependencies_compiler_type=$depmode
4313 break
4314 fi
4315 fi
4316 done
4317
4318 cd ..
4319 rm -rf conftest.dir
4320 else
4321 am_cv_CC_dependencies_compiler_type=none
4322 fi
4323
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4326 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4327 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4328
4329 if
4330 test "x$enable_dependency_tracking" != xno \
4331 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4332 am__fastdepCC_TRUE=
4333 am__fastdepCC_FALSE='#'
4334 else
4335 am__fastdepCC_TRUE='#'
4336 am__fastdepCC_FALSE=
4337 fi
4338
4339
4340
4341 # POSIX will say in a future version that running "rm -f" with no argument
4342 # is OK; and we want to be able to make that assumption in our Makefile
4343 # recipes. So use an aggressive probe to check that the usage we want is
4344 # actually supported "in the wild" to an acceptable degree.
4345 # See automake bug#10828.
4346 # To make any issue more visible, cause the running configure to be aborted
4347 # by default if the 'rm' program in use doesn't match our expectations; the
4348 # user can still override this though.
4349 if rm -f && rm -fr && rm -rf; then : OK; else
4350 cat >&2 <<'END'
4351 Oops!
4352
4353 Your 'rm' program seems unable to run without file operands specified
4354 on the command line, even when the '-f' option is present. This is contrary
4355 to the behaviour of most rm programs out there, and not conforming with
4356 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4357
4358 Please tell bug-automake@gnu.org about your system, including the value
4359 of your $PATH and any error possibly output before this message. This
4360 can help us improve future automake versions.
4361
4362 END
4363 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4364 echo 'Configuration will proceed anyway, since you have set the' >&2
4365 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4366 echo >&2
4367 else
4368 cat >&2 <<'END'
4369 Aborting the configuration process, to ensure you take notice of the issue.
4370
4371 You can download and install GNU coreutils to get an 'rm' implementation
4372 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4373
4374 If you want to complete the configuration process using your problematic
4375 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4376 to "yes", and re-run configure.
4377
4378 END
4379 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4380 fi
4381 fi
4382
4383
4384 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4397 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4398 if ${ac_cv_prog_cc_c99+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 ac_cv_prog_cc_c99=no
4402 ac_save_CC=$CC
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <stdarg.h>
4406 #include <stdbool.h>
4407 #include <stdlib.h>
4408 #include <wchar.h>
4409 #include <stdio.h>
4410
4411 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4412 #define debug(...) fprintf (stderr, __VA_ARGS__)
4413 #define showlist(...) puts (#__VA_ARGS__)
4414 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4415 static void
4416 test_varargs_macros (void)
4417 {
4418 int x = 1234;
4419 int y = 5678;
4420 debug ("Flag");
4421 debug ("X = %d\n", x);
4422 showlist (The first, second, and third items.);
4423 report (x>y, "x is %d but y is %d", x, y);
4424 }
4425
4426 // Check long long types.
4427 #define BIG64 18446744073709551615ull
4428 #define BIG32 4294967295ul
4429 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4430 #if !BIG_OK
4431 your preprocessor is broken;
4432 #endif
4433 #if BIG_OK
4434 #else
4435 your preprocessor is broken;
4436 #endif
4437 static long long int bignum = -9223372036854775807LL;
4438 static unsigned long long int ubignum = BIG64;
4439
4440 struct incomplete_array
4441 {
4442 int datasize;
4443 double data[];
4444 };
4445
4446 struct named_init {
4447 int number;
4448 const wchar_t *name;
4449 double average;
4450 };
4451
4452 typedef const char *ccp;
4453
4454 static inline int
4455 test_restrict (ccp restrict text)
4456 {
4457 // See if C++-style comments work.
4458 // Iterate through items via the restricted pointer.
4459 // Also check for declarations in for loops.
4460 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4461 continue;
4462 return 0;
4463 }
4464
4465 // Check varargs and va_copy.
4466 static void
4467 test_varargs (const char *format, ...)
4468 {
4469 va_list args;
4470 va_start (args, format);
4471 va_list args_copy;
4472 va_copy (args_copy, args);
4473
4474 const char *str;
4475 int number;
4476 float fnumber;
4477
4478 while (*format)
4479 {
4480 switch (*format++)
4481 {
4482 case 's': // string
4483 str = va_arg (args_copy, const char *);
4484 break;
4485 case 'd': // int
4486 number = va_arg (args_copy, int);
4487 break;
4488 case 'f': // float
4489 fnumber = va_arg (args_copy, double);
4490 break;
4491 default:
4492 break;
4493 }
4494 }
4495 va_end (args_copy);
4496 va_end (args);
4497 }
4498
4499 int
4500 main ()
4501 {
4502
4503 // Check bool.
4504 _Bool success = false;
4505
4506 // Check restrict.
4507 if (test_restrict ("String literal") == 0)
4508 success = true;
4509 char *restrict newvar = "Another string";
4510
4511 // Check varargs.
4512 test_varargs ("s, d' f .", "string", 65, 34.234);
4513 test_varargs_macros ();
4514
4515 // Check flexible array members.
4516 struct incomplete_array *ia =
4517 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4518 ia->datasize = 10;
4519 for (int i = 0; i < ia->datasize; ++i)
4520 ia->data[i] = i * 1.234;
4521
4522 // Check named initializers.
4523 struct named_init ni = {
4524 .number = 34,
4525 .name = L"Test wide string",
4526 .average = 543.34343,
4527 };
4528
4529 ni.number = 58;
4530
4531 int dynamic_array[ni.number];
4532 dynamic_array[ni.number - 1] = 543;
4533
4534 // work around unused variable warnings
4535 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4536 || dynamic_array[ni.number - 1] != 543);
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4543 do
4544 CC="$ac_save_CC $ac_arg"
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_prog_cc_c99=$ac_arg
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext
4549 test "x$ac_cv_prog_cc_c99" != "xno" && break
4550 done
4551 rm -f conftest.$ac_ext
4552 CC=$ac_save_CC
4553
4554 fi
4555 # AC_CACHE_VAL
4556 case "x$ac_cv_prog_cc_c99" in
4557 x)
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4559 $as_echo "none needed" >&6; } ;;
4560 xno)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4562 $as_echo "unsupported" >&6; } ;;
4563 *)
4564 CC="$CC $ac_cv_prog_cc_c99"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4566 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4567 esac
4568 if test "x$ac_cv_prog_cc_c99" != xno; then :
4569
4570 fi
4571
4572
4573
4574
4575
4576
4577 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4578 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4579 CLANGCC="yes"
4580 else
4581 CLANGCC="no"
4582 fi
4583
4584 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4585 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4586 INTELCC="yes"
4587 else
4588 INTELCC="no"
4589 fi
4590
4591 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4592 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4593 SUNCC="yes"
4594 else
4595 SUNCC="no"
4596 fi
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4607 if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 case $PKG_CONFIG in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 ;;
4636 esac
4637 fi
4638 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4639 if test -n "$PKG_CONFIG"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4641 $as_echo "$PKG_CONFIG" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 fi
4649 if test -z "$ac_cv_path_PKG_CONFIG"; then
4650 ac_pt_PKG_CONFIG=$PKG_CONFIG
4651 # Extract the first word of "pkg-config", so it can be a program name with args.
4652 set dummy pkg-config; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 case $ac_pt_PKG_CONFIG in
4659 [\\/]* | ?:[\\/]*)
4660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4661 ;;
4662 *)
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 ;;
4679 esac
4680 fi
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4682 if test -n "$ac_pt_PKG_CONFIG"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4684 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690 if test "x$ac_pt_PKG_CONFIG" = x; then
4691 PKG_CONFIG=""
4692 else
4693 case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699 PKG_CONFIG=$ac_pt_PKG_CONFIG
4700 fi
4701 else
4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4703 fi
4704
4705 fi
4706 if test -n "$PKG_CONFIG"; then
4707 _pkg_min_version=0.9.0
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4709 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4712 $as_echo "yes" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 PKG_CONFIG=""
4717 fi
4718 fi
4719 # Make sure we can run config.sub.
4720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724 $as_echo_n "checking build system type... " >&6; }
4725 if ${ac_cv_build+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_build_alias=$build_alias
4729 test "x$ac_build_alias" = x &&
4730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4731 test "x$ac_build_alias" = x &&
4732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738 $as_echo "$ac_cv_build" >&6; }
4739 case $ac_cv_build in
4740 *-*-*) ;;
4741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742 esac
4743 build=$ac_cv_build
4744 ac_save_IFS=$IFS; IFS='-'
4745 set x $ac_cv_build
4746 shift
4747 build_cpu=$1
4748 build_vendor=$2
4749 shift; shift
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4752 build_os=$*
4753 IFS=$ac_save_IFS
4754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758 $as_echo_n "checking host system type... " >&6; }
4759 if ${ac_cv_host+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4764 else
4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 $as_echo "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 esac
4776 host=$ac_cv_host
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_host
4779 shift
4780 host_cpu=$1
4781 host_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 host_os=$*
4786 IFS=$ac_save_IFS
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792 if ${ac_cv_path_SED+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796 for ac_i in 1 2 3 4 5 6 7; do
4797 ac_script="$ac_script$as_nl$ac_script"
4798 done
4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800 { ac_script=; unset ac_script;}
4801 if test -z "$SED"; then
4802 ac_path_SED_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in sed gsed; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812 as_fn_executable_p "$ac_path_SED" || continue
4813 # Check for GNU ac_path_SED and select it if it is found.
4814 # Check for GNU $ac_path_SED
4815 case `"$ac_path_SED" --version 2>&1` in
4816 *GNU*)
4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818 *)
4819 ac_count=0
4820 $as_echo_n 0123456789 >"conftest.in"
4821 while :
4822 do
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo '' >> "conftest.nl"
4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_SED_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_SED="$ac_path_SED"
4833 ac_path_SED_max=$ac_count
4834 fi
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4837 done
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841 $ac_path_SED_found && break 3
4842 done
4843 done
4844 done
4845 IFS=$as_save_IFS
4846 if test -z "$ac_cv_path_SED"; then
4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848 fi
4849 else
4850 ac_cv_path_SED=$SED
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855 $as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4857 rm -f conftest.sed
4858
4859
4860
4861
4862
4863
4864 # Check whether --enable-selective-werror was given.
4865 if test "${enable_selective_werror+set}" = set; then :
4866 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4867 else
4868 SELECTIVE_WERROR=yes
4869 fi
4870
4871
4872
4873
4874
4875 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4876 if test "x$SUNCC" = "xyes"; then
4877 BASE_CFLAGS="-v"
4878 else
4879 BASE_CFLAGS=""
4880 fi
4881
4882 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896 xorg_testset_save_CFLAGS="$CFLAGS"
4897
4898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4901 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4902 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 int i;
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910 xorg_cv_cc_flag_unknown_warning_option=yes
4911 else
4912 xorg_cv_cc_flag_unknown_warning_option=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4917 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4919 CFLAGS="$xorg_testset_save_CFLAGS"
4920 fi
4921
4922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4925 fi
4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4929 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 int i;
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 xorg_cv_cc_flag_unused_command_line_argument=yes
4938 else
4939 xorg_cv_cc_flag_unused_command_line_argument=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4944 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4947 fi
4948
4949 found="no"
4950
4951 if test $found = "no" ; then
4952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954 fi
4955
4956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958 fi
4959
4960 CFLAGS="$CFLAGS -Wall"
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4963 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4964 cacheid=xorg_cv_cc_flag__Wall
4965 if eval \${$cacheid+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 int i;
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_c_try_link "$LINENO"; then :
4980 eval $cacheid=yes
4981 else
4982 eval $cacheid=no
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4986 fi
4987
4988
4989 CFLAGS="$xorg_testset_save_CFLAGS"
4990
4991 eval supported=\$$cacheid
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4993 $as_echo "$supported" >&6; }
4994 if test "$supported" = "yes" ; then
4995 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4996 found="yes"
4997 fi
4998 fi
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 xorg_testset_save_CFLAGS="$CFLAGS"
5015
5016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 xorg_cv_cc_flag_unknown_warning_option=yes
5029 else
5030 xorg_cv_cc_flag_unknown_warning_option=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5038 fi
5039
5040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043 fi
5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 int i;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 xorg_cv_cc_flag_unused_command_line_argument=yes
5056 else
5057 xorg_cv_cc_flag_unused_command_line_argument=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5065 fi
5066
5067 found="no"
5068
5069 if test $found = "no" ; then
5070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072 fi
5073
5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 fi
5077
5078 CFLAGS="$CFLAGS -Wpointer-arith"
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5081 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5082 cacheid=xorg_cv_cc_flag__Wpointer_arith
5083 if eval \${$cacheid+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 int i;
5089 int
5090 main ()
5091 {
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 eval $cacheid=yes
5099 else
5100 eval $cacheid=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 fi
5105
5106
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109 eval supported=\$$cacheid
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111 $as_echo "$supported" >&6; }
5112 if test "$supported" = "yes" ; then
5113 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5114 found="yes"
5115 fi
5116 fi
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 xorg_testset_save_CFLAGS="$CFLAGS"
5133
5134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 int i;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 xorg_cv_cc_flag_unknown_warning_option=yes
5147 else
5148 xorg_cv_cc_flag_unknown_warning_option=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5155 CFLAGS="$xorg_testset_save_CFLAGS"
5156 fi
5157
5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161 fi
5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 int i;
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 xorg_cv_cc_flag_unused_command_line_argument=yes
5174 else
5175 xorg_cv_cc_flag_unused_command_line_argument=no
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5182 CFLAGS="$xorg_testset_save_CFLAGS"
5183 fi
5184
5185 found="no"
5186
5187 if test $found = "no" ; then
5188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190 fi
5191
5192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 fi
5195
5196 CFLAGS="$CFLAGS -Wmissing-declarations"
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5199 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5200 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5201 if eval \${$cacheid+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 int i;
5207 int
5208 main ()
5209 {
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 eval $cacheid=yes
5217 else
5218 eval $cacheid=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 fi
5223
5224
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227 eval supported=\$$cacheid
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 $as_echo "$supported" >&6; }
5230 if test "$supported" = "yes" ; then
5231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5232 found="yes"
5233 fi
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 xorg_testset_save_CFLAGS="$CFLAGS"
5251
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 xorg_cv_cc_flag_unknown_warning_option=yes
5265 else
5266 xorg_cv_cc_flag_unknown_warning_option=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5274 fi
5275
5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279 fi
5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 int i;
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291 xorg_cv_cc_flag_unused_command_line_argument=yes
5292 else
5293 xorg_cv_cc_flag_unused_command_line_argument=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5300 CFLAGS="$xorg_testset_save_CFLAGS"
5301 fi
5302
5303 found="no"
5304
5305 if test $found = "no" ; then
5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 fi
5313
5314 CFLAGS="$CFLAGS -Wformat=2"
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5317 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5318 cacheid=xorg_cv_cc_flag__Wformat_2
5319 if eval \${$cacheid+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 int i;
5325 int
5326 main ()
5327 {
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_link "$LINENO"; then :
5334 eval $cacheid=yes
5335 else
5336 eval $cacheid=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 fi
5341
5342
5343 CFLAGS="$xorg_testset_save_CFLAGS"
5344
5345 eval supported=\$$cacheid
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347 $as_echo "$supported" >&6; }
5348 if test "$supported" = "yes" ; then
5349 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5350 found="yes"
5351 fi
5352 fi
5353
5354 if test $found = "no" ; then
5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357 fi
5358
5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361 fi
5362
5363 CFLAGS="$CFLAGS -Wformat"
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5366 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5367 cacheid=xorg_cv_cc_flag__Wformat
5368 if eval \${$cacheid+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 int
5375 main ()
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"; then :
5383 eval $cacheid=yes
5384 else
5385 eval $cacheid=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389 fi
5390
5391
5392 CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394 eval supported=\$$cacheid
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396 $as_echo "$supported" >&6; }
5397 if test "$supported" = "yes" ; then
5398 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5399 found="yes"
5400 fi
5401 fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 xorg_testset_save_CFLAGS="$CFLAGS"
5420
5421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 xorg_cv_cc_flag_unknown_warning_option=yes
5434 else
5435 xorg_cv_cc_flag_unknown_warning_option=no
5436 fi
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5442 CFLAGS="$xorg_testset_save_CFLAGS"
5443 fi
5444
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448 fi
5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int i;
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 xorg_cv_cc_flag_unused_command_line_argument=yes
5461 else
5462 xorg_cv_cc_flag_unused_command_line_argument=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5470 fi
5471
5472 found="no"
5473
5474 if test $found = "no" ; then
5475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477 fi
5478
5479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481 fi
5482
5483 CFLAGS="$CFLAGS -Wstrict-prototypes"
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5486 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5487 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5488 if eval \${$cacheid+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 int i;
5494 int
5495 main ()
5496 {
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503 eval $cacheid=yes
5504 else
5505 eval $cacheid=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5509 fi
5510
5511
5512 CFLAGS="$xorg_testset_save_CFLAGS"
5513
5514 eval supported=\$$cacheid
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5516 $as_echo "$supported" >&6; }
5517 if test "$supported" = "yes" ; then
5518 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5519 found="yes"
5520 fi
5521 fi
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 xorg_testset_save_CFLAGS="$CFLAGS"
5538
5539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 int i;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 xorg_cv_cc_flag_unknown_warning_option=yes
5552 else
5553 xorg_cv_cc_flag_unknown_warning_option=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 fi
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 int i;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 xorg_cv_cc_flag_unused_command_line_argument=yes
5579 else
5580 xorg_cv_cc_flag_unused_command_line_argument=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5588 fi
5589
5590 found="no"
5591
5592 if test $found = "no" ; then
5593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595 fi
5596
5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 fi
5600
5601 CFLAGS="$CFLAGS -Wmissing-prototypes"
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5604 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5605 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5606 if eval \${$cacheid+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 int i;
5612 int
5613 main ()
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_link "$LINENO"; then :
5621 eval $cacheid=yes
5622 else
5623 eval $cacheid=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 fi
5628
5629
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5631
5632 eval supported=\$$cacheid
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5634 $as_echo "$supported" >&6; }
5635 if test "$supported" = "yes" ; then
5636 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5637 found="yes"
5638 fi
5639 fi
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 xorg_testset_save_CFLAGS="$CFLAGS"
5656
5657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 int i;
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 xorg_cv_cc_flag_unknown_warning_option=yes
5670 else
5671 xorg_cv_cc_flag_unknown_warning_option=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5678 CFLAGS="$xorg_testset_save_CFLAGS"
5679 fi
5680
5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684 fi
5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 int i;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 xorg_cv_cc_flag_unused_command_line_argument=yes
5697 else
5698 xorg_cv_cc_flag_unused_command_line_argument=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5705 CFLAGS="$xorg_testset_save_CFLAGS"
5706 fi
5707
5708 found="no"
5709
5710 if test $found = "no" ; then
5711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713 fi
5714
5715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717 fi
5718
5719 CFLAGS="$CFLAGS -Wnested-externs"
5720
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5722 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5723 cacheid=xorg_cv_cc_flag__Wnested_externs
5724 if eval \${$cacheid+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 int i;
5730 int
5731 main ()
5732 {
5733
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 if ac_fn_c_try_link "$LINENO"; then :
5739 eval $cacheid=yes
5740 else
5741 eval $cacheid=no
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5745 fi
5746
5747
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5749
5750 eval supported=\$$cacheid
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5752 $as_echo "$supported" >&6; }
5753 if test "$supported" = "yes" ; then
5754 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5755 found="yes"
5756 fi
5757 fi
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 xorg_testset_save_CFLAGS="$CFLAGS"
5774
5775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 xorg_cv_cc_flag_unknown_warning_option=yes
5788 else
5789 xorg_cv_cc_flag_unknown_warning_option=no
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796 CFLAGS="$xorg_testset_save_CFLAGS"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802 fi
5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 int i;
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"; then :
5814 xorg_cv_cc_flag_unused_command_line_argument=yes
5815 else
5816 xorg_cv_cc_flag_unused_command_line_argument=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5824 fi
5825
5826 found="no"
5827
5828 if test $found = "no" ; then
5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831 fi
5832
5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 fi
5836
5837 CFLAGS="$CFLAGS -Wbad-function-cast"
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5840 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5842 if eval \${$cacheid+:} 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 int
5849 main ()
5850 {
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"; then :
5857 eval $cacheid=yes
5858 else
5859 eval $cacheid=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863 fi
5864
5865
5866 CFLAGS="$xorg_testset_save_CFLAGS"
5867
5868 eval supported=\$$cacheid
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5870 $as_echo "$supported" >&6; }
5871 if test "$supported" = "yes" ; then
5872 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5873 found="yes"
5874 fi
5875 fi
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 xorg_testset_save_CFLAGS="$CFLAGS"
5892
5893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 int i;
5903 _ACEOF
5904 if ac_fn_c_try_compile "$LINENO"; then :
5905 xorg_cv_cc_flag_unknown_warning_option=yes
5906 else
5907 xorg_cv_cc_flag_unknown_warning_option=no
5908 fi
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5914 CFLAGS="$xorg_testset_save_CFLAGS"
5915 fi
5916
5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920 fi
5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 int i;
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 xorg_cv_cc_flag_unused_command_line_argument=yes
5933 else
5934 xorg_cv_cc_flag_unused_command_line_argument=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5941 CFLAGS="$xorg_testset_save_CFLAGS"
5942 fi
5943
5944 found="no"
5945
5946 if test $found = "no" ; then
5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 fi
5950
5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953 fi
5954
5955 CFLAGS="$CFLAGS -Wold-style-definition"
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5958 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5959 cacheid=xorg_cv_cc_flag__Wold_style_definition
5960 if eval \${$cacheid+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 int i;
5966 int
5967 main ()
5968 {
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_link "$LINENO"; then :
5975 eval $cacheid=yes
5976 else
5977 eval $cacheid=no
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext \
5980 conftest$ac_exeext conftest.$ac_ext
5981 fi
5982
5983
5984 CFLAGS="$xorg_testset_save_CFLAGS"
5985
5986 eval supported=\$$cacheid
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5988 $as_echo "$supported" >&6; }
5989 if test "$supported" = "yes" ; then
5990 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5991 found="yes"
5992 fi
5993 fi
5994
5995 if test $found = "no" ; then
5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 fi
5999
6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002 fi
6003
6004 CFLAGS="$CFLAGS -fd"
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6007 $as_echo_n "checking if $CC supports -fd... " >&6; }
6008 cacheid=xorg_cv_cc_flag__fd
6009 if eval \${$cacheid+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 int i;
6015 int
6016 main ()
6017 {
6018
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 eval $cacheid=yes
6025 else
6026 eval $cacheid=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031
6032
6033 CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035 eval supported=\$$cacheid
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037 $as_echo "$supported" >&6; }
6038 if test "$supported" = "yes" ; then
6039 BASE_CFLAGS="$BASE_CFLAGS -fd"
6040 found="yes"
6041 fi
6042 fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 int i;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 xorg_cv_cc_flag_unknown_warning_option=yes
6073 else
6074 xorg_cv_cc_flag_unknown_warning_option=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6081 CFLAGS="$xorg_testset_save_CFLAGS"
6082 fi
6083
6084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087 fi
6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 xorg_cv_cc_flag_unused_command_line_argument=yes
6100 else
6101 xorg_cv_cc_flag_unused_command_line_argument=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6108 CFLAGS="$xorg_testset_save_CFLAGS"
6109 fi
6110
6111 found="no"
6112
6113 if test $found = "no" ; then
6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 fi
6117
6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120 fi
6121
6122 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6125 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6126 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6127 if eval \${$cacheid+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 int
6134 main ()
6135 {
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_link "$LINENO"; then :
6142 eval $cacheid=yes
6143 else
6144 eval $cacheid=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148 fi
6149
6150
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152
6153 eval supported=\$$cacheid
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6155 $as_echo "$supported" >&6; }
6156 if test "$supported" = "yes" ; then
6157 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6158 found="yes"
6159 fi
6160 fi
6161
6162
6163
6164
6165
6166 # This chunk adds additional warnings that could catch undesired effects.
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 xorg_testset_save_CFLAGS="$CFLAGS"
6181
6182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 int i;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 xorg_cv_cc_flag_unknown_warning_option=yes
6195 else
6196 xorg_cv_cc_flag_unknown_warning_option=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6203 CFLAGS="$xorg_testset_save_CFLAGS"
6204 fi
6205
6206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6209 fi
6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 int i;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 xorg_cv_cc_flag_unused_command_line_argument=yes
6222 else
6223 xorg_cv_cc_flag_unused_command_line_argument=no
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6230 CFLAGS="$xorg_testset_save_CFLAGS"
6231 fi
6232
6233 found="no"
6234
6235 if test $found = "no" ; then
6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6238 fi
6239
6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 fi
6243
6244 CFLAGS="$CFLAGS -Wunused"
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6247 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6248 cacheid=xorg_cv_cc_flag__Wunused
6249 if eval \${$cacheid+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 int
6256 main ()
6257 {
6258
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"; then :
6264 eval $cacheid=yes
6265 else
6266 eval $cacheid=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext \
6269 conftest$ac_exeext conftest.$ac_ext
6270 fi
6271
6272
6273 CFLAGS="$xorg_testset_save_CFLAGS"
6274
6275 eval supported=\$$cacheid
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6277 $as_echo "$supported" >&6; }
6278 if test "$supported" = "yes" ; then
6279 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6280 found="yes"
6281 fi
6282 fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 xorg_testset_save_CFLAGS="$CFLAGS"
6299
6300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 int i;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 xorg_cv_cc_flag_unknown_warning_option=yes
6313 else
6314 xorg_cv_cc_flag_unknown_warning_option=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6321 CFLAGS="$xorg_testset_save_CFLAGS"
6322 fi
6323
6324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327 fi
6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 int i;
6337 _ACEOF
6338 if ac_fn_c_try_compile "$LINENO"; then :
6339 xorg_cv_cc_flag_unused_command_line_argument=yes
6340 else
6341 xorg_cv_cc_flag_unused_command_line_argument=no
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6348 CFLAGS="$xorg_testset_save_CFLAGS"
6349 fi
6350
6351 found="no"
6352
6353 if test $found = "no" ; then
6354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356 fi
6357
6358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360 fi
6361
6362 CFLAGS="$CFLAGS -Wuninitialized"
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6365 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6366 cacheid=xorg_cv_cc_flag__Wuninitialized
6367 if eval \${$cacheid+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 int i;
6373 int
6374 main ()
6375 {
6376
6377 ;
6378 return 0;
6379 }
6380 _ACEOF
6381 if ac_fn_c_try_link "$LINENO"; then :
6382 eval $cacheid=yes
6383 else
6384 eval $cacheid=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388 fi
6389
6390
6391 CFLAGS="$xorg_testset_save_CFLAGS"
6392
6393 eval supported=\$$cacheid
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6395 $as_echo "$supported" >&6; }
6396 if test "$supported" = "yes" ; then
6397 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6398 found="yes"
6399 fi
6400 fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 xorg_testset_save_CFLAGS="$CFLAGS"
6417
6418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 int i;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 xorg_cv_cc_flag_unknown_warning_option=yes
6431 else
6432 xorg_cv_cc_flag_unknown_warning_option=no
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6439 CFLAGS="$xorg_testset_save_CFLAGS"
6440 fi
6441
6442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445 fi
6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 int i;
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 xorg_cv_cc_flag_unused_command_line_argument=yes
6458 else
6459 xorg_cv_cc_flag_unused_command_line_argument=no
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6466 CFLAGS="$xorg_testset_save_CFLAGS"
6467 fi
6468
6469 found="no"
6470
6471 if test $found = "no" ; then
6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474 fi
6475
6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478 fi
6479
6480 CFLAGS="$CFLAGS -Wshadow"
6481
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6483 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6484 cacheid=xorg_cv_cc_flag__Wshadow
6485 if eval \${$cacheid+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 int i;
6491 int
6492 main ()
6493 {
6494
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_link "$LINENO"; then :
6500 eval $cacheid=yes
6501 else
6502 eval $cacheid=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext \
6505 conftest$ac_exeext conftest.$ac_ext
6506 fi
6507
6508
6509 CFLAGS="$xorg_testset_save_CFLAGS"
6510
6511 eval supported=\$$cacheid
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6513 $as_echo "$supported" >&6; }
6514 if test "$supported" = "yes" ; then
6515 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6516 found="yes"
6517 fi
6518 fi
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 xorg_testset_save_CFLAGS="$CFLAGS"
6535
6536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 xorg_cv_cc_flag_unknown_warning_option=yes
6549 else
6550 xorg_cv_cc_flag_unknown_warning_option=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6558 fi
6559
6560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563 fi
6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 int i;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 xorg_cv_cc_flag_unused_command_line_argument=yes
6576 else
6577 xorg_cv_cc_flag_unused_command_line_argument=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6584 CFLAGS="$xorg_testset_save_CFLAGS"
6585 fi
6586
6587 found="no"
6588
6589 if test $found = "no" ; then
6590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592 fi
6593
6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 fi
6597
6598 CFLAGS="$CFLAGS -Wmissing-noreturn"
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6601 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6602 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6603 if eval \${$cacheid+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 int i;
6609 int
6610 main ()
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 eval $cacheid=yes
6619 else
6620 eval $cacheid=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 fi
6625
6626
6627 CFLAGS="$xorg_testset_save_CFLAGS"
6628
6629 eval supported=\$$cacheid
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6631 $as_echo "$supported" >&6; }
6632 if test "$supported" = "yes" ; then
6633 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6634 found="yes"
6635 fi
6636 fi
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 xorg_testset_save_CFLAGS="$CFLAGS"
6653
6654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 int i;
6664 _ACEOF
6665 if ac_fn_c_try_compile "$LINENO"; then :
6666 xorg_cv_cc_flag_unknown_warning_option=yes
6667 else
6668 xorg_cv_cc_flag_unknown_warning_option=no
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6675 CFLAGS="$xorg_testset_save_CFLAGS"
6676 fi
6677
6678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681 fi
6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6694 else
6695 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6702 CFLAGS="$xorg_testset_save_CFLAGS"
6703 fi
6704
6705 found="no"
6706
6707 if test $found = "no" ; then
6708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710 fi
6711
6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714 fi
6715
6716 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6717
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6719 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6720 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6721 if eval \${$cacheid+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 int
6728 main ()
6729 {
6730
6731 ;
6732 return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_link "$LINENO"; then :
6736 eval $cacheid=yes
6737 else
6738 eval $cacheid=no
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742 fi
6743
6744
6745 CFLAGS="$xorg_testset_save_CFLAGS"
6746
6747 eval supported=\$$cacheid
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6749 $as_echo "$supported" >&6; }
6750 if test "$supported" = "yes" ; then
6751 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6752 found="yes"
6753 fi
6754 fi
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 xorg_testset_save_CFLAGS="$CFLAGS"
6771
6772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6776 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 int i;
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784 xorg_cv_cc_flag_unknown_warning_option=yes
6785 else
6786 xorg_cv_cc_flag_unknown_warning_option=no
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6791 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6793 CFLAGS="$xorg_testset_save_CFLAGS"
6794 fi
6795
6796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799 fi
6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6802 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6803 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 int i;
6809 _ACEOF
6810 if ac_fn_c_try_compile "$LINENO"; then :
6811 xorg_cv_cc_flag_unused_command_line_argument=yes
6812 else
6813 xorg_cv_cc_flag_unused_command_line_argument=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6818 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821 fi
6822
6823 found="no"
6824
6825 if test $found = "no" ; then
6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 fi
6833
6834 CFLAGS="$CFLAGS -Wredundant-decls"
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6837 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6838 cacheid=xorg_cv_cc_flag__Wredundant_decls
6839 if eval \${$cacheid+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int i;
6845 int
6846 main ()
6847 {
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854 eval $cacheid=yes
6855 else
6856 eval $cacheid=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6860 fi
6861
6862
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864
6865 eval supported=\$$cacheid
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6867 $as_echo "$supported" >&6; }
6868 if test "$supported" = "yes" ; then
6869 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6870 found="yes"
6871 fi
6872 fi
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888 xorg_testset_save_CFLAGS="$CFLAGS"
6889
6890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 int i;
6900 _ACEOF
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902 xorg_cv_cc_flag_unknown_warning_option=yes
6903 else
6904 xorg_cv_cc_flag_unknown_warning_option=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6911 CFLAGS="$xorg_testset_save_CFLAGS"
6912 fi
6913
6914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 int i;
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 xorg_cv_cc_flag_unused_command_line_argument=yes
6930 else
6931 xorg_cv_cc_flag_unused_command_line_argument=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6938 CFLAGS="$xorg_testset_save_CFLAGS"
6939 fi
6940
6941 found="no"
6942
6943 if test $found = "no" ; then
6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 fi
6947
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 fi
6951
6952 CFLAGS="$CFLAGS -Wlogical-op"
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6955 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6956 cacheid=xorg_cv_cc_flag__Wlogical_op
6957 if eval \${$cacheid+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 int i;
6963 int
6964 main ()
6965 {
6966
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_link "$LINENO"; then :
6972 eval $cacheid=yes
6973 else
6974 eval $cacheid=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 fi
6979
6980
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982
6983 eval supported=\$$cacheid
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6985 $as_echo "$supported" >&6; }
6986 if test "$supported" = "yes" ; then
6987 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6988 found="yes"
6989 fi
6990 fi
6991
6992
6993
6994 # These are currently disabled because they are noisy. They will be enabled
6995 # in the future once the codebase is sufficiently modernized to silence
6996 # them. For now, I don't want them to drown out the other warnings.
6997 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6998 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6999 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7000
7001 # Turn some warnings into errors, so we don't accidently get successful builds
7002 # when there are problems that should be fixed.
7003
7004 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018 xorg_testset_save_CFLAGS="$CFLAGS"
7019
7020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 int i;
7030 _ACEOF
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032 xorg_cv_cc_flag_unknown_warning_option=yes
7033 else
7034 xorg_cv_cc_flag_unknown_warning_option=no
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7041 CFLAGS="$xorg_testset_save_CFLAGS"
7042 fi
7043
7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 fi
7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 int i;
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059 xorg_cv_cc_flag_unused_command_line_argument=yes
7060 else
7061 xorg_cv_cc_flag_unused_command_line_argument=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069 fi
7070
7071 found="no"
7072
7073 if test $found = "no" ; then
7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076 fi
7077
7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080 fi
7081
7082 CFLAGS="$CFLAGS -Werror=implicit"
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7085 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7086 cacheid=xorg_cv_cc_flag__Werror_implicit
7087 if eval \${$cacheid+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 int i;
7093 int
7094 main ()
7095 {
7096
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 eval $cacheid=yes
7103 else
7104 eval $cacheid=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 fi
7109
7110
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112
7113 eval supported=\$$cacheid
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7115 $as_echo "$supported" >&6; }
7116 if test "$supported" = "yes" ; then
7117 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7118 found="yes"
7119 fi
7120 fi
7121
7122 if test $found = "no" ; then
7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125 fi
7126
7127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129 fi
7130
7131 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7134 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7135 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7136 if eval \${$cacheid+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 int
7143 main ()
7144 {
7145
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 if ac_fn_c_try_link "$LINENO"; then :
7151 eval $cacheid=yes
7152 else
7153 eval $cacheid=no
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7157 fi
7158
7159
7160 CFLAGS="$xorg_testset_save_CFLAGS"
7161
7162 eval supported=\$$cacheid
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7164 $as_echo "$supported" >&6; }
7165 if test "$supported" = "yes" ; then
7166 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7167 found="yes"
7168 fi
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 xorg_testset_save_CFLAGS="$CFLAGS"
7186
7187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 xorg_cv_cc_flag_unknown_warning_option=yes
7200 else
7201 xorg_cv_cc_flag_unknown_warning_option=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214 fi
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 int i;
7224 _ACEOF
7225 if ac_fn_c_try_compile "$LINENO"; then :
7226 xorg_cv_cc_flag_unused_command_line_argument=yes
7227 else
7228 xorg_cv_cc_flag_unused_command_line_argument=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7235 CFLAGS="$xorg_testset_save_CFLAGS"
7236 fi
7237
7238 found="no"
7239
7240 if test $found = "no" ; then
7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243 fi
7244
7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 fi
7248
7249 CFLAGS="$CFLAGS -Werror=nonnull"
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7252 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7253 cacheid=xorg_cv_cc_flag__Werror_nonnull
7254 if eval \${$cacheid+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 int
7261 main ()
7262 {
7263
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 eval $cacheid=yes
7270 else
7271 eval $cacheid=no
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 fi
7276
7277
7278 CFLAGS="$xorg_testset_save_CFLAGS"
7279
7280 eval supported=\$$cacheid
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7282 $as_echo "$supported" >&6; }
7283 if test "$supported" = "yes" ; then
7284 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7285 found="yes"
7286 fi
7287 fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 xorg_testset_save_CFLAGS="$CFLAGS"
7304
7305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 int i;
7315 _ACEOF
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317 xorg_cv_cc_flag_unknown_warning_option=yes
7318 else
7319 xorg_cv_cc_flag_unknown_warning_option=no
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7326 CFLAGS="$xorg_testset_save_CFLAGS"
7327 fi
7328
7329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332 fi
7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 int i;
7342 _ACEOF
7343 if ac_fn_c_try_compile "$LINENO"; then :
7344 xorg_cv_cc_flag_unused_command_line_argument=yes
7345 else
7346 xorg_cv_cc_flag_unused_command_line_argument=no
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7353 CFLAGS="$xorg_testset_save_CFLAGS"
7354 fi
7355
7356 found="no"
7357
7358 if test $found = "no" ; then
7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361 fi
7362
7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365 fi
7366
7367 CFLAGS="$CFLAGS -Werror=init-self"
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7370 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7371 cacheid=xorg_cv_cc_flag__Werror_init_self
7372 if eval \${$cacheid+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 int i;
7378 int
7379 main ()
7380 {
7381
7382 ;
7383 return 0;
7384 }
7385 _ACEOF
7386 if ac_fn_c_try_link "$LINENO"; then :
7387 eval $cacheid=yes
7388 else
7389 eval $cacheid=no
7390 fi
7391 rm -f core conftest.err conftest.$ac_objext \
7392 conftest$ac_exeext conftest.$ac_ext
7393 fi
7394
7395
7396 CFLAGS="$xorg_testset_save_CFLAGS"
7397
7398 eval supported=\$$cacheid
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7400 $as_echo "$supported" >&6; }
7401 if test "$supported" = "yes" ; then
7402 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7403 found="yes"
7404 fi
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 xorg_testset_save_CFLAGS="$CFLAGS"
7422
7423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 int i;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 xorg_cv_cc_flag_unknown_warning_option=yes
7436 else
7437 xorg_cv_cc_flag_unknown_warning_option=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7444 CFLAGS="$xorg_testset_save_CFLAGS"
7445 fi
7446
7447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7450 fi
7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 int i;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 xorg_cv_cc_flag_unused_command_line_argument=yes
7463 else
7464 xorg_cv_cc_flag_unused_command_line_argument=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7471 CFLAGS="$xorg_testset_save_CFLAGS"
7472 fi
7473
7474 found="no"
7475
7476 if test $found = "no" ; then
7477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479 fi
7480
7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483 fi
7484
7485 CFLAGS="$CFLAGS -Werror=main"
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7488 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7489 cacheid=xorg_cv_cc_flag__Werror_main
7490 if eval \${$cacheid+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 int
7497 main ()
7498 {
7499
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 if ac_fn_c_try_link "$LINENO"; then :
7505 eval $cacheid=yes
7506 else
7507 eval $cacheid=no
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 fi
7512
7513
7514 CFLAGS="$xorg_testset_save_CFLAGS"
7515
7516 eval supported=\$$cacheid
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7518 $as_echo "$supported" >&6; }
7519 if test "$supported" = "yes" ; then
7520 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7521 found="yes"
7522 fi
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 xorg_testset_save_CFLAGS="$CFLAGS"
7540
7541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 int i;
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 xorg_cv_cc_flag_unknown_warning_option=yes
7554 else
7555 xorg_cv_cc_flag_unknown_warning_option=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7562 CFLAGS="$xorg_testset_save_CFLAGS"
7563 fi
7564
7565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 fi
7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 xorg_cv_cc_flag_unused_command_line_argument=yes
7581 else
7582 xorg_cv_cc_flag_unused_command_line_argument=no
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7589 CFLAGS="$xorg_testset_save_CFLAGS"
7590 fi
7591
7592 found="no"
7593
7594 if test $found = "no" ; then
7595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597 fi
7598
7599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601 fi
7602
7603 CFLAGS="$CFLAGS -Werror=missing-braces"
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7606 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7607 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7608 if eval \${$cacheid+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 int i;
7614 int
7615 main ()
7616 {
7617
7618 ;
7619 return 0;
7620 }
7621 _ACEOF
7622 if ac_fn_c_try_link "$LINENO"; then :
7623 eval $cacheid=yes
7624 else
7625 eval $cacheid=no
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7629 fi
7630
7631
7632 CFLAGS="$xorg_testset_save_CFLAGS"
7633
7634 eval supported=\$$cacheid
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7636 $as_echo "$supported" >&6; }
7637 if test "$supported" = "yes" ; then
7638 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7639 found="yes"
7640 fi
7641 fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 xorg_testset_save_CFLAGS="$CFLAGS"
7658
7659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 int i;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671 xorg_cv_cc_flag_unknown_warning_option=yes
7672 else
7673 xorg_cv_cc_flag_unknown_warning_option=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7680 CFLAGS="$xorg_testset_save_CFLAGS"
7681 fi
7682
7683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686 fi
7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 int i;
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 xorg_cv_cc_flag_unused_command_line_argument=yes
7699 else
7700 xorg_cv_cc_flag_unused_command_line_argument=no
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7707 CFLAGS="$xorg_testset_save_CFLAGS"
7708 fi
7709
7710 found="no"
7711
7712 if test $found = "no" ; then
7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715 fi
7716
7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719 fi
7720
7721 CFLAGS="$CFLAGS -Werror=sequence-point"
7722
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7724 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7725 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7726 if eval \${$cacheid+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 int i;
7732 int
7733 main ()
7734 {
7735
7736 ;
7737 return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_link "$LINENO"; then :
7741 eval $cacheid=yes
7742 else
7743 eval $cacheid=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 fi
7748
7749
7750 CFLAGS="$xorg_testset_save_CFLAGS"
7751
7752 eval supported=\$$cacheid
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754 $as_echo "$supported" >&6; }
7755 if test "$supported" = "yes" ; then
7756 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7757 found="yes"
7758 fi
7759 fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775 xorg_testset_save_CFLAGS="$CFLAGS"
7776
7777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 int i;
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 xorg_cv_cc_flag_unknown_warning_option=yes
7790 else
7791 xorg_cv_cc_flag_unknown_warning_option=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7798 CFLAGS="$xorg_testset_save_CFLAGS"
7799 fi
7800
7801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804 fi
7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 xorg_cv_cc_flag_unused_command_line_argument=yes
7817 else
7818 xorg_cv_cc_flag_unused_command_line_argument=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7826 fi
7827
7828 found="no"
7829
7830 if test $found = "no" ; then
7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833 fi
7834
7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837 fi
7838
7839 CFLAGS="$CFLAGS -Werror=return-type"
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7842 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7843 cacheid=xorg_cv_cc_flag__Werror_return_type
7844 if eval \${$cacheid+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 int i;
7850 int
7851 main ()
7852 {
7853
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859 eval $cacheid=yes
7860 else
7861 eval $cacheid=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865 fi
7866
7867
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870 eval supported=\$$cacheid
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 $as_echo "$supported" >&6; }
7873 if test "$supported" = "yes" ; then
7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7875 found="yes"
7876 fi
7877 fi
7878
7879 if test $found = "no" ; then
7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882 fi
7883
7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886 fi
7887
7888 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7891 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7892 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7893 if eval \${$cacheid+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 int
7900 main ()
7901 {
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"; then :
7908 eval $cacheid=yes
7909 else
7910 eval $cacheid=no
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 fi
7915
7916
7917 CFLAGS="$xorg_testset_save_CFLAGS"
7918
7919 eval supported=\$$cacheid
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7921 $as_echo "$supported" >&6; }
7922 if test "$supported" = "yes" ; then
7923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7924 found="yes"
7925 fi
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 xorg_testset_save_CFLAGS="$CFLAGS"
7943
7944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 xorg_cv_cc_flag_unknown_warning_option=yes
7957 else
7958 xorg_cv_cc_flag_unknown_warning_option=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966 fi
7967
7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int i;
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983 xorg_cv_cc_flag_unused_command_line_argument=yes
7984 else
7985 xorg_cv_cc_flag_unused_command_line_argument=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993 fi
7994
7995 found="no"
7996
7997 if test $found = "no" ; then
7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000 fi
8001
8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004 fi
8005
8006 CFLAGS="$CFLAGS -Werror=trigraphs"
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8009 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8010 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8011 if eval \${$cacheid+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 int i;
8017 int
8018 main ()
8019 {
8020
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 if ac_fn_c_try_link "$LINENO"; then :
8026 eval $cacheid=yes
8027 else
8028 eval $cacheid=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8032 fi
8033
8034
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037 eval supported=\$$cacheid
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8039 $as_echo "$supported" >&6; }
8040 if test "$supported" = "yes" ; then
8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8042 found="yes"
8043 fi
8044 fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 xorg_testset_save_CFLAGS="$CFLAGS"
8061
8062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8066 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 int i;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 xorg_cv_cc_flag_unknown_warning_option=yes
8075 else
8076 xorg_cv_cc_flag_unknown_warning_option=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8081 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8084 fi
8085
8086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089 fi
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8092 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8093 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 int i;
8099 _ACEOF
8100 if ac_fn_c_try_compile "$LINENO"; then :
8101 xorg_cv_cc_flag_unused_command_line_argument=yes
8102 else
8103 xorg_cv_cc_flag_unused_command_line_argument=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8108 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111 fi
8112
8113 found="no"
8114
8115 if test $found = "no" ; then
8116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118 fi
8119
8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122 fi
8123
8124 CFLAGS="$CFLAGS -Werror=array-bounds"
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8127 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8128 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8129 if eval \${$cacheid+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 int i;
8135 int
8136 main ()
8137 {
8138
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_link "$LINENO"; then :
8144 eval $cacheid=yes
8145 else
8146 eval $cacheid=no
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 fi
8151
8152
8153 CFLAGS="$xorg_testset_save_CFLAGS"
8154
8155 eval supported=\$$cacheid
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8157 $as_echo "$supported" >&6; }
8158 if test "$supported" = "yes" ; then
8159 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8160 found="yes"
8161 fi
8162 fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178 xorg_testset_save_CFLAGS="$CFLAGS"
8179
8180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 int i;
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 xorg_cv_cc_flag_unknown_warning_option=yes
8193 else
8194 xorg_cv_cc_flag_unknown_warning_option=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8201 CFLAGS="$xorg_testset_save_CFLAGS"
8202 fi
8203
8204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207 fi
8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 int i;
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 xorg_cv_cc_flag_unused_command_line_argument=yes
8220 else
8221 xorg_cv_cc_flag_unused_command_line_argument=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8229 fi
8230
8231 found="no"
8232
8233 if test $found = "no" ; then
8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236 fi
8237
8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240 fi
8241
8242 CFLAGS="$CFLAGS -Werror=write-strings"
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8245 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8246 cacheid=xorg_cv_cc_flag__Werror_write_strings
8247 if eval \${$cacheid+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int i;
8253 int
8254 main ()
8255 {
8256
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_link "$LINENO"; then :
8262 eval $cacheid=yes
8263 else
8264 eval $cacheid=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 fi
8269
8270
8271 CFLAGS="$xorg_testset_save_CFLAGS"
8272
8273 eval supported=\$$cacheid
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8275 $as_echo "$supported" >&6; }
8276 if test "$supported" = "yes" ; then
8277 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8278 found="yes"
8279 fi
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 xorg_testset_save_CFLAGS="$CFLAGS"
8297
8298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 int i;
8308 _ACEOF
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310 xorg_cv_cc_flag_unknown_warning_option=yes
8311 else
8312 xorg_cv_cc_flag_unknown_warning_option=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8320 fi
8321
8322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 fi
8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 int i;
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 xorg_cv_cc_flag_unused_command_line_argument=yes
8338 else
8339 xorg_cv_cc_flag_unused_command_line_argument=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8346 CFLAGS="$xorg_testset_save_CFLAGS"
8347 fi
8348
8349 found="no"
8350
8351 if test $found = "no" ; then
8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354 fi
8355
8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358 fi
8359
8360 CFLAGS="$CFLAGS -Werror=address"
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8363 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8364 cacheid=xorg_cv_cc_flag__Werror_address
8365 if eval \${$cacheid+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 int
8372 main ()
8373 {
8374
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380 eval $cacheid=yes
8381 else
8382 eval $cacheid=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 fi
8387
8388
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390
8391 eval supported=\$$cacheid
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8393 $as_echo "$supported" >&6; }
8394 if test "$supported" = "yes" ; then
8395 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8396 found="yes"
8397 fi
8398 fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 xorg_testset_save_CFLAGS="$CFLAGS"
8415
8416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 int i;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 xorg_cv_cc_flag_unknown_warning_option=yes
8429 else
8430 xorg_cv_cc_flag_unknown_warning_option=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443 fi
8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455 xorg_cv_cc_flag_unused_command_line_argument=yes
8456 else
8457 xorg_cv_cc_flag_unused_command_line_argument=no
8458 fi
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8464 CFLAGS="$xorg_testset_save_CFLAGS"
8465 fi
8466
8467 found="no"
8468
8469 if test $found = "no" ; then
8470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472 fi
8473
8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8476 fi
8477
8478 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8481 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8482 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8483 if eval \${$cacheid+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 int
8490 main ()
8491 {
8492
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 eval $cacheid=yes
8499 else
8500 eval $cacheid=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 fi
8505
8506
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8508
8509 eval supported=\$$cacheid
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8511 $as_echo "$supported" >&6; }
8512 if test "$supported" = "yes" ; then
8513 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8514 found="yes"
8515 fi
8516 fi
8517
8518 if test $found = "no" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522
8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 fi
8526
8527 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8530 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8531 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8532 if eval \${$cacheid+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 int
8539 main ()
8540 {
8541
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 eval $cacheid=yes
8548 else
8549 eval $cacheid=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 fi
8554
8555
8556 CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558 eval supported=\$$cacheid
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560 $as_echo "$supported" >&6; }
8561 if test "$supported" = "yes" ; then
8562 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8563 found="yes"
8564 fi
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 xorg_cv_cc_flag_unknown_warning_option=yes
8596 else
8597 xorg_cv_cc_flag_unknown_warning_option=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604 CFLAGS="$xorg_testset_save_CFLAGS"
8605 fi
8606
8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 fi
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 int i;
8620 _ACEOF
8621 if ac_fn_c_try_compile "$LINENO"; then :
8622 xorg_cv_cc_flag_unused_command_line_argument=yes
8623 else
8624 xorg_cv_cc_flag_unused_command_line_argument=no
8625 fi
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8631 CFLAGS="$xorg_testset_save_CFLAGS"
8632 fi
8633
8634 found="no"
8635
8636 if test $found = "no" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 fi
8644
8645 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8648 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8649 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8650 if eval \${$cacheid+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 int
8657 main ()
8658 {
8659
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 eval $cacheid=yes
8666 else
8667 eval $cacheid=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 fi
8672
8673
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676 eval supported=\$$cacheid
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678 $as_echo "$supported" >&6; }
8679 if test "$supported" = "yes" ; then
8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8681 found="yes"
8682 fi
8683 fi
8684
8685 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8686 else
8687 { $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
8688 $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;}
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 xorg_testset_save_CFLAGS="$CFLAGS"
8703
8704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 int i;
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"; then :
8716 xorg_cv_cc_flag_unknown_warning_option=yes
8717 else
8718 xorg_cv_cc_flag_unknown_warning_option=no
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8725 CFLAGS="$xorg_testset_save_CFLAGS"
8726 fi
8727
8728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8731 fi
8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 int i;
8741 _ACEOF
8742 if ac_fn_c_try_compile "$LINENO"; then :
8743 xorg_cv_cc_flag_unused_command_line_argument=yes
8744 else
8745 xorg_cv_cc_flag_unused_command_line_argument=no
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8752 CFLAGS="$xorg_testset_save_CFLAGS"
8753 fi
8754
8755 found="no"
8756
8757 if test $found = "no" ; then
8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760 fi
8761
8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 fi
8765
8766 CFLAGS="$CFLAGS -Wimplicit"
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8769 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8770 cacheid=xorg_cv_cc_flag__Wimplicit
8771 if eval \${$cacheid+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 int
8778 main ()
8779 {
8780
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_link "$LINENO"; then :
8786 eval $cacheid=yes
8787 else
8788 eval $cacheid=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8792 fi
8793
8794
8795 CFLAGS="$xorg_testset_save_CFLAGS"
8796
8797 eval supported=\$$cacheid
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8799 $as_echo "$supported" >&6; }
8800 if test "$supported" = "yes" ; then
8801 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8802 found="yes"
8803 fi
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820 xorg_testset_save_CFLAGS="$CFLAGS"
8821
8822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 int i;
8832 _ACEOF
8833 if ac_fn_c_try_compile "$LINENO"; then :
8834 xorg_cv_cc_flag_unknown_warning_option=yes
8835 else
8836 xorg_cv_cc_flag_unknown_warning_option=no
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8844 fi
8845
8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849 fi
8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 int i;
8859 _ACEOF
8860 if ac_fn_c_try_compile "$LINENO"; then :
8861 xorg_cv_cc_flag_unused_command_line_argument=yes
8862 else
8863 xorg_cv_cc_flag_unused_command_line_argument=no
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8870 CFLAGS="$xorg_testset_save_CFLAGS"
8871 fi
8872
8873 found="no"
8874
8875 if test $found = "no" ; then
8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878 fi
8879
8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 fi
8883
8884 CFLAGS="$CFLAGS -Wnonnull"
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8887 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8888 cacheid=xorg_cv_cc_flag__Wnonnull
8889 if eval \${$cacheid+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 int
8896 main ()
8897 {
8898
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 if ac_fn_c_try_link "$LINENO"; then :
8904 eval $cacheid=yes
8905 else
8906 eval $cacheid=no
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8910 fi
8911
8912
8913 CFLAGS="$xorg_testset_save_CFLAGS"
8914
8915 eval supported=\$$cacheid
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8917 $as_echo "$supported" >&6; }
8918 if test "$supported" = "yes" ; then
8919 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8920 found="yes"
8921 fi
8922 fi
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938 xorg_testset_save_CFLAGS="$CFLAGS"
8939
8940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 int i;
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952 xorg_cv_cc_flag_unknown_warning_option=yes
8953 else
8954 xorg_cv_cc_flag_unknown_warning_option=no
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8961 CFLAGS="$xorg_testset_save_CFLAGS"
8962 fi
8963
8964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 fi
8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 int i;
8977 _ACEOF
8978 if ac_fn_c_try_compile "$LINENO"; then :
8979 xorg_cv_cc_flag_unused_command_line_argument=yes
8980 else
8981 xorg_cv_cc_flag_unused_command_line_argument=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989 fi
8990
8991 found="no"
8992
8993 if test $found = "no" ; then
8994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996 fi
8997
8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 fi
9001
9002 CFLAGS="$CFLAGS -Winit-self"
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9005 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9006 cacheid=xorg_cv_cc_flag__Winit_self
9007 if eval \${$cacheid+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 int i;
9013 int
9014 main ()
9015 {
9016
9017 ;
9018 return 0;
9019 }
9020 _ACEOF
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 eval $cacheid=yes
9023 else
9024 eval $cacheid=no
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9028 fi
9029
9030
9031 CFLAGS="$xorg_testset_save_CFLAGS"
9032
9033 eval supported=\$$cacheid
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9035 $as_echo "$supported" >&6; }
9036 if test "$supported" = "yes" ; then
9037 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9038 found="yes"
9039 fi
9040 fi
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 xorg_testset_save_CFLAGS="$CFLAGS"
9057
9058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067 int i;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 xorg_cv_cc_flag_unknown_warning_option=yes
9071 else
9072 xorg_cv_cc_flag_unknown_warning_option=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9080 fi
9081
9082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085 fi
9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 int i;
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 xorg_cv_cc_flag_unused_command_line_argument=yes
9098 else
9099 xorg_cv_cc_flag_unused_command_line_argument=no
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9106 CFLAGS="$xorg_testset_save_CFLAGS"
9107 fi
9108
9109 found="no"
9110
9111 if test $found = "no" ; then
9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114 fi
9115
9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118 fi
9119
9120 CFLAGS="$CFLAGS -Wmain"
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9123 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9124 cacheid=xorg_cv_cc_flag__Wmain
9125 if eval \${$cacheid+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 int
9132 main ()
9133 {
9134
9135 ;
9136 return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"; then :
9140 eval $cacheid=yes
9141 else
9142 eval $cacheid=no
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 fi
9147
9148
9149 CFLAGS="$xorg_testset_save_CFLAGS"
9150
9151 eval supported=\$$cacheid
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9153 $as_echo "$supported" >&6; }
9154 if test "$supported" = "yes" ; then
9155 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9156 found="yes"
9157 fi
9158 fi
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 xorg_testset_save_CFLAGS="$CFLAGS"
9175
9176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 int i;
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"; then :
9188 xorg_cv_cc_flag_unknown_warning_option=yes
9189 else
9190 xorg_cv_cc_flag_unknown_warning_option=no
9191 fi
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9198 fi
9199
9200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203 fi
9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 int i;
9213 _ACEOF
9214 if ac_fn_c_try_compile "$LINENO"; then :
9215 xorg_cv_cc_flag_unused_command_line_argument=yes
9216 else
9217 xorg_cv_cc_flag_unused_command_line_argument=no
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9224 CFLAGS="$xorg_testset_save_CFLAGS"
9225 fi
9226
9227 found="no"
9228
9229 if test $found = "no" ; then
9230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232 fi
9233
9234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236 fi
9237
9238 CFLAGS="$CFLAGS -Wmissing-braces"
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9241 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9242 cacheid=xorg_cv_cc_flag__Wmissing_braces
9243 if eval \${$cacheid+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 int i;
9249 int
9250 main ()
9251 {
9252
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 if ac_fn_c_try_link "$LINENO"; then :
9258 eval $cacheid=yes
9259 else
9260 eval $cacheid=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 fi
9265
9266
9267 CFLAGS="$xorg_testset_save_CFLAGS"
9268
9269 eval supported=\$$cacheid
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9271 $as_echo "$supported" >&6; }
9272 if test "$supported" = "yes" ; then
9273 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9274 found="yes"
9275 fi
9276 fi
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292 xorg_testset_save_CFLAGS="$CFLAGS"
9293
9294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 int i;
9304 _ACEOF
9305 if ac_fn_c_try_compile "$LINENO"; then :
9306 xorg_cv_cc_flag_unknown_warning_option=yes
9307 else
9308 xorg_cv_cc_flag_unknown_warning_option=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321 fi
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 int i;
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"; then :
9333 xorg_cv_cc_flag_unused_command_line_argument=yes
9334 else
9335 xorg_cv_cc_flag_unused_command_line_argument=no
9336 fi
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 fi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9342 CFLAGS="$xorg_testset_save_CFLAGS"
9343 fi
9344
9345 found="no"
9346
9347 if test $found = "no" ; then
9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350 fi
9351
9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354 fi
9355
9356 CFLAGS="$CFLAGS -Wsequence-point"
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9359 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9360 cacheid=xorg_cv_cc_flag__Wsequence_point
9361 if eval \${$cacheid+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 int
9368 main ()
9369 {
9370
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 eval $cacheid=yes
9377 else
9378 eval $cacheid=no
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 fi
9383
9384
9385 CFLAGS="$xorg_testset_save_CFLAGS"
9386
9387 eval supported=\$$cacheid
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9389 $as_echo "$supported" >&6; }
9390 if test "$supported" = "yes" ; then
9391 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9392 found="yes"
9393 fi
9394 fi
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 xorg_testset_save_CFLAGS="$CFLAGS"
9411
9412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 int i;
9422 _ACEOF
9423 if ac_fn_c_try_compile "$LINENO"; then :
9424 xorg_cv_cc_flag_unknown_warning_option=yes
9425 else
9426 xorg_cv_cc_flag_unknown_warning_option=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9434 fi
9435
9436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439 fi
9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 int i;
9449 _ACEOF
9450 if ac_fn_c_try_compile "$LINENO"; then :
9451 xorg_cv_cc_flag_unused_command_line_argument=yes
9452 else
9453 xorg_cv_cc_flag_unused_command_line_argument=no
9454 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 fi
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9460 CFLAGS="$xorg_testset_save_CFLAGS"
9461 fi
9462
9463 found="no"
9464
9465 if test $found = "no" ; then
9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468 fi
9469
9470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472 fi
9473
9474 CFLAGS="$CFLAGS -Wreturn-type"
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9477 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9478 cacheid=xorg_cv_cc_flag__Wreturn_type
9479 if eval \${$cacheid+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int i;
9485 int
9486 main ()
9487 {
9488
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494 eval $cacheid=yes
9495 else
9496 eval $cacheid=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9500 fi
9501
9502
9503 CFLAGS="$xorg_testset_save_CFLAGS"
9504
9505 eval supported=\$$cacheid
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9507 $as_echo "$supported" >&6; }
9508 if test "$supported" = "yes" ; then
9509 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9510 found="yes"
9511 fi
9512 fi
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528 xorg_testset_save_CFLAGS="$CFLAGS"
9529
9530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539 int i;
9540 _ACEOF
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542 xorg_cv_cc_flag_unknown_warning_option=yes
9543 else
9544 xorg_cv_cc_flag_unknown_warning_option=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9552 fi
9553
9554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557 fi
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 int i;
9567 _ACEOF
9568 if ac_fn_c_try_compile "$LINENO"; then :
9569 xorg_cv_cc_flag_unused_command_line_argument=yes
9570 else
9571 xorg_cv_cc_flag_unused_command_line_argument=no
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9578 CFLAGS="$xorg_testset_save_CFLAGS"
9579 fi
9580
9581 found="no"
9582
9583 if test $found = "no" ; then
9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586 fi
9587
9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590 fi
9591
9592 CFLAGS="$CFLAGS -Wtrigraphs"
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9595 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9596 cacheid=xorg_cv_cc_flag__Wtrigraphs
9597 if eval \${$cacheid+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 int i;
9603 int
9604 main ()
9605 {
9606
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612 eval $cacheid=yes
9613 else
9614 eval $cacheid=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 fi
9619
9620
9621 CFLAGS="$xorg_testset_save_CFLAGS"
9622
9623 eval supported=\$$cacheid
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9625 $as_echo "$supported" >&6; }
9626 if test "$supported" = "yes" ; then
9627 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9628 found="yes"
9629 fi
9630 fi
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646 xorg_testset_save_CFLAGS="$CFLAGS"
9647
9648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 int i;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660 xorg_cv_cc_flag_unknown_warning_option=yes
9661 else
9662 xorg_cv_cc_flag_unknown_warning_option=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9670 fi
9671
9672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9675 fi
9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 int i;
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"; then :
9687 xorg_cv_cc_flag_unused_command_line_argument=yes
9688 else
9689 xorg_cv_cc_flag_unused_command_line_argument=no
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9696 CFLAGS="$xorg_testset_save_CFLAGS"
9697 fi
9698
9699 found="no"
9700
9701 if test $found = "no" ; then
9702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704 fi
9705
9706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708 fi
9709
9710 CFLAGS="$CFLAGS -Warray-bounds"
9711
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9713 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9714 cacheid=xorg_cv_cc_flag__Warray_bounds
9715 if eval \${$cacheid+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 int i;
9721 int
9722 main ()
9723 {
9724
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_c_try_link "$LINENO"; then :
9730 eval $cacheid=yes
9731 else
9732 eval $cacheid=no
9733 fi
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 fi
9737
9738
9739 CFLAGS="$xorg_testset_save_CFLAGS"
9740
9741 eval supported=\$$cacheid
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9743 $as_echo "$supported" >&6; }
9744 if test "$supported" = "yes" ; then
9745 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9746 found="yes"
9747 fi
9748 fi
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 xorg_testset_save_CFLAGS="$CFLAGS"
9765
9766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 xorg_cv_cc_flag_unknown_warning_option=yes
9779 else
9780 xorg_cv_cc_flag_unknown_warning_option=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9787 CFLAGS="$xorg_testset_save_CFLAGS"
9788 fi
9789
9790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9793 fi
9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 int i;
9803 _ACEOF
9804 if ac_fn_c_try_compile "$LINENO"; then :
9805 xorg_cv_cc_flag_unused_command_line_argument=yes
9806 else
9807 xorg_cv_cc_flag_unused_command_line_argument=no
9808 fi
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9814 CFLAGS="$xorg_testset_save_CFLAGS"
9815 fi
9816
9817 found="no"
9818
9819 if test $found = "no" ; then
9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9822 fi
9823
9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826 fi
9827
9828 CFLAGS="$CFLAGS -Wwrite-strings"
9829
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9831 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9832 cacheid=xorg_cv_cc_flag__Wwrite_strings
9833 if eval \${$cacheid+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int i;
9839 int
9840 main ()
9841 {
9842
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 if ac_fn_c_try_link "$LINENO"; then :
9848 eval $cacheid=yes
9849 else
9850 eval $cacheid=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 fi
9855
9856
9857 CFLAGS="$xorg_testset_save_CFLAGS"
9858
9859 eval supported=\$$cacheid
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9861 $as_echo "$supported" >&6; }
9862 if test "$supported" = "yes" ; then
9863 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9864 found="yes"
9865 fi
9866 fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882 xorg_testset_save_CFLAGS="$CFLAGS"
9883
9884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 int i;
9894 _ACEOF
9895 if ac_fn_c_try_compile "$LINENO"; then :
9896 xorg_cv_cc_flag_unknown_warning_option=yes
9897 else
9898 xorg_cv_cc_flag_unknown_warning_option=no
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9905 CFLAGS="$xorg_testset_save_CFLAGS"
9906 fi
9907
9908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9911 fi
9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 int i;
9921 _ACEOF
9922 if ac_fn_c_try_compile "$LINENO"; then :
9923 xorg_cv_cc_flag_unused_command_line_argument=yes
9924 else
9925 xorg_cv_cc_flag_unused_command_line_argument=no
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9932 CFLAGS="$xorg_testset_save_CFLAGS"
9933 fi
9934
9935 found="no"
9936
9937 if test $found = "no" ; then
9938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940 fi
9941
9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944 fi
9945
9946 CFLAGS="$CFLAGS -Waddress"
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9949 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9950 cacheid=xorg_cv_cc_flag__Waddress
9951 if eval \${$cacheid+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int i;
9957 int
9958 main ()
9959 {
9960
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966 eval $cacheid=yes
9967 else
9968 eval $cacheid=no
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972 fi
9973
9974
9975 CFLAGS="$xorg_testset_save_CFLAGS"
9976
9977 eval supported=\$$cacheid
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9979 $as_echo "$supported" >&6; }
9980 if test "$supported" = "yes" ; then
9981 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9982 found="yes"
9983 fi
9984 fi
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000 xorg_testset_save_CFLAGS="$CFLAGS"
10001
10002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 int i;
10012 _ACEOF
10013 if ac_fn_c_try_compile "$LINENO"; then :
10014 xorg_cv_cc_flag_unknown_warning_option=yes
10015 else
10016 xorg_cv_cc_flag_unknown_warning_option=no
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024 fi
10025
10026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029 fi
10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int i;
10039 _ACEOF
10040 if ac_fn_c_try_compile "$LINENO"; then :
10041 xorg_cv_cc_flag_unused_command_line_argument=yes
10042 else
10043 xorg_cv_cc_flag_unused_command_line_argument=no
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 fi
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10050 CFLAGS="$xorg_testset_save_CFLAGS"
10051 fi
10052
10053 found="no"
10054
10055 if test $found = "no" ; then
10056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10058 fi
10059
10060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062 fi
10063
10064 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10065
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10067 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10068 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10069 if eval \${$cacheid+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 int i;
10075 int
10076 main ()
10077 {
10078
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 eval $cacheid=yes
10085 else
10086 eval $cacheid=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 fi
10091
10092
10093 CFLAGS="$xorg_testset_save_CFLAGS"
10094
10095 eval supported=\$$cacheid
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10097 $as_echo "$supported" >&6; }
10098 if test "$supported" = "yes" ; then
10099 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10100 found="yes"
10101 fi
10102 fi
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118 xorg_testset_save_CFLAGS="$CFLAGS"
10119
10120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int i;
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"; then :
10132 xorg_cv_cc_flag_unknown_warning_option=yes
10133 else
10134 xorg_cv_cc_flag_unknown_warning_option=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10141 CFLAGS="$xorg_testset_save_CFLAGS"
10142 fi
10143
10144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147 fi
10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156 int i;
10157 _ACEOF
10158 if ac_fn_c_try_compile "$LINENO"; then :
10159 xorg_cv_cc_flag_unused_command_line_argument=yes
10160 else
10161 xorg_cv_cc_flag_unused_command_line_argument=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10168 CFLAGS="$xorg_testset_save_CFLAGS"
10169 fi
10170
10171 found="no"
10172
10173 if test $found = "no" ; then
10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176 fi
10177
10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180 fi
10181
10182 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10183
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10185 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10186 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10187 if eval \${$cacheid+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 int i;
10193 int
10194 main ()
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202 eval $cacheid=yes
10203 else
10204 eval $cacheid=no
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 fi
10209
10210
10211 CFLAGS="$xorg_testset_save_CFLAGS"
10212
10213 eval supported=\$$cacheid
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10215 $as_echo "$supported" >&6; }
10216 if test "$supported" = "yes" ; then
10217 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10218 found="yes"
10219 fi
10220 fi
10221
10222
10223 fi
10224
10225
10226
10227
10228
10229
10230
10231 CWARNFLAGS="$BASE_CFLAGS"
10232 if test "x$GCC" = xyes ; then
10233 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10234 fi
10235
10236
10237
10238
10239
10240
10241
10242
10243 # Check whether --enable-strict-compilation was given.
10244 if test "${enable_strict_compilation+set}" = set; then :
10245 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10246 else
10247 STRICT_COMPILE=no
10248 fi
10249
10250
10251
10252
10253
10254
10255 STRICT_CFLAGS=""
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 xorg_testset_save_CFLAGS="$CFLAGS"
10270
10271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int i;
10281 _ACEOF
10282 if ac_fn_c_try_compile "$LINENO"; then :
10283 xorg_cv_cc_flag_unknown_warning_option=yes
10284 else
10285 xorg_cv_cc_flag_unknown_warning_option=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10292 CFLAGS="$xorg_testset_save_CFLAGS"
10293 fi
10294
10295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298 fi
10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 int i;
10308 _ACEOF
10309 if ac_fn_c_try_compile "$LINENO"; then :
10310 xorg_cv_cc_flag_unused_command_line_argument=yes
10311 else
10312 xorg_cv_cc_flag_unused_command_line_argument=no
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10319 CFLAGS="$xorg_testset_save_CFLAGS"
10320 fi
10321
10322 found="no"
10323
10324 if test $found = "no" ; then
10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327 fi
10328
10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331 fi
10332
10333 CFLAGS="$CFLAGS -pedantic"
10334
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10336 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10337 cacheid=xorg_cv_cc_flag__pedantic
10338 if eval \${$cacheid+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int i;
10344 int
10345 main ()
10346 {
10347
10348 ;
10349 return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 eval $cacheid=yes
10354 else
10355 eval $cacheid=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 fi
10360
10361
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364 eval supported=\$$cacheid
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366 $as_echo "$supported" >&6; }
10367 if test "$supported" = "yes" ; then
10368 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10369 found="yes"
10370 fi
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 int i;
10399 _ACEOF
10400 if ac_fn_c_try_compile "$LINENO"; then :
10401 xorg_cv_cc_flag_unknown_warning_option=yes
10402 else
10403 xorg_cv_cc_flag_unknown_warning_option=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 fi
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10410 CFLAGS="$xorg_testset_save_CFLAGS"
10411 fi
10412
10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 fi
10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 int i;
10426 _ACEOF
10427 if ac_fn_c_try_compile "$LINENO"; then :
10428 xorg_cv_cc_flag_unused_command_line_argument=yes
10429 else
10430 xorg_cv_cc_flag_unused_command_line_argument=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10437 CFLAGS="$xorg_testset_save_CFLAGS"
10438 fi
10439
10440 found="no"
10441
10442 if test $found = "no" ; then
10443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445 fi
10446
10447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449 fi
10450
10451 CFLAGS="$CFLAGS -Werror"
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10454 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10455 cacheid=xorg_cv_cc_flag__Werror
10456 if eval \${$cacheid+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 int i;
10462 int
10463 main ()
10464 {
10465
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 eval $cacheid=yes
10472 else
10473 eval $cacheid=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 fi
10478
10479
10480 CFLAGS="$xorg_testset_save_CFLAGS"
10481
10482 eval supported=\$$cacheid
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10484 $as_echo "$supported" >&6; }
10485 if test "$supported" = "yes" ; then
10486 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10487 found="yes"
10488 fi
10489 fi
10490
10491 if test $found = "no" ; then
10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494 fi
10495
10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498 fi
10499
10500 CFLAGS="$CFLAGS -errwarn"
10501
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10503 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10504 cacheid=xorg_cv_cc_flag__errwarn
10505 if eval \${$cacheid+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 int
10512 main ()
10513 {
10514
10515 ;
10516 return 0;
10517 }
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 eval $cacheid=yes
10521 else
10522 eval $cacheid=no
10523 fi
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 fi
10527
10528
10529 CFLAGS="$xorg_testset_save_CFLAGS"
10530
10531 eval supported=\$$cacheid
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10533 $as_echo "$supported" >&6; }
10534 if test "$supported" = "yes" ; then
10535 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10536 found="yes"
10537 fi
10538 fi
10539
10540
10541
10542 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10543 # activate it with -Werror, so we add it here explicitly.
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 xorg_testset_save_CFLAGS="$CFLAGS"
10558
10559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"; then :
10571 xorg_cv_cc_flag_unknown_warning_option=yes
10572 else
10573 xorg_cv_cc_flag_unknown_warning_option=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10580 CFLAGS="$xorg_testset_save_CFLAGS"
10581 fi
10582
10583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586 fi
10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10595 int i;
10596 _ACEOF
10597 if ac_fn_c_try_compile "$LINENO"; then :
10598 xorg_cv_cc_flag_unused_command_line_argument=yes
10599 else
10600 xorg_cv_cc_flag_unused_command_line_argument=no
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10607 CFLAGS="$xorg_testset_save_CFLAGS"
10608 fi
10609
10610 found="no"
10611
10612 if test $found = "no" ; then
10613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10615 fi
10616
10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10619 fi
10620
10621 CFLAGS="$CFLAGS -Werror=attributes"
10622
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10624 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10625 cacheid=xorg_cv_cc_flag__Werror_attributes
10626 if eval \${$cacheid+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 int i;
10632 int
10633 main ()
10634 {
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 eval $cacheid=yes
10642 else
10643 eval $cacheid=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 fi
10648
10649
10650 CFLAGS="$xorg_testset_save_CFLAGS"
10651
10652 eval supported=\$$cacheid
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10654 $as_echo "$supported" >&6; }
10655 if test "$supported" = "yes" ; then
10656 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10657 found="yes"
10658 fi
10659 fi
10660
10661
10662
10663 if test "x$STRICT_COMPILE" = "xyes"; then
10664 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10665 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10666 fi
10667
10668
10669
10670
10671
10672
10673 cat >>confdefs.h <<_ACEOF
10674 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10675 _ACEOF
10676
10677 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10678 if test "x$PVM" = "x"; then
10679 PVM="0"
10680 fi
10681
10682 cat >>confdefs.h <<_ACEOF
10683 #define PACKAGE_VERSION_MINOR $PVM
10684 _ACEOF
10685
10686 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10687 if test "x$PVP" = "x"; then
10688 PVP="0"
10689 fi
10690
10691 cat >>confdefs.h <<_ACEOF
10692 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10693 _ACEOF
10694
10695
10696
10697 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10698 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10699 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10700 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10701
10702
10703
10704
10705 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10706 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10707 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10708 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10709 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10710
10711
10712
10713
10714
10715
10716 if test x$APP_MAN_SUFFIX = x ; then
10717 APP_MAN_SUFFIX=1
10718 fi
10719 if test x$APP_MAN_DIR = x ; then
10720 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10721 fi
10722
10723 if test x$LIB_MAN_SUFFIX = x ; then
10724 LIB_MAN_SUFFIX=3
10725 fi
10726 if test x$LIB_MAN_DIR = x ; then
10727 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10728 fi
10729
10730 if test x$FILE_MAN_SUFFIX = x ; then
10731 case $host_os in
10732 # Solaris 2.0 - 11 use SysV man page sections
10733 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10734 *) FILE_MAN_SUFFIX=5 ;;
10735 esac
10736 fi
10737 if test x$FILE_MAN_DIR = x ; then
10738 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10739 fi
10740
10741 if test x$MISC_MAN_SUFFIX = x ; then
10742 case $host_os in
10743 # Solaris 2.0 - 11 use SysV man page sections
10744 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10745 *) MISC_MAN_SUFFIX=7 ;;
10746 esac
10747 fi
10748 if test x$MISC_MAN_DIR = x ; then
10749 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10750 fi
10751
10752 if test x$DRIVER_MAN_SUFFIX = x ; then
10753 case $host_os in
10754 # Solaris 2.0 - 11 use SysV man page sections
10755 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10756 *) DRIVER_MAN_SUFFIX=4 ;;
10757 esac
10758 fi
10759 if test x$DRIVER_MAN_DIR = x ; then
10760 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10761 fi
10762
10763 if test x$ADMIN_MAN_SUFFIX = x ; then
10764 case $host_os in
10765 # Solaris 2.0 - 11 use SysV man page sections
10766 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10767 *) ADMIN_MAN_SUFFIX=8 ;;
10768 esac
10769 fi
10770 if test x$ADMIN_MAN_DIR = x ; then
10771 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10772 fi
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 XORG_MAN_PAGE="X Version 11"
10789
10790 MAN_SUBSTS="\
10791 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10792 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10793 -e 's|__xservername__|Xorg|g' \
10794 -e 's|__xconfigfile__|xorg.conf|g' \
10795 -e 's|__projectroot__|\$(prefix)|g' \
10796 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10797 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10798 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10799 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10800 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10801 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10802 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10803
10804
10805
10806 # Check whether --enable-silent-rules was given.
10807 if test "${enable_silent_rules+set}" = set; then :
10808 enableval=$enable_silent_rules;
10809 fi
10810
10811 case $enable_silent_rules in # (((
10812 yes) AM_DEFAULT_VERBOSITY=0;;
10813 no) AM_DEFAULT_VERBOSITY=1;;
10814 *) AM_DEFAULT_VERBOSITY=0;;
10815 esac
10816 am_make=${MAKE-make}
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10819 if ${am_cv_make_support_nested_variables+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 if $as_echo 'TRUE=$(BAR$(V))
10823 BAR0=false
10824 BAR1=true
10825 V=1
10826 am__doit:
10827 @$(TRUE)
10828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10829 am_cv_make_support_nested_variables=yes
10830 else
10831 am_cv_make_support_nested_variables=no
10832 fi
10833 fi
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10836 if test $am_cv_make_support_nested_variables = yes; then
10837 AM_V='$(V)'
10838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10839 else
10840 AM_V=$AM_DEFAULT_VERBOSITY
10841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10842 fi
10843 AM_BACKSLASH='\'
10844
10845
10846
10847 # Internationalization & localization support
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10849 $as_echo_n "checking for library containing gettext... " >&6; }
10850 if ${ac_cv_search_gettext+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_func_search_save_LIBS=$LIBS
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char gettext ();
10864 int
10865 main ()
10866 {
10867 return gettext ();
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 for ac_lib in '' intl; do
10873 if test -z "$ac_lib"; then
10874 ac_res="none required"
10875 else
10876 ac_res=-l$ac_lib
10877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10878 fi
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_search_gettext=$ac_res
10881 fi
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext
10884 if ${ac_cv_search_gettext+:} false; then :
10885 break
10886 fi
10887 done
10888 if ${ac_cv_search_gettext+:} false; then :
10889
10890 else
10891 ac_cv_search_gettext=no
10892 fi
10893 rm conftest.$ac_ext
10894 LIBS=$ac_func_search_save_LIBS
10895 fi
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10897 $as_echo "$ac_cv_search_gettext" >&6; }
10898 ac_res=$ac_cv_search_gettext
10899 if test "$ac_res" != no; then :
10900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10901 USE_GETTEXT="yes"
10902 else
10903 USE_GETTEXT="no"
10904 fi
10905
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10907 $as_echo_n "checking where to install localized messages... " >&6; }
10908
10909 # Check whether --with-localedir was given.
10910 if test "${with_localedir+set}" = set; then :
10911 withval=$with_localedir; LOCALEDIR=${withval}
10912 else
10913 LOCALEDIR=${datadir}/locale
10914 fi
10915
10916
10917 prefix_NONE=
10918 exec_prefix_NONE=
10919 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
10920 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
10921 eval ax_define_dir="\"$LOCALEDIR\""
10922 eval ax_define_dir="\"$ax_define_dir\""
10923 LOCALEDIR="$ax_define_dir"
10924
10925
10926 cat >>confdefs.h <<_ACEOF
10927 #define LOCALEDIR "$ax_define_dir"
10928 _ACEOF
10929
10930 test "$prefix_NONE" && prefix=NONE
10931 test "$exec_prefix_NONE" && exec_prefix=NONE
10932
10933 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10935 $as_echo "nowhere" >&6; }
10936 USE_GETTEXT="no"
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10939 $as_echo "$LOCALEDIR" >&6; }
10940 fi
10941
10942 if test "x$USE_GETTEXT" = "xyes" ; then
10943
10944 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
10945
10946 fi
10947 if test "x$USE_GETTEXT" = "xyes"; then
10948 USE_GETTEXT_TRUE=
10949 USE_GETTEXT_FALSE='#'
10950 else
10951 USE_GETTEXT_TRUE='#'
10952 USE_GETTEXT_FALSE=
10953 fi
10954
10955
10956
10957 ### How to check load average on various OS'es:
10958
10959 # getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later
10960 # BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h>
10961 for ac_func in getloadavg
10962 do :
10963 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10964 if test "x$ac_cv_func_getloadavg" = xyes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_GETLOADAVG 1
10967 _ACEOF
10968 for ac_header in sys/loadavg.h
10969 do :
10970 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
10971 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_SYS_LOADAVG_H 1
10974 _ACEOF
10975
10976 fi
10977
10978 done
10979
10980 fi
10981 done
10982
10983
10984 # Checks for pkg-config packages
10985
10986 pkg_failed=no
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5
10988 $as_echo_n "checking for XLOAD... " >&6; }
10989
10990 if test -n "$XLOAD_CFLAGS"; then
10991 pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS"
10992 elif test -n "$PKG_CONFIG"; then
10993 if test -n "$PKG_CONFIG" && \
10994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
10995 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; }; then
10999 pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11000 test "x$?" != "x0" && pkg_failed=yes
11001 else
11002 pkg_failed=yes
11003 fi
11004 else
11005 pkg_failed=untried
11006 fi
11007 if test -n "$XLOAD_LIBS"; then
11008 pkg_cv_XLOAD_LIBS="$XLOAD_LIBS"
11009 elif test -n "$PKG_CONFIG"; then
11010 if test -n "$PKG_CONFIG" && \
11011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11012 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11013 ac_status=$?
11014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11015 test $ac_status = 0; }; then
11016 pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11017 test "x$?" != "x0" && pkg_failed=yes
11018 else
11019 pkg_failed=yes
11020 fi
11021 else
11022 pkg_failed=untried
11023 fi
11024
11025
11026
11027 if test $pkg_failed = yes; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030
11031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11032 _pkg_short_errors_supported=yes
11033 else
11034 _pkg_short_errors_supported=no
11035 fi
11036 if test $_pkg_short_errors_supported = yes; then
11037 XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11038 else
11039 XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11040 fi
11041 # Put the nasty error message in config.log where it belongs
11042 echo "$XLOAD_PKG_ERRORS" >&5
11043
11044 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
11045
11046 $XLOAD_PKG_ERRORS
11047
11048 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11049 installed software in a non-standard prefix.
11050
11051 Alternatively, you may set the environment variables XLOAD_CFLAGS
11052 and XLOAD_LIBS to avoid the need to call pkg-config.
11053 See the pkg-config man page for more details." "$LINENO" 5
11054 elif test $pkg_failed = untried; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11059 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11060 is in your PATH or set the PKG_CONFIG environment variable to the full
11061 path to pkg-config.
11062
11063 Alternatively, you may set the environment variables XLOAD_CFLAGS
11064 and XLOAD_LIBS to avoid the need to call pkg-config.
11065 See the pkg-config man page for more details.
11066
11067 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11068 See \`config.log' for more details" "$LINENO" 5; }
11069 else
11070 XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS
11071 XLOAD_LIBS=$pkg_cv_XLOAD_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11073 $as_echo "yes" >&6; }
11074
11075 fi
11076
11077
11078 pkg_failed=no
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11080 $as_echo_n "checking for APPDEFS... " >&6; }
11081
11082 if test -n "$APPDEFS_CFLAGS"; then
11083 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11084 elif test -n "$PKG_CONFIG"; then
11085 if test -n "$PKG_CONFIG" && \
11086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11087 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11088 ac_status=$?
11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090 test $ac_status = 0; }; then
11091 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11092 test "x$?" != "x0" && pkg_failed=yes
11093 else
11094 pkg_failed=yes
11095 fi
11096 else
11097 pkg_failed=untried
11098 fi
11099 if test -n "$APPDEFS_LIBS"; then
11100 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11101 elif test -n "$PKG_CONFIG"; then
11102 if test -n "$PKG_CONFIG" && \
11103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11104 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11105 ac_status=$?
11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107 test $ac_status = 0; }; then
11108 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11109 test "x$?" != "x0" && pkg_failed=yes
11110 else
11111 pkg_failed=yes
11112 fi
11113 else
11114 pkg_failed=untried
11115 fi
11116
11117
11118
11119 if test $pkg_failed = yes; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 $as_echo "no" >&6; }
11122
11123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11124 _pkg_short_errors_supported=yes
11125 else
11126 _pkg_short_errors_supported=no
11127 fi
11128 if test $_pkg_short_errors_supported = yes; then
11129 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11130 else
11131 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11132 fi
11133 # Put the nasty error message in config.log where it belongs
11134 echo "$APPDEFS_PKG_ERRORS" >&5
11135
11136 as_fn_error $? "Package requirements (xt) were not met:
11137
11138 $APPDEFS_PKG_ERRORS
11139
11140 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11141 installed software in a non-standard prefix.
11142
11143 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11144 and APPDEFS_LIBS to avoid the need to call pkg-config.
11145 See the pkg-config man page for more details." "$LINENO" 5
11146 elif test $pkg_failed = untried; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11151 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11152 is in your PATH or set the PKG_CONFIG environment variable to the full
11153 path to pkg-config.
11154
11155 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11156 and APPDEFS_LIBS to avoid the need to call pkg-config.
11157 See the pkg-config man page for more details.
11158
11159 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11160 See \`config.log' for more details" "$LINENO" 5; }
11161 else
11162 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11163 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; }
11166
11167 fi
11168 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11169
11170 # Check whether --with-appdefaultdir was given.
11171 if test "${with_appdefaultdir+set}" = set; then :
11172 withval=$with_appdefaultdir; appdefaultdir="$withval"
11173 else
11174 appdefaultdir="${xt_appdefaultdir}"
11175 fi
11176
11177
11178
11179
11180 ac_config_files="$ac_config_files Makefile man/Makefile"
11181
11182 cat >confcache <<\_ACEOF
11183 # This file is a shell script that caches the results of configure
11184 # tests run on this system so they can be shared between configure
11185 # scripts and configure runs, see configure's option --config-cache.
11186 # It is not useful on other systems. If it contains results you don't
11187 # want to keep, you may remove or edit it.
11188 #
11189 # config.status only pays attention to the cache file if you give it
11190 # the --recheck option to rerun configure.
11191 #
11192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11194 # following values.
11195
11196 _ACEOF
11197
11198 # The following way of writing the cache mishandles newlines in values,
11199 # but we know of no workaround that is simple, portable, and efficient.
11200 # So, we kill variables containing newlines.
11201 # Ultrix sh set writes to stderr and can't be redirected directly,
11202 # and sets the high bit in the cache file unless we assign to the vars.
11203 (
11204 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11205 eval ac_val=\$$ac_var
11206 case $ac_val in #(
11207 *${as_nl}*)
11208 case $ac_var in #(
11209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11211 esac
11212 case $ac_var in #(
11213 _ | IFS | as_nl) ;; #(
11214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11215 *) { eval $ac_var=; unset $ac_var;} ;;
11216 esac ;;
11217 esac
11218 done
11219
11220 (set) 2>&1 |
11221 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11222 *${as_nl}ac_space=\ *)
11223 # `set' does not quote correctly, so add quotes: double-quote
11224 # substitution turns \\\\ into \\, and sed turns \\ into \.
11225 sed -n \
11226 "s/'/'\\\\''/g;
11227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11228 ;; #(
11229 *)
11230 # `set' quotes correctly as required by POSIX, so do not add quotes.
11231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11232 ;;
11233 esac |
11234 sort
11235 ) |
11236 sed '
11237 /^ac_cv_env_/b end
11238 t clear
11239 :clear
11240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11241 t end
11242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11243 :end' >>confcache
11244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11245 if test -w "$cache_file"; then
11246 if test "x$cache_file" != "x/dev/null"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11248 $as_echo "$as_me: updating cache $cache_file" >&6;}
11249 if test ! -f "$cache_file" || test -h "$cache_file"; then
11250 cat confcache >"$cache_file"
11251 else
11252 case $cache_file in #(
11253 */* | ?:*)
11254 mv -f confcache "$cache_file"$$ &&
11255 mv -f "$cache_file"$$ "$cache_file" ;; #(
11256 *)
11257 mv -f confcache "$cache_file" ;;
11258 esac
11259 fi
11260 fi
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11263 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11264 fi
11265 fi
11266 rm -f confcache
11267
11268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11269 # Let make expand exec_prefix.
11270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11271
11272 DEFS=-DHAVE_CONFIG_H
11273
11274 ac_libobjs=
11275 ac_ltlibobjs=
11276 U=
11277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11278 # 1. Remove the extension, and $U if already installed.
11279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11282 # will be set to the directory where LIBOBJS objects are built.
11283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11285 done
11286 LIBOBJS=$ac_libobjs
11287
11288 LTLIBOBJS=$ac_ltlibobjs
11289
11290
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11292 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11293 if test -n "$am_sleep_pid"; then
11294 # Hide warnings about reused PIDs.
11295 wait $am_sleep_pid 2>/dev/null
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11298 $as_echo "done" >&6; }
11299 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11300 as_fn_error $? "conditional \"AMDEP\" was never defined.
11301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11302 fi
11303 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11304 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11306 fi
11307 if test -n "$EXEEXT"; then
11308 am__EXEEXT_TRUE=
11309 am__EXEEXT_FALSE='#'
11310 else
11311 am__EXEEXT_TRUE='#'
11312 am__EXEEXT_FALSE=
11313 fi
11314
11315 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11316 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11318 fi
11319
11320 : "${CONFIG_STATUS=./config.status}"
11321 ac_write_fail=0
11322 ac_clean_files_save=$ac_clean_files
11323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11326 as_write_fail=0
11327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11328 #! $SHELL
11329 # Generated by $as_me.
11330 # Run this file to recreate the current configuration.
11331 # Compiler output produced by configure, useful for debugging
11332 # configure, is in config.log if it exists.
11333
11334 debug=false
11335 ac_cs_recheck=false
11336 ac_cs_silent=false
11337
11338 SHELL=\${CONFIG_SHELL-$SHELL}
11339 export SHELL
11340 _ASEOF
11341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11342 ## -------------------- ##
11343 ## M4sh Initialization. ##
11344 ## -------------------- ##
11345
11346 # Be more Bourne compatible
11347 DUALCASE=1; export DUALCASE # for MKS sh
11348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11349 emulate sh
11350 NULLCMD=:
11351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11352 # is contrary to our usage. Disable this feature.
11353 alias -g '${1+"$@"}'='"$@"'
11354 setopt NO_GLOB_SUBST
11355 else
11356 case `(set -o) 2>/dev/null` in #(
11357 *posix*) :
11358 set -o posix ;; #(
11359 *) :
11360 ;;
11361 esac
11362 fi
11363
11364
11365 as_nl='
11366 '
11367 export as_nl
11368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11369 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11372 # Prefer a ksh shell builtin over an external printf program on Solaris,
11373 # but without wasting forks for bash or zsh.
11374 if test -z "$BASH_VERSION$ZSH_VERSION" \
11375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11376 as_echo='print -r --'
11377 as_echo_n='print -rn --'
11378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11379 as_echo='printf %s\n'
11380 as_echo_n='printf %s'
11381 else
11382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11384 as_echo_n='/usr/ucb/echo -n'
11385 else
11386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11387 as_echo_n_body='eval
11388 arg=$1;
11389 case $arg in #(
11390 *"$as_nl"*)
11391 expr "X$arg" : "X\\(.*\\)$as_nl";
11392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11393 esac;
11394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11395 '
11396 export as_echo_n_body
11397 as_echo_n='sh -c $as_echo_n_body as_echo'
11398 fi
11399 export as_echo_body
11400 as_echo='sh -c $as_echo_body as_echo'
11401 fi
11402
11403 # The user is always right.
11404 if test "${PATH_SEPARATOR+set}" != set; then
11405 PATH_SEPARATOR=:
11406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11408 PATH_SEPARATOR=';'
11409 }
11410 fi
11411
11412
11413 # IFS
11414 # We need space, tab and new line, in precisely that order. Quoting is
11415 # there to prevent editors from complaining about space-tab.
11416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11417 # splitting by setting IFS to empty value.)
11418 IFS=" "" $as_nl"
11419
11420 # Find who we are. Look in the path if we contain no directory separator.
11421 as_myself=
11422 case $0 in #((
11423 *[\\/]* ) as_myself=$0 ;;
11424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11426 do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
11429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11430 done
11431 IFS=$as_save_IFS
11432
11433 ;;
11434 esac
11435 # We did not find ourselves, most probably we were run as `sh COMMAND'
11436 # in which case we are not to be found in the path.
11437 if test "x$as_myself" = x; then
11438 as_myself=$0
11439 fi
11440 if test ! -f "$as_myself"; then
11441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11442 exit 1
11443 fi
11444
11445 # Unset variables that we do not need and which cause bugs (e.g. in
11446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11447 # suppresses any "Segmentation fault" message there. '((' could
11448 # trigger a bug in pdksh 5.2.14.
11449 for as_var in BASH_ENV ENV MAIL MAILPATH
11450 do eval test x\${$as_var+set} = xset \
11451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11452 done
11453 PS1='$ '
11454 PS2='> '
11455 PS4='+ '
11456
11457 # NLS nuisances.
11458 LC_ALL=C
11459 export LC_ALL
11460 LANGUAGE=C
11461 export LANGUAGE
11462
11463 # CDPATH.
11464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11465
11466
11467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11468 # ----------------------------------------
11469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11471 # script with STATUS, using 1 if that was 0.
11472 as_fn_error ()
11473 {
11474 as_status=$1; test $as_status -eq 0 && as_status=1
11475 if test "$4"; then
11476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11478 fi
11479 $as_echo "$as_me: error: $2" >&2
11480 as_fn_exit $as_status
11481 } # as_fn_error
11482
11483
11484 # as_fn_set_status STATUS
11485 # -----------------------
11486 # Set $? to STATUS, without forking.
11487 as_fn_set_status ()
11488 {
11489 return $1
11490 } # as_fn_set_status
11491
11492 # as_fn_exit STATUS
11493 # -----------------
11494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11495 as_fn_exit ()
11496 {
11497 set +e
11498 as_fn_set_status $1
11499 exit $1
11500 } # as_fn_exit
11501
11502 # as_fn_unset VAR
11503 # ---------------
11504 # Portably unset VAR.
11505 as_fn_unset ()
11506 {
11507 { eval $1=; unset $1;}
11508 }
11509 as_unset=as_fn_unset
11510 # as_fn_append VAR VALUE
11511 # ----------------------
11512 # Append the text in VALUE to the end of the definition contained in VAR. Take
11513 # advantage of any shell optimizations that allow amortized linear growth over
11514 # repeated appends, instead of the typical quadratic growth present in naive
11515 # implementations.
11516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11517 eval 'as_fn_append ()
11518 {
11519 eval $1+=\$2
11520 }'
11521 else
11522 as_fn_append ()
11523 {
11524 eval $1=\$$1\$2
11525 }
11526 fi # as_fn_append
11527
11528 # as_fn_arith ARG...
11529 # ------------------
11530 # Perform arithmetic evaluation on the ARGs, and store the result in the
11531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11532 # must be portable across $(()) and expr.
11533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11534 eval 'as_fn_arith ()
11535 {
11536 as_val=$(( $* ))
11537 }'
11538 else
11539 as_fn_arith ()
11540 {
11541 as_val=`expr "$@" || test $? -eq 1`
11542 }
11543 fi # as_fn_arith
11544
11545
11546 if expr a : '\(a\)' >/dev/null 2>&1 &&
11547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11548 as_expr=expr
11549 else
11550 as_expr=false
11551 fi
11552
11553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11554 as_basename=basename
11555 else
11556 as_basename=false
11557 fi
11558
11559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11560 as_dirname=dirname
11561 else
11562 as_dirname=false
11563 fi
11564
11565 as_me=`$as_basename -- "$0" ||
11566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11567 X"$0" : 'X\(//\)$' \| \
11568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11569 $as_echo X/"$0" |
11570 sed '/^.*\/\([^/][^/]*\)\/*$/{
11571 s//\1/
11572 q
11573 }
11574 /^X\/\(\/\/\)$/{
11575 s//\1/
11576 q
11577 }
11578 /^X\/\(\/\).*/{
11579 s//\1/
11580 q
11581 }
11582 s/.*/./; q'`
11583
11584 # Avoid depending upon Character Ranges.
11585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11588 as_cr_digits='0123456789'
11589 as_cr_alnum=$as_cr_Letters$as_cr_digits
11590
11591 ECHO_C= ECHO_N= ECHO_T=
11592 case `echo -n x` in #(((((
11593 -n*)
11594 case `echo 'xy\c'` in
11595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11596 xy) ECHO_C='\c';;
11597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11598 ECHO_T=' ';;
11599 esac;;
11600 *)
11601 ECHO_N='-n';;
11602 esac
11603
11604 rm -f conf$$ conf$$.exe conf$$.file
11605 if test -d conf$$.dir; then
11606 rm -f conf$$.dir/conf$$.file
11607 else
11608 rm -f conf$$.dir
11609 mkdir conf$$.dir 2>/dev/null
11610 fi
11611 if (echo >conf$$.file) 2>/dev/null; then
11612 if ln -s conf$$.file conf$$ 2>/dev/null; then
11613 as_ln_s='ln -s'
11614 # ... but there are two gotchas:
11615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11617 # In both cases, we have to default to `cp -pR'.
11618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11619 as_ln_s='cp -pR'
11620 elif ln conf$$.file conf$$ 2>/dev/null; then
11621 as_ln_s=ln
11622 else
11623 as_ln_s='cp -pR'
11624 fi
11625 else
11626 as_ln_s='cp -pR'
11627 fi
11628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11629 rmdir conf$$.dir 2>/dev/null
11630
11631
11632 # as_fn_mkdir_p
11633 # -------------
11634 # Create "$as_dir" as a directory, including parents if necessary.
11635 as_fn_mkdir_p ()
11636 {
11637
11638 case $as_dir in #(
11639 -*) as_dir=./$as_dir;;
11640 esac
11641 test -d "$as_dir" || eval $as_mkdir_p || {
11642 as_dirs=
11643 while :; do
11644 case $as_dir in #(
11645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11646 *) as_qdir=$as_dir;;
11647 esac
11648 as_dirs="'$as_qdir' $as_dirs"
11649 as_dir=`$as_dirname -- "$as_dir" ||
11650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11651 X"$as_dir" : 'X\(//\)[^/]' \| \
11652 X"$as_dir" : 'X\(//\)$' \| \
11653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11654 $as_echo X"$as_dir" |
11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11656 s//\1/
11657 q
11658 }
11659 /^X\(\/\/\)[^/].*/{
11660 s//\1/
11661 q
11662 }
11663 /^X\(\/\/\)$/{
11664 s//\1/
11665 q
11666 }
11667 /^X\(\/\).*/{
11668 s//\1/
11669 q
11670 }
11671 s/.*/./; q'`
11672 test -d "$as_dir" && break
11673 done
11674 test -z "$as_dirs" || eval "mkdir $as_dirs"
11675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11676
11677
11678 } # as_fn_mkdir_p
11679 if mkdir -p . 2>/dev/null; then
11680 as_mkdir_p='mkdir -p "$as_dir"'
11681 else
11682 test -d ./-p && rmdir ./-p
11683 as_mkdir_p=false
11684 fi
11685
11686
11687 # as_fn_executable_p FILE
11688 # -----------------------
11689 # Test if FILE is an executable regular file.
11690 as_fn_executable_p ()
11691 {
11692 test -f "$1" && test -x "$1"
11693 } # as_fn_executable_p
11694 as_test_x='test -x'
11695 as_executable_p=as_fn_executable_p
11696
11697 # Sed expression to map a string onto a valid CPP name.
11698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11699
11700 # Sed expression to map a string onto a valid variable name.
11701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11702
11703
11704 exec 6>&1
11705 ## ----------------------------------- ##
11706 ## Main body of $CONFIG_STATUS script. ##
11707 ## ----------------------------------- ##
11708 _ASEOF
11709 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11710
11711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11712 # Save the log message, to keep $0 and so on meaningful, and to
11713 # report actual input values of CONFIG_FILES etc. instead of their
11714 # values after options handling.
11715 ac_log="
11716 This file was extended by xload $as_me 1.1.3, which was
11717 generated by GNU Autoconf 2.69. Invocation command line was
11718
11719 CONFIG_FILES = $CONFIG_FILES
11720 CONFIG_HEADERS = $CONFIG_HEADERS
11721 CONFIG_LINKS = $CONFIG_LINKS
11722 CONFIG_COMMANDS = $CONFIG_COMMANDS
11723 $ $0 $@
11724
11725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11726 "
11727
11728 _ACEOF
11729
11730 case $ac_config_files in *"
11731 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11732 esac
11733
11734 case $ac_config_headers in *"
11735 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11736 esac
11737
11738
11739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11740 # Files that config.status was made for.
11741 config_files="$ac_config_files"
11742 config_headers="$ac_config_headers"
11743 config_commands="$ac_config_commands"
11744
11745 _ACEOF
11746
11747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11748 ac_cs_usage="\
11749 \`$as_me' instantiates files and other configuration actions
11750 from templates according to the current configuration. Unless the files
11751 and actions are specified as TAGs, all are instantiated by default.
11752
11753 Usage: $0 [OPTION]... [TAG]...
11754
11755 -h, --help print this help, then exit
11756 -V, --version print version number and configuration settings, then exit
11757 --config print configuration, then exit
11758 -q, --quiet, --silent
11759 do not print progress messages
11760 -d, --debug don't remove temporary files
11761 --recheck update $as_me by reconfiguring in the same conditions
11762 --file=FILE[:TEMPLATE]
11763 instantiate the configuration file FILE
11764 --header=FILE[:TEMPLATE]
11765 instantiate the configuration header FILE
11766
11767 Configuration files:
11768 $config_files
11769
11770 Configuration headers:
11771 $config_headers
11772
11773 Configuration commands:
11774 $config_commands
11775
11776 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11777
11778 _ACEOF
11779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11781 ac_cs_version="\\
11782 xload config.status 1.1.3
11783 configured by $0, generated by GNU Autoconf 2.69,
11784 with options \\"\$ac_cs_config\\"
11785
11786 Copyright (C) 2012 Free Software Foundation, Inc.
11787 This config.status script is free software; the Free Software Foundation
11788 gives unlimited permission to copy, distribute and modify it."
11789
11790 ac_pwd='$ac_pwd'
11791 srcdir='$srcdir'
11792 INSTALL='$INSTALL'
11793 MKDIR_P='$MKDIR_P'
11794 AWK='$AWK'
11795 test -n "\$AWK" || AWK=awk
11796 _ACEOF
11797
11798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11799 # The default lists apply if the user does not specify any file.
11800 ac_need_defaults=:
11801 while test $# != 0
11802 do
11803 case $1 in
11804 --*=?*)
11805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11807 ac_shift=:
11808 ;;
11809 --*=)
11810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11811 ac_optarg=
11812 ac_shift=:
11813 ;;
11814 *)
11815 ac_option=$1
11816 ac_optarg=$2
11817 ac_shift=shift
11818 ;;
11819 esac
11820
11821 case $ac_option in
11822 # Handling of the options.
11823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11824 ac_cs_recheck=: ;;
11825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11826 $as_echo "$ac_cs_version"; exit ;;
11827 --config | --confi | --conf | --con | --co | --c )
11828 $as_echo "$ac_cs_config"; exit ;;
11829 --debug | --debu | --deb | --de | --d | -d )
11830 debug=: ;;
11831 --file | --fil | --fi | --f )
11832 $ac_shift
11833 case $ac_optarg in
11834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11835 '') as_fn_error $? "missing file argument" ;;
11836 esac
11837 as_fn_append CONFIG_FILES " '$ac_optarg'"
11838 ac_need_defaults=false;;
11839 --header | --heade | --head | --hea )
11840 $ac_shift
11841 case $ac_optarg in
11842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11843 esac
11844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11845 ac_need_defaults=false;;
11846 --he | --h)
11847 # Conflict between --help and --header
11848 as_fn_error $? "ambiguous option: \`$1'
11849 Try \`$0 --help' for more information.";;
11850 --help | --hel | -h )
11851 $as_echo "$ac_cs_usage"; exit ;;
11852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11854 ac_cs_silent=: ;;
11855
11856 # This is an error.
11857 -*) as_fn_error $? "unrecognized option: \`$1'
11858 Try \`$0 --help' for more information." ;;
11859
11860 *) as_fn_append ac_config_targets " $1"
11861 ac_need_defaults=false ;;
11862
11863 esac
11864 shift
11865 done
11866
11867 ac_configure_extra_args=
11868
11869 if $ac_cs_silent; then
11870 exec 6>/dev/null
11871 ac_configure_extra_args="$ac_configure_extra_args --silent"
11872 fi
11873
11874 _ACEOF
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 if \$ac_cs_recheck; then
11877 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11878 shift
11879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11880 CONFIG_SHELL='$SHELL'
11881 export CONFIG_SHELL
11882 exec "\$@"
11883 fi
11884
11885 _ACEOF
11886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11887 exec 5>>config.log
11888 {
11889 echo
11890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11891 ## Running $as_me. ##
11892 _ASBOX
11893 $as_echo "$ac_log"
11894 } >&5
11895
11896 _ACEOF
11897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11898 #
11899 # INIT-COMMANDS
11900 #
11901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11902
11903 _ACEOF
11904
11905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11906
11907 # Handling of arguments.
11908 for ac_config_target in $ac_config_targets
11909 do
11910 case $ac_config_target in
11911 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11912 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11914 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11915
11916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11917 esac
11918 done
11919
11920
11921 # If the user did not use the arguments to specify the items to instantiate,
11922 # then the envvar interface is used. Set only those that are not.
11923 # We use the long form for the default assignment because of an extremely
11924 # bizarre bug on SunOS 4.1.3.
11925 if $ac_need_defaults; then
11926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11929 fi
11930
11931 # Have a temporary directory for convenience. Make it in the build tree
11932 # simply because there is no reason against having it here, and in addition,
11933 # creating and moving files from /tmp can sometimes cause problems.
11934 # Hook for its removal unless debugging.
11935 # Note that there is a small window in which the directory will not be cleaned:
11936 # after its creation but before its name has been assigned to `$tmp'.
11937 $debug ||
11938 {
11939 tmp= ac_tmp=
11940 trap 'exit_status=$?
11941 : "${ac_tmp:=$tmp}"
11942 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11943 ' 0
11944 trap 'as_fn_exit 1' 1 2 13 15
11945 }
11946 # Create a (secure) tmp directory for tmp files.
11947
11948 {
11949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11950 test -d "$tmp"
11951 } ||
11952 {
11953 tmp=./conf$$-$RANDOM
11954 (umask 077 && mkdir "$tmp")
11955 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11956 ac_tmp=$tmp
11957
11958 # Set up the scripts for CONFIG_FILES section.
11959 # No need to generate them if there are no CONFIG_FILES.
11960 # This happens for instance with `./config.status config.h'.
11961 if test -n "$CONFIG_FILES"; then
11962
11963
11964 ac_cr=`echo X | tr X '\015'`
11965 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11966 # But we know of no other shell where ac_cr would be empty at this
11967 # point, so we can use a bashism as a fallback.
11968 if test "x$ac_cr" = x; then
11969 eval ac_cr=\$\'\\r\'
11970 fi
11971 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11972 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11973 ac_cs_awk_cr='\\r'
11974 else
11975 ac_cs_awk_cr=$ac_cr
11976 fi
11977
11978 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11979 _ACEOF
11980
11981
11982 {
11983 echo "cat >conf$$subs.awk <<_ACEOF" &&
11984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11985 echo "_ACEOF"
11986 } >conf$$subs.sh ||
11987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11989 ac_delim='%!_!# '
11990 for ac_last_try in false false false false false :; do
11991 . ./conf$$subs.sh ||
11992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11993
11994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11995 if test $ac_delim_n = $ac_delim_num; then
11996 break
11997 elif $ac_last_try; then
11998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11999 else
12000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12001 fi
12002 done
12003 rm -f conf$$subs.sh
12004
12005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12006 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12007 _ACEOF
12008 sed -n '
12009 h
12010 s/^/S["/; s/!.*/"]=/
12011 p
12012 g
12013 s/^[^!]*!//
12014 :repl
12015 t repl
12016 s/'"$ac_delim"'$//
12017 t delim
12018 :nl
12019 h
12020 s/\(.\{148\}\)..*/\1/
12021 t more1
12022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12023 p
12024 n
12025 b repl
12026 :more1
12027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12028 p
12029 g
12030 s/.\{148\}//
12031 t nl
12032 :delim
12033 h
12034 s/\(.\{148\}\)..*/\1/
12035 t more2
12036 s/["\\]/\\&/g; s/^/"/; s/$/"/
12037 p
12038 b
12039 :more2
12040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12041 p
12042 g
12043 s/.\{148\}//
12044 t delim
12045 ' <conf$$subs.awk | sed '
12046 /^[^""]/{
12047 N
12048 s/\n//
12049 }
12050 ' >>$CONFIG_STATUS || ac_write_fail=1
12051 rm -f conf$$subs.awk
12052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053 _ACAWK
12054 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12055 for (key in S) S_is_set[key] = 1
12056 FS = ""
12057
12058 }
12059 {
12060 line = $ 0
12061 nfields = split(line, field, "@")
12062 substed = 0
12063 len = length(field[1])
12064 for (i = 2; i < nfields; i++) {
12065 key = field[i]
12066 keylen = length(key)
12067 if (S_is_set[key]) {
12068 value = S[key]
12069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12070 len += length(value) + length(field[++i])
12071 substed = 1
12072 } else
12073 len += 1 + keylen
12074 }
12075
12076 print line
12077 }
12078
12079 _ACAWK
12080 _ACEOF
12081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12082 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12084 else
12085 cat
12086 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12088 _ACEOF
12089
12090 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12091 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12092 # trailing colons and then remove the whole line if VPATH becomes empty
12093 # (actually we leave an empty line to preserve line numbers).
12094 if test "x$srcdir" = x.; then
12095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12096 h
12097 s///
12098 s/^/:/
12099 s/[ ]*$/:/
12100 s/:\$(srcdir):/:/g
12101 s/:\${srcdir}:/:/g
12102 s/:@srcdir@:/:/g
12103 s/^:*//
12104 s/:*$//
12105 x
12106 s/\(=[ ]*\).*/\1/
12107 G
12108 s/\n//
12109 s/^[^=]*=[ ]*$//
12110 }'
12111 fi
12112
12113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114 fi # test -n "$CONFIG_FILES"
12115
12116 # Set up the scripts for CONFIG_HEADERS section.
12117 # No need to generate them if there are no CONFIG_HEADERS.
12118 # This happens for instance with `./config.status Makefile'.
12119 if test -n "$CONFIG_HEADERS"; then
12120 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12121 BEGIN {
12122 _ACEOF
12123
12124 # Transform confdefs.h into an awk script `defines.awk', embedded as
12125 # here-document in config.status, that substitutes the proper values into
12126 # config.h.in to produce config.h.
12127
12128 # Create a delimiter string that does not exist in confdefs.h, to ease
12129 # handling of long lines.
12130 ac_delim='%!_!# '
12131 for ac_last_try in false false :; do
12132 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12133 if test -z "$ac_tt"; then
12134 break
12135 elif $ac_last_try; then
12136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12137 else
12138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12139 fi
12140 done
12141
12142 # For the awk script, D is an array of macro values keyed by name,
12143 # likewise P contains macro parameters if any. Preserve backslash
12144 # newline sequences.
12145
12146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12147 sed -n '
12148 s/.\{148\}/&'"$ac_delim"'/g
12149 t rset
12150 :rset
12151 s/^[ ]*#[ ]*define[ ][ ]*/ /
12152 t def
12153 d
12154 :def
12155 s/\\$//
12156 t bsnl
12157 s/["\\]/\\&/g
12158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12159 D["\1"]=" \3"/p
12160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12161 d
12162 :bsnl
12163 s/["\\]/\\&/g
12164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12165 D["\1"]=" \3\\\\\\n"\\/p
12166 t cont
12167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12168 t cont
12169 d
12170 :cont
12171 n
12172 s/.\{148\}/&'"$ac_delim"'/g
12173 t clear
12174 :clear
12175 s/\\$//
12176 t bsnlc
12177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12178 d
12179 :bsnlc
12180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12181 b cont
12182 ' <confdefs.h | sed '
12183 s/'"$ac_delim"'/"\\\
12184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12185
12186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12187 for (key in D) D_is_set[key] = 1
12188 FS = ""
12189 }
12190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12191 line = \$ 0
12192 split(line, arg, " ")
12193 if (arg[1] == "#") {
12194 defundef = arg[2]
12195 mac1 = arg[3]
12196 } else {
12197 defundef = substr(arg[1], 2)
12198 mac1 = arg[2]
12199 }
12200 split(mac1, mac2, "(") #)
12201 macro = mac2[1]
12202 prefix = substr(line, 1, index(line, defundef) - 1)
12203 if (D_is_set[macro]) {
12204 # Preserve the white space surrounding the "#".
12205 print prefix "define", macro P[macro] D[macro]
12206 next
12207 } else {
12208 # Replace #undef with comments. This is necessary, for example,
12209 # in the case of _POSIX_SOURCE, which is predefined and required
12210 # on some systems where configure will not decide to define it.
12211 if (defundef == "undef") {
12212 print "/*", prefix defundef, macro, "*/"
12213 next
12214 }
12215 }
12216 }
12217 { print }
12218 _ACAWK
12219 _ACEOF
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12222 fi # test -n "$CONFIG_HEADERS"
12223
12224
12225 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12226 shift
12227 for ac_tag
12228 do
12229 case $ac_tag in
12230 :[FHLC]) ac_mode=$ac_tag; continue;;
12231 esac
12232 case $ac_mode$ac_tag in
12233 :[FHL]*:*);;
12234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12235 :[FH]-) ac_tag=-:-;;
12236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12237 esac
12238 ac_save_IFS=$IFS
12239 IFS=:
12240 set x $ac_tag
12241 IFS=$ac_save_IFS
12242 shift
12243 ac_file=$1
12244 shift
12245
12246 case $ac_mode in
12247 :L) ac_source=$1;;
12248 :[FH])
12249 ac_file_inputs=
12250 for ac_f
12251 do
12252 case $ac_f in
12253 -) ac_f="$ac_tmp/stdin";;
12254 *) # Look for the file first in the build tree, then in the source tree
12255 # (if the path is not absolute). The absolute path cannot be DOS-style,
12256 # because $ac_f cannot contain `:'.
12257 test -f "$ac_f" ||
12258 case $ac_f in
12259 [\\/$]*) false;;
12260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12261 esac ||
12262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12263 esac
12264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12265 as_fn_append ac_file_inputs " '$ac_f'"
12266 done
12267
12268 # Let's still pretend it is `configure' which instantiates (i.e., don't
12269 # use $as_me), people would be surprised to read:
12270 # /* config.h. Generated by config.status. */
12271 configure_input='Generated from '`
12272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12273 `' by configure.'
12274 if test x"$ac_file" != x-; then
12275 configure_input="$ac_file. $configure_input"
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12277 $as_echo "$as_me: creating $ac_file" >&6;}
12278 fi
12279 # Neutralize special characters interpreted by sed in replacement strings.
12280 case $configure_input in #(
12281 *\&* | *\|* | *\\* )
12282 ac_sed_conf_input=`$as_echo "$configure_input" |
12283 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12284 *) ac_sed_conf_input=$configure_input;;
12285 esac
12286
12287 case $ac_tag in
12288 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12290 esac
12291 ;;
12292 esac
12293
12294 ac_dir=`$as_dirname -- "$ac_file" ||
12295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12296 X"$ac_file" : 'X\(//\)[^/]' \| \
12297 X"$ac_file" : 'X\(//\)$' \| \
12298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12299 $as_echo X"$ac_file" |
12300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12301 s//\1/
12302 q
12303 }
12304 /^X\(\/\/\)[^/].*/{
12305 s//\1/
12306 q
12307 }
12308 /^X\(\/\/\)$/{
12309 s//\1/
12310 q
12311 }
12312 /^X\(\/\).*/{
12313 s//\1/
12314 q
12315 }
12316 s/.*/./; q'`
12317 as_dir="$ac_dir"; as_fn_mkdir_p
12318 ac_builddir=.
12319
12320 case "$ac_dir" in
12321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12322 *)
12323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12324 # A ".." for each directory in $ac_dir_suffix.
12325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12326 case $ac_top_builddir_sub in
12327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12329 esac ;;
12330 esac
12331 ac_abs_top_builddir=$ac_pwd
12332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12333 # for backward compatibility:
12334 ac_top_builddir=$ac_top_build_prefix
12335
12336 case $srcdir in
12337 .) # We are building in place.
12338 ac_srcdir=.
12339 ac_top_srcdir=$ac_top_builddir_sub
12340 ac_abs_top_srcdir=$ac_pwd ;;
12341 [\\/]* | ?:[\\/]* ) # Absolute name.
12342 ac_srcdir=$srcdir$ac_dir_suffix;
12343 ac_top_srcdir=$srcdir
12344 ac_abs_top_srcdir=$srcdir ;;
12345 *) # Relative name.
12346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12347 ac_top_srcdir=$ac_top_build_prefix$srcdir
12348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12349 esac
12350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12351
12352
12353 case $ac_mode in
12354 :F)
12355 #
12356 # CONFIG_FILE
12357 #
12358
12359 case $INSTALL in
12360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12362 esac
12363 ac_MKDIR_P=$MKDIR_P
12364 case $MKDIR_P in
12365 [\\/$]* | ?:[\\/]* ) ;;
12366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12367 esac
12368 _ACEOF
12369
12370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12371 # If the template does not know about datarootdir, expand it.
12372 # FIXME: This hack should be removed a few years after 2.60.
12373 ac_datarootdir_hack=; ac_datarootdir_seen=
12374 ac_sed_dataroot='
12375 /datarootdir/ {
12376 p
12377 q
12378 }
12379 /@datadir@/p
12380 /@docdir@/p
12381 /@infodir@/p
12382 /@localedir@/p
12383 /@mandir@/p'
12384 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12385 *datarootdir*) ac_datarootdir_seen=yes;;
12386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12388 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12389 _ACEOF
12390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12391 ac_datarootdir_hack='
12392 s&@datadir@&$datadir&g
12393 s&@docdir@&$docdir&g
12394 s&@infodir@&$infodir&g
12395 s&@localedir@&$localedir&g
12396 s&@mandir@&$mandir&g
12397 s&\\\${datarootdir}&$datarootdir&g' ;;
12398 esac
12399 _ACEOF
12400
12401 # Neutralize VPATH when `$srcdir' = `.'.
12402 # Shell code in configure.ac might set extrasub.
12403 # FIXME: do we really want to maintain this feature?
12404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12405 ac_sed_extra="$ac_vpsub
12406 $extrasub
12407 _ACEOF
12408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12409 :t
12410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12411 s|@configure_input@|$ac_sed_conf_input|;t t
12412 s&@top_builddir@&$ac_top_builddir_sub&;t t
12413 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12414 s&@srcdir@&$ac_srcdir&;t t
12415 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12416 s&@top_srcdir@&$ac_top_srcdir&;t t
12417 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12418 s&@builddir@&$ac_builddir&;t t
12419 s&@abs_builddir@&$ac_abs_builddir&;t t
12420 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12421 s&@INSTALL@&$ac_INSTALL&;t t
12422 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12423 $ac_datarootdir_hack
12424 "
12425 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12427
12428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12433 which seems to be undefined. Please make sure it is defined" >&5
12434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12435 which seems to be undefined. Please make sure it is defined" >&2;}
12436
12437 rm -f "$ac_tmp/stdin"
12438 case $ac_file in
12439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12441 esac \
12442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12443 ;;
12444 :H)
12445 #
12446 # CONFIG_HEADER
12447 #
12448 if test x"$ac_file" != x-; then
12449 {
12450 $as_echo "/* $configure_input */" \
12451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12452 } >"$ac_tmp/config.h" \
12453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12457 else
12458 rm -f "$ac_file"
12459 mv "$ac_tmp/config.h" "$ac_file" \
12460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12461 fi
12462 else
12463 $as_echo "/* $configure_input */" \
12464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12465 || as_fn_error $? "could not create -" "$LINENO" 5
12466 fi
12467 # Compute "$ac_file"'s index in $config_headers.
12468 _am_arg="$ac_file"
12469 _am_stamp_count=1
12470 for _am_header in $config_headers :; do
12471 case $_am_header in
12472 $_am_arg | $_am_arg:* )
12473 break ;;
12474 * )
12475 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12476 esac
12477 done
12478 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12479 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12480 X"$_am_arg" : 'X\(//\)[^/]' \| \
12481 X"$_am_arg" : 'X\(//\)$' \| \
12482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12483 $as_echo X"$_am_arg" |
12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12485 s//\1/
12486 q
12487 }
12488 /^X\(\/\/\)[^/].*/{
12489 s//\1/
12490 q
12491 }
12492 /^X\(\/\/\)$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\).*/{
12497 s//\1/
12498 q
12499 }
12500 s/.*/./; q'`/stamp-h$_am_stamp_count
12501 ;;
12502
12503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12504 $as_echo "$as_me: executing $ac_file commands" >&6;}
12505 ;;
12506 esac
12507
12508
12509 case $ac_file$ac_mode in
12510 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12511 # Older Autoconf quotes --file arguments for eval, but not when files
12512 # are listed without --file. Let's play safe and only enable the eval
12513 # if we detect the quoting.
12514 case $CONFIG_FILES in
12515 *\'*) eval set x "$CONFIG_FILES" ;;
12516 *) set x $CONFIG_FILES ;;
12517 esac
12518 shift
12519 for mf
12520 do
12521 # Strip MF so we end up with the name of the file.
12522 mf=`echo "$mf" | sed -e 's/:.*$//'`
12523 # Check whether this is an Automake generated Makefile or not.
12524 # We used to match only the files named 'Makefile.in', but
12525 # some people rename them; so instead we look at the file content.
12526 # Grep'ing the first line is not enough: some people post-process
12527 # each Makefile.in and add a new line on top of each file to say so.
12528 # Grep'ing the whole file is not good either: AIX grep has a line
12529 # limit of 2048, but all sed's we know have understand at least 4000.
12530 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12531 dirpart=`$as_dirname -- "$mf" ||
12532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12533 X"$mf" : 'X\(//\)[^/]' \| \
12534 X"$mf" : 'X\(//\)$' \| \
12535 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12536 $as_echo X"$mf" |
12537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12538 s//\1/
12539 q
12540 }
12541 /^X\(\/\/\)[^/].*/{
12542 s//\1/
12543 q
12544 }
12545 /^X\(\/\/\)$/{
12546 s//\1/
12547 q
12548 }
12549 /^X\(\/\).*/{
12550 s//\1/
12551 q
12552 }
12553 s/.*/./; q'`
12554 else
12555 continue
12556 fi
12557 # Extract the definition of DEPDIR, am__include, and am__quote
12558 # from the Makefile without running 'make'.
12559 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12560 test -z "$DEPDIR" && continue
12561 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12562 test -z "$am__include" && continue
12563 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12564 # Find all dependency output files, they are included files with
12565 # $(DEPDIR) in their names. We invoke sed twice because it is the
12566 # simplest approach to changing $(DEPDIR) to its actual value in the
12567 # expansion.
12568 for file in `sed -n "
12569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12571 # Make sure the directory exists.
12572 test -f "$dirpart/$file" && continue
12573 fdir=`$as_dirname -- "$file" ||
12574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575 X"$file" : 'X\(//\)[^/]' \| \
12576 X"$file" : 'X\(//\)$' \| \
12577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12578 $as_echo X"$file" |
12579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12580 s//\1/
12581 q
12582 }
12583 /^X\(\/\/\)[^/].*/{
12584 s//\1/
12585 q
12586 }
12587 /^X\(\/\/\)$/{
12588 s//\1/
12589 q
12590 }
12591 /^X\(\/\).*/{
12592 s//\1/
12593 q
12594 }
12595 s/.*/./; q'`
12596 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12597 # echo "creating $dirpart/$file"
12598 echo '# dummy' > "$dirpart/$file"
12599 done
12600 done
12601 }
12602 ;;
12603
12604 esac
12605 done # for ac_tag
12606
12607
12608 as_fn_exit 0
12609 _ACEOF
12610 ac_clean_files=$ac_clean_files_save
12611
12612 test $ac_write_fail = 0 ||
12613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12614
12615
12616 # configure is writing to config.log, and then calls config.status.
12617 # config.status does its own redirection, appending to config.log.
12618 # Unfortunately, on DOS this fails, as config.log is still kept open
12619 # by configure, so config.status won't be able to write to it; its
12620 # output is simply discarded. So we exec the FD to /dev/null,
12621 # effectively closing config.log, so it can be properly (re)opened and
12622 # appended to by config.status. When coming back to configure, we
12623 # need to make the FD available again.
12624 if test "$no_create" != yes; then
12625 ac_cs_success=:
12626 ac_config_status_args=
12627 test "$silent" = yes &&
12628 ac_config_status_args="$ac_config_status_args --quiet"
12629 exec 5>/dev/null
12630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12631 exec 5>>config.log
12632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12633 # would make configure fail if this is the last instruction.
12634 $ac_cs_success || as_fn_exit 1
12635 fi
12636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12639 fi
12640
12641