configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xset 1.2.3.
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='xset'
563 PACKAGE_TARNAME='xset'
564 PACKAGE_VERSION='1.2.3'
565 PACKAGE_STRING='xset 1.2.3'
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 SET_FONTCACHE_LIBS
611 SET_FONTCACHE_CFLAGS
612 SET_XF86MISC_LIBS
613 SET_XF86MISC_CFLAGS
614 SET_XKB_LIBS
615 SET_XKB_CFLAGS
616 SET_XEXT_LIBS
617 SET_XEXT_CFLAGS
618 SET_X11_LIBS
619 SET_X11_CFLAGS
620 XSET_LIBS
621 XSET_CFLAGS
622 MAN_SUBSTS
623 XORG_MAN_PAGE
624 ADMIN_MAN_DIR
625 DRIVER_MAN_DIR
626 MISC_MAN_DIR
627 FILE_MAN_DIR
628 LIB_MAN_DIR
629 APP_MAN_DIR
630 ADMIN_MAN_SUFFIX
631 DRIVER_MAN_SUFFIX
632 MISC_MAN_SUFFIX
633 FILE_MAN_SUFFIX
634 LIB_MAN_SUFFIX
635 APP_MAN_SUFFIX
636 SED
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 BASE_CFLAGS
651 MAINT
652 MAINTAINER_MODE_FALSE
653 MAINTAINER_MODE_TRUE
654 AM_BACKSLASH
655 AM_DEFAULT_VERBOSITY
656 AM_DEFAULT_V
657 AM_V
658 am__fastdepCC_FALSE
659 am__fastdepCC_TRUE
660 CCDEPMODE
661 am__nodep
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__quote
666 am__include
667 DEPDIR
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 EGREP
692 GREP
693 CPP
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_dependency_tracking
743 enable_silent_rules
744 enable_maintainer_mode
745 enable_selective_werror
746 enable_strict_compilation
747 with_xf86misc
748 with_fontcache
749 '
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CPP
759 PKG_CONFIG
760 XSET_CFLAGS
761 XSET_LIBS
762 SET_X11_CFLAGS
763 SET_X11_LIBS
764 SET_XEXT_CFLAGS
765 SET_XEXT_LIBS
766 SET_XKB_CFLAGS
767 SET_XKB_LIBS
768 SET_XF86MISC_CFLAGS
769 SET_XF86MISC_LIBS
770 SET_FONTCACHE_CFLAGS
771 SET_FONTCACHE_LIBS'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
829 ac_prev=
830 continue
831 fi
832
833 case $ac_option in
834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 *=) ac_optarg= ;;
836 *) ac_optarg=yes ;;
837 esac
838
839 # Accept the important Cygnus configure options, so we can diagnose typos.
840
841 case $ac_dashdash$ac_option in
842 --)
843 ac_dashdash=yes ;;
844
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
849
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
854
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
861
862 --config-cache | -C)
863 cache_file=config.cache ;;
864
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
869
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
876
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=no ;;
892
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
897
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
902
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=\$ac_optarg ;;
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
938
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
943
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
973
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
990
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1011
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1047
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
1066 sbindir=$ac_optarg ;;
1067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
1077 sharedstatedir=$ac_optarg ;;
1078
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
1082 site=$ac_optarg ;;
1083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1088
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1095
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1106
1107 -with-* | --with-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=\$ac_optarg ;;
1122
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167 esac
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177 ;;
1178
1179 esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error $? "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1189 no) ;;
1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1200 do
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1203 case $ac_val in
1204 */ )
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1207 esac
1208 # Be sure to have absolute directory names.
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used" >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 as_fn_error $? "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures xset 1.2.3 to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking ...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/xset]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of xset 1.2.3:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-dependency-tracking
1393 do not reject slow dependency extractors
1394 --disable-dependency-tracking
1395 speeds up one-time build
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-maintainer-mode
1399 enable make rules and dependencies not useful (and
1400 sometimes confusing) to the casual installer
1401 --disable-selective-werror
1402 Turn off selective compiler errors. (default:
1403 enabled)
1404 --enable-strict-compilation
1405 Enable all warnings from compiler and make them
1406 errors (default: disabled)
1407
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --without-xf86misc Disable xf86misc support.
1412 --without-fontcache Disable fontcache support.
1413
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CPP C preprocessor
1423 PKG_CONFIG path to pkg-config utility
1424 XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1425 XSET_LIBS linker flags for XSET, overriding pkg-config
1426 SET_X11_CFLAGS
1427 C compiler flags for SET_X11, overriding pkg-config
1428 SET_X11_LIBS
1429 linker flags for SET_X11, overriding pkg-config
1430 SET_XEXT_CFLAGS
1431 C compiler flags for SET_XEXT, overriding pkg-config
1432 SET_XEXT_LIBS
1433 linker flags for SET_XEXT, overriding pkg-config
1434 SET_XKB_CFLAGS
1435 C compiler flags for SET_XKB, overriding pkg-config
1436 SET_XKB_LIBS
1437 linker flags for SET_XKB, overriding pkg-config
1438 SET_XF86MISC_CFLAGS
1439 C compiler flags for SET_XF86MISC, overriding pkg-config
1440 SET_XF86MISC_LIBS
1441 linker flags for SET_XF86MISC, overriding pkg-config
1442 SET_FONTCACHE_CFLAGS
1443 C compiler flags for SET_FONTCACHE, overriding pkg-config
1444 SET_FONTCACHE_LIBS
1445 linker flags for SET_FONTCACHE, overriding pkg-config
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 xset configure 1.2.3
1514 generated by GNU Autoconf 2.68
1515
1516 Copyright (C) 2010 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_cpp
1601
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_header_mongrel ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if eval \${$3+:} false; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1615 fi
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 else
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1625 $4
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1630 else
1631 ac_header_compiler=no
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1636
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646 else
1647 ac_header_preproc=no
1648 fi
1649 rm -f conftest.err conftest.i conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1652
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ( $as_echo "## ---------------------------------------------------------------------- ##
1673 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1674 ## ---------------------------------------------------------------------- ##"
1675 ) | sed "s/^/$as_me: WARNING: /" >&2
1676 ;;
1677 esac
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 eval "$3=\$ac_header_compiler"
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_header_mongrel
1692
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728 fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_run
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1767 # ---------------------------------------------
1768 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_decl ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 as_decl_name=`echo $2|sed 's/ *(.*//'`
1774 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1776 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 int
1784 main ()
1785 {
1786 #ifndef $as_decl_name
1787 #ifdef __cplusplus
1788 (void) $as_decl_use;
1789 #else
1790 (void) $as_decl_name;
1791 #endif
1792 #endif
1793
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_decl
1811
1812 # ac_fn_c_try_link LINENO
1813 # -----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_link ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext conftest$ac_exeext
1819 if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest$ac_exeext && {
1838 test "$cross_compiling" = yes ||
1839 $as_test_x conftest$ac_exeext
1840 }; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850 # interfere with the next link command; also delete a directory that is
1851 # left behind by Apple's compiler. We do this before executing the actions.
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_link
1857
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1874
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1879
1880 #ifdef __STDC__
1881 # include <limits.h>
1882 #else
1883 # include <assert.h>
1884 #endif
1885
1886 #undef $2
1887
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891 #ifdef __cplusplus
1892 extern "C"
1893 #endif
1894 char $2 ();
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1899 choke me
1900 #endif
1901
1902 int
1903 main ()
1904 {
1905 return $2 ();
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_func
1924 cat >config.log <<_ACEOF
1925 This file contains any messages produced by compilers while
1926 running configure, to aid debugging if configure makes a mistake.
1927
1928 It was created by xset $as_me 1.2.3, which was
1929 generated by GNU Autoconf 2.68. Invocation command line was
1930
1931 $ $0 $@
1932
1933 _ACEOF
1934 exec 5>>config.log
1935 {
1936 cat <<_ASUNAME
1937 ## --------- ##
1938 ## Platform. ##
1939 ## --------- ##
1940
1941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958 _ASUNAME
1959
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 $as_echo "PATH: $as_dir"
1966 done
1967 IFS=$as_save_IFS
1968
1969 } >&5
1970
1971 cat >&5 <<_ACEOF
1972
1973
1974 ## ----------- ##
1975 ## Core tests. ##
1976 ## ----------- ##
1977
1978 _ACEOF
1979
1980
1981 # Keep a trace of the command line.
1982 # Strip out --no-create and --no-recursion so they do not pile up.
1983 # Strip out --silent because we don't want to record it for future runs.
1984 # Also quote any args containing shell meta-characters.
1985 # Make two passes to allow for proper duplicate-argument suppression.
1986 ac_configure_args=
1987 ac_configure_args0=
1988 ac_configure_args1=
1989 ac_must_keep_next=false
1990 for ac_pass in 1 2
1991 do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025 done
2026 { ac_configure_args0=; unset ac_configure_args0;}
2027 { ac_configure_args1=; unset ac_configure_args1;}
2028
2029 # When interrupted or exit'd, cleanup temporary files, and complete
2030 # config.log. We remove comments because anyway the quotes in there
2031 # would cause problems or look ugly.
2032 # WARNING: Use '\'' to represent an apostrophe within the trap.
2033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034 trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
2039 $as_echo "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044 (
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072 )
2073 echo
2074
2075 $as_echo "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
2090 $as_echo "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 $as_echo "## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2125
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2128
2129 $as_echo "/* confdefs.h */" > confdefs.h
2130
2131 # Predefined preprocessor variables.
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_NAME "$PACKAGE_NAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_STRING "$PACKAGE_STRING"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_URL "$PACKAGE_URL"
2155 _ACEOF
2156
2157
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 ac_site_file1=NONE
2161 ac_site_file2=NONE
2162 if test -n "$CONFIG_SITE"; then
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
2169 elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172 else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2175 fi
2176 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177 do
2178 test "x$ac_site_file" = xNONE && continue
2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See \`config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257 done
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2268
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277 ac_config_headers="$ac_config_headers config.h"
2278
2279 # expand $ac_aux_dir to an absolute path
2280 am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if ${ac_cv_prog_CC+:} false; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2319 else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2321 $as_echo "no" >&6; }
2322 fi
2323
2324
2325 fi
2326 if test -z "$ac_cv_prog_CC"; then
2327 ac_ct_CC=$CC
2328 # Extract the first word of "gcc", so it can be a program name with args.
2329 set dummy gcc; ac_word=$2
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2331 $as_echo_n "checking for $ac_word... " >&6; }
2332 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 if test -n "$ac_ct_CC"; then
2336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_ac_ct_CC="gcc"
2346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2348 fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353 fi
2354 fi
2355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356 if test -n "$ac_ct_CC"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2358 $as_echo "$ac_ct_CC" >&6; }
2359 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2361 $as_echo "no" >&6; }
2362 fi
2363
2364 if test "x$ac_ct_CC" = x; then
2365 CC=""
2366 else
2367 case $cross_compiling:$ac_tool_warned in
2368 yes:)
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2371 ac_tool_warned=yes ;;
2372 esac
2373 CC=$ac_ct_CC
2374 fi
2375 else
2376 CC="$ac_cv_prog_CC"
2377 fi
2378
2379 if test -z "$CC"; then
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}cc; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_CC+:} false; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC="${ac_tool_prefix}cc"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2401 fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418 fi
2419 fi
2420 if test -z "$CC"; then
2421 # Extract the first word of "cc", so it can be a program name with args.
2422 set dummy cc; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if ${ac_cv_prog_CC+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 else
2431 ac_prog_rejected=no
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2440 ac_prog_rejected=yes
2441 continue
2442 fi
2443 ac_cv_prog_CC="cc"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 if test $ac_prog_rejected = yes; then
2452 # We found a bogon in the path, so make sure we never use it.
2453 set dummy $ac_cv_prog_CC
2454 shift
2455 if test $# != 0; then
2456 # We chose a different compiler from the bogus one.
2457 # However, it has the same basename, so the bogon will be chosen
2458 # first if we set CC to just the basename; use the full file name.
2459 shift
2460 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2461 fi
2462 fi
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 for ac_prog in cl.exe
2479 do
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_CC+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510 $as_echo "$CC" >&6; }
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516
2517 test -n "$CC" && break
2518 done
2519 fi
2520 if test -z "$CC"; then
2521 ac_ct_CC=$CC
2522 for ac_prog in cl.exe
2523 do
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_ac_ct_CC="$ac_prog"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2554 $as_echo "$ac_ct_CC" >&6; }
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560
2561 test -n "$ac_ct_CC" && break
2562 done
2563
2564 if test "x$ac_ct_CC" = x; then
2565 CC=""
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573 CC=$ac_ct_CC
2574 fi
2575 fi
2576
2577 fi
2578
2579
2580 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details" "$LINENO" 5; }
2584
2585 # Provide some information about the compiler.
2586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2587 set X $ac_compile
2588 ac_compiler=$2
2589 for ac_option in --version -v -V -qversion; do
2590 { { ac_try="$ac_compiler $ac_option >&5"
2591 case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2596 $as_echo "$ac_try_echo"; } >&5
2597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2598 ac_status=$?
2599 if test -s conftest.err; then
2600 sed '10a\
2601 ... rest of stderr output deleted ...
2602 10q' conftest.err >conftest.er1
2603 cat conftest.er1 >&5
2604 fi
2605 rm -f conftest.er1 conftest.err
2606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2607 test $ac_status = 0; }
2608 done
2609
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612
2613 int
2614 main ()
2615 {
2616
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 ac_clean_files_save=$ac_clean_files
2622 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2625 # of exeext.
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2627 $as_echo_n "checking whether the C compiler works... " >&6; }
2628 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629
2630 # The possible output files:
2631 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2632
2633 ac_rmfiles=
2634 for ac_file in $ac_files
2635 do
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2638 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2639 esac
2640 done
2641 rm -f $ac_rmfiles
2642
2643 if { { ac_try="$ac_link_default"
2644 case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647 esac
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650 (eval "$ac_link_default") 2>&5
2651 ac_status=$?
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; }; then :
2654 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2655 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2656 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2657 # so that the user can short-circuit this test for compilers unknown to
2658 # Autoconf.
2659 for ac_file in $ac_files ''
2660 do
2661 test -f "$ac_file" || continue
2662 case $ac_file in
2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2664 ;;
2665 [ab].out )
2666 # We found the default executable, but exeext='' is most
2667 # certainly right.
2668 break;;
2669 *.* )
2670 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2671 then :; else
2672 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673 fi
2674 # We set ac_cv_exeext here because the later test for it is not
2675 # safe: cross compilers may not add the suffix if given an `-o'
2676 # argument, so we may need to know it at that point already.
2677 # Even if this section looks crufty: it has the advantage of
2678 # actually working.
2679 break;;
2680 * )
2681 break;;
2682 esac
2683 done
2684 test "$ac_cv_exeext" = no && ac_cv_exeext=
2685
2686 else
2687 ac_file=''
2688 fi
2689 if test -z "$ac_file"; then :
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 $as_echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error 77 "C compiler cannot create executables
2698 See \`config.log' for more details" "$LINENO" 5; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701 $as_echo "yes" >&6; }
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2704 $as_echo_n "checking for C compiler default output file name... " >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2706 $as_echo "$ac_file" >&6; }
2707 ac_exeext=$ac_cv_exeext
2708
2709 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2710 ac_clean_files=$ac_clean_files_save
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2712 $as_echo_n "checking for suffix of executables... " >&6; }
2713 if { { ac_try="$ac_link"
2714 case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717 esac
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_link") 2>&5
2721 ac_status=$?
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }; then :
2724 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2725 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2726 # work properly (i.e., refer to `conftest.exe'), while it won't with
2727 # `rm'.
2728 for ac_file in conftest.exe conftest conftest.*; do
2729 test -f "$ac_file" || continue
2730 case $ac_file in
2731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2732 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733 break;;
2734 * ) break;;
2735 esac
2736 done
2737 else
2738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2741 See \`config.log' for more details" "$LINENO" 5; }
2742 fi
2743 rm -f conftest conftest$ac_cv_exeext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2745 $as_echo "$ac_cv_exeext" >&6; }
2746
2747 rm -f conftest.$ac_ext
2748 EXEEXT=$ac_cv_exeext
2749 ac_exeext=$EXEEXT
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2752 #include <stdio.h>
2753 int
2754 main ()
2755 {
2756 FILE *f = fopen ("conftest.out", "w");
2757 return ferror (f) || fclose (f) != 0;
2758
2759 ;
2760 return 0;
2761 }
2762 _ACEOF
2763 ac_clean_files="$ac_clean_files conftest.out"
2764 # Check that the compiler produces executables we can run. If not, either
2765 # the compiler is broken, or we cross compile.
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2767 $as_echo_n "checking whether we are cross compiling... " >&6; }
2768 if test "$cross_compiling" != yes; then
2769 { { ac_try="$ac_link"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_link") 2>&5
2777 ac_status=$?
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }
2780 if { ac_try='./conftest$ac_cv_exeext'
2781 { { case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786 $as_echo "$ac_try_echo"; } >&5
2787 (eval "$ac_try") 2>&5
2788 ac_status=$?
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }; }; then
2791 cross_compiling=no
2792 else
2793 if test "$cross_compiling" = maybe; then
2794 cross_compiling=yes
2795 else
2796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 as_fn_error $? "cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details" "$LINENO" 5; }
2801 fi
2802 fi
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2805 $as_echo "$cross_compiling" >&6; }
2806
2807 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2808 ac_clean_files=$ac_clean_files_save
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2810 $as_echo_n "checking for suffix of object files... " >&6; }
2811 if ${ac_cv_objext+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2816
2817 int
2818 main ()
2819 {
2820
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.o conftest.obj
2826 if { { ac_try="$ac_compile"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832 $as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_compile") 2>&5
2834 ac_status=$?
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; }; then :
2837 for ac_file in conftest.o conftest.obj conftest.*; do
2838 test -f "$ac_file" || continue;
2839 case $ac_file in
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2841 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2842 break;;
2843 esac
2844 done
2845 else
2846 $as_echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $? "cannot compute suffix of object files: cannot compile
2852 See \`config.log' for more details" "$LINENO" 5; }
2853 fi
2854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2857 $as_echo "$ac_cv_objext" >&6; }
2858 OBJEXT=$ac_cv_objext
2859 ac_objext=$OBJEXT
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2862 if ${ac_cv_c_compiler_gnu+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871 #ifndef __GNUC__
2872 choke me
2873 #endif
2874
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880 ac_compiler_gnu=yes
2881 else
2882 ac_compiler_gnu=no
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2886
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2889 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2890 if test $ac_compiler_gnu = yes; then
2891 GCC=yes
2892 else
2893 GCC=
2894 fi
2895 ac_test_CFLAGS=${CFLAGS+set}
2896 ac_save_CFLAGS=$CFLAGS
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2898 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2899 if ${ac_cv_prog_cc_g+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 ac_save_c_werror_flag=$ac_c_werror_flag
2903 ac_c_werror_flag=yes
2904 ac_cv_prog_cc_g=no
2905 CFLAGS="-g"
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907 /* end confdefs.h. */
2908
2909 int
2910 main ()
2911 {
2912
2913 ;
2914 return 0;
2915 }
2916 _ACEOF
2917 if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_cv_prog_cc_g=yes
2919 else
2920 CFLAGS=""
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923
2924 int
2925 main ()
2926 {
2927
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 if ac_fn_c_try_compile "$LINENO"; then :
2933
2934 else
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2936 CFLAGS="-g"
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2939
2940 int
2941 main ()
2942 {
2943
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 if ac_fn_c_try_compile "$LINENO"; then :
2949 ac_cv_prog_cc_g=yes
2950 fi
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 fi
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2957 fi
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2959 $as_echo "$ac_cv_prog_cc_g" >&6; }
2960 if test "$ac_test_CFLAGS" = set; then
2961 CFLAGS=$ac_save_CFLAGS
2962 elif test $ac_cv_prog_cc_g = yes; then
2963 if test "$GCC" = yes; then
2964 CFLAGS="-g -O2"
2965 else
2966 CFLAGS="-g"
2967 fi
2968 else
2969 if test "$GCC" = yes; then
2970 CFLAGS="-O2"
2971 else
2972 CFLAGS=
2973 fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2976 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2977 if ${ac_cv_prog_cc_c89+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 ac_cv_prog_cc_c89=no
2981 ac_save_CC=$CC
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984 #include <stdarg.h>
2985 #include <stdio.h>
2986 #include <sys/types.h>
2987 #include <sys/stat.h>
2988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2989 struct buf { int x; };
2990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2991 static char *e (p, i)
2992 char **p;
2993 int i;
2994 {
2995 return p[i];
2996 }
2997 static char *f (char * (*g) (char **, int), char **p, ...)
2998 {
2999 char *s;
3000 va_list v;
3001 va_start (v,p);
3002 s = g (p, va_arg (v,int));
3003 va_end (v);
3004 return s;
3005 }
3006
3007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3008 function prototypes and stuff, but not '\xHH' hex character constants.
3009 These don't provoke an error unfortunately, instead are silently treated
3010 as 'x'. The following induces an error, until -std is added to get
3011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3012 array size at least. It's necessary to write '\x00'==0 to get something
3013 that's true only with -std. */
3014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3015
3016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3017 inside strings and character constants. */
3018 #define FOO(x) 'x'
3019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3020
3021 int test (int i, double x);
3022 struct s1 {int (*f) (int a);};
3023 struct s2 {int (*f) (double a);};
3024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3025 int argc;
3026 char **argv;
3027 int
3028 main ()
3029 {
3030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3037 do
3038 CC="$ac_save_CC $ac_arg"
3039 if ac_fn_c_try_compile "$LINENO"; then :
3040 ac_cv_prog_cc_c89=$ac_arg
3041 fi
3042 rm -f core conftest.err conftest.$ac_objext
3043 test "x$ac_cv_prog_cc_c89" != "xno" && break
3044 done
3045 rm -f conftest.$ac_ext
3046 CC=$ac_save_CC
3047
3048 fi
3049 # AC_CACHE_VAL
3050 case "x$ac_cv_prog_cc_c89" in
3051 x)
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3053 $as_echo "none needed" >&6; } ;;
3054 xno)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3056 $as_echo "unsupported" >&6; } ;;
3057 *)
3058 CC="$CC $ac_cv_prog_cc_c89"
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3061 esac
3062 if test "x$ac_cv_prog_cc_c89" != xno; then :
3063
3064 fi
3065
3066 ac_ext=c
3067 ac_cpp='$CPP $CPPFLAGS'
3068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071
3072 ac_ext=c
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3079 if ${am_cv_prog_cc_c_o+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084
3085 int
3086 main ()
3087 {
3088
3089 ;
3090 return 0;
3091 }
3092 _ACEOF
3093 # Make sure it works both with $CC and with simple cc.
3094 # Following AC_PROG_CC_C_O, we do the test twice because some
3095 # compilers refuse to overwrite an existing .o file with -o,
3096 # though they will create one.
3097 am_cv_prog_cc_c_o=yes
3098 for am_i in 1 2; do
3099 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3100 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } \
3104 && test -f conftest2.$ac_objext; then
3105 : OK
3106 else
3107 am_cv_prog_cc_c_o=no
3108 break
3109 fi
3110 done
3111 rm -f core conftest*
3112 unset am_i
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3116 if test "$am_cv_prog_cc_c_o" != yes; then
3117 # Losing compiler, so override with the script.
3118 # FIXME: It is wrong to rewrite CC.
3119 # But if we don't then we get into trouble of one sort or another.
3120 # A longer-term fix would be to have automake use am__CC in this case,
3121 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3122 CC="$am_aux_dir/compile $CC"
3123 fi
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3138 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3139 # On Suns, sometimes $CPP names a directory.
3140 if test -n "$CPP" && test -d "$CPP"; then
3141 CPP=
3142 fi
3143 if test -z "$CPP"; then
3144 if ${ac_cv_prog_CPP+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 # Double quotes because CPP needs to be expanded
3148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3149 do
3150 ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3152 do
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166 Syntax error
3167 _ACEOF
3168 if ac_fn_c_try_cpp "$LINENO"; then :
3169
3170 else
3171 # Broken: fails on valid input.
3172 continue
3173 fi
3174 rm -f conftest.err conftest.i conftest.$ac_ext
3175
3176 # OK, works on sane cases. Now check whether nonexistent headers
3177 # can be detected and how.
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180 #include <ac_nonexistent.h>
3181 _ACEOF
3182 if ac_fn_c_try_cpp "$LINENO"; then :
3183 # Broken: success on invalid input.
3184 continue
3185 else
3186 # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3189 fi
3190 rm -f conftest.err conftest.i conftest.$ac_ext
3191
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.i conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then :
3196 break
3197 fi
3198
3199 done
3200 ac_cv_prog_CPP=$CPP
3201
3202 fi
3203 CPP=$ac_cv_prog_CPP
3204 else
3205 ac_cv_prog_CPP=$CPP
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3208 $as_echo "$CPP" >&6; }
3209 ac_preproc_ok=false
3210 for ac_c_preproc_warn_flag in '' yes
3211 do
3212 # Use a header file that comes with gcc, so configuring glibc
3213 # with a fresh cross-compiler works.
3214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215 # <limits.h> exists even on freestanding compilers.
3216 # On the NeXT, cc -E runs the code through the compiler's parser,
3217 # not just through cpp. "Syntax error" is here to catch this case.
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3220 #ifdef __STDC__
3221 # include <limits.h>
3222 #else
3223 # include <assert.h>
3224 #endif
3225 Syntax error
3226 _ACEOF
3227 if ac_fn_c_try_cpp "$LINENO"; then :
3228
3229 else
3230 # Broken: fails on valid input.
3231 continue
3232 fi
3233 rm -f conftest.err conftest.i conftest.$ac_ext
3234
3235 # OK, works on sane cases. Now check whether nonexistent headers
3236 # can be detected and how.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239 #include <ac_nonexistent.h>
3240 _ACEOF
3241 if ac_fn_c_try_cpp "$LINENO"; then :
3242 # Broken: success on invalid input.
3243 continue
3244 else
3245 # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3248 fi
3249 rm -f conftest.err conftest.i conftest.$ac_ext
3250
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.i conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then :
3255
3256 else
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 fi
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3272 if ${ac_cv_path_GREP+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -z "$GREP"; then
3276 ac_path_GREP_found=false
3277 # Loop through the user's path and test for each of PROGNAME-LIST
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_prog in grep ggrep; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287 # Check for GNU ac_path_GREP and select it if it is found.
3288 # Check for GNU $ac_path_GREP
3289 case `"$ac_path_GREP" --version 2>&1` in
3290 *GNU*)
3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3292 *)
3293 ac_count=0
3294 $as_echo_n 0123456789 >"conftest.in"
3295 while :
3296 do
3297 cat "conftest.in" "conftest.in" >"conftest.tmp"
3298 mv "conftest.tmp" "conftest.in"
3299 cp "conftest.in" "conftest.nl"
3300 $as_echo 'GREP' >> "conftest.nl"
3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303 as_fn_arith $ac_count + 1 && ac_count=$as_val
3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305 # Best one so far, save it but keep looking for a better one
3306 ac_cv_path_GREP="$ac_path_GREP"
3307 ac_path_GREP_max=$ac_count
3308 fi
3309 # 10*(2^10) chars as input seems more than enough
3310 test $ac_count -gt 10 && break
3311 done
3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313 esac
3314
3315 $ac_path_GREP_found && break 3
3316 done
3317 done
3318 done
3319 IFS=$as_save_IFS
3320 if test -z "$ac_cv_path_GREP"; then
3321 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3322 fi
3323 else
3324 ac_cv_path_GREP=$GREP
3325 fi
3326
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3329 $as_echo "$ac_cv_path_GREP" >&6; }
3330 GREP="$ac_cv_path_GREP"
3331
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3334 $as_echo_n "checking for egrep... " >&6; }
3335 if ${ac_cv_path_EGREP+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3339 then ac_cv_path_EGREP="$GREP -E"
3340 else
3341 if test -z "$EGREP"; then
3342 ac_path_EGREP_found=false
3343 # Loop through the user's path and test for each of PROGNAME-LIST
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_prog in egrep; do
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3353 # Check for GNU ac_path_EGREP and select it if it is found.
3354 # Check for GNU $ac_path_EGREP
3355 case `"$ac_path_EGREP" --version 2>&1` in
3356 *GNU*)
3357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3358 *)
3359 ac_count=0
3360 $as_echo_n 0123456789 >"conftest.in"
3361 while :
3362 do
3363 cat "conftest.in" "conftest.in" >"conftest.tmp"
3364 mv "conftest.tmp" "conftest.in"
3365 cp "conftest.in" "conftest.nl"
3366 $as_echo 'EGREP' >> "conftest.nl"
3367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3369 as_fn_arith $ac_count + 1 && ac_count=$as_val
3370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3371 # Best one so far, save it but keep looking for a better one
3372 ac_cv_path_EGREP="$ac_path_EGREP"
3373 ac_path_EGREP_max=$ac_count
3374 fi
3375 # 10*(2^10) chars as input seems more than enough
3376 test $ac_count -gt 10 && break
3377 done
3378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379 esac
3380
3381 $ac_path_EGREP_found && break 3
3382 done
3383 done
3384 done
3385 IFS=$as_save_IFS
3386 if test -z "$ac_cv_path_EGREP"; then
3387 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3388 fi
3389 else
3390 ac_cv_path_EGREP=$EGREP
3391 fi
3392
3393 fi
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3396 $as_echo "$ac_cv_path_EGREP" >&6; }
3397 EGREP="$ac_cv_path_EGREP"
3398
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3401 $as_echo_n "checking for ANSI C header files... " >&6; }
3402 if ${ac_cv_header_stdc+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407 #include <stdlib.h>
3408 #include <stdarg.h>
3409 #include <string.h>
3410 #include <float.h>
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_cv_header_stdc=yes
3422 else
3423 ac_cv_header_stdc=no
3424 fi
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426
3427 if test $ac_cv_header_stdc = yes; then
3428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431 #include <string.h>
3432
3433 _ACEOF
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 $EGREP "memchr" >/dev/null 2>&1; then :
3436
3437 else
3438 ac_cv_header_stdc=no
3439 fi
3440 rm -f conftest*
3441
3442 fi
3443
3444 if test $ac_cv_header_stdc = yes; then
3445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #include <stdlib.h>
3449
3450 _ACEOF
3451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452 $EGREP "free" >/dev/null 2>&1; then :
3453
3454 else
3455 ac_cv_header_stdc=no
3456 fi
3457 rm -f conftest*
3458
3459 fi
3460
3461 if test $ac_cv_header_stdc = yes; then
3462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3463 if test "$cross_compiling" = yes; then :
3464 :
3465 else
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <ctype.h>
3469 #include <stdlib.h>
3470 #if ((' ' & 0x0FF) == 0x020)
3471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3473 #else
3474 # define ISLOWER(c) \
3475 (('a' <= (c) && (c) <= 'i') \
3476 || ('j' <= (c) && (c) <= 'r') \
3477 || ('s' <= (c) && (c) <= 'z'))
3478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3479 #endif
3480
3481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482 int
3483 main ()
3484 {
3485 int i;
3486 for (i = 0; i < 256; i++)
3487 if (XOR (islower (i), ISLOWER (i))
3488 || toupper (i) != TOUPPER (i))
3489 return 2;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_run "$LINENO"; then :
3494
3495 else
3496 ac_cv_header_stdc=no
3497 fi
3498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3499 conftest.$ac_objext conftest.beam conftest.$ac_ext
3500 fi
3501
3502 fi
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3505 $as_echo "$ac_cv_header_stdc" >&6; }
3506 if test $ac_cv_header_stdc = yes; then
3507
3508 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3509
3510 fi
3511
3512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3514 inttypes.h stdint.h unistd.h
3515 do :
3516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3517 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3518 "
3519 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3520 cat >>confdefs.h <<_ACEOF
3521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3522 _ACEOF
3523
3524 fi
3525
3526 done
3527
3528
3529
3530 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3531 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3532 MINIX=yes
3533 else
3534 MINIX=
3535 fi
3536
3537
3538 if test "$MINIX" = yes; then
3539
3540 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3541
3542
3543 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3544
3545
3546 $as_echo "#define _MINIX 1" >>confdefs.h
3547
3548 fi
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3552 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3553 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 # define __EXTENSIONS__ 1
3560 $ac_includes_default
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_cv_safe_to_define___extensions__=yes
3571 else
3572 ac_cv_safe_to_define___extensions__=no
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3578 test $ac_cv_safe_to_define___extensions__ = yes &&
3579 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3580
3581 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3582
3583 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3584
3585 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3586
3587 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3588
3589
3590
3591 # Initialize Automake
3592 am__api_version='1.14'
3593
3594 ac_aux_dir=
3595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3596 if test -f "$ac_dir/install-sh"; then
3597 ac_aux_dir=$ac_dir
3598 ac_install_sh="$ac_aux_dir/install-sh -c"
3599 break
3600 elif test -f "$ac_dir/install.sh"; then
3601 ac_aux_dir=$ac_dir
3602 ac_install_sh="$ac_aux_dir/install.sh -c"
3603 break
3604 elif test -f "$ac_dir/shtool"; then
3605 ac_aux_dir=$ac_dir
3606 ac_install_sh="$ac_aux_dir/shtool install -c"
3607 break
3608 fi
3609 done
3610 if test -z "$ac_aux_dir"; then
3611 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3612 fi
3613
3614 # These three variables are undocumented and unsupported,
3615 # and are intended to be withdrawn in a future Autoconf release.
3616 # They can cause serious problems if a builder's source tree is in a directory
3617 # whose full name contains unusual characters.
3618 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3619 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3620 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3621
3622
3623 # Find a good install program. We prefer a C program (faster),
3624 # so one script is as good as another. But avoid the broken or
3625 # incompatible versions:
3626 # SysV /etc/install, /usr/sbin/install
3627 # SunOS /usr/etc/install
3628 # IRIX /sbin/install
3629 # AIX /bin/install
3630 # AmigaOS /C/install, which installs bootblocks on floppy discs
3631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634 # OS/2's system install, which has a completely different semantic
3635 # ./install, which can be erroneously created by make from ./install.sh.
3636 # Reject install programs that cannot install multiple files.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3639 if test -z "$INSTALL"; then
3640 if ${ac_cv_path_install+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3649 case $as_dir/ in #((
3650 ./ | .// | /[cC]/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3653 /usr/ucb/* ) ;;
3654 *)
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3657 # by default.
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3664 :
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3668 :
3669 else
3670 rm -rf conftest.one conftest.two conftest.dir
3671 echo one > conftest.one
3672 echo two > conftest.two
3673 mkdir conftest.dir
3674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675 test -s conftest.one && test -s conftest.two &&
3676 test -s conftest.dir/conftest.one &&
3677 test -s conftest.dir/conftest.two
3678 then
3679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3680 break 3
3681 fi
3682 fi
3683 fi
3684 done
3685 done
3686 ;;
3687 esac
3688
3689 done
3690 IFS=$as_save_IFS
3691
3692 rm -rf conftest.one conftest.two conftest.dir
3693
3694 fi
3695 if test "${ac_cv_path_install+set}" = set; then
3696 INSTALL=$ac_cv_path_install
3697 else
3698 # As a last resort, use the slow shell script. Don't cache a
3699 # value for INSTALL within a source directory, because that will
3700 # break other packages using the cache if that directory is
3701 # removed, or if the value is a relative name.
3702 INSTALL=$ac_install_sh
3703 fi
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706 $as_echo "$INSTALL" >&6; }
3707
3708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709 # It thinks the first close brace ends the variable substitution.
3710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711
3712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3713
3714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717 $as_echo_n "checking whether build environment is sane... " >&6; }
3718 # Reject unsafe characters in $srcdir or the absolute working directory
3719 # name. Accept space and tab only in the latter.
3720 am_lf='
3721 '
3722 case `pwd` in
3723 *[\\\"\#\$\&\'\`$am_lf]*)
3724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3725 esac
3726 case $srcdir in
3727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3729 esac
3730
3731 # Do 'set' in a subshell so we don't clobber the current shell's
3732 # arguments. Must try -L first in case configure is actually a
3733 # symlink; some systems play weird games with the mod time of symlinks
3734 # (eg FreeBSD returns the mod time of the symlink's containing
3735 # directory).
3736 if (
3737 am_has_slept=no
3738 for am_try in 1 2; do
3739 echo "timestamp, slept: $am_has_slept" > conftest.file
3740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741 if test "$*" = "X"; then
3742 # -L didn't work.
3743 set X `ls -t "$srcdir/configure" conftest.file`
3744 fi
3745 if test "$*" != "X $srcdir/configure conftest.file" \
3746 && test "$*" != "X conftest.file $srcdir/configure"; then
3747
3748 # If neither matched, then we have a broken ls. This can happen
3749 # if, for instance, CONFIG_SHELL is bash and it inherits a
3750 # broken ls alias from the environment. This has actually
3751 # happened. Such a system could not be considered "sane".
3752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3753 alias in your environment" "$LINENO" 5
3754 fi
3755 if test "$2" = conftest.file || test $am_try -eq 2; then
3756 break
3757 fi
3758 # Just in case.
3759 sleep 1
3760 am_has_slept=yes
3761 done
3762 test "$2" = conftest.file
3763 )
3764 then
3765 # Ok.
3766 :
3767 else
3768 as_fn_error $? "newly created file is older than distributed files!
3769 Check your system clock" "$LINENO" 5
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 $as_echo "yes" >&6; }
3773 # If we didn't sleep, we still need to ensure time stamps of config.status and
3774 # generated files are strictly newer.
3775 am_sleep_pid=
3776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3777 ( sleep 1 ) &
3778 am_sleep_pid=$!
3779 fi
3780
3781 rm -f conftest.file
3782
3783 test "$program_prefix" != NONE &&
3784 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3785 # Use a double $ so make ignores it.
3786 test "$program_suffix" != NONE &&
3787 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3788 # Double any \ or $.
3789 # By default was `s,x,x', remove it if useless.
3790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3792
3793 if test x"${MISSING+set}" != xset; then
3794 case $am_aux_dir in
3795 *\ * | *\ *)
3796 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3797 *)
3798 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3799 esac
3800 fi
3801 # Use eval to expand $SHELL
3802 if eval "$MISSING --is-lightweight"; then
3803 am_missing_run="$MISSING "
3804 else
3805 am_missing_run=
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3807 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3808 fi
3809
3810 if test x"${install_sh}" != xset; then
3811 case $am_aux_dir in
3812 *\ * | *\ *)
3813 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3814 *)
3815 install_sh="\${SHELL} $am_aux_dir/install-sh"
3816 esac
3817 fi
3818
3819 # Installed binaries are usually stripped using 'strip' when the user
3820 # run "make install-strip". However 'strip' might not be the right
3821 # tool to use in cross-compilation environments, therefore Automake
3822 # will honor the 'STRIP' environment variable to overrule this program.
3823 if test "$cross_compiling" != no; then
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3826 set dummy ${ac_tool_prefix}strip; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_STRIP+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$STRIP"; then
3833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846 done
3847 done
3848 IFS=$as_save_IFS
3849
3850 fi
3851 fi
3852 STRIP=$ac_cv_prog_STRIP
3853 if test -n "$STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3855 $as_echo "$STRIP" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 fi
3860
3861
3862 fi
3863 if test -z "$ac_cv_prog_STRIP"; then
3864 ac_ct_STRIP=$STRIP
3865 # Extract the first word of "strip", so it can be a program name with args.
3866 set dummy strip; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$ac_ct_STRIP"; then
3873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882 ac_cv_prog_ac_ct_STRIP="strip"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3893 if test -n "$ac_ct_STRIP"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3895 $as_echo "$ac_ct_STRIP" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901 if test "x$ac_ct_STRIP" = x; then
3902 STRIP=":"
3903 else
3904 case $cross_compiling:$ac_tool_warned in
3905 yes:)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908 ac_tool_warned=yes ;;
3909 esac
3910 STRIP=$ac_ct_STRIP
3911 fi
3912 else
3913 STRIP="$ac_cv_prog_STRIP"
3914 fi
3915
3916 fi
3917 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3920 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3921 if test -z "$MKDIR_P"; then
3922 if ${ac_cv_path_mkdir+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_prog in mkdir gmkdir; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3933 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3934 'mkdir (GNU coreutils) '* | \
3935 'mkdir (coreutils) '* | \
3936 'mkdir (fileutils) '4.1*)
3937 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3938 break 3;;
3939 esac
3940 done
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi
3946
3947 test -d ./--version && rmdir ./--version
3948 if test "${ac_cv_path_mkdir+set}" = set; then
3949 MKDIR_P="$ac_cv_path_mkdir -p"
3950 else
3951 # As a last resort, use the slow shell script. Don't cache a
3952 # value for MKDIR_P within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the value is a relative name.
3955 MKDIR_P="$ac_install_sh -d"
3956 fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3959 $as_echo "$MKDIR_P" >&6; }
3960
3961 for ac_prog in gawk mawk nawk awk
3962 do
3963 # Extract the first word of "$ac_prog", so it can be a program name with args.
3964 set dummy $ac_prog; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_AWK+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$AWK"; then
3971 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_AWK="$ac_prog"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 AWK=$ac_cv_prog_AWK
3991 if test -n "$AWK"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3993 $as_echo "$AWK" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 test -n "$AWK" && break
4001 done
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4004 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4005 set x ${MAKE-make}
4006 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4007 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat >conftest.make <<\_ACEOF
4011 SHELL = /bin/sh
4012 all:
4013 @echo '@@@%%%=$(MAKE)=@@@%%%'
4014 _ACEOF
4015 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4017 *@@@%%%=?*=@@@%%%*)
4018 eval ac_cv_prog_make_${ac_make}_set=yes;;
4019 *)
4020 eval ac_cv_prog_make_${ac_make}_set=no;;
4021 esac
4022 rm -f conftest.make
4023 fi
4024 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027 SET_MAKE=
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 SET_MAKE="MAKE=${MAKE-make}"
4032 fi
4033
4034 rm -rf .tst 2>/dev/null
4035 mkdir .tst 2>/dev/null
4036 if test -d .tst; then
4037 am__leading_dot=.
4038 else
4039 am__leading_dot=_
4040 fi
4041 rmdir .tst 2>/dev/null
4042
4043 DEPDIR="${am__leading_dot}deps"
4044
4045 ac_config_commands="$ac_config_commands depfiles"
4046
4047
4048 am_make=${MAKE-make}
4049 cat > confinc << 'END'
4050 am__doit:
4051 @echo this is the am__doit target
4052 .PHONY: am__doit
4053 END
4054 # If we don't find an include directive, just comment out the code.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 am__include="#"
4058 am__quote=
4059 _am_result=none
4060 # First try GNU make style include.
4061 echo "include confinc" > confmf
4062 # Ignore all kinds of additional output from 'make'.
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target*)
4065 am__include=include
4066 am__quote=
4067 _am_result=GNU
4068 ;;
4069 esac
4070 # Now try BSD make style include.
4071 if test "$am__include" = "#"; then
4072 echo '.include "confinc"' > confmf
4073 case `$am_make -s -f confmf 2> /dev/null` in #(
4074 *the\ am__doit\ target*)
4075 am__include=.include
4076 am__quote="\""
4077 _am_result=BSD
4078 ;;
4079 esac
4080 fi
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084 $as_echo "$_am_result" >&6; }
4085 rm -f confinc confmf
4086
4087 # Check whether --enable-dependency-tracking was given.
4088 if test "${enable_dependency_tracking+set}" = set; then :
4089 enableval=$enable_dependency_tracking;
4090 fi
4091
4092 if test "x$enable_dependency_tracking" != xno; then
4093 am_depcomp="$ac_aux_dir/depcomp"
4094 AMDEPBACKSLASH='\'
4095 am__nodep='_no'
4096 fi
4097 if test "x$enable_dependency_tracking" != xno; then
4098 AMDEP_TRUE=
4099 AMDEP_FALSE='#'
4100 else
4101 AMDEP_TRUE='#'
4102 AMDEP_FALSE=
4103 fi
4104
4105
4106 # Check whether --enable-silent-rules was given.
4107 if test "${enable_silent_rules+set}" = set; then :
4108 enableval=$enable_silent_rules;
4109 fi
4110
4111 case $enable_silent_rules in # (((
4112 yes) AM_DEFAULT_VERBOSITY=0;;
4113 no) AM_DEFAULT_VERBOSITY=1;;
4114 *) AM_DEFAULT_VERBOSITY=1;;
4115 esac
4116 am_make=${MAKE-make}
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4119 if ${am_cv_make_support_nested_variables+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if $as_echo 'TRUE=$(BAR$(V))
4123 BAR0=false
4124 BAR1=true
4125 V=1
4126 am__doit:
4127 @$(TRUE)
4128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4129 am_cv_make_support_nested_variables=yes
4130 else
4131 am_cv_make_support_nested_variables=no
4132 fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4136 if test $am_cv_make_support_nested_variables = yes; then
4137 AM_V='$(V)'
4138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4139 else
4140 AM_V=$AM_DEFAULT_VERBOSITY
4141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4142 fi
4143 AM_BACKSLASH='\'
4144
4145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4147 # is not polluted with repeated "-I."
4148 am__isrc=' -I$(srcdir)'
4149 # test to see if srcdir already configured
4150 if test -f $srcdir/config.status; then
4151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4152 fi
4153 fi
4154
4155 # test whether we have cygpath
4156 if test -z "$CYGPATH_W"; then
4157 if (cygpath --version) >/dev/null 2>/dev/null; then
4158 CYGPATH_W='cygpath -w'
4159 else
4160 CYGPATH_W=echo
4161 fi
4162 fi
4163
4164
4165 # Define the identity of the package.
4166 PACKAGE='xset'
4167 VERSION='1.2.3'
4168
4169
4170 cat >>confdefs.h <<_ACEOF
4171 #define PACKAGE "$PACKAGE"
4172 _ACEOF
4173
4174
4175 cat >>confdefs.h <<_ACEOF
4176 #define VERSION "$VERSION"
4177 _ACEOF
4178
4179 # Some tools Automake needs.
4180
4181 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182
4183
4184 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4185
4186
4187 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188
4189
4190 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4191
4192
4193 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4194
4195 # For better backward compatibility. To be removed once Automake 1.9.x
4196 # dies out for good. For more background, see:
4197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4199 mkdir_p='$(MKDIR_P)'
4200
4201 # We need awk for the "check" target. The system "awk" is bad on
4202 # some platforms.
4203 # Always define AMTAR for backward compatibility. Yes, it's still used
4204 # in the wild :-( We should find a proper way to deprecate it ...
4205 AMTAR='$${TAR-tar}'
4206
4207
4208 # We'll loop over all known methods to create a tar archive until one works.
4209 _am_tools='gnutar pax cpio none'
4210
4211 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4212
4213
4214
4215
4216
4217 depcc="$CC" am_compiler_list=
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named 'D' -- because '-MD' means "put the output
4229 # in D".
4230 rm -rf conftest.dir
4231 mkdir conftest.dir
4232 # Copy depcomp to subdir because otherwise we won't find it if we're
4233 # using a relative directory.
4234 cp "$am_depcomp" conftest.dir
4235 cd conftest.dir
4236 # We will build objects and dependencies in a subdirectory because
4237 # it helps to detect inapplicable dependency modes. For instance
4238 # both Tru64's cc and ICC support -MD to output dependencies as a
4239 # side effect of compilation, but ICC will put the dependencies in
4240 # the current directory while Tru64 will put them in the object
4241 # directory.
4242 mkdir sub
4243
4244 am_cv_CC_dependencies_compiler_type=none
4245 if test "$am_compiler_list" = ""; then
4246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 fi
4248 am__universal=false
4249 case " $depcc " in #(
4250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4251 esac
4252
4253 for depmode in $am_compiler_list; do
4254 # Setup a source with many dependencies, because some compilers
4255 # like to wrap large dependency lists on column 80 (with \), and
4256 # we should not choose a depcomp mode which is confused by this.
4257 #
4258 # We need to recreate these files for each test, as the compiler may
4259 # overwrite some of them when testing with obscure command lines.
4260 # This happens at least with the AIX C compiler.
4261 : > sub/conftest.c
4262 for i in 1 2 3 4 5 6; do
4263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265 # Solaris 10 /bin/sh.
4266 echo '/* dummy */' > sub/conftst$i.h
4267 done
4268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269
4270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271 # mode. It turns out that the SunPro C++ compiler does not properly
4272 # handle '-M -o', and we need to detect this. Also, some Intel
4273 # versions had trouble with output in subdirs.
4274 am__obj=sub/conftest.${OBJEXT-o}
4275 am__minus_obj="-o $am__obj"
4276 case $depmode in
4277 gcc)
4278 # This depmode causes a compiler race in universal mode.
4279 test "$am__universal" = false || continue
4280 ;;
4281 nosideeffect)
4282 # After this tag, mechanisms are not by side-effect, so they'll
4283 # only be used when explicitly requested.
4284 if test "x$enable_dependency_tracking" = xyes; then
4285 continue
4286 else
4287 break
4288 fi
4289 ;;
4290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4291 # This compiler won't grok '-c -o', but also, the minuso test has
4292 # not run yet. These depmodes are late enough in the game, and
4293 # so weak that their functioning should not be impacted.
4294 am__obj=conftest.${OBJEXT-o}
4295 am__minus_obj=
4296 ;;
4297 none) break ;;
4298 esac
4299 if depmode=$depmode \
4300 source=sub/conftest.c object=$am__obj \
4301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4303 >/dev/null 2>conftest.err &&
4304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4308 # icc doesn't choke on unknown options, it will just issue warnings
4309 # or remarks (even with -Werror). So we grep stderr for any message
4310 # that says an option was ignored or not supported.
4311 # When given -MP, icc 7.0 and 7.1 complain thusly:
4312 # icc: Command line warning: ignoring option '-M'; no argument required
4313 # The diagnosis changed in icc 8.0:
4314 # icc: Command line remark: option '-MP' not supported
4315 if (grep 'ignoring option' conftest.err ||
4316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4317 am_cv_CC_dependencies_compiler_type=$depmode
4318 break
4319 fi
4320 fi
4321 done
4322
4323 cd ..
4324 rm -rf conftest.dir
4325 else
4326 am_cv_CC_dependencies_compiler_type=none
4327 fi
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4333
4334 if
4335 test "x$enable_dependency_tracking" != xno \
4336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4337 am__fastdepCC_TRUE=
4338 am__fastdepCC_FALSE='#'
4339 else
4340 am__fastdepCC_TRUE='#'
4341 am__fastdepCC_FALSE=
4342 fi
4343
4344
4345
4346 # POSIX will say in a future version that running "rm -f" with no argument
4347 # is OK; and we want to be able to make that assumption in our Makefile
4348 # recipes. So use an aggressive probe to check that the usage we want is
4349 # actually supported "in the wild" to an acceptable degree.
4350 # See automake bug#10828.
4351 # To make any issue more visible, cause the running configure to be aborted
4352 # by default if the 'rm' program in use doesn't match our expectations; the
4353 # user can still override this though.
4354 if rm -f && rm -fr && rm -rf; then : OK; else
4355 cat >&2 <<'END'
4356 Oops!
4357
4358 Your 'rm' program seems unable to run without file operands specified
4359 on the command line, even when the '-f' option is present. This is contrary
4360 to the behaviour of most rm programs out there, and not conforming with
4361 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4362
4363 Please tell bug-automake@gnu.org about your system, including the value
4364 of your $PATH and any error possibly output before this message. This
4365 can help us improve future automake versions.
4366
4367 END
4368 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4369 echo 'Configuration will proceed anyway, since you have set the' >&2
4370 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4371 echo >&2
4372 else
4373 cat >&2 <<'END'
4374 Aborting the configuration process, to ensure you take notice of the issue.
4375
4376 You can download and install GNU coreutils to get an 'rm' implementation
4377 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4378
4379 If you want to complete the configuration process using your problematic
4380 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4381 to "yes", and re-run configure.
4382
4383 END
4384 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4385 fi
4386 fi
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4389 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4390 # Check whether --enable-maintainer-mode was given.
4391 if test "${enable_maintainer_mode+set}" = set; then :
4392 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4393 else
4394 USE_MAINTAINER_MODE=no
4395 fi
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4398 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4399 if test $USE_MAINTAINER_MODE = yes; then
4400 MAINTAINER_MODE_TRUE=
4401 MAINTAINER_MODE_FALSE='#'
4402 else
4403 MAINTAINER_MODE_TRUE='#'
4404 MAINTAINER_MODE_FALSE=
4405 fi
4406
4407 MAINT=$MAINTAINER_MODE_TRUE
4408
4409
4410
4411 # Require xorg-macros: XORG_MANPAGE_SECTIONS
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4424 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4425 if ${ac_cv_prog_cc_c99+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 ac_cv_prog_cc_c99=no
4429 ac_save_CC=$CC
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <stdarg.h>
4433 #include <stdbool.h>
4434 #include <stdlib.h>
4435 #include <wchar.h>
4436 #include <stdio.h>
4437
4438 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4439 #define debug(...) fprintf (stderr, __VA_ARGS__)
4440 #define showlist(...) puts (#__VA_ARGS__)
4441 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4442 static void
4443 test_varargs_macros (void)
4444 {
4445 int x = 1234;
4446 int y = 5678;
4447 debug ("Flag");
4448 debug ("X = %d\n", x);
4449 showlist (The first, second, and third items.);
4450 report (x>y, "x is %d but y is %d", x, y);
4451 }
4452
4453 // Check long long types.
4454 #define BIG64 18446744073709551615ull
4455 #define BIG32 4294967295ul
4456 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4457 #if !BIG_OK
4458 your preprocessor is broken;
4459 #endif
4460 #if BIG_OK
4461 #else
4462 your preprocessor is broken;
4463 #endif
4464 static long long int bignum = -9223372036854775807LL;
4465 static unsigned long long int ubignum = BIG64;
4466
4467 struct incomplete_array
4468 {
4469 int datasize;
4470 double data[];
4471 };
4472
4473 struct named_init {
4474 int number;
4475 const wchar_t *name;
4476 double average;
4477 };
4478
4479 typedef const char *ccp;
4480
4481 static inline int
4482 test_restrict (ccp restrict text)
4483 {
4484 // See if C++-style comments work.
4485 // Iterate through items via the restricted pointer.
4486 // Also check for declarations in for loops.
4487 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4488 continue;
4489 return 0;
4490 }
4491
4492 // Check varargs and va_copy.
4493 static void
4494 test_varargs (const char *format, ...)
4495 {
4496 va_list args;
4497 va_start (args, format);
4498 va_list args_copy;
4499 va_copy (args_copy, args);
4500
4501 const char *str;
4502 int number;
4503 float fnumber;
4504
4505 while (*format)
4506 {
4507 switch (*format++)
4508 {
4509 case 's': // string
4510 str = va_arg (args_copy, const char *);
4511 break;
4512 case 'd': // int
4513 number = va_arg (args_copy, int);
4514 break;
4515 case 'f': // float
4516 fnumber = va_arg (args_copy, double);
4517 break;
4518 default:
4519 break;
4520 }
4521 }
4522 va_end (args_copy);
4523 va_end (args);
4524 }
4525
4526 int
4527 main ()
4528 {
4529
4530 // Check bool.
4531 _Bool success = false;
4532
4533 // Check restrict.
4534 if (test_restrict ("String literal") == 0)
4535 success = true;
4536 char *restrict newvar = "Another string";
4537
4538 // Check varargs.
4539 test_varargs ("s, d' f .", "string", 65, 34.234);
4540 test_varargs_macros ();
4541
4542 // Check flexible array members.
4543 struct incomplete_array *ia =
4544 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4545 ia->datasize = 10;
4546 for (int i = 0; i < ia->datasize; ++i)
4547 ia->data[i] = i * 1.234;
4548
4549 // Check named initializers.
4550 struct named_init ni = {
4551 .number = 34,
4552 .name = L"Test wide string",
4553 .average = 543.34343,
4554 };
4555
4556 ni.number = 58;
4557
4558 int dynamic_array[ni.number];
4559 dynamic_array[ni.number - 1] = 543;
4560
4561 // work around unused variable warnings
4562 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4563 || dynamic_array[ni.number - 1] != 543);
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4570 do
4571 CC="$ac_save_CC $ac_arg"
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_prog_cc_c99=$ac_arg
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext
4576 test "x$ac_cv_prog_cc_c99" != "xno" && break
4577 done
4578 rm -f conftest.$ac_ext
4579 CC=$ac_save_CC
4580
4581 fi
4582 # AC_CACHE_VAL
4583 case "x$ac_cv_prog_cc_c99" in
4584 x)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4586 $as_echo "none needed" >&6; } ;;
4587 xno)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4589 $as_echo "unsupported" >&6; } ;;
4590 *)
4591 CC="$CC $ac_cv_prog_cc_c99"
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4593 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4594 esac
4595 if test "x$ac_cv_prog_cc_c99" != xno; then :
4596
4597 fi
4598
4599
4600
4601
4602
4603
4604 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4605 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4606 CLANGCC="yes"
4607 else
4608 CLANGCC="no"
4609 fi
4610
4611 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4612 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4613 INTELCC="yes"
4614 else
4615 INTELCC="no"
4616 fi
4617
4618 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4619 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4620 SUNCC="yes"
4621 else
4622 SUNCC="no"
4623 fi
4624
4625
4626
4627
4628 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 case $PKG_CONFIG in
4638 [\\/]* | ?:[\\/]*)
4639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4640 ;;
4641 *)
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 ;;
4658 esac
4659 fi
4660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4661 if test -n "$PKG_CONFIG"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4663 $as_echo "$PKG_CONFIG" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670 fi
4671 if test -z "$ac_cv_path_PKG_CONFIG"; then
4672 ac_pt_PKG_CONFIG=$PKG_CONFIG
4673 # Extract the first word of "pkg-config", so it can be a program name with args.
4674 set dummy pkg-config; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 case $ac_pt_PKG_CONFIG in
4681 [\\/]* | ?:[\\/]*)
4682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4683 ;;
4684 *)
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 ;;
4701 esac
4702 fi
4703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4704 if test -n "$ac_pt_PKG_CONFIG"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4706 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712 if test "x$ac_pt_PKG_CONFIG" = x; then
4713 PKG_CONFIG=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721 PKG_CONFIG=$ac_pt_PKG_CONFIG
4722 fi
4723 else
4724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4725 fi
4726
4727 fi
4728 if test -n "$PKG_CONFIG"; then
4729 _pkg_min_version=0.9.0
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4731 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 PKG_CONFIG=""
4739 fi
4740
4741 fi
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765 esac
4766 build=$ac_cv_build
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_build
4769 shift
4770 build_cpu=$1
4771 build_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 build_os=$*
4776 IFS=$ac_save_IFS
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test "x$host_alias" = x; then
4786 ac_cv_host=$ac_cv_build
4787 else
4788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790 fi
4791
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4795 case $ac_cv_host in
4796 *-*-*) ;;
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798 esac
4799 host=$ac_cv_host
4800 ac_save_IFS=$IFS; IFS='-'
4801 set x $ac_cv_host
4802 shift
4803 host_cpu=$1
4804 host_vendor=$2
4805 shift; shift
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4808 host_os=$*
4809 IFS=$ac_save_IFS
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815 if ${ac_cv_path_SED+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819 for ac_i in 1 2 3 4 5 6 7; do
4820 ac_script="$ac_script$as_nl$ac_script"
4821 done
4822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823 { ac_script=; unset ac_script;}
4824 if test -z "$SED"; then
4825 ac_path_SED_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in sed gsed; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4836 # Check for GNU ac_path_SED and select it if it is found.
4837 # Check for GNU $ac_path_SED
4838 case `"$ac_path_SED" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo '' >> "conftest.nl"
4850 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_SED_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_SED="$ac_path_SED"
4856 ac_path_SED_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_SED_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_SED"; then
4870 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_SED=$SED
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878 $as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880 rm -f conftest.sed
4881
4882
4883
4884
4885
4886
4887 # Check whether --enable-selective-werror was given.
4888 if test "${enable_selective_werror+set}" = set; then :
4889 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4890 else
4891 SELECTIVE_WERROR=yes
4892 fi
4893
4894
4895
4896
4897
4898 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4899 if test "x$SUNCC" = "xyes"; then
4900 BASE_CFLAGS="-v"
4901 else
4902 BASE_CFLAGS=""
4903 fi
4904
4905 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 xorg_testset_save_CFLAGS="$CFLAGS"
4920
4921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 int i;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 xorg_cv_cc_flag_unknown_warning_option=yes
4934 else
4935 xorg_cv_cc_flag_unknown_warning_option=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943 fi
4944
4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948 fi
4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 int i;
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 xorg_cv_cc_flag_unused_command_line_argument=yes
4961 else
4962 xorg_cv_cc_flag_unused_command_line_argument=no
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4969 CFLAGS="$xorg_testset_save_CFLAGS"
4970 fi
4971
4972 found="no"
4973
4974 if test $found = "no" ; then
4975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977 fi
4978
4979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4981 fi
4982
4983 CFLAGS="$CFLAGS -Wall"
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4986 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4987 cacheid=xorg_cv_cc_flag__Wall
4988 if eval \${$cacheid+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_link "$LINENO"; then :
5003 eval $cacheid=yes
5004 else
5005 eval $cacheid=no
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext \
5008 conftest$ac_exeext conftest.$ac_ext
5009 fi
5010
5011
5012 CFLAGS="$xorg_testset_save_CFLAGS"
5013
5014 eval supported=\$$cacheid
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5016 $as_echo "$supported" >&6; }
5017 if test "$supported" = "yes" ; then
5018 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5019 found="yes"
5020 fi
5021 fi
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 xorg_testset_save_CFLAGS="$CFLAGS"
5038
5039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 int i;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 xorg_cv_cc_flag_unknown_warning_option=yes
5052 else
5053 xorg_cv_cc_flag_unknown_warning_option=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5061 fi
5062
5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066 fi
5067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 int i;
5076 _ACEOF
5077 if ac_fn_c_try_compile "$LINENO"; then :
5078 xorg_cv_cc_flag_unused_command_line_argument=yes
5079 else
5080 xorg_cv_cc_flag_unused_command_line_argument=no
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5087 CFLAGS="$xorg_testset_save_CFLAGS"
5088 fi
5089
5090 found="no"
5091
5092 if test $found = "no" ; then
5093 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 fi
5096
5097 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5099 fi
5100
5101 CFLAGS="$CFLAGS -Wpointer-arith"
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5104 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5105 cacheid=xorg_cv_cc_flag__Wpointer_arith
5106 if eval \${$cacheid+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int i;
5112 int
5113 main ()
5114 {
5115
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_c_try_link "$LINENO"; then :
5121 eval $cacheid=yes
5122 else
5123 eval $cacheid=no
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127 fi
5128
5129
5130 CFLAGS="$xorg_testset_save_CFLAGS"
5131
5132 eval supported=\$$cacheid
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134 $as_echo "$supported" >&6; }
5135 if test "$supported" = "yes" ; then
5136 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5137 found="yes"
5138 fi
5139 fi
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 xorg_testset_save_CFLAGS="$CFLAGS"
5156
5157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5160 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5161 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 int i;
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 xorg_cv_cc_flag_unknown_warning_option=yes
5170 else
5171 xorg_cv_cc_flag_unknown_warning_option=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5176 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179 fi
5180
5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 fi
5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 int i;
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196 xorg_cv_cc_flag_unused_command_line_argument=yes
5197 else
5198 xorg_cv_cc_flag_unused_command_line_argument=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205 CFLAGS="$xorg_testset_save_CFLAGS"
5206 fi
5207
5208 found="no"
5209
5210 if test $found = "no" ; then
5211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 fi
5214
5215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 fi
5218
5219 CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5223 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224 if eval \${$cacheid+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 int i;
5230 int
5231 main ()
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_link "$LINENO"; then :
5239 eval $cacheid=yes
5240 else
5241 eval $cacheid=no
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 fi
5246
5247
5248 CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250 eval supported=\$$cacheid
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252 $as_echo "$supported" >&6; }
5253 if test "$supported" = "yes" ; then
5254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5255 found="yes"
5256 fi
5257 fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 xorg_testset_save_CFLAGS="$CFLAGS"
5274
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 int i;
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 xorg_cv_cc_flag_unknown_warning_option=yes
5288 else
5289 xorg_cv_cc_flag_unknown_warning_option=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302 fi
5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 int i;
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314 xorg_cv_cc_flag_unused_command_line_argument=yes
5315 else
5316 xorg_cv_cc_flag_unused_command_line_argument=no
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5323 CFLAGS="$xorg_testset_save_CFLAGS"
5324 fi
5325
5326 found="no"
5327
5328 if test $found = "no" ; then
5329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331 fi
5332
5333 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335 fi
5336
5337 CFLAGS="$CFLAGS -Wformat=2"
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5340 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5341 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5342 if eval \${$cacheid+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 int i;
5348 int
5349 main ()
5350 {
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_link "$LINENO"; then :
5357 eval $cacheid=yes
5358 else
5359 eval $cacheid=no
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 fi
5364
5365
5366 CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368 eval supported=\$$cacheid
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370 $as_echo "$supported" >&6; }
5371 if test "$supported" = "yes" ; then
5372 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5373 found="yes"
5374 fi
5375 fi
5376
5377 if test $found = "no" ; then
5378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380 fi
5381
5382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5384 fi
5385
5386 CFLAGS="$CFLAGS -Wformat"
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5389 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5390 cacheid=xorg_cv_cc_flag__Wformat
5391 if eval \${$cacheid+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 int i;
5397 int
5398 main ()
5399 {
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_link "$LINENO"; then :
5406 eval $cacheid=yes
5407 else
5408 eval $cacheid=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 fi
5413
5414
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416
5417 eval supported=\$$cacheid
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5419 $as_echo "$supported" >&6; }
5420 if test "$supported" = "yes" ; then
5421 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5422 found="yes"
5423 fi
5424 fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 int i;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 xorg_cv_cc_flag_unknown_warning_option=yes
5457 else
5458 xorg_cv_cc_flag_unknown_warning_option=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466 fi
5467
5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 fi
5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 xorg_cv_cc_flag_unused_command_line_argument=yes
5484 else
5485 xorg_cv_cc_flag_unused_command_line_argument=no
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5492 CFLAGS="$xorg_testset_save_CFLAGS"
5493 fi
5494
5495 found="no"
5496
5497 if test $found = "no" ; then
5498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 fi
5501
5502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5504 fi
5505
5506 CFLAGS="$CFLAGS -Wstrict-prototypes"
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5509 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5510 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5511 if eval \${$cacheid+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 int
5518 main ()
5519 {
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 if ac_fn_c_try_link "$LINENO"; then :
5526 eval $cacheid=yes
5527 else
5528 eval $cacheid=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5532 fi
5533
5534
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537 eval supported=\$$cacheid
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539 $as_echo "$supported" >&6; }
5540 if test "$supported" = "yes" ; then
5541 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5542 found="yes"
5543 fi
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 xorg_cv_cc_flag_unknown_warning_option=yes
5575 else
5576 xorg_cv_cc_flag_unknown_warning_option=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 fi
5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 int i;
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 xorg_cv_cc_flag_unused_command_line_argument=yes
5602 else
5603 xorg_cv_cc_flag_unused_command_line_argument=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5610 CFLAGS="$xorg_testset_save_CFLAGS"
5611 fi
5612
5613 found="no"
5614
5615 if test $found = "no" ; then
5616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 fi
5619
5620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5622 fi
5623
5624 CFLAGS="$CFLAGS -Wmissing-prototypes"
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5627 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5628 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5629 if eval \${$cacheid+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 int
5636 main ()
5637 {
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_link "$LINENO"; then :
5644 eval $cacheid=yes
5645 else
5646 eval $cacheid=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650 fi
5651
5652
5653 CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655 eval supported=\$$cacheid
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657 $as_echo "$supported" >&6; }
5658 if test "$supported" = "yes" ; then
5659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5660 found="yes"
5661 fi
5662 fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 xorg_cv_cc_flag_unknown_warning_option=yes
5693 else
5694 xorg_cv_cc_flag_unknown_warning_option=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 int i;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 xorg_cv_cc_flag_unused_command_line_argument=yes
5720 else
5721 xorg_cv_cc_flag_unused_command_line_argument=no
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729 fi
5730
5731 found="no"
5732
5733 if test $found = "no" ; then
5734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 fi
5737
5738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740 fi
5741
5742 CFLAGS="$CFLAGS -Wnested-externs"
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5745 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5746 cacheid=xorg_cv_cc_flag__Wnested_externs
5747 if eval \${$cacheid+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 int
5754 main ()
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_link "$LINENO"; then :
5762 eval $cacheid=yes
5763 else
5764 eval $cacheid=no
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 fi
5769
5770
5771 CFLAGS="$xorg_testset_save_CFLAGS"
5772
5773 eval supported=\$$cacheid
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5775 $as_echo "$supported" >&6; }
5776 if test "$supported" = "yes" ; then
5777 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5778 found="yes"
5779 fi
5780 fi
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796 xorg_testset_save_CFLAGS="$CFLAGS"
5797
5798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 int i;
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 xorg_cv_cc_flag_unknown_warning_option=yes
5811 else
5812 xorg_cv_cc_flag_unknown_warning_option=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5819 CFLAGS="$xorg_testset_save_CFLAGS"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825 fi
5826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 int i;
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 xorg_cv_cc_flag_unused_command_line_argument=yes
5838 else
5839 xorg_cv_cc_flag_unused_command_line_argument=no
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5846 CFLAGS="$xorg_testset_save_CFLAGS"
5847 fi
5848
5849 found="no"
5850
5851 if test $found = "no" ; then
5852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854 fi
5855
5856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858 fi
5859
5860 CFLAGS="$CFLAGS -Wbad-function-cast"
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5863 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5864 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5865 if eval \${$cacheid+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main ()
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"; then :
5880 eval $cacheid=yes
5881 else
5882 eval $cacheid=no
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 fi
5887
5888
5889 CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891 eval supported=\$$cacheid
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893 $as_echo "$supported" >&6; }
5894 if test "$supported" = "yes" ; then
5895 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5896 found="yes"
5897 fi
5898 fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int i;
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 xorg_cv_cc_flag_unknown_warning_option=yes
5929 else
5930 xorg_cv_cc_flag_unknown_warning_option=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937 CFLAGS="$xorg_testset_save_CFLAGS"
5938 fi
5939
5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 fi
5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 xorg_cv_cc_flag_unused_command_line_argument=yes
5956 else
5957 xorg_cv_cc_flag_unused_command_line_argument=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964 CFLAGS="$xorg_testset_save_CFLAGS"
5965 fi
5966
5967 found="no"
5968
5969 if test $found = "no" ; then
5970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972 fi
5973
5974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976 fi
5977
5978 CFLAGS="$CFLAGS -Wold-style-definition"
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5981 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5982 cacheid=xorg_cv_cc_flag__Wold_style_definition
5983 if eval \${$cacheid+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int i;
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 eval $cacheid=yes
5999 else
6000 eval $cacheid=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 fi
6005
6006
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009 eval supported=\$$cacheid
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011 $as_echo "$supported" >&6; }
6012 if test "$supported" = "yes" ; then
6013 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6014 found="yes"
6015 fi
6016 fi
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 xorg_testset_save_CFLAGS="$CFLAGS"
6033
6034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 int i;
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046 xorg_cv_cc_flag_unknown_warning_option=yes
6047 else
6048 xorg_cv_cc_flag_unknown_warning_option=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6055 CFLAGS="$xorg_testset_save_CFLAGS"
6056 fi
6057
6058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 fi
6062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 int i;
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073 xorg_cv_cc_flag_unused_command_line_argument=yes
6074 else
6075 xorg_cv_cc_flag_unused_command_line_argument=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083 fi
6084
6085 found="no"
6086
6087 if test $found = "no" ; then
6088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6090 fi
6091
6092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6094 fi
6095
6096 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6099 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6100 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6101 if eval \${$cacheid+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 int i;
6107 int
6108 main ()
6109 {
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 eval $cacheid=yes
6117 else
6118 eval $cacheid=no
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 fi
6123
6124
6125 CFLAGS="$xorg_testset_save_CFLAGS"
6126
6127 eval supported=\$$cacheid
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6129 $as_echo "$supported" >&6; }
6130 if test "$supported" = "yes" ; then
6131 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6132 found="yes"
6133 fi
6134 fi
6135
6136
6137
6138
6139
6140 # This chunk adds additional warnings that could catch undesired effects.
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 xorg_cv_cc_flag_unknown_warning_option=yes
6169 else
6170 xorg_cv_cc_flag_unknown_warning_option=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 fi
6184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 xorg_cv_cc_flag_unused_command_line_argument=yes
6196 else
6197 xorg_cv_cc_flag_unused_command_line_argument=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205 fi
6206
6207 found="no"
6208
6209 if test $found = "no" ; then
6210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213
6214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216 fi
6217
6218 CFLAGS="$CFLAGS -Wunused"
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6221 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6222 cacheid=xorg_cv_cc_flag__Wunused
6223 if eval \${$cacheid+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 int
6230 main ()
6231 {
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 eval $cacheid=yes
6239 else
6240 eval $cacheid=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6244 fi
6245
6246
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249 eval supported=\$$cacheid
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251 $as_echo "$supported" >&6; }
6252 if test "$supported" = "yes" ; then
6253 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6254 found="yes"
6255 fi
6256 fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 xorg_cv_cc_flag_unknown_warning_option=yes
6287 else
6288 xorg_cv_cc_flag_unknown_warning_option=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301 fi
6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 xorg_cv_cc_flag_unused_command_line_argument=yes
6314 else
6315 xorg_cv_cc_flag_unused_command_line_argument=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322 CFLAGS="$xorg_testset_save_CFLAGS"
6323 fi
6324
6325 found="no"
6326
6327 if test $found = "no" ; then
6328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 fi
6331
6332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334 fi
6335
6336 CFLAGS="$CFLAGS -Wuninitialized"
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6339 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6340 cacheid=xorg_cv_cc_flag__Wuninitialized
6341 if eval \${$cacheid+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 int
6348 main ()
6349 {
6350
6351 ;
6352 return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 eval $cacheid=yes
6357 else
6358 eval $cacheid=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 fi
6363
6364
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367 eval supported=\$$cacheid
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369 $as_echo "$supported" >&6; }
6370 if test "$supported" = "yes" ; then
6371 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6372 found="yes"
6373 fi
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int i;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 xorg_cv_cc_flag_unknown_warning_option=yes
6405 else
6406 xorg_cv_cc_flag_unknown_warning_option=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414 fi
6415
6416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 xorg_cv_cc_flag_unused_command_line_argument=yes
6432 else
6433 xorg_cv_cc_flag_unused_command_line_argument=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441 fi
6442
6443 found="no"
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -Wshadow"
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6457 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6458 cacheid=xorg_cv_cc_flag__Wshadow
6459 if eval \${$cacheid+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 int
6466 main ()
6467 {
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 eval $cacheid=yes
6475 else
6476 eval $cacheid=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 fi
6481
6482
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485 eval supported=\$$cacheid
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487 $as_echo "$supported" >&6; }
6488 if test "$supported" = "yes" ; then
6489 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6490 found="yes"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 int i;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 xorg_cv_cc_flag_unknown_warning_option=yes
6523 else
6524 xorg_cv_cc_flag_unknown_warning_option=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 else
6551 xorg_cv_cc_flag_unused_command_line_argument=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 found="no"
6562
6563 if test $found = "no" ; then
6564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 fi
6567
6568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570 fi
6571
6572 CFLAGS="$CFLAGS -Wcast-qual"
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6575 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6576 cacheid=xorg_cv_cc_flag__Wcast_qual
6577 if eval \${$cacheid+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 eval $cacheid=yes
6593 else
6594 eval $cacheid=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 fi
6599
6600
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603 eval supported=\$$cacheid
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605 $as_echo "$supported" >&6; }
6606 if test "$supported" = "yes" ; then
6607 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6608 found="yes"
6609 fi
6610 fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 xorg_cv_cc_flag_unknown_warning_option=yes
6641 else
6642 xorg_cv_cc_flag_unknown_warning_option=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650 fi
6651
6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 fi
6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 xorg_cv_cc_flag_unused_command_line_argument=yes
6668 else
6669 xorg_cv_cc_flag_unused_command_line_argument=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677 fi
6678
6679 found="no"
6680
6681 if test $found = "no" ; then
6682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 fi
6685
6686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688 fi
6689
6690 CFLAGS="$CFLAGS -Wmissing-noreturn"
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6693 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6694 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6695 if eval \${$cacheid+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 eval $cacheid=yes
6711 else
6712 eval $cacheid=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 fi
6717
6718
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721 eval supported=\$$cacheid
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723 $as_echo "$supported" >&6; }
6724 if test "$supported" = "yes" ; then
6725 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6726 found="yes"
6727 fi
6728 fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 xorg_cv_cc_flag_unknown_warning_option=yes
6759 else
6760 xorg_cv_cc_flag_unknown_warning_option=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768 fi
6769
6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773 fi
6774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int i;
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 xorg_cv_cc_flag_unused_command_line_argument=yes
6786 else
6787 xorg_cv_cc_flag_unused_command_line_argument=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794 CFLAGS="$xorg_testset_save_CFLAGS"
6795 fi
6796
6797 found="no"
6798
6799 if test $found = "no" ; then
6800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802 fi
6803
6804 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806 fi
6807
6808 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6811 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6812 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6813 if eval \${$cacheid+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 int i;
6819 int
6820 main ()
6821 {
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 eval $cacheid=yes
6829 else
6830 eval $cacheid=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 fi
6835
6836
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839 eval supported=\$$cacheid
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841 $as_echo "$supported" >&6; }
6842 if test "$supported" = "yes" ; then
6843 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6844 found="yes"
6845 fi
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 xorg_testset_save_CFLAGS="$CFLAGS"
6863
6864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 int i;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 xorg_cv_cc_flag_unknown_warning_option=yes
6877 else
6878 xorg_cv_cc_flag_unknown_warning_option=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6883 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6885 CFLAGS="$xorg_testset_save_CFLAGS"
6886 fi
6887
6888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 fi
6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6894 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 int i;
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 xorg_cv_cc_flag_unused_command_line_argument=yes
6904 else
6905 xorg_cv_cc_flag_unused_command_line_argument=no
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6910 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6912 CFLAGS="$xorg_testset_save_CFLAGS"
6913 fi
6914
6915 found="no"
6916
6917 if test $found = "no" ; then
6918 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920 fi
6921
6922 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924 fi
6925
6926 CFLAGS="$CFLAGS -Wredundant-decls"
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6929 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6930 cacheid=xorg_cv_cc_flag__Wredundant_decls
6931 if eval \${$cacheid+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 int
6938 main ()
6939 {
6940
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946 eval $cacheid=yes
6947 else
6948 eval $cacheid=no
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6952 fi
6953
6954
6955 CFLAGS="$xorg_testset_save_CFLAGS"
6956
6957 eval supported=\$$cacheid
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6959 $as_echo "$supported" >&6; }
6960 if test "$supported" = "yes" ; then
6961 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6962 found="yes"
6963 fi
6964 fi
6965
6966
6967
6968 # These are currently disabled because they are noisy. They will be enabled
6969 # in the future once the codebase is sufficiently modernized to silence
6970 # them. For now, I don't want them to drown out the other warnings.
6971 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6972 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6973 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6974
6975 # Turn some warnings into errors, so we don't accidently get successful builds
6976 # when there are problems that should be fixed.
6977
6978 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992 xorg_testset_save_CFLAGS="$CFLAGS"
6993
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 xorg_cv_cc_flag_unknown_warning_option=yes
7007 else
7008 xorg_cv_cc_flag_unknown_warning_option=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7016 fi
7017
7018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7021 fi
7022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030 int i;
7031 _ACEOF
7032 if ac_fn_c_try_compile "$LINENO"; then :
7033 xorg_cv_cc_flag_unused_command_line_argument=yes
7034 else
7035 xorg_cv_cc_flag_unused_command_line_argument=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7042 CFLAGS="$xorg_testset_save_CFLAGS"
7043 fi
7044
7045 found="no"
7046
7047 if test $found = "no" ; then
7048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050 fi
7051
7052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054 fi
7055
7056 CFLAGS="$CFLAGS -Werror=implicit"
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7059 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7060 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7061 if eval \${$cacheid+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 int i;
7067 int
7068 main ()
7069 {
7070
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_link "$LINENO"; then :
7076 eval $cacheid=yes
7077 else
7078 eval $cacheid=no
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 fi
7083
7084
7085 CFLAGS="$xorg_testset_save_CFLAGS"
7086
7087 eval supported=\$$cacheid
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7089 $as_echo "$supported" >&6; }
7090 if test "$supported" = "yes" ; then
7091 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7092 found="yes"
7093 fi
7094 fi
7095
7096 if test $found = "no" ; then
7097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 fi
7100
7101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 fi
7104
7105 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7108 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7109 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7110 if eval \${$cacheid+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_link "$LINENO"; then :
7125 eval $cacheid=yes
7126 else
7127 eval $cacheid=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 fi
7132
7133
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136 eval supported=\$$cacheid
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138 $as_echo "$supported" >&6; }
7139 if test "$supported" = "yes" ; then
7140 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7141 found="yes"
7142 fi
7143 fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 int i;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 xorg_cv_cc_flag_unknown_warning_option=yes
7174 else
7175 xorg_cv_cc_flag_unknown_warning_option=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int i;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 xorg_cv_cc_flag_unused_command_line_argument=yes
7201 else
7202 xorg_cv_cc_flag_unused_command_line_argument=no
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210 fi
7211
7212 found="no"
7213
7214 if test $found = "no" ; then
7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 fi
7218
7219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221 fi
7222
7223 CFLAGS="$CFLAGS -Werror=nonnull"
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7226 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7227 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7228 if eval \${$cacheid+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 int
7235 main ()
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 eval $cacheid=yes
7244 else
7245 eval $cacheid=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 fi
7250
7251
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254 eval supported=\$$cacheid
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256 $as_echo "$supported" >&6; }
7257 if test "$supported" = "yes" ; then
7258 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7259 found="yes"
7260 fi
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 xorg_testset_save_CFLAGS="$CFLAGS"
7278
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 xorg_cv_cc_flag_unknown_warning_option=yes
7292 else
7293 xorg_cv_cc_flag_unknown_warning_option=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7300 CFLAGS="$xorg_testset_save_CFLAGS"
7301 fi
7302
7303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 fi
7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7318 xorg_cv_cc_flag_unused_command_line_argument=yes
7319 else
7320 xorg_cv_cc_flag_unused_command_line_argument=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327 CFLAGS="$xorg_testset_save_CFLAGS"
7328 fi
7329
7330 found="no"
7331
7332 if test $found = "no" ; then
7333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 fi
7336
7337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 fi
7340
7341 CFLAGS="$CFLAGS -Werror=init-self"
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7344 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7346 if eval \${$cacheid+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 int
7353 main ()
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"; then :
7361 eval $cacheid=yes
7362 else
7363 eval $cacheid=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 fi
7368
7369
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371
7372 eval supported=\$$cacheid
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7374 $as_echo "$supported" >&6; }
7375 if test "$supported" = "yes" ; then
7376 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7377 found="yes"
7378 fi
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 xorg_testset_save_CFLAGS="$CFLAGS"
7396
7397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 xorg_cv_cc_flag_unknown_warning_option=yes
7410 else
7411 xorg_cv_cc_flag_unknown_warning_option=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419 fi
7420
7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 xorg_cv_cc_flag_unused_command_line_argument=yes
7437 else
7438 xorg_cv_cc_flag_unused_command_line_argument=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 found="no"
7449
7450 if test $found = "no" ; then
7451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 fi
7454
7455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457 fi
7458
7459 CFLAGS="$CFLAGS -Werror=main"
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7462 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7463 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7464 if eval \${$cacheid+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 int i;
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 eval $cacheid=yes
7480 else
7481 eval $cacheid=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 fi
7486
7487
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490 eval supported=\$$cacheid
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492 $as_echo "$supported" >&6; }
7493 if test "$supported" = "yes" ; then
7494 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7495 found="yes"
7496 fi
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 xorg_testset_save_CFLAGS="$CFLAGS"
7514
7515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 int i;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 xorg_cv_cc_flag_unknown_warning_option=yes
7528 else
7529 xorg_cv_cc_flag_unknown_warning_option=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537 fi
7538
7539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542 fi
7543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 xorg_cv_cc_flag_unused_command_line_argument=yes
7555 else
7556 xorg_cv_cc_flag_unused_command_line_argument=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564 fi
7565
7566 found="no"
7567
7568 if test $found = "no" ; then
7569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571 fi
7572
7573 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7575 fi
7576
7577 CFLAGS="$CFLAGS -Werror=missing-braces"
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7580 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7581 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7582 if eval \${$cacheid+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 int
7589 main ()
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_link "$LINENO"; then :
7597 eval $cacheid=yes
7598 else
7599 eval $cacheid=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 fi
7604
7605
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607
7608 eval supported=\$$cacheid
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7610 $as_echo "$supported" >&6; }
7611 if test "$supported" = "yes" ; then
7612 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7613 found="yes"
7614 fi
7615 fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 xorg_testset_save_CFLAGS="$CFLAGS"
7632
7633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 int i;
7643 _ACEOF
7644 if ac_fn_c_try_compile "$LINENO"; then :
7645 xorg_cv_cc_flag_unknown_warning_option=yes
7646 else
7647 xorg_cv_cc_flag_unknown_warning_option=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7655 fi
7656
7657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 fi
7661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 int i;
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 xorg_cv_cc_flag_unused_command_line_argument=yes
7673 else
7674 xorg_cv_cc_flag_unused_command_line_argument=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7681 CFLAGS="$xorg_testset_save_CFLAGS"
7682 fi
7683
7684 found="no"
7685
7686 if test $found = "no" ; then
7687 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689 fi
7690
7691 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693 fi
7694
7695 CFLAGS="$CFLAGS -Werror=sequence-point"
7696
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7698 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7699 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7700 if eval \${$cacheid+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 int i;
7706 int
7707 main ()
7708 {
7709
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then :
7715 eval $cacheid=yes
7716 else
7717 eval $cacheid=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 fi
7722
7723
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725
7726 eval supported=\$$cacheid
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7728 $as_echo "$supported" >&6; }
7729 if test "$supported" = "yes" ; then
7730 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7731 found="yes"
7732 fi
7733 fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 xorg_testset_save_CFLAGS="$CFLAGS"
7750
7751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 int i;
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763 xorg_cv_cc_flag_unknown_warning_option=yes
7764 else
7765 xorg_cv_cc_flag_unknown_warning_option=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7773 fi
7774
7775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7778 fi
7779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 int i;
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790 xorg_cv_cc_flag_unused_command_line_argument=yes
7791 else
7792 xorg_cv_cc_flag_unused_command_line_argument=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7799 CFLAGS="$xorg_testset_save_CFLAGS"
7800 fi
7801
7802 found="no"
7803
7804 if test $found = "no" ; then
7805 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807 fi
7808
7809 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811 fi
7812
7813 CFLAGS="$CFLAGS -Werror=return-type"
7814
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7816 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7817 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7818 if eval \${$cacheid+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 int i;
7824 int
7825 main ()
7826 {
7827
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 eval $cacheid=yes
7834 else
7835 eval $cacheid=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7839 fi
7840
7841
7842 CFLAGS="$xorg_testset_save_CFLAGS"
7843
7844 eval supported=\$$cacheid
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7846 $as_echo "$supported" >&6; }
7847 if test "$supported" = "yes" ; then
7848 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7849 found="yes"
7850 fi
7851 fi
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7865 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7866 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7867 if eval \${$cacheid+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 int
7874 main ()
7875 {
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 eval $cacheid=yes
7883 else
7884 eval $cacheid=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7888 fi
7889
7890
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893 eval supported=\$$cacheid
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895 $as_echo "$supported" >&6; }
7896 if test "$supported" = "yes" ; then
7897 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7898 found="yes"
7899 fi
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 xorg_cv_cc_flag_unknown_warning_option=yes
7931 else
7932 xorg_cv_cc_flag_unknown_warning_option=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957 xorg_cv_cc_flag_unused_command_line_argument=yes
7958 else
7959 xorg_cv_cc_flag_unused_command_line_argument=no
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966 CFLAGS="$xorg_testset_save_CFLAGS"
7967 fi
7968
7969 found="no"
7970
7971 if test $found = "no" ; then
7972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 fi
7975
7976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 fi
7979
7980 CFLAGS="$CFLAGS -Werror=trigraphs"
7981
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7983 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7984 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7985 if eval \${$cacheid+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 int
7992 main ()
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_link "$LINENO"; then :
8000 eval $cacheid=yes
8001 else
8002 eval $cacheid=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 fi
8007
8008
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011 eval supported=\$$cacheid
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013 $as_echo "$supported" >&6; }
8014 if test "$supported" = "yes" ; then
8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8016 found="yes"
8017 fi
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 xorg_testset_save_CFLAGS="$CFLAGS"
8035
8036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 xorg_cv_cc_flag_unknown_warning_option=yes
8049 else
8050 xorg_cv_cc_flag_unknown_warning_option=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058 fi
8059
8060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 fi
8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 xorg_cv_cc_flag_unused_command_line_argument=yes
8076 else
8077 xorg_cv_cc_flag_unused_command_line_argument=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=array-bounds"
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8101 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8102 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8103 if eval \${$cacheid+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int i;
8109 int
8110 main ()
8111 {
8112
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 eval $cacheid=yes
8119 else
8120 eval $cacheid=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 fi
8125
8126
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129 eval supported=\$$cacheid
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131 $as_echo "$supported" >&6; }
8132 if test "$supported" = "yes" ; then
8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8134 found="yes"
8135 fi
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 xorg_testset_save_CFLAGS="$CFLAGS"
8153
8154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 xorg_cv_cc_flag_unknown_warning_option=yes
8167 else
8168 xorg_cv_cc_flag_unknown_warning_option=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8176 fi
8177
8178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181 fi
8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int i;
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 xorg_cv_cc_flag_unused_command_line_argument=yes
8194 else
8195 xorg_cv_cc_flag_unused_command_line_argument=no
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8202 CFLAGS="$xorg_testset_save_CFLAGS"
8203 fi
8204
8205 found="no"
8206
8207 if test $found = "no" ; then
8208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210 fi
8211
8212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214 fi
8215
8216 CFLAGS="$CFLAGS -Werror=write-strings"
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8219 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8220 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8221 if eval \${$cacheid+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 int i;
8227 int
8228 main ()
8229 {
8230
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 eval $cacheid=yes
8237 else
8238 eval $cacheid=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 fi
8243
8244
8245 CFLAGS="$xorg_testset_save_CFLAGS"
8246
8247 eval supported=\$$cacheid
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8249 $as_echo "$supported" >&6; }
8250 if test "$supported" = "yes" ; then
8251 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8252 found="yes"
8253 fi
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 xorg_testset_save_CFLAGS="$CFLAGS"
8271
8272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 int i;
8282 _ACEOF
8283 if ac_fn_c_try_compile "$LINENO"; then :
8284 xorg_cv_cc_flag_unknown_warning_option=yes
8285 else
8286 xorg_cv_cc_flag_unknown_warning_option=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293 CFLAGS="$xorg_testset_save_CFLAGS"
8294 fi
8295
8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299 fi
8300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 int i;
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 xorg_cv_cc_flag_unused_command_line_argument=yes
8312 else
8313 xorg_cv_cc_flag_unused_command_line_argument=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 fi
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320 CFLAGS="$xorg_testset_save_CFLAGS"
8321 fi
8322
8323 found="no"
8324
8325 if test $found = "no" ; then
8326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328 fi
8329
8330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332 fi
8333
8334 CFLAGS="$CFLAGS -Werror=address"
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8337 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8338 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8339 if eval \${$cacheid+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 int i;
8345 int
8346 main ()
8347 {
8348
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"; then :
8354 eval $cacheid=yes
8355 else
8356 eval $cacheid=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 fi
8361
8362
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364
8365 eval supported=\$$cacheid
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8367 $as_echo "$supported" >&6; }
8368 if test "$supported" = "yes" ; then
8369 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8370 found="yes"
8371 fi
8372 fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388 xorg_testset_save_CFLAGS="$CFLAGS"
8389
8390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 int i;
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 xorg_cv_cc_flag_unknown_warning_option=yes
8403 else
8404 xorg_cv_cc_flag_unknown_warning_option=no
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412 fi
8413
8414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 fi
8418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 int i;
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 xorg_cv_cc_flag_unused_command_line_argument=yes
8430 else
8431 xorg_cv_cc_flag_unused_command_line_argument=no
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8438 CFLAGS="$xorg_testset_save_CFLAGS"
8439 fi
8440
8441 found="no"
8442
8443 if test $found = "no" ; then
8444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446 fi
8447
8448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450 fi
8451
8452 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8453
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8455 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8456 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8457 if eval \${$cacheid+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 int
8464 main ()
8465 {
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 eval $cacheid=yes
8473 else
8474 eval $cacheid=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 fi
8479
8480
8481 CFLAGS="$xorg_testset_save_CFLAGS"
8482
8483 eval supported=\$$cacheid
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8485 $as_echo "$supported" >&6; }
8486 if test "$supported" = "yes" ; then
8487 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8488 found="yes"
8489 fi
8490 fi
8491
8492 if test $found = "no" ; then
8493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495 fi
8496
8497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499 fi
8500
8501 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8504 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8505 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8506 if eval \${$cacheid+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 int i;
8512 int
8513 main ()
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"; then :
8521 eval $cacheid=yes
8522 else
8523 eval $cacheid=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 fi
8528
8529
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532 eval supported=\$$cacheid
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534 $as_echo "$supported" >&6; }
8535 if test "$supported" = "yes" ; then
8536 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8537 found="yes"
8538 fi
8539 fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 xorg_testset_save_CFLAGS="$CFLAGS"
8556
8557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 int i;
8567 _ACEOF
8568 if ac_fn_c_try_compile "$LINENO"; then :
8569 xorg_cv_cc_flag_unknown_warning_option=yes
8570 else
8571 xorg_cv_cc_flag_unknown_warning_option=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579 fi
8580
8581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584 fi
8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 int i;
8594 _ACEOF
8595 if ac_fn_c_try_compile "$LINENO"; then :
8596 xorg_cv_cc_flag_unused_command_line_argument=yes
8597 else
8598 xorg_cv_cc_flag_unused_command_line_argument=no
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8605 CFLAGS="$xorg_testset_save_CFLAGS"
8606 fi
8607
8608 found="no"
8609
8610 if test $found = "no" ; then
8611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8613 fi
8614
8615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 fi
8618
8619 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8620
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8622 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8623 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8624 if eval \${$cacheid+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 int i;
8630 int
8631 main ()
8632 {
8633
8634 ;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_link "$LINENO"; then :
8639 eval $cacheid=yes
8640 else
8641 eval $cacheid=no
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext \
8644 conftest$ac_exeext conftest.$ac_ext
8645 fi
8646
8647
8648 CFLAGS="$xorg_testset_save_CFLAGS"
8649
8650 eval supported=\$$cacheid
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8652 $as_echo "$supported" >&6; }
8653 if test "$supported" = "yes" ; then
8654 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8655 found="yes"
8656 fi
8657 fi
8658
8659 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8660 else
8661 { $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
8662 $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;}
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676 xorg_testset_save_CFLAGS="$CFLAGS"
8677
8678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8681 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8682 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"; then :
8690 xorg_cv_cc_flag_unknown_warning_option=yes
8691 else
8692 xorg_cv_cc_flag_unknown_warning_option=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8697 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700 fi
8701
8702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 fi
8706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8709 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 xorg_cv_cc_flag_unused_command_line_argument=yes
8718 else
8719 xorg_cv_cc_flag_unused_command_line_argument=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8724 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8726 CFLAGS="$xorg_testset_save_CFLAGS"
8727 fi
8728
8729 found="no"
8730
8731 if test $found = "no" ; then
8732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734 fi
8735
8736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8738 fi
8739
8740 CFLAGS="$CFLAGS -Wimplicit"
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8743 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8744 cacheid=xorg_cv_cc_flag__Wimplicit
8745 if eval \${$cacheid+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 int
8752 main ()
8753 {
8754
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 eval $cacheid=yes
8761 else
8762 eval $cacheid=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 fi
8767
8768
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770
8771 eval supported=\$$cacheid
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8773 $as_echo "$supported" >&6; }
8774 if test "$supported" = "yes" ; then
8775 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8776 found="yes"
8777 fi
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 xorg_testset_save_CFLAGS="$CFLAGS"
8795
8796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 int i;
8806 _ACEOF
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808 xorg_cv_cc_flag_unknown_warning_option=yes
8809 else
8810 xorg_cv_cc_flag_unknown_warning_option=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818 fi
8819
8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 fi
8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int i;
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 xorg_cv_cc_flag_unused_command_line_argument=yes
8836 else
8837 xorg_cv_cc_flag_unused_command_line_argument=no
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844 CFLAGS="$xorg_testset_save_CFLAGS"
8845 fi
8846
8847 found="no"
8848
8849 if test $found = "no" ; then
8850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852 fi
8853
8854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856 fi
8857
8858 CFLAGS="$CFLAGS -Wnonnull"
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8861 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8862 cacheid=xorg_cv_cc_flag__Wnonnull
8863 if eval \${$cacheid+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 int
8870 main ()
8871 {
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 eval $cacheid=yes
8879 else
8880 eval $cacheid=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 fi
8885
8886
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889 eval supported=\$$cacheid
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891 $as_echo "$supported" >&6; }
8892 if test "$supported" = "yes" ; then
8893 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8894 found="yes"
8895 fi
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 xorg_testset_save_CFLAGS="$CFLAGS"
8913
8914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"; then :
8926 xorg_cv_cc_flag_unknown_warning_option=yes
8927 else
8928 xorg_cv_cc_flag_unknown_warning_option=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936 fi
8937
8938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 int i;
8951 _ACEOF
8952 if ac_fn_c_try_compile "$LINENO"; then :
8953 xorg_cv_cc_flag_unused_command_line_argument=yes
8954 else
8955 xorg_cv_cc_flag_unused_command_line_argument=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963 fi
8964
8965 found="no"
8966
8967 if test $found = "no" ; then
8968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970 fi
8971
8972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8974 fi
8975
8976 CFLAGS="$CFLAGS -Winit-self"
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8979 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8980 cacheid=xorg_cv_cc_flag__Winit_self
8981 if eval \${$cacheid+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 int
8988 main ()
8989 {
8990
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996 eval $cacheid=yes
8997 else
8998 eval $cacheid=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 fi
9003
9004
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007 eval supported=\$$cacheid
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009 $as_echo "$supported" >&6; }
9010 if test "$supported" = "yes" ; then
9011 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9012 found="yes"
9013 fi
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 xorg_cv_cc_flag_unknown_warning_option=yes
9045 else
9046 xorg_cv_cc_flag_unknown_warning_option=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054 fi
9055
9056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 _ACEOF
9070 if ac_fn_c_try_compile "$LINENO"; then :
9071 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 else
9073 xorg_cv_cc_flag_unused_command_line_argument=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081 fi
9082
9083 found="no"
9084
9085 if test $found = "no" ; then
9086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 fi
9089
9090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092 fi
9093
9094 CFLAGS="$CFLAGS -Wmain"
9095
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9097 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9098 cacheid=xorg_cv_cc_flag__Wmain
9099 if eval \${$cacheid+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 int
9106 main ()
9107 {
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 eval $cacheid=yes
9115 else
9116 eval $cacheid=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 fi
9121
9122
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124
9125 eval supported=\$$cacheid
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9127 $as_echo "$supported" >&6; }
9128 if test "$supported" = "yes" ; then
9129 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9130 found="yes"
9131 fi
9132 fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 xorg_testset_save_CFLAGS="$CFLAGS"
9149
9150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 xorg_cv_cc_flag_unknown_warning_option=yes
9163 else
9164 xorg_cv_cc_flag_unknown_warning_option=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172 fi
9173
9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 fi
9178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 xorg_cv_cc_flag_unused_command_line_argument=yes
9190 else
9191 xorg_cv_cc_flag_unused_command_line_argument=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198 CFLAGS="$xorg_testset_save_CFLAGS"
9199 fi
9200
9201 found="no"
9202
9203 if test $found = "no" ; then
9204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206 fi
9207
9208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210 fi
9211
9212 CFLAGS="$CFLAGS -Wmissing-braces"
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9215 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9216 cacheid=xorg_cv_cc_flag__Wmissing_braces
9217 if eval \${$cacheid+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 int
9224 main ()
9225 {
9226
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 eval $cacheid=yes
9233 else
9234 eval $cacheid=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 fi
9239
9240
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243 eval supported=\$$cacheid
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245 $as_echo "$supported" >&6; }
9246 if test "$supported" = "yes" ; then
9247 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9248 found="yes"
9249 fi
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int i;
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 xorg_cv_cc_flag_unknown_warning_option=yes
9281 else
9282 xorg_cv_cc_flag_unknown_warning_option=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9289 CFLAGS="$xorg_testset_save_CFLAGS"
9290 fi
9291
9292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 fi
9296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307 xorg_cv_cc_flag_unused_command_line_argument=yes
9308 else
9309 xorg_cv_cc_flag_unused_command_line_argument=no
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9316 CFLAGS="$xorg_testset_save_CFLAGS"
9317 fi
9318
9319 found="no"
9320
9321 if test $found = "no" ; then
9322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324 fi
9325
9326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328 fi
9329
9330 CFLAGS="$CFLAGS -Wsequence-point"
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9333 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9334 cacheid=xorg_cv_cc_flag__Wsequence_point
9335 if eval \${$cacheid+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 int
9342 main ()
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350 eval $cacheid=yes
9351 else
9352 eval $cacheid=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 fi
9357
9358
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360
9361 eval supported=\$$cacheid
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9363 $as_echo "$supported" >&6; }
9364 if test "$supported" = "yes" ; then
9365 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9366 found="yes"
9367 fi
9368 fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384 xorg_testset_save_CFLAGS="$CFLAGS"
9385
9386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 xorg_cv_cc_flag_unknown_warning_option=yes
9399 else
9400 xorg_cv_cc_flag_unknown_warning_option=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408 fi
9409
9410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 _ACEOF
9424 if ac_fn_c_try_compile "$LINENO"; then :
9425 xorg_cv_cc_flag_unused_command_line_argument=yes
9426 else
9427 xorg_cv_cc_flag_unused_command_line_argument=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435 fi
9436
9437 found="no"
9438
9439 if test $found = "no" ; then
9440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442 fi
9443
9444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446 fi
9447
9448 CFLAGS="$CFLAGS -Wreturn-type"
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9451 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9452 cacheid=xorg_cv_cc_flag__Wreturn_type
9453 if eval \${$cacheid+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468 eval $cacheid=yes
9469 else
9470 eval $cacheid=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 fi
9475
9476
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479 eval supported=\$$cacheid
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481 $as_echo "$supported" >&6; }
9482 if test "$supported" = "yes" ; then
9483 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9484 found="yes"
9485 fi
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 xorg_cv_cc_flag_unknown_warning_option=yes
9517 else
9518 xorg_cv_cc_flag_unknown_warning_option=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526 fi
9527
9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 fi
9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 _ACEOF
9542 if ac_fn_c_try_compile "$LINENO"; then :
9543 xorg_cv_cc_flag_unused_command_line_argument=yes
9544 else
9545 xorg_cv_cc_flag_unused_command_line_argument=no
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553 fi
9554
9555 found="no"
9556
9557 if test $found = "no" ; then
9558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560 fi
9561
9562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9564 fi
9565
9566 CFLAGS="$CFLAGS -Wtrigraphs"
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9569 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9570 cacheid=xorg_cv_cc_flag__Wtrigraphs
9571 if eval \${$cacheid+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 int
9578 main ()
9579 {
9580
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 eval $cacheid=yes
9587 else
9588 eval $cacheid=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 fi
9593
9594
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596
9597 eval supported=\$$cacheid
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9599 $as_echo "$supported" >&6; }
9600 if test "$supported" = "yes" ; then
9601 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9602 found="yes"
9603 fi
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620 xorg_testset_save_CFLAGS="$CFLAGS"
9621
9622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"; then :
9634 xorg_cv_cc_flag_unknown_warning_option=yes
9635 else
9636 xorg_cv_cc_flag_unknown_warning_option=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644 fi
9645
9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 xorg_cv_cc_flag_unused_command_line_argument=yes
9662 else
9663 xorg_cv_cc_flag_unused_command_line_argument=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671 fi
9672
9673 found="no"
9674
9675 if test $found = "no" ; then
9676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678 fi
9679
9680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682 fi
9683
9684 CFLAGS="$CFLAGS -Warray-bounds"
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9687 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9688 cacheid=xorg_cv_cc_flag__Warray_bounds
9689 if eval \${$cacheid+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 int
9696 main ()
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 eval $cacheid=yes
9705 else
9706 eval $cacheid=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 fi
9711
9712
9713 CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715 eval supported=\$$cacheid
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717 $as_echo "$supported" >&6; }
9718 if test "$supported" = "yes" ; then
9719 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9720 found="yes"
9721 fi
9722 fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738 xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unknown_warning_option=yes
9753 else
9754 xorg_cv_cc_flag_unknown_warning_option=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 fi
9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Wwrite-strings"
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9805 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Wwrite_strings
9807 if eval \${$cacheid+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 int
9814 main ()
9815 {
9816
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 eval $cacheid=yes
9823 else
9824 eval $cacheid=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi
9829
9830
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833 eval supported=\$$cacheid
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 $as_echo "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9838 found="yes"
9839 fi
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856 xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int i;
9868 _ACEOF
9869 if ac_fn_c_try_compile "$LINENO"; then :
9870 xorg_cv_cc_flag_unknown_warning_option=yes
9871 else
9872 xorg_cv_cc_flag_unknown_warning_option=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9880 fi
9881
9882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885 fi
9886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 _ACEOF
9896 if ac_fn_c_try_compile "$LINENO"; then :
9897 xorg_cv_cc_flag_unused_command_line_argument=yes
9898 else
9899 xorg_cv_cc_flag_unused_command_line_argument=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 fi
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 found="no"
9910
9911 if test $found = "no" ; then
9912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 fi
9915
9916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918 fi
9919
9920 CFLAGS="$CFLAGS -Waddress"
9921
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9923 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9924 cacheid=xorg_cv_cc_flag__Waddress
9925 if eval \${$cacheid+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 int
9932 main ()
9933 {
9934
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 eval $cacheid=yes
9941 else
9942 eval $cacheid=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi
9947
9948
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951 eval supported=\$$cacheid
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953 $as_echo "$supported" >&6; }
9954 if test "$supported" = "yes" ; then
9955 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9956 found="yes"
9957 fi
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9989 else
9990 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998 fi
9999
10000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 fi
10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 int i;
10013 _ACEOF
10014 if ac_fn_c_try_compile "$LINENO"; then :
10015 xorg_cv_cc_flag_unused_command_line_argument=yes
10016 else
10017 xorg_cv_cc_flag_unused_command_line_argument=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025 fi
10026
10027 found="no"
10028
10029 if test $found = "no" ; then
10030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032 fi
10033
10034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036 fi
10037
10038 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10041 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10042 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10043 if eval \${$cacheid+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 int i;
10049 int
10050 main ()
10051 {
10052
10053 ;
10054 return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_link "$LINENO"; then :
10058 eval $cacheid=yes
10059 else
10060 eval $cacheid=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064 fi
10065
10066
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069 eval supported=\$$cacheid
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071 $as_echo "$supported" >&6; }
10072 if test "$supported" = "yes" ; then
10073 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10074 found="yes"
10075 fi
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 xorg_testset_save_CFLAGS="$CFLAGS"
10093
10094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10098 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10107 else
10108 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10115 CFLAGS="$xorg_testset_save_CFLAGS"
10116 fi
10117
10118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 fi
10122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 int i;
10131 _ACEOF
10132 if ac_fn_c_try_compile "$LINENO"; then :
10133 xorg_cv_cc_flag_unused_command_line_argument=yes
10134 else
10135 xorg_cv_cc_flag_unused_command_line_argument=no
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10142 CFLAGS="$xorg_testset_save_CFLAGS"
10143 fi
10144
10145 found="no"
10146
10147 if test $found = "no" ; then
10148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150 fi
10151
10152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154 fi
10155
10156 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10157
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10159 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10160 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10161 if eval \${$cacheid+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 int i;
10167 int
10168 main ()
10169 {
10170
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 if ac_fn_c_try_link "$LINENO"; then :
10176 eval $cacheid=yes
10177 else
10178 eval $cacheid=no
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 fi
10183
10184
10185 CFLAGS="$xorg_testset_save_CFLAGS"
10186
10187 eval supported=\$$cacheid
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10189 $as_echo "$supported" >&6; }
10190 if test "$supported" = "yes" ; then
10191 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10192 found="yes"
10193 fi
10194 fi
10195
10196
10197 fi
10198
10199
10200
10201
10202
10203
10204
10205 CWARNFLAGS="$BASE_CFLAGS"
10206 if test "x$GCC" = xyes ; then
10207 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217 # Check whether --enable-strict-compilation was given.
10218 if test "${enable_strict_compilation+set}" = set; then :
10219 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10220 else
10221 STRICT_COMPILE=no
10222 fi
10223
10224
10225
10226
10227
10228
10229 STRICT_CFLAGS=""
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243 xorg_testset_save_CFLAGS="$CFLAGS"
10244
10245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 int i;
10255 _ACEOF
10256 if ac_fn_c_try_compile "$LINENO"; then :
10257 xorg_cv_cc_flag_unknown_warning_option=yes
10258 else
10259 xorg_cv_cc_flag_unknown_warning_option=no
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"; then :
10284 xorg_cv_cc_flag_unused_command_line_argument=yes
10285 else
10286 xorg_cv_cc_flag_unused_command_line_argument=no
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10293 CFLAGS="$xorg_testset_save_CFLAGS"
10294 fi
10295
10296 found="no"
10297
10298 if test $found = "no" ; then
10299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301 fi
10302
10303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10305 fi
10306
10307 CFLAGS="$CFLAGS -pedantic"
10308
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10310 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10311 cacheid=xorg_cv_cc_flag__pedantic
10312 if eval \${$cacheid+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 int i;
10318 int
10319 main ()
10320 {
10321
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 eval $cacheid=yes
10328 else
10329 eval $cacheid=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 fi
10334
10335
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337
10338 eval supported=\$$cacheid
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10340 $as_echo "$supported" >&6; }
10341 if test "$supported" = "yes" ; then
10342 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10343 found="yes"
10344 fi
10345 fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 xorg_testset_save_CFLAGS="$CFLAGS"
10362
10363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 int i;
10373 _ACEOF
10374 if ac_fn_c_try_compile "$LINENO"; then :
10375 xorg_cv_cc_flag_unknown_warning_option=yes
10376 else
10377 xorg_cv_cc_flag_unknown_warning_option=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10384 CFLAGS="$xorg_testset_save_CFLAGS"
10385 fi
10386
10387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390 fi
10391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 int i;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"; then :
10402 xorg_cv_cc_flag_unused_command_line_argument=yes
10403 else
10404 xorg_cv_cc_flag_unused_command_line_argument=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10411 CFLAGS="$xorg_testset_save_CFLAGS"
10412 fi
10413
10414 found="no"
10415
10416 if test $found = "no" ; then
10417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10419 fi
10420
10421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10423 fi
10424
10425 CFLAGS="$CFLAGS -Werror"
10426
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10428 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10429 cacheid=xorg_cv_cc_flag__Werror
10430 if eval \${$cacheid+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int i;
10436 int
10437 main ()
10438 {
10439
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 eval $cacheid=yes
10446 else
10447 eval $cacheid=no
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 fi
10452
10453
10454 CFLAGS="$xorg_testset_save_CFLAGS"
10455
10456 eval supported=\$$cacheid
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10458 $as_echo "$supported" >&6; }
10459 if test "$supported" = "yes" ; then
10460 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10461 found="yes"
10462 fi
10463 fi
10464
10465 if test $found = "no" ; then
10466 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 fi
10469
10470 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 fi
10473
10474 CFLAGS="$CFLAGS -errwarn"
10475
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10477 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10478 cacheid=xorg_cv_cc_flag__errwarn
10479 if eval \${$cacheid+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 int i;
10485 int
10486 main ()
10487 {
10488
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"; then :
10494 eval $cacheid=yes
10495 else
10496 eval $cacheid=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 fi
10501
10502
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505 eval supported=\$$cacheid
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507 $as_echo "$supported" >&6; }
10508 if test "$supported" = "yes" ; then
10509 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10510 found="yes"
10511 fi
10512 fi
10513
10514
10515
10516 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10517 # activate it with -Werror, so we add it here explicitly.
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 xorg_testset_save_CFLAGS="$CFLAGS"
10532
10533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 int i;
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"; then :
10545 xorg_cv_cc_flag_unknown_warning_option=yes
10546 else
10547 xorg_cv_cc_flag_unknown_warning_option=no
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550 fi
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10554 CFLAGS="$xorg_testset_save_CFLAGS"
10555 fi
10556
10557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560 fi
10561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 int i;
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"; then :
10572 xorg_cv_cc_flag_unused_command_line_argument=yes
10573 else
10574 xorg_cv_cc_flag_unused_command_line_argument=no
10575 fi
10576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10581 CFLAGS="$xorg_testset_save_CFLAGS"
10582 fi
10583
10584 found="no"
10585
10586 if test $found = "no" ; then
10587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589 fi
10590
10591 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10593 fi
10594
10595 CFLAGS="$CFLAGS -Werror=attributes"
10596
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10598 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10599 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10600 if eval \${$cacheid+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10605 int i;
10606 int
10607 main ()
10608 {
10609
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615 eval $cacheid=yes
10616 else
10617 eval $cacheid=no
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 fi
10622
10623
10624 CFLAGS="$xorg_testset_save_CFLAGS"
10625
10626 eval supported=\$$cacheid
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10628 $as_echo "$supported" >&6; }
10629 if test "$supported" = "yes" ; then
10630 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10631 found="yes"
10632 fi
10633 fi
10634
10635
10636
10637 if test "x$STRICT_COMPILE" = "xyes"; then
10638 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10639 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10640 fi
10641
10642
10643
10644
10645
10646
10647 cat >>confdefs.h <<_ACEOF
10648 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10649 _ACEOF
10650
10651 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10652 if test "x$PVM" = "x"; then
10653 PVM="0"
10654 fi
10655
10656 cat >>confdefs.h <<_ACEOF
10657 #define PACKAGE_VERSION_MINOR $PVM
10658 _ACEOF
10659
10660 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10661 if test "x$PVP" = "x"; then
10662 PVP="0"
10663 fi
10664
10665 cat >>confdefs.h <<_ACEOF
10666 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10667 _ACEOF
10668
10669
10670
10671 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10672 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10673 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10674 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10675
10676
10677
10678
10679 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10680 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10681 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10682 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10683 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10684
10685
10686
10687
10688
10689
10690 if test x$APP_MAN_SUFFIX = x ; then
10691 APP_MAN_SUFFIX=1
10692 fi
10693 if test x$APP_MAN_DIR = x ; then
10694 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10695 fi
10696
10697 if test x$LIB_MAN_SUFFIX = x ; then
10698 LIB_MAN_SUFFIX=3
10699 fi
10700 if test x$LIB_MAN_DIR = x ; then
10701 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10702 fi
10703
10704 if test x$FILE_MAN_SUFFIX = x ; then
10705 case $host_os in
10706 solaris*) FILE_MAN_SUFFIX=4 ;;
10707 *) FILE_MAN_SUFFIX=5 ;;
10708 esac
10709 fi
10710 if test x$FILE_MAN_DIR = x ; then
10711 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10712 fi
10713
10714 if test x$MISC_MAN_SUFFIX = x ; then
10715 case $host_os in
10716 solaris*) MISC_MAN_SUFFIX=5 ;;
10717 *) MISC_MAN_SUFFIX=7 ;;
10718 esac
10719 fi
10720 if test x$MISC_MAN_DIR = x ; then
10721 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10722 fi
10723
10724 if test x$DRIVER_MAN_SUFFIX = x ; then
10725 case $host_os in
10726 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10727 *) DRIVER_MAN_SUFFIX=4 ;;
10728 esac
10729 fi
10730 if test x$DRIVER_MAN_DIR = x ; then
10731 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10732 fi
10733
10734 if test x$ADMIN_MAN_SUFFIX = x ; then
10735 case $host_os in
10736 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10737 *) ADMIN_MAN_SUFFIX=8 ;;
10738 esac
10739 fi
10740 if test x$ADMIN_MAN_DIR = x ; then
10741 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758 XORG_MAN_PAGE="X Version 11"
10759
10760 MAN_SUBSTS="\
10761 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10762 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10763 -e 's|__xservername__|Xorg|g' \
10764 -e 's|__xconfigfile__|xorg.conf|g' \
10765 -e 's|__projectroot__|\$(prefix)|g' \
10766 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10767 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10768 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10769 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10770 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10771 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10772 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10773
10774
10775
10776 # Check whether --enable-silent-rules was given.
10777 if test "${enable_silent_rules+set}" = set; then :
10778 enableval=$enable_silent_rules;
10779 fi
10780
10781 case $enable_silent_rules in # (((
10782 yes) AM_DEFAULT_VERBOSITY=0;;
10783 no) AM_DEFAULT_VERBOSITY=1;;
10784 *) AM_DEFAULT_VERBOSITY=0;;
10785 esac
10786 am_make=${MAKE-make}
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10788 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10789 if ${am_cv_make_support_nested_variables+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 if $as_echo 'TRUE=$(BAR$(V))
10793 BAR0=false
10794 BAR1=true
10795 V=1
10796 am__doit:
10797 @$(TRUE)
10798 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10799 am_cv_make_support_nested_variables=yes
10800 else
10801 am_cv_make_support_nested_variables=no
10802 fi
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10805 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10806 if test $am_cv_make_support_nested_variables = yes; then
10807 AM_V='$(V)'
10808 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10809 else
10810 AM_V=$AM_DEFAULT_VERBOSITY
10811 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10812 fi
10813 AM_BACKSLASH='\'
10814
10815
10816
10817 # Checks for system functions
10818 for ac_func in usleep
10819 do :
10820 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
10821 if test "x$ac_cv_func_usleep" = xyes; then :
10822 cat >>confdefs.h <<_ACEOF
10823 #define HAVE_USLEEP 1
10824 _ACEOF
10825
10826 fi
10827 done
10828
10829
10830 # Checks for pkg-config packages
10831
10832 pkg_failed=no
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
10834 $as_echo_n "checking for XSET... " >&6; }
10835
10836 if test -n "$XSET_CFLAGS"; then
10837 pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
10838 elif test -n "$PKG_CONFIG"; then
10839 if test -n "$PKG_CONFIG" && \
10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10841 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10842 ac_status=$?
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; }; then
10845 pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
10846 else
10847 pkg_failed=yes
10848 fi
10849 else
10850 pkg_failed=untried
10851 fi
10852 if test -n "$XSET_LIBS"; then
10853 pkg_cv_XSET_LIBS="$XSET_LIBS"
10854 elif test -n "$PKG_CONFIG"; then
10855 if test -n "$PKG_CONFIG" && \
10856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10857 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10858 ac_status=$?
10859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10860 test $ac_status = 0; }; then
10861 pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10862 else
10863 pkg_failed=yes
10864 fi
10865 else
10866 pkg_failed=untried
10867 fi
10868
10869
10870
10871 if test $pkg_failed = yes; then
10872
10873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10874 _pkg_short_errors_supported=yes
10875 else
10876 _pkg_short_errors_supported=no
10877 fi
10878 if test $_pkg_short_errors_supported = yes; then
10879 XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
10880 else
10881 XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
10882 fi
10883 # Put the nasty error message in config.log where it belongs
10884 echo "$XSET_PKG_ERRORS" >&5
10885
10886 as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
10887
10888 $XSET_PKG_ERRORS
10889
10890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10891 installed software in a non-standard prefix.
10892
10893 Alternatively, you may set the environment variables XSET_CFLAGS
10894 and XSET_LIBS to avoid the need to call pkg-config.
10895 See the pkg-config man page for more details.
10896 " "$LINENO" 5
10897 elif test $pkg_failed = untried; then
10898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10900 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10901 is in your PATH or set the PKG_CONFIG environment variable to the full
10902 path to pkg-config.
10903
10904 Alternatively, you may set the environment variables XSET_CFLAGS
10905 and XSET_LIBS to avoid the need to call pkg-config.
10906 See the pkg-config man page for more details.
10907
10908 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10909 See \`config.log' for more details" "$LINENO" 5; }
10910 else
10911 XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
10912 XSET_LIBS=$pkg_cv_XSET_LIBS
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914 $as_echo "yes" >&6; }
10915 :
10916 fi
10917
10918 # This is used below to allow <X11/Xlib.h> to be found
10919
10920 pkg_failed=no
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
10922 $as_echo_n "checking for SET_X11... " >&6; }
10923
10924 if test -n "$SET_X11_CFLAGS"; then
10925 pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
10926 elif test -n "$PKG_CONFIG"; then
10927 if test -n "$PKG_CONFIG" && \
10928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10929 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10930 ac_status=$?
10931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932 test $ac_status = 0; }; then
10933 pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
10934 else
10935 pkg_failed=yes
10936 fi
10937 else
10938 pkg_failed=untried
10939 fi
10940 if test -n "$SET_X11_LIBS"; then
10941 pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
10942 elif test -n "$PKG_CONFIG"; then
10943 if test -n "$PKG_CONFIG" && \
10944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10945 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948 test $ac_status = 0; }; then
10949 pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
10950 else
10951 pkg_failed=yes
10952 fi
10953 else
10954 pkg_failed=untried
10955 fi
10956
10957
10958
10959 if test $pkg_failed = yes; then
10960
10961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10962 _pkg_short_errors_supported=yes
10963 else
10964 _pkg_short_errors_supported=no
10965 fi
10966 if test $_pkg_short_errors_supported = yes; then
10967 SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
10968 else
10969 SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
10970 fi
10971 # Put the nasty error message in config.log where it belongs
10972 echo "$SET_X11_PKG_ERRORS" >&5
10973
10974 as_fn_error $? "Package requirements (x11) were not met:
10975
10976 $SET_X11_PKG_ERRORS
10977
10978 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10979 installed software in a non-standard prefix.
10980
10981 Alternatively, you may set the environment variables SET_X11_CFLAGS
10982 and SET_X11_LIBS to avoid the need to call pkg-config.
10983 See the pkg-config man page for more details.
10984 " "$LINENO" 5
10985 elif test $pkg_failed = untried; then
10986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10988 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10989 is in your PATH or set the PKG_CONFIG environment variable to the full
10990 path to pkg-config.
10991
10992 Alternatively, you may set the environment variables SET_X11_CFLAGS
10993 and SET_X11_LIBS to avoid the need to call pkg-config.
10994 See the pkg-config man page for more details.
10995
10996 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10997 See \`config.log' for more details" "$LINENO" 5; }
10998 else
10999 SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11000 SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002 $as_echo "yes" >&6; }
11003 :
11004 fi
11005
11006
11007 pkg_failed=no
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
11009 $as_echo_n "checking for SET_XEXT... " >&6; }
11010
11011 if test -n "$SET_XEXT_CFLAGS"; then
11012 pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11013 elif test -n "$PKG_CONFIG"; then
11014 if test -n "$PKG_CONFIG" && \
11015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11016 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11017 ac_status=$?
11018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019 test $ac_status = 0; }; then
11020 pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11021 else
11022 pkg_failed=yes
11023 fi
11024 else
11025 pkg_failed=untried
11026 fi
11027 if test -n "$SET_XEXT_LIBS"; then
11028 pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11029 elif test -n "$PKG_CONFIG"; then
11030 if test -n "$PKG_CONFIG" && \
11031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11032 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11033 ac_status=$?
11034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11035 test $ac_status = 0; }; then
11036 pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11037 else
11038 pkg_failed=yes
11039 fi
11040 else
11041 pkg_failed=untried
11042 fi
11043
11044
11045
11046 if test $pkg_failed = yes; then
11047
11048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11049 _pkg_short_errors_supported=yes
11050 else
11051 _pkg_short_errors_supported=no
11052 fi
11053 if test $_pkg_short_errors_supported = yes; then
11054 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
11055 else
11056 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
11057 fi
11058 # Put the nasty error message in config.log where it belongs
11059 echo "$SET_XEXT_PKG_ERRORS" >&5
11060
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 echo "not found"
11064 elif test $pkg_failed = untried; then
11065 echo "not found"
11066 else
11067 SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11068 SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; }
11071 SAVE_CPPFLAGS="$CPPFLAGS"
11072 CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
11073 for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
11074 do :
11075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11077 "
11078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11079 cat >>confdefs.h <<_ACEOF
11080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11081 _ACEOF
11082
11083 fi
11084
11085 done
11086
11087 CPPFLAGS="$SAVE_CPPFLAGS"
11088 fi
11089
11090
11091 pkg_failed=no
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
11093 $as_echo_n "checking for SET_XKB... " >&6; }
11094
11095 if test -n "$SET_XKB_CFLAGS"; then
11096 pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11097 elif test -n "$PKG_CONFIG"; then
11098 if test -n "$PKG_CONFIG" && \
11099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11100 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11101 ac_status=$?
11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11103 test $ac_status = 0; }; then
11104 pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11105 else
11106 pkg_failed=yes
11107 fi
11108 else
11109 pkg_failed=untried
11110 fi
11111 if test -n "$SET_XKB_LIBS"; then
11112 pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11113 elif test -n "$PKG_CONFIG"; then
11114 if test -n "$PKG_CONFIG" && \
11115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11116 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11117 ac_status=$?
11118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119 test $ac_status = 0; }; then
11120 pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11121 else
11122 pkg_failed=yes
11123 fi
11124 else
11125 pkg_failed=untried
11126 fi
11127
11128
11129
11130 if test $pkg_failed = yes; then
11131
11132 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11133 _pkg_short_errors_supported=yes
11134 else
11135 _pkg_short_errors_supported=no
11136 fi
11137 if test $_pkg_short_errors_supported = yes; then
11138 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
11139 else
11140 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
11141 fi
11142 # Put the nasty error message in config.log where it belongs
11143 echo "$SET_XKB_PKG_ERRORS" >&5
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 echo "not found"
11148 elif test $pkg_failed = untried; then
11149 echo "not found"
11150 else
11151 SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11152 SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154 $as_echo "yes" >&6; }
11155 SAVE_CPPFLAGS="$CPPFLAGS"
11156 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
11157 for ac_header in X11/XKBlib.h
11158 do :
11159 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11160 "
11161 if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11162 cat >>confdefs.h <<_ACEOF
11163 #define HAVE_X11_XKBLIB_H 1
11164 _ACEOF
11165
11166 fi
11167
11168 done
11169
11170 CPPFLAGS="$SAVE_CPPFLAGS"
11171 fi
11172
11173
11174 # Check whether --with-xf86misc was given.
11175 if test "${with_xf86misc+set}" = set; then :
11176 withval=$with_xf86misc; USE_XF86MISC="$withval"
11177 else
11178 USE_XF86MISC="yes"
11179 fi
11180
11181 if test "x$USE_XF86MISC" != "xno" ; then
11182
11183 pkg_failed=no
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
11185 $as_echo_n "checking for SET_XF86MISC... " >&6; }
11186
11187 if test -n "$SET_XF86MISC_CFLAGS"; then
11188 pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11189 elif test -n "$PKG_CONFIG"; then
11190 if test -n "$PKG_CONFIG" && \
11191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11192 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11193 ac_status=$?
11194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195 test $ac_status = 0; }; then
11196 pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11197 else
11198 pkg_failed=yes
11199 fi
11200 else
11201 pkg_failed=untried
11202 fi
11203 if test -n "$SET_XF86MISC_LIBS"; then
11204 pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11205 elif test -n "$PKG_CONFIG"; then
11206 if test -n "$PKG_CONFIG" && \
11207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11208 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11209 ac_status=$?
11210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211 test $ac_status = 0; }; then
11212 pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11213 else
11214 pkg_failed=yes
11215 fi
11216 else
11217 pkg_failed=untried
11218 fi
11219
11220
11221
11222 if test $pkg_failed = yes; then
11223
11224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11225 _pkg_short_errors_supported=yes
11226 else
11227 _pkg_short_errors_supported=no
11228 fi
11229 if test $_pkg_short_errors_supported = yes; then
11230 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
11231 else
11232 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
11233 fi
11234 # Put the nasty error message in config.log where it belongs
11235 echo "$SET_XF86MISC_PKG_ERRORS" >&5
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 echo "not found"
11240 elif test $pkg_failed = untried; then
11241 echo "not found"
11242 else
11243 SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11244 SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11247 SAVE_CPPFLAGS="$CPPFLAGS"
11248 CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
11249 for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
11250 do :
11251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11253 #include <X11/Xproto.h>
11254 "
11255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11256 cat >>confdefs.h <<_ACEOF
11257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261
11262 done
11263
11264 CPPFLAGS="$SAVE_CPPFLAGS"
11265 fi
11266 else
11267 echo "without xf86misc"
11268 fi
11269
11270
11271 # Check whether --with-fontcache was given.
11272 if test "${with_fontcache+set}" = set; then :
11273 withval=$with_fontcache; USE_XFONTCACHE="$withval"
11274 else
11275 USE_XFONTCACHE="yes"
11276 fi
11277
11278 if test "x$USE_XFONTCACHE" != "xno" ; then
11279
11280 pkg_failed=no
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
11282 $as_echo_n "checking for SET_FONTCACHE... " >&6; }
11283
11284 if test -n "$SET_FONTCACHE_CFLAGS"; then
11285 pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11286 elif test -n "$PKG_CONFIG"; then
11287 if test -n "$PKG_CONFIG" && \
11288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11289 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; }; then
11293 pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11294 else
11295 pkg_failed=yes
11296 fi
11297 else
11298 pkg_failed=untried
11299 fi
11300 if test -n "$SET_FONTCACHE_LIBS"; then
11301 pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11302 elif test -n "$PKG_CONFIG"; then
11303 if test -n "$PKG_CONFIG" && \
11304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11305 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11306 ac_status=$?
11307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11308 test $ac_status = 0; }; then
11309 pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11310 else
11311 pkg_failed=yes
11312 fi
11313 else
11314 pkg_failed=untried
11315 fi
11316
11317
11318
11319 if test $pkg_failed = yes; then
11320
11321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11322 _pkg_short_errors_supported=yes
11323 else
11324 _pkg_short_errors_supported=no
11325 fi
11326 if test $_pkg_short_errors_supported = yes; then
11327 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
11328 else
11329 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
11330 fi
11331 # Put the nasty error message in config.log where it belongs
11332 echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11333
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 echo "not found"
11337 elif test $pkg_failed = untried; then
11338 echo "not found"
11339 else
11340 SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
11341 SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 SAVE_CPPFLAGS="$CPPFLAGS"
11345 CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
11346 for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
11347 do :
11348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11350 "
11351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11354 _ACEOF
11355
11356 fi
11357
11358 done
11359
11360 CPPFLAGS="$SAVE_CPPFLAGS"
11361 fi
11362 else
11363 echo "without fontcache"
11364 fi
11365
11366 XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
11367 XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11368
11369
11370 ac_config_files="$ac_config_files Makefile man/Makefile"
11371
11372 cat >confcache <<\_ACEOF
11373 # This file is a shell script that caches the results of configure
11374 # tests run on this system so they can be shared between configure
11375 # scripts and configure runs, see configure's option --config-cache.
11376 # It is not useful on other systems. If it contains results you don't
11377 # want to keep, you may remove or edit it.
11378 #
11379 # config.status only pays attention to the cache file if you give it
11380 # the --recheck option to rerun configure.
11381 #
11382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11384 # following values.
11385
11386 _ACEOF
11387
11388 # The following way of writing the cache mishandles newlines in values,
11389 # but we know of no workaround that is simple, portable, and efficient.
11390 # So, we kill variables containing newlines.
11391 # Ultrix sh set writes to stderr and can't be redirected directly,
11392 # and sets the high bit in the cache file unless we assign to the vars.
11393 (
11394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11395 eval ac_val=\$$ac_var
11396 case $ac_val in #(
11397 *${as_nl}*)
11398 case $ac_var in #(
11399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11401 esac
11402 case $ac_var in #(
11403 _ | IFS | as_nl) ;; #(
11404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11405 *) { eval $ac_var=; unset $ac_var;} ;;
11406 esac ;;
11407 esac
11408 done
11409
11410 (set) 2>&1 |
11411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11412 *${as_nl}ac_space=\ *)
11413 # `set' does not quote correctly, so add quotes: double-quote
11414 # substitution turns \\\\ into \\, and sed turns \\ into \.
11415 sed -n \
11416 "s/'/'\\\\''/g;
11417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11418 ;; #(
11419 *)
11420 # `set' quotes correctly as required by POSIX, so do not add quotes.
11421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11422 ;;
11423 esac |
11424 sort
11425 ) |
11426 sed '
11427 /^ac_cv_env_/b end
11428 t clear
11429 :clear
11430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11431 t end
11432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11433 :end' >>confcache
11434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11435 if test -w "$cache_file"; then
11436 if test "x$cache_file" != "x/dev/null"; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11438 $as_echo "$as_me: updating cache $cache_file" >&6;}
11439 if test ! -f "$cache_file" || test -h "$cache_file"; then
11440 cat confcache >"$cache_file"
11441 else
11442 case $cache_file in #(
11443 */* | ?:*)
11444 mv -f confcache "$cache_file"$$ &&
11445 mv -f "$cache_file"$$ "$cache_file" ;; #(
11446 *)
11447 mv -f confcache "$cache_file" ;;
11448 esac
11449 fi
11450 fi
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11454 fi
11455 fi
11456 rm -f confcache
11457
11458 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11459 # Let make expand exec_prefix.
11460 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11461
11462 DEFS=-DHAVE_CONFIG_H
11463
11464 ac_libobjs=
11465 ac_ltlibobjs=
11466 U=
11467 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11468 # 1. Remove the extension, and $U if already installed.
11469 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11470 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11472 # will be set to the directory where LIBOBJS objects are built.
11473 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11474 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11475 done
11476 LIBOBJS=$ac_libobjs
11477
11478 LTLIBOBJS=$ac_ltlibobjs
11479
11480
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11482 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11483 if test -n "$am_sleep_pid"; then
11484 # Hide warnings about reused PIDs.
11485 wait $am_sleep_pid 2>/dev/null
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11488 $as_echo "done" >&6; }
11489 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11490 as_fn_error $? "conditional \"AMDEP\" was never defined.
11491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11492 fi
11493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11494 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11496 fi
11497 if test -n "$EXEEXT"; then
11498 am__EXEEXT_TRUE=
11499 am__EXEEXT_FALSE='#'
11500 else
11501 am__EXEEXT_TRUE='#'
11502 am__EXEEXT_FALSE=
11503 fi
11504
11505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11506 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11508 fi
11509
11510 : "${CONFIG_STATUS=./config.status}"
11511 ac_write_fail=0
11512 ac_clean_files_save=$ac_clean_files
11513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11516 as_write_fail=0
11517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11518 #! $SHELL
11519 # Generated by $as_me.
11520 # Run this file to recreate the current configuration.
11521 # Compiler output produced by configure, useful for debugging
11522 # configure, is in config.log if it exists.
11523
11524 debug=false
11525 ac_cs_recheck=false
11526 ac_cs_silent=false
11527
11528 SHELL=\${CONFIG_SHELL-$SHELL}
11529 export SHELL
11530 _ASEOF
11531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11532 ## -------------------- ##
11533 ## M4sh Initialization. ##
11534 ## -------------------- ##
11535
11536 # Be more Bourne compatible
11537 DUALCASE=1; export DUALCASE # for MKS sh
11538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11539 emulate sh
11540 NULLCMD=:
11541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11542 # is contrary to our usage. Disable this feature.
11543 alias -g '${1+"$@"}'='"$@"'
11544 setopt NO_GLOB_SUBST
11545 else
11546 case `(set -o) 2>/dev/null` in #(
11547 *posix*) :
11548 set -o posix ;; #(
11549 *) :
11550 ;;
11551 esac
11552 fi
11553
11554
11555 as_nl='
11556 '
11557 export as_nl
11558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11559 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11562 # Prefer a ksh shell builtin over an external printf program on Solaris,
11563 # but without wasting forks for bash or zsh.
11564 if test -z "$BASH_VERSION$ZSH_VERSION" \
11565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11566 as_echo='print -r --'
11567 as_echo_n='print -rn --'
11568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11569 as_echo='printf %s\n'
11570 as_echo_n='printf %s'
11571 else
11572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11574 as_echo_n='/usr/ucb/echo -n'
11575 else
11576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11577 as_echo_n_body='eval
11578 arg=$1;
11579 case $arg in #(
11580 *"$as_nl"*)
11581 expr "X$arg" : "X\\(.*\\)$as_nl";
11582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11583 esac;
11584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11585 '
11586 export as_echo_n_body
11587 as_echo_n='sh -c $as_echo_n_body as_echo'
11588 fi
11589 export as_echo_body
11590 as_echo='sh -c $as_echo_body as_echo'
11591 fi
11592
11593 # The user is always right.
11594 if test "${PATH_SEPARATOR+set}" != set; then
11595 PATH_SEPARATOR=:
11596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11598 PATH_SEPARATOR=';'
11599 }
11600 fi
11601
11602
11603 # IFS
11604 # We need space, tab and new line, in precisely that order. Quoting is
11605 # there to prevent editors from complaining about space-tab.
11606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11607 # splitting by setting IFS to empty value.)
11608 IFS=" "" $as_nl"
11609
11610 # Find who we are. Look in the path if we contain no directory separator.
11611 as_myself=
11612 case $0 in #((
11613 *[\\/]* ) as_myself=$0 ;;
11614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11620 done
11621 IFS=$as_save_IFS
11622
11623 ;;
11624 esac
11625 # We did not find ourselves, most probably we were run as `sh COMMAND'
11626 # in which case we are not to be found in the path.
11627 if test "x$as_myself" = x; then
11628 as_myself=$0
11629 fi
11630 if test ! -f "$as_myself"; then
11631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11632 exit 1
11633 fi
11634
11635 # Unset variables that we do not need and which cause bugs (e.g. in
11636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11637 # suppresses any "Segmentation fault" message there. '((' could
11638 # trigger a bug in pdksh 5.2.14.
11639 for as_var in BASH_ENV ENV MAIL MAILPATH
11640 do eval test x\${$as_var+set} = xset \
11641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11642 done
11643 PS1='$ '
11644 PS2='> '
11645 PS4='+ '
11646
11647 # NLS nuisances.
11648 LC_ALL=C
11649 export LC_ALL
11650 LANGUAGE=C
11651 export LANGUAGE
11652
11653 # CDPATH.
11654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11655
11656
11657 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11658 # ----------------------------------------
11659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11661 # script with STATUS, using 1 if that was 0.
11662 as_fn_error ()
11663 {
11664 as_status=$1; test $as_status -eq 0 && as_status=1
11665 if test "$4"; then
11666 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11668 fi
11669 $as_echo "$as_me: error: $2" >&2
11670 as_fn_exit $as_status
11671 } # as_fn_error
11672
11673
11674 # as_fn_set_status STATUS
11675 # -----------------------
11676 # Set $? to STATUS, without forking.
11677 as_fn_set_status ()
11678 {
11679 return $1
11680 } # as_fn_set_status
11681
11682 # as_fn_exit STATUS
11683 # -----------------
11684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11685 as_fn_exit ()
11686 {
11687 set +e
11688 as_fn_set_status $1
11689 exit $1
11690 } # as_fn_exit
11691
11692 # as_fn_unset VAR
11693 # ---------------
11694 # Portably unset VAR.
11695 as_fn_unset ()
11696 {
11697 { eval $1=; unset $1;}
11698 }
11699 as_unset=as_fn_unset
11700 # as_fn_append VAR VALUE
11701 # ----------------------
11702 # Append the text in VALUE to the end of the definition contained in VAR. Take
11703 # advantage of any shell optimizations that allow amortized linear growth over
11704 # repeated appends, instead of the typical quadratic growth present in naive
11705 # implementations.
11706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11707 eval 'as_fn_append ()
11708 {
11709 eval $1+=\$2
11710 }'
11711 else
11712 as_fn_append ()
11713 {
11714 eval $1=\$$1\$2
11715 }
11716 fi # as_fn_append
11717
11718 # as_fn_arith ARG...
11719 # ------------------
11720 # Perform arithmetic evaluation on the ARGs, and store the result in the
11721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11722 # must be portable across $(()) and expr.
11723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11724 eval 'as_fn_arith ()
11725 {
11726 as_val=$(( $* ))
11727 }'
11728 else
11729 as_fn_arith ()
11730 {
11731 as_val=`expr "$@" || test $? -eq 1`
11732 }
11733 fi # as_fn_arith
11734
11735
11736 if expr a : '\(a\)' >/dev/null 2>&1 &&
11737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11738 as_expr=expr
11739 else
11740 as_expr=false
11741 fi
11742
11743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11744 as_basename=basename
11745 else
11746 as_basename=false
11747 fi
11748
11749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11750 as_dirname=dirname
11751 else
11752 as_dirname=false
11753 fi
11754
11755 as_me=`$as_basename -- "$0" ||
11756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11757 X"$0" : 'X\(//\)$' \| \
11758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11759 $as_echo X/"$0" |
11760 sed '/^.*\/\([^/][^/]*\)\/*$/{
11761 s//\1/
11762 q
11763 }
11764 /^X\/\(\/\/\)$/{
11765 s//\1/
11766 q
11767 }
11768 /^X\/\(\/\).*/{
11769 s//\1/
11770 q
11771 }
11772 s/.*/./; q'`
11773
11774 # Avoid depending upon Character Ranges.
11775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11778 as_cr_digits='0123456789'
11779 as_cr_alnum=$as_cr_Letters$as_cr_digits
11780
11781 ECHO_C= ECHO_N= ECHO_T=
11782 case `echo -n x` in #(((((
11783 -n*)
11784 case `echo 'xy\c'` in
11785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11786 xy) ECHO_C='\c';;
11787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11788 ECHO_T=' ';;
11789 esac;;
11790 *)
11791 ECHO_N='-n';;
11792 esac
11793
11794 rm -f conf$$ conf$$.exe conf$$.file
11795 if test -d conf$$.dir; then
11796 rm -f conf$$.dir/conf$$.file
11797 else
11798 rm -f conf$$.dir
11799 mkdir conf$$.dir 2>/dev/null
11800 fi
11801 if (echo >conf$$.file) 2>/dev/null; then
11802 if ln -s conf$$.file conf$$ 2>/dev/null; then
11803 as_ln_s='ln -s'
11804 # ... but there are two gotchas:
11805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11807 # In both cases, we have to default to `cp -p'.
11808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11809 as_ln_s='cp -p'
11810 elif ln conf$$.file conf$$ 2>/dev/null; then
11811 as_ln_s=ln
11812 else
11813 as_ln_s='cp -p'
11814 fi
11815 else
11816 as_ln_s='cp -p'
11817 fi
11818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11819 rmdir conf$$.dir 2>/dev/null
11820
11821
11822 # as_fn_mkdir_p
11823 # -------------
11824 # Create "$as_dir" as a directory, including parents if necessary.
11825 as_fn_mkdir_p ()
11826 {
11827
11828 case $as_dir in #(
11829 -*) as_dir=./$as_dir;;
11830 esac
11831 test -d "$as_dir" || eval $as_mkdir_p || {
11832 as_dirs=
11833 while :; do
11834 case $as_dir in #(
11835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11836 *) as_qdir=$as_dir;;
11837 esac
11838 as_dirs="'$as_qdir' $as_dirs"
11839 as_dir=`$as_dirname -- "$as_dir" ||
11840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11841 X"$as_dir" : 'X\(//\)[^/]' \| \
11842 X"$as_dir" : 'X\(//\)$' \| \
11843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11844 $as_echo X"$as_dir" |
11845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11846 s//\1/
11847 q
11848 }
11849 /^X\(\/\/\)[^/].*/{
11850 s//\1/
11851 q
11852 }
11853 /^X\(\/\/\)$/{
11854 s//\1/
11855 q
11856 }
11857 /^X\(\/\).*/{
11858 s//\1/
11859 q
11860 }
11861 s/.*/./; q'`
11862 test -d "$as_dir" && break
11863 done
11864 test -z "$as_dirs" || eval "mkdir $as_dirs"
11865 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11866
11867
11868 } # as_fn_mkdir_p
11869 if mkdir -p . 2>/dev/null; then
11870 as_mkdir_p='mkdir -p "$as_dir"'
11871 else
11872 test -d ./-p && rmdir ./-p
11873 as_mkdir_p=false
11874 fi
11875
11876 if test -x / >/dev/null 2>&1; then
11877 as_test_x='test -x'
11878 else
11879 if ls -dL / >/dev/null 2>&1; then
11880 as_ls_L_option=L
11881 else
11882 as_ls_L_option=
11883 fi
11884 as_test_x='
11885 eval sh -c '\''
11886 if test -d "$1"; then
11887 test -d "$1/.";
11888 else
11889 case $1 in #(
11890 -*)set "./$1";;
11891 esac;
11892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11893 ???[sx]*):;;*)false;;esac;fi
11894 '\'' sh
11895 '
11896 fi
11897 as_executable_p=$as_test_x
11898
11899 # Sed expression to map a string onto a valid CPP name.
11900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11901
11902 # Sed expression to map a string onto a valid variable name.
11903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11904
11905
11906 exec 6>&1
11907 ## ----------------------------------- ##
11908 ## Main body of $CONFIG_STATUS script. ##
11909 ## ----------------------------------- ##
11910 _ASEOF
11911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11914 # Save the log message, to keep $0 and so on meaningful, and to
11915 # report actual input values of CONFIG_FILES etc. instead of their
11916 # values after options handling.
11917 ac_log="
11918 This file was extended by xset $as_me 1.2.3, which was
11919 generated by GNU Autoconf 2.68. Invocation command line was
11920
11921 CONFIG_FILES = $CONFIG_FILES
11922 CONFIG_HEADERS = $CONFIG_HEADERS
11923 CONFIG_LINKS = $CONFIG_LINKS
11924 CONFIG_COMMANDS = $CONFIG_COMMANDS
11925 $ $0 $@
11926
11927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11928 "
11929
11930 _ACEOF
11931
11932 case $ac_config_files in *"
11933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11934 esac
11935
11936 case $ac_config_headers in *"
11937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11938 esac
11939
11940
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 # Files that config.status was made for.
11943 config_files="$ac_config_files"
11944 config_headers="$ac_config_headers"
11945 config_commands="$ac_config_commands"
11946
11947 _ACEOF
11948
11949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950 ac_cs_usage="\
11951 \`$as_me' instantiates files and other configuration actions
11952 from templates according to the current configuration. Unless the files
11953 and actions are specified as TAGs, all are instantiated by default.
11954
11955 Usage: $0 [OPTION]... [TAG]...
11956
11957 -h, --help print this help, then exit
11958 -V, --version print version number and configuration settings, then exit
11959 --config print configuration, then exit
11960 -q, --quiet, --silent
11961 do not print progress messages
11962 -d, --debug don't remove temporary files
11963 --recheck update $as_me by reconfiguring in the same conditions
11964 --file=FILE[:TEMPLATE]
11965 instantiate the configuration file FILE
11966 --header=FILE[:TEMPLATE]
11967 instantiate the configuration header FILE
11968
11969 Configuration files:
11970 $config_files
11971
11972 Configuration headers:
11973 $config_headers
11974
11975 Configuration commands:
11976 $config_commands
11977
11978 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11979
11980 _ACEOF
11981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11983 ac_cs_version="\\
11984 xset config.status 1.2.3
11985 configured by $0, generated by GNU Autoconf 2.68,
11986 with options \\"\$ac_cs_config\\"
11987
11988 Copyright (C) 2010 Free Software Foundation, Inc.
11989 This config.status script is free software; the Free Software Foundation
11990 gives unlimited permission to copy, distribute and modify it."
11991
11992 ac_pwd='$ac_pwd'
11993 srcdir='$srcdir'
11994 INSTALL='$INSTALL'
11995 MKDIR_P='$MKDIR_P'
11996 AWK='$AWK'
11997 test -n "\$AWK" || AWK=awk
11998 _ACEOF
11999
12000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12001 # The default lists apply if the user does not specify any file.
12002 ac_need_defaults=:
12003 while test $# != 0
12004 do
12005 case $1 in
12006 --*=?*)
12007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12009 ac_shift=:
12010 ;;
12011 --*=)
12012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12013 ac_optarg=
12014 ac_shift=:
12015 ;;
12016 *)
12017 ac_option=$1
12018 ac_optarg=$2
12019 ac_shift=shift
12020 ;;
12021 esac
12022
12023 case $ac_option in
12024 # Handling of the options.
12025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12026 ac_cs_recheck=: ;;
12027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12028 $as_echo "$ac_cs_version"; exit ;;
12029 --config | --confi | --conf | --con | --co | --c )
12030 $as_echo "$ac_cs_config"; exit ;;
12031 --debug | --debu | --deb | --de | --d | -d )
12032 debug=: ;;
12033 --file | --fil | --fi | --f )
12034 $ac_shift
12035 case $ac_optarg in
12036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12037 '') as_fn_error $? "missing file argument" ;;
12038 esac
12039 as_fn_append CONFIG_FILES " '$ac_optarg'"
12040 ac_need_defaults=false;;
12041 --header | --heade | --head | --hea )
12042 $ac_shift
12043 case $ac_optarg in
12044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12045 esac
12046 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12047 ac_need_defaults=false;;
12048 --he | --h)
12049 # Conflict between --help and --header
12050 as_fn_error $? "ambiguous option: \`$1'
12051 Try \`$0 --help' for more information.";;
12052 --help | --hel | -h )
12053 $as_echo "$ac_cs_usage"; exit ;;
12054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12056 ac_cs_silent=: ;;
12057
12058 # This is an error.
12059 -*) as_fn_error $? "unrecognized option: \`$1'
12060 Try \`$0 --help' for more information." ;;
12061
12062 *) as_fn_append ac_config_targets " $1"
12063 ac_need_defaults=false ;;
12064
12065 esac
12066 shift
12067 done
12068
12069 ac_configure_extra_args=
12070
12071 if $ac_cs_silent; then
12072 exec 6>/dev/null
12073 ac_configure_extra_args="$ac_configure_extra_args --silent"
12074 fi
12075
12076 _ACEOF
12077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12078 if \$ac_cs_recheck; then
12079 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12080 shift
12081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12082 CONFIG_SHELL='$SHELL'
12083 export CONFIG_SHELL
12084 exec "\$@"
12085 fi
12086
12087 _ACEOF
12088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089 exec 5>>config.log
12090 {
12091 echo
12092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12093 ## Running $as_me. ##
12094 _ASBOX
12095 $as_echo "$ac_log"
12096 } >&5
12097
12098 _ACEOF
12099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100 #
12101 # INIT-COMMANDS
12102 #
12103 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12104
12105 _ACEOF
12106
12107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108
12109 # Handling of arguments.
12110 for ac_config_target in $ac_config_targets
12111 do
12112 case $ac_config_target in
12113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12117
12118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12119 esac
12120 done
12121
12122
12123 # If the user did not use the arguments to specify the items to instantiate,
12124 # then the envvar interface is used. Set only those that are not.
12125 # We use the long form for the default assignment because of an extremely
12126 # bizarre bug on SunOS 4.1.3.
12127 if $ac_need_defaults; then
12128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12131 fi
12132
12133 # Have a temporary directory for convenience. Make it in the build tree
12134 # simply because there is no reason against having it here, and in addition,
12135 # creating and moving files from /tmp can sometimes cause problems.
12136 # Hook for its removal unless debugging.
12137 # Note that there is a small window in which the directory will not be cleaned:
12138 # after its creation but before its name has been assigned to `$tmp'.
12139 $debug ||
12140 {
12141 tmp= ac_tmp=
12142 trap 'exit_status=$?
12143 : "${ac_tmp:=$tmp}"
12144 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12145 ' 0
12146 trap 'as_fn_exit 1' 1 2 13 15
12147 }
12148 # Create a (secure) tmp directory for tmp files.
12149
12150 {
12151 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12152 test -d "$tmp"
12153 } ||
12154 {
12155 tmp=./conf$$-$RANDOM
12156 (umask 077 && mkdir "$tmp")
12157 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12158 ac_tmp=$tmp
12159
12160 # Set up the scripts for CONFIG_FILES section.
12161 # No need to generate them if there are no CONFIG_FILES.
12162 # This happens for instance with `./config.status config.h'.
12163 if test -n "$CONFIG_FILES"; then
12164
12165
12166 ac_cr=`echo X | tr X '\015'`
12167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12168 # But we know of no other shell where ac_cr would be empty at this
12169 # point, so we can use a bashism as a fallback.
12170 if test "x$ac_cr" = x; then
12171 eval ac_cr=\$\'\\r\'
12172 fi
12173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12175 ac_cs_awk_cr='\\r'
12176 else
12177 ac_cs_awk_cr=$ac_cr
12178 fi
12179
12180 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12181 _ACEOF
12182
12183
12184 {
12185 echo "cat >conf$$subs.awk <<_ACEOF" &&
12186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12187 echo "_ACEOF"
12188 } >conf$$subs.sh ||
12189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12191 ac_delim='%!_!# '
12192 for ac_last_try in false false false false false :; do
12193 . ./conf$$subs.sh ||
12194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12195
12196 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12197 if test $ac_delim_n = $ac_delim_num; then
12198 break
12199 elif $ac_last_try; then
12200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12201 else
12202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12203 fi
12204 done
12205 rm -f conf$$subs.sh
12206
12207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12208 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12209 _ACEOF
12210 sed -n '
12211 h
12212 s/^/S["/; s/!.*/"]=/
12213 p
12214 g
12215 s/^[^!]*!//
12216 :repl
12217 t repl
12218 s/'"$ac_delim"'$//
12219 t delim
12220 :nl
12221 h
12222 s/\(.\{148\}\)..*/\1/
12223 t more1
12224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12225 p
12226 n
12227 b repl
12228 :more1
12229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12230 p
12231 g
12232 s/.\{148\}//
12233 t nl
12234 :delim
12235 h
12236 s/\(.\{148\}\)..*/\1/
12237 t more2
12238 s/["\\]/\\&/g; s/^/"/; s/$/"/
12239 p
12240 b
12241 :more2
12242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12243 p
12244 g
12245 s/.\{148\}//
12246 t delim
12247 ' <conf$$subs.awk | sed '
12248 /^[^""]/{
12249 N
12250 s/\n//
12251 }
12252 ' >>$CONFIG_STATUS || ac_write_fail=1
12253 rm -f conf$$subs.awk
12254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255 _ACAWK
12256 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12257 for (key in S) S_is_set[key] = 1
12258 FS = ""
12259
12260 }
12261 {
12262 line = $ 0
12263 nfields = split(line, field, "@")
12264 substed = 0
12265 len = length(field[1])
12266 for (i = 2; i < nfields; i++) {
12267 key = field[i]
12268 keylen = length(key)
12269 if (S_is_set[key]) {
12270 value = S[key]
12271 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12272 len += length(value) + length(field[++i])
12273 substed = 1
12274 } else
12275 len += 1 + keylen
12276 }
12277
12278 print line
12279 }
12280
12281 _ACAWK
12282 _ACEOF
12283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12286 else
12287 cat
12288 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12289 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12290 _ACEOF
12291
12292 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12293 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12294 # trailing colons and then remove the whole line if VPATH becomes empty
12295 # (actually we leave an empty line to preserve line numbers).
12296 if test "x$srcdir" = x.; then
12297 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12298 h
12299 s///
12300 s/^/:/
12301 s/[ ]*$/:/
12302 s/:\$(srcdir):/:/g
12303 s/:\${srcdir}:/:/g
12304 s/:@srcdir@:/:/g
12305 s/^:*//
12306 s/:*$//
12307 x
12308 s/\(=[ ]*\).*/\1/
12309 G
12310 s/\n//
12311 s/^[^=]*=[ ]*$//
12312 }'
12313 fi
12314
12315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316 fi # test -n "$CONFIG_FILES"
12317
12318 # Set up the scripts for CONFIG_HEADERS section.
12319 # No need to generate them if there are no CONFIG_HEADERS.
12320 # This happens for instance with `./config.status Makefile'.
12321 if test -n "$CONFIG_HEADERS"; then
12322 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12323 BEGIN {
12324 _ACEOF
12325
12326 # Transform confdefs.h into an awk script `defines.awk', embedded as
12327 # here-document in config.status, that substitutes the proper values into
12328 # config.h.in to produce config.h.
12329
12330 # Create a delimiter string that does not exist in confdefs.h, to ease
12331 # handling of long lines.
12332 ac_delim='%!_!# '
12333 for ac_last_try in false false :; do
12334 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12335 if test -z "$ac_tt"; then
12336 break
12337 elif $ac_last_try; then
12338 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12339 else
12340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12341 fi
12342 done
12343
12344 # For the awk script, D is an array of macro values keyed by name,
12345 # likewise P contains macro parameters if any. Preserve backslash
12346 # newline sequences.
12347
12348 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12349 sed -n '
12350 s/.\{148\}/&'"$ac_delim"'/g
12351 t rset
12352 :rset
12353 s/^[ ]*#[ ]*define[ ][ ]*/ /
12354 t def
12355 d
12356 :def
12357 s/\\$//
12358 t bsnl
12359 s/["\\]/\\&/g
12360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12361 D["\1"]=" \3"/p
12362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12363 d
12364 :bsnl
12365 s/["\\]/\\&/g
12366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12367 D["\1"]=" \3\\\\\\n"\\/p
12368 t cont
12369 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12370 t cont
12371 d
12372 :cont
12373 n
12374 s/.\{148\}/&'"$ac_delim"'/g
12375 t clear
12376 :clear
12377 s/\\$//
12378 t bsnlc
12379 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12380 d
12381 :bsnlc
12382 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12383 b cont
12384 ' <confdefs.h | sed '
12385 s/'"$ac_delim"'/"\\\
12386 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12387
12388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12389 for (key in D) D_is_set[key] = 1
12390 FS = ""
12391 }
12392 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12393 line = \$ 0
12394 split(line, arg, " ")
12395 if (arg[1] == "#") {
12396 defundef = arg[2]
12397 mac1 = arg[3]
12398 } else {
12399 defundef = substr(arg[1], 2)
12400 mac1 = arg[2]
12401 }
12402 split(mac1, mac2, "(") #)
12403 macro = mac2[1]
12404 prefix = substr(line, 1, index(line, defundef) - 1)
12405 if (D_is_set[macro]) {
12406 # Preserve the white space surrounding the "#".
12407 print prefix "define", macro P[macro] D[macro]
12408 next
12409 } else {
12410 # Replace #undef with comments. This is necessary, for example,
12411 # in the case of _POSIX_SOURCE, which is predefined and required
12412 # on some systems where configure will not decide to define it.
12413 if (defundef == "undef") {
12414 print "/*", prefix defundef, macro, "*/"
12415 next
12416 }
12417 }
12418 }
12419 { print }
12420 _ACAWK
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12423 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12424 fi # test -n "$CONFIG_HEADERS"
12425
12426
12427 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12428 shift
12429 for ac_tag
12430 do
12431 case $ac_tag in
12432 :[FHLC]) ac_mode=$ac_tag; continue;;
12433 esac
12434 case $ac_mode$ac_tag in
12435 :[FHL]*:*);;
12436 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12437 :[FH]-) ac_tag=-:-;;
12438 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12439 esac
12440 ac_save_IFS=$IFS
12441 IFS=:
12442 set x $ac_tag
12443 IFS=$ac_save_IFS
12444 shift
12445 ac_file=$1
12446 shift
12447
12448 case $ac_mode in
12449 :L) ac_source=$1;;
12450 :[FH])
12451 ac_file_inputs=
12452 for ac_f
12453 do
12454 case $ac_f in
12455 -) ac_f="$ac_tmp/stdin";;
12456 *) # Look for the file first in the build tree, then in the source tree
12457 # (if the path is not absolute). The absolute path cannot be DOS-style,
12458 # because $ac_f cannot contain `:'.
12459 test -f "$ac_f" ||
12460 case $ac_f in
12461 [\\/$]*) false;;
12462 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12463 esac ||
12464 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12465 esac
12466 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12467 as_fn_append ac_file_inputs " '$ac_f'"
12468 done
12469
12470 # Let's still pretend it is `configure' which instantiates (i.e., don't
12471 # use $as_me), people would be surprised to read:
12472 # /* config.h. Generated by config.status. */
12473 configure_input='Generated from '`
12474 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12475 `' by configure.'
12476 if test x"$ac_file" != x-; then
12477 configure_input="$ac_file. $configure_input"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12479 $as_echo "$as_me: creating $ac_file" >&6;}
12480 fi
12481 # Neutralize special characters interpreted by sed in replacement strings.
12482 case $configure_input in #(
12483 *\&* | *\|* | *\\* )
12484 ac_sed_conf_input=`$as_echo "$configure_input" |
12485 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12486 *) ac_sed_conf_input=$configure_input;;
12487 esac
12488
12489 case $ac_tag in
12490 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12492 esac
12493 ;;
12494 esac
12495
12496 ac_dir=`$as_dirname -- "$ac_file" ||
12497 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498 X"$ac_file" : 'X\(//\)[^/]' \| \
12499 X"$ac_file" : 'X\(//\)$' \| \
12500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12501 $as_echo X"$ac_file" |
12502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503 s//\1/
12504 q
12505 }
12506 /^X\(\/\/\)[^/].*/{
12507 s//\1/
12508 q
12509 }
12510 /^X\(\/\/\)$/{
12511 s//\1/
12512 q
12513 }
12514 /^X\(\/\).*/{
12515 s//\1/
12516 q
12517 }
12518 s/.*/./; q'`
12519 as_dir="$ac_dir"; as_fn_mkdir_p
12520 ac_builddir=.
12521
12522 case "$ac_dir" in
12523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12524 *)
12525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12526 # A ".." for each directory in $ac_dir_suffix.
12527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12528 case $ac_top_builddir_sub in
12529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12531 esac ;;
12532 esac
12533 ac_abs_top_builddir=$ac_pwd
12534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12535 # for backward compatibility:
12536 ac_top_builddir=$ac_top_build_prefix
12537
12538 case $srcdir in
12539 .) # We are building in place.
12540 ac_srcdir=.
12541 ac_top_srcdir=$ac_top_builddir_sub
12542 ac_abs_top_srcdir=$ac_pwd ;;
12543 [\\/]* | ?:[\\/]* ) # Absolute name.
12544 ac_srcdir=$srcdir$ac_dir_suffix;
12545 ac_top_srcdir=$srcdir
12546 ac_abs_top_srcdir=$srcdir ;;
12547 *) # Relative name.
12548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12549 ac_top_srcdir=$ac_top_build_prefix$srcdir
12550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12551 esac
12552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12553
12554
12555 case $ac_mode in
12556 :F)
12557 #
12558 # CONFIG_FILE
12559 #
12560
12561 case $INSTALL in
12562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12563 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12564 esac
12565 ac_MKDIR_P=$MKDIR_P
12566 case $MKDIR_P in
12567 [\\/$]* | ?:[\\/]* ) ;;
12568 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12569 esac
12570 _ACEOF
12571
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 # If the template does not know about datarootdir, expand it.
12574 # FIXME: This hack should be removed a few years after 2.60.
12575 ac_datarootdir_hack=; ac_datarootdir_seen=
12576 ac_sed_dataroot='
12577 /datarootdir/ {
12578 p
12579 q
12580 }
12581 /@datadir@/p
12582 /@docdir@/p
12583 /@infodir@/p
12584 /@localedir@/p
12585 /@mandir@/p'
12586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12587 *datarootdir*) ac_datarootdir_seen=yes;;
12588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12591 _ACEOF
12592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12593 ac_datarootdir_hack='
12594 s&@datadir@&$datadir&g
12595 s&@docdir@&$docdir&g
12596 s&@infodir@&$infodir&g
12597 s&@localedir@&$localedir&g
12598 s&@mandir@&$mandir&g
12599 s&\\\${datarootdir}&$datarootdir&g' ;;
12600 esac
12601 _ACEOF
12602
12603 # Neutralize VPATH when `$srcdir' = `.'.
12604 # Shell code in configure.ac might set extrasub.
12605 # FIXME: do we really want to maintain this feature?
12606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12607 ac_sed_extra="$ac_vpsub
12608 $extrasub
12609 _ACEOF
12610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611 :t
12612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12613 s|@configure_input@|$ac_sed_conf_input|;t t
12614 s&@top_builddir@&$ac_top_builddir_sub&;t t
12615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12616 s&@srcdir@&$ac_srcdir&;t t
12617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12618 s&@top_srcdir@&$ac_top_srcdir&;t t
12619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12620 s&@builddir@&$ac_builddir&;t t
12621 s&@abs_builddir@&$ac_abs_builddir&;t t
12622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12623 s&@INSTALL@&$ac_INSTALL&;t t
12624 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12625 $ac_datarootdir_hack
12626 "
12627 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12628 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12629
12630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12631 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12633 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12635 which seems to be undefined. Please make sure it is defined" >&5
12636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12637 which seems to be undefined. Please make sure it is defined" >&2;}
12638
12639 rm -f "$ac_tmp/stdin"
12640 case $ac_file in
12641 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12642 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12643 esac \
12644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12645 ;;
12646 :H)
12647 #
12648 # CONFIG_HEADER
12649 #
12650 if test x"$ac_file" != x-; then
12651 {
12652 $as_echo "/* $configure_input */" \
12653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12654 } >"$ac_tmp/config.h" \
12655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12656 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12658 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12659 else
12660 rm -f "$ac_file"
12661 mv "$ac_tmp/config.h" "$ac_file" \
12662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12663 fi
12664 else
12665 $as_echo "/* $configure_input */" \
12666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12667 || as_fn_error $? "could not create -" "$LINENO" 5
12668 fi
12669 # Compute "$ac_file"'s index in $config_headers.
12670 _am_arg="$ac_file"
12671 _am_stamp_count=1
12672 for _am_header in $config_headers :; do
12673 case $_am_header in
12674 $_am_arg | $_am_arg:* )
12675 break ;;
12676 * )
12677 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12678 esac
12679 done
12680 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12681 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$_am_arg" : 'X\(//\)[^/]' \| \
12683 X"$_am_arg" : 'X\(//\)$' \| \
12684 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12685 $as_echo X"$_am_arg" |
12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12687 s//\1/
12688 q
12689 }
12690 /^X\(\/\/\)[^/].*/{
12691 s//\1/
12692 q
12693 }
12694 /^X\(\/\/\)$/{
12695 s//\1/
12696 q
12697 }
12698 /^X\(\/\).*/{
12699 s//\1/
12700 q
12701 }
12702 s/.*/./; q'`/stamp-h$_am_stamp_count
12703 ;;
12704
12705 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12706 $as_echo "$as_me: executing $ac_file commands" >&6;}
12707 ;;
12708 esac
12709
12710
12711 case $ac_file$ac_mode in
12712 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12713 # Older Autoconf quotes --file arguments for eval, but not when files
12714 # are listed without --file. Let's play safe and only enable the eval
12715 # if we detect the quoting.
12716 case $CONFIG_FILES in
12717 *\'*) eval set x "$CONFIG_FILES" ;;
12718 *) set x $CONFIG_FILES ;;
12719 esac
12720 shift
12721 for mf
12722 do
12723 # Strip MF so we end up with the name of the file.
12724 mf=`echo "$mf" | sed -e 's/:.*$//'`
12725 # Check whether this is an Automake generated Makefile or not.
12726 # We used to match only the files named 'Makefile.in', but
12727 # some people rename them; so instead we look at the file content.
12728 # Grep'ing the first line is not enough: some people post-process
12729 # each Makefile.in and add a new line on top of each file to say so.
12730 # Grep'ing the whole file is not good either: AIX grep has a line
12731 # limit of 2048, but all sed's we know have understand at least 4000.
12732 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12733 dirpart=`$as_dirname -- "$mf" ||
12734 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12735 X"$mf" : 'X\(//\)[^/]' \| \
12736 X"$mf" : 'X\(//\)$' \| \
12737 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12738 $as_echo X"$mf" |
12739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12740 s//\1/
12741 q
12742 }
12743 /^X\(\/\/\)[^/].*/{
12744 s//\1/
12745 q
12746 }
12747 /^X\(\/\/\)$/{
12748 s//\1/
12749 q
12750 }
12751 /^X\(\/\).*/{
12752 s//\1/
12753 q
12754 }
12755 s/.*/./; q'`
12756 else
12757 continue
12758 fi
12759 # Extract the definition of DEPDIR, am__include, and am__quote
12760 # from the Makefile without running 'make'.
12761 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12762 test -z "$DEPDIR" && continue
12763 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12764 test -z "$am__include" && continue
12765 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12766 # Find all dependency output files, they are included files with
12767 # $(DEPDIR) in their names. We invoke sed twice because it is the
12768 # simplest approach to changing $(DEPDIR) to its actual value in the
12769 # expansion.
12770 for file in `sed -n "
12771 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12772 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12773 # Make sure the directory exists.
12774 test -f "$dirpart/$file" && continue
12775 fdir=`$as_dirname -- "$file" ||
12776 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777 X"$file" : 'X\(//\)[^/]' \| \
12778 X"$file" : 'X\(//\)$' \| \
12779 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12780 $as_echo X"$file" |
12781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12782 s//\1/
12783 q
12784 }
12785 /^X\(\/\/\)[^/].*/{
12786 s//\1/
12787 q
12788 }
12789 /^X\(\/\/\)$/{
12790 s//\1/
12791 q
12792 }
12793 /^X\(\/\).*/{
12794 s//\1/
12795 q
12796 }
12797 s/.*/./; q'`
12798 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12799 # echo "creating $dirpart/$file"
12800 echo '# dummy' > "$dirpart/$file"
12801 done
12802 done
12803 }
12804 ;;
12805
12806 esac
12807 done # for ac_tag
12808
12809
12810 as_fn_exit 0
12811 _ACEOF
12812 ac_clean_files=$ac_clean_files_save
12813
12814 test $ac_write_fail = 0 ||
12815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12816
12817
12818 # configure is writing to config.log, and then calls config.status.
12819 # config.status does its own redirection, appending to config.log.
12820 # Unfortunately, on DOS this fails, as config.log is still kept open
12821 # by configure, so config.status won't be able to write to it; its
12822 # output is simply discarded. So we exec the FD to /dev/null,
12823 # effectively closing config.log, so it can be properly (re)opened and
12824 # appended to by config.status. When coming back to configure, we
12825 # need to make the FD available again.
12826 if test "$no_create" != yes; then
12827 ac_cs_success=:
12828 ac_config_status_args=
12829 test "$silent" = yes &&
12830 ac_config_status_args="$ac_config_status_args --quiet"
12831 exec 5>/dev/null
12832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12833 exec 5>>config.log
12834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12835 # would make configure fail if this is the last instruction.
12836 $ac_cs_success || as_fn_exit 1
12837 fi
12838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12840 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12841 fi
12842
12843