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