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