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 xlsclients 1.1.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='xlsclients'
563 PACKAGE_TARNAME='xlsclients'
564 PACKAGE_VERSION='1.1.3'
565 PACKAGE_STRING='xlsclients 1.1.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 XLSCLIENTS_LIBS
610 XLSCLIENTS_CFLAGS
611 LIBOBJS
612 MAN_SUBSTS
613 XORG_MAN_PAGE
614 ADMIN_MAN_DIR
615 DRIVER_MAN_DIR
616 MISC_MAN_DIR
617 FILE_MAN_DIR
618 LIB_MAN_DIR
619 APP_MAN_DIR
620 ADMIN_MAN_SUFFIX
621 DRIVER_MAN_SUFFIX
622 MISC_MAN_SUFFIX
623 FILE_MAN_SUFFIX
624 LIB_MAN_SUFFIX
625 APP_MAN_SUFFIX
626 SED
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 INSTALL_CMD
636 PKG_CONFIG
637 CHANGELOG_CMD
638 STRICT_CFLAGS
639 CWARNFLAGS
640 BASE_CFLAGS
641 MAINT
642 MAINTAINER_MODE_FALSE
643 MAINTAINER_MODE_TRUE
644 AM_BACKSLASH
645 AM_DEFAULT_VERBOSITY
646 AM_DEFAULT_V
647 AM_V
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 am__untar
659 am__tar
660 AMTAR
661 am__leading_dot
662 SET_MAKE
663 AWK
664 mkdir_p
665 MKDIR_P
666 INSTALL_STRIP_PROGRAM
667 STRIP
668 install_sh
669 MAKEINFO
670 AUTOHEADER
671 AUTOMAKE
672 AUTOCONF
673 ACLOCAL
674 VERSION
675 PACKAGE
676 CYGPATH_W
677 am__isrc
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 EGREP
682 GREP
683 CPP
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_dependency_tracking
733 enable_silent_rules
734 enable_maintainer_mode
735 enable_selective_werror
736 enable_strict_compilation
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 PKG_CONFIG
748 XLSCLIENTS_CFLAGS
749 XLSCLIENTS_LIBS'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used" >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1256 fi
1257 else
1258 ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 fi
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures xlsclients 1.1.3 to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1346
1347 cat <<\_ACEOF
1348
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 _ACEOF
1358 fi
1359
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of xlsclients 1.1.3:";;
1363 esac
1364 cat <<\_ACEOF
1365
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-dependency-tracking
1371 do not reject slow dependency extractors
1372 --disable-dependency-tracking
1373 speeds up one-time build
1374 --enable-silent-rules less verbose build output (undo: "make V=1")
1375 --disable-silent-rules verbose build output (undo: "make V=0")
1376 --enable-maintainer-mode
1377 enable make rules and dependencies not useful (and
1378 sometimes confusing) to the casual installer
1379 --disable-selective-werror
1380 Turn off selective compiler errors. (default:
1381 enabled)
1382 --enable-strict-compilation
1383 Enable all warnings from compiler and make them
1384 errors (default: disabled)
1385
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1395 PKG_CONFIG path to pkg-config utility
1396 XLSCLIENTS_CFLAGS
1397 C compiler flags for XLSCLIENTS, overriding pkg-config
1398 XLSCLIENTS_LIBS
1399 linker flags for XLSCLIENTS, overriding pkg-config
1400
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1403
1404 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 continue
1415 ac_builddir=.
1416
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *)
1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1432
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1462 fi
1463
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 xlsclients configure 1.1.3
1468 generated by GNU Autoconf 2.68
1469
1470 Copyright (C) 2010 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1473 _ACEOF
1474 exit
1475 fi
1476
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1480
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1485 {
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1501 fi
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1511
1512 ac_retval=1
1513 fi
1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515 as_fn_set_status $ac_retval
1516
1517 } # ac_fn_c_try_compile
1518
1519 # ac_fn_c_try_cpp LINENO
1520 # ----------------------
1521 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_cpp ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { { ac_try="$ac_cpp conftest.$ac_ext"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } > conftest.i && {
1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 }; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_cpp
1555
1556 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1559 # the include files in INCLUDES and setting the cache variable VAR
1560 # accordingly.
1561 ac_fn_c_check_header_mongrel ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if eval \${$3+:} false; then :
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1566 $as_echo_n "checking for $2... " >&6; }
1567 if eval \${$3+:} false; then :
1568 $as_echo_n "(cached) " >&6
1569 fi
1570 eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572 $as_echo "$ac_res" >&6; }
1573 else
1574 # Is the header compilable?
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1576 $as_echo_n "checking $2 usability... " >&6; }
1577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h. */
1579 $4
1580 #include <$2>
1581 _ACEOF
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583 ac_header_compiler=yes
1584 else
1585 ac_header_compiler=no
1586 fi
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1589 $as_echo "$ac_header_compiler" >&6; }
1590
1591 # Is the header present?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1593 $as_echo_n "checking $2 presence... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_cpp "$LINENO"; then :
1599 ac_header_preproc=yes
1600 else
1601 ac_header_preproc=no
1602 fi
1603 rm -f conftest.err conftest.i conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1605 $as_echo "$ac_header_preproc" >&6; }
1606
1607 # So? What about this header?
1608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1609 yes:no: )
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1611 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1613 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1614 ;;
1615 no:yes:* )
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1617 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1619 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1621 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1623 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ( $as_echo "## ---------------------------------------------------------------------- ##
1627 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1628 ## ---------------------------------------------------------------------- ##"
1629 ) | sed "s/^/$as_me: WARNING: /" >&2
1630 ;;
1631 esac
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 else
1637 eval "$3=\$ac_header_compiler"
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_header_mongrel
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=$ac_status
1682 fi
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 eval "$3=yes"
1708 else
1709 eval "$3=no"
1710 fi
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_compile
1719
1720 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1721 # ---------------------------------------------
1722 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1723 # accordingly.
1724 ac_fn_c_check_decl ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 as_decl_name=`echo $2|sed 's/ *(.*//'`
1728 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1730 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 int
1738 main ()
1739 {
1740 #ifndef $as_decl_name
1741 #ifdef __cplusplus
1742 (void) $as_decl_use;
1743 #else
1744 (void) $as_decl_name;
1745 #endif
1746 #endif
1747
1748 ;
1749 return 0;
1750 }
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_decl
1765
1766 # ac_fn_c_try_link LINENO
1767 # -----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_link ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest$ac_exeext
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811 cat >config.log <<_ACEOF
1812 This file contains any messages produced by compilers while
1813 running configure, to aid debugging if configure makes a mistake.
1814
1815 It was created by xlsclients $as_me 1.1.3, which was
1816 generated by GNU Autoconf 2.68. Invocation command line was
1817
1818 $ $0 $@
1819
1820 _ACEOF
1821 exec 5>>config.log
1822 {
1823 cat <<_ASUNAME
1824 ## --------- ##
1825 ## Platform. ##
1826 ## --------- ##
1827
1828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833
1834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1836
1837 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1838 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1841 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1842 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1843 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844
1845 _ASUNAME
1846
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 $as_echo "PATH: $as_dir"
1853 done
1854 IFS=$as_save_IFS
1855
1856 } >&5
1857
1858 cat >&5 <<_ACEOF
1859
1860
1861 ## ----------- ##
1862 ## Core tests. ##
1863 ## ----------- ##
1864
1865 _ACEOF
1866
1867
1868 # Keep a trace of the command line.
1869 # Strip out --no-create and --no-recursion so they do not pile up.
1870 # Strip out --silent because we don't want to record it for future runs.
1871 # Also quote any args containing shell meta-characters.
1872 # Make two passes to allow for proper duplicate-argument suppression.
1873 ac_configure_args=
1874 ac_configure_args0=
1875 ac_configure_args1=
1876 ac_must_keep_next=false
1877 for ac_pass in 1 2
1878 do
1879 for ac_arg
1880 do
1881 case $ac_arg in
1882 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1884 | -silent | --silent | --silen | --sile | --sil)
1885 continue ;;
1886 *\'*)
1887 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 esac
1889 case $ac_pass in
1890 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1891 2)
1892 as_fn_append ac_configure_args1 " '$ac_arg'"
1893 if test $ac_must_keep_next = true; then
1894 ac_must_keep_next=false # Got value, back to normal.
1895 else
1896 case $ac_arg in
1897 *=* | --config-cache | -C | -disable-* | --disable-* \
1898 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1899 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1900 | -with-* | --with-* | -without-* | --without-* | --x)
1901 case "$ac_configure_args0 " in
1902 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903 esac
1904 ;;
1905 -* ) ac_must_keep_next=true ;;
1906 esac
1907 fi
1908 as_fn_append ac_configure_args " '$ac_arg'"
1909 ;;
1910 esac
1911 done
1912 done
1913 { ac_configure_args0=; unset ac_configure_args0;}
1914 { ac_configure_args1=; unset ac_configure_args1;}
1915
1916 # When interrupted or exit'd, cleanup temporary files, and complete
1917 # config.log. We remove comments because anyway the quotes in there
1918 # would cause problems or look ugly.
1919 # WARNING: Use '\'' to represent an apostrophe within the trap.
1920 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1921 trap 'exit_status=$?
1922 # Save into config.log some information that might help in debugging.
1923 {
1924 echo
1925
1926 $as_echo "## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##"
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1931 (
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1944 esac ;;
1945 esac
1946 done
1947 (set) 2>&1 |
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1950 sed -n \
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 ;; #(
1954 *)
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 ;;
1957 esac |
1958 sort
1959 )
1960 echo
1961
1962 $as_echo "## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##"
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 $as_echo "## ------------------- ##
1978 ## File substitutions. ##
1979 ## ------------------- ##"
1980 echo
1981 for ac_var in $ac_subst_files
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 $as_echo "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990 fi
1991
1992 if test -s confdefs.h; then
1993 $as_echo "## ----------- ##
1994 ## confdefs.h. ##
1995 ## ----------- ##"
1996 echo
1997 cat confdefs.h
1998 echo
1999 fi
2000 test "$ac_signal" != 0 &&
2001 $as_echo "$as_me: caught signal $ac_signal"
2002 $as_echo "$as_me: exit $exit_status"
2003 } >&5
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 exit $exit_status
2007 ' 0
2008 for ac_signal in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010 done
2011 ac_signal=0
2012
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest* confdefs.h
2015
2016 $as_echo "/* confdefs.h */" > confdefs.h
2017
2018 # Predefined preprocessor variables.
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_NAME "$PACKAGE_NAME"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_STRING "$PACKAGE_STRING"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_URL "$PACKAGE_URL"
2042 _ACEOF
2043
2044
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2047 ac_site_file1=NONE
2048 ac_site_file2=NONE
2049 if test -n "$CONFIG_SITE"; then
2050 # We do not want a PATH search for config.site.
2051 case $CONFIG_SITE in #((
2052 -*) ac_site_file1=./$CONFIG_SITE;;
2053 */*) ac_site_file1=$CONFIG_SITE;;
2054 *) ac_site_file1=./$CONFIG_SITE;;
2055 esac
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059 else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
2062 fi
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064 do
2065 test "x$ac_site_file" = xNONE && continue
2066 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2070 . "$ac_site_file" \
2071 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 as_fn_error $? "failed to load site script $ac_site_file
2074 See \`config.log' for more details" "$LINENO" 5; }
2075 fi
2076 done
2077
2078 if test -r "$cache_file"; then
2079 # Some versions of bash will fail to source /dev/null (special files
2080 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2081 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2083 $as_echo "$as_me: loading cache $cache_file" >&6;}
2084 case $cache_file in
2085 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2086 *) . "./$cache_file";;
2087 esac
2088 fi
2089 else
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2091 $as_echo "$as_me: creating cache $cache_file" >&6;}
2092 >$cache_file
2093 fi
2094
2095 # Check that the precious variables saved in the cache have kept the same
2096 # value.
2097 ac_cache_corrupted=false
2098 for ac_var in $ac_precious_vars; do
2099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2100 eval ac_new_set=\$ac_env_${ac_var}_set
2101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2102 eval ac_new_val=\$ac_env_${ac_var}_value
2103 case $ac_old_set,$ac_new_set in
2104 set,)
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2108 ,set)
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2111 ac_cache_corrupted=: ;;
2112 ,);;
2113 *)
2114 if test "x$ac_old_val" != "x$ac_new_val"; then
2115 # differences in whitespace do not lead to failure.
2116 ac_old_val_w=`echo x $ac_old_val`
2117 ac_new_val_w=`echo x $ac_new_val`
2118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2121 ac_cache_corrupted=:
2122 else
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2125 eval $ac_var=\$ac_old_val
2126 fi
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2128 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2130 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2131 fi;;
2132 esac
2133 # Pass precious variables to config.status.
2134 if test "$ac_new_set" = set; then
2135 case $ac_new_val in
2136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 *) ac_arg=$ac_var=$ac_new_val ;;
2138 esac
2139 case " $ac_configure_args " in
2140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2142 esac
2143 fi
2144 done
2145 if $ac_cache_corrupted; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2150 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2151 fi
2152 ## -------------------- ##
2153 ## Main body of script. ##
2154 ## -------------------- ##
2155
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161
2162
2163
2164 ac_config_headers="$ac_config_headers config.h"
2165
2166 # expand $ac_aux_dir to an absolute path
2167 am_aux_dir=`cd $ac_aux_dir && pwd`
2168
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if ${ac_cv_prog_CC+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2205 $as_echo "$CC" >&6; }
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2208 $as_echo "no" >&6; }
2209 fi
2210
2211
2212 fi
2213 if test -z "$ac_cv_prog_CC"; then
2214 ac_ct_CC=$CC
2215 # Extract the first word of "gcc", so it can be a program name with args.
2216 set dummy gcc; ac_word=$2
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 if test -n "$ac_ct_CC"; then
2223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_ac_ct_CC="gcc"
2233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238 IFS=$as_save_IFS
2239
2240 fi
2241 fi
2242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2243 if test -n "$ac_ct_CC"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2245 $as_echo "$ac_ct_CC" >&6; }
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2248 $as_echo "no" >&6; }
2249 fi
2250
2251 if test "x$ac_ct_CC" = x; then
2252 CC=""
2253 else
2254 case $cross_compiling:$ac_tool_warned in
2255 yes:)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2258 ac_tool_warned=yes ;;
2259 esac
2260 CC=$ac_ct_CC
2261 fi
2262 else
2263 CC="$ac_cv_prog_CC"
2264 fi
2265
2266 if test -z "$CC"; then
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}cc; ac_word=$2
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if ${ac_cv_prog_CC+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_CC="${ac_tool_prefix}cc"
2286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 CC=$ac_cv_prog_CC
2296 if test -n "$CC"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2298 $as_echo "$CC" >&6; }
2299 else
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2301 $as_echo "no" >&6; }
2302 fi
2303
2304
2305 fi
2306 fi
2307 if test -z "$CC"; then
2308 # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if ${ac_cv_prog_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318 ac_prog_rejected=no
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327 ac_prog_rejected=yes
2328 continue
2329 fi
2330 ac_cv_prog_CC="cc"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 if test $ac_prog_rejected = yes; then
2339 # We found a bogon in the path, so make sure we never use it.
2340 set dummy $ac_cv_prog_CC
2341 shift
2342 if test $# != 0; then
2343 # We chose a different compiler from the bogus one.
2344 # However, it has the same basename, so the bogon will be chosen
2345 # first if we set CC to just the basename; use the full file name.
2346 shift
2347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2348 fi
2349 fi
2350 fi
2351 fi
2352 CC=$ac_cv_prog_CC
2353 if test -n "$CC"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2355 $as_echo "$CC" >&6; }
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2358 $as_echo "no" >&6; }
2359 fi
2360
2361
2362 fi
2363 if test -z "$CC"; then
2364 if test -n "$ac_tool_prefix"; then
2365 for ac_prog in cl.exe
2366 do
2367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2370 $as_echo_n "checking for $ac_word... " >&6; }
2371 if ${ac_cv_prog_CC+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 break 2
2387 fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2397 $as_echo "$CC" >&6; }
2398 else
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2400 $as_echo "no" >&6; }
2401 fi
2402
2403
2404 test -n "$CC" && break
2405 done
2406 fi
2407 if test -z "$CC"; then
2408 ac_ct_CC=$CC
2409 for ac_prog in cl.exe
2410 do
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_CC="$ac_prog"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2441 $as_echo "$ac_ct_CC" >&6; }
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448 test -n "$ac_ct_CC" && break
2449 done
2450
2451 if test "x$ac_ct_CC" = x; then
2452 CC=""
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455 yes:)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2458 ac_tool_warned=yes ;;
2459 esac
2460 CC=$ac_ct_CC
2461 fi
2462 fi
2463
2464 fi
2465
2466
2467 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 as_fn_error $? "no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details" "$LINENO" 5; }
2471
2472 # Provide some information about the compiler.
2473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2474 set X $ac_compile
2475 ac_compiler=$2
2476 for ac_option in --version -v -V -qversion; do
2477 { { ac_try="$ac_compiler $ac_option >&5"
2478 case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2485 ac_status=$?
2486 if test -s conftest.err; then
2487 sed '10a\
2488 ... rest of stderr output deleted ...
2489 10q' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 fi
2492 rm -f conftest.er1 conftest.err
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; }
2495 done
2496
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2499
2500 int
2501 main ()
2502 {
2503
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 ac_clean_files_save=$ac_clean_files
2509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2510 # Try to create an executable without -o first, disregard a.out.
2511 # It will help us diagnose broken compilers, and finding out an intuition
2512 # of exeext.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2514 $as_echo_n "checking whether the C compiler works... " >&6; }
2515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2516
2517 # The possible output files:
2518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2519
2520 ac_rmfiles=
2521 for ac_file in $ac_files
2522 do
2523 case $ac_file in
2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2526 esac
2527 done
2528 rm -f $ac_rmfiles
2529
2530 if { { ac_try="$ac_link_default"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537 (eval "$ac_link_default") 2>&5
2538 ac_status=$?
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; }; then :
2541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2543 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2544 # so that the user can short-circuit this test for compilers unknown to
2545 # Autoconf.
2546 for ac_file in $ac_files ''
2547 do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2551 ;;
2552 [ab].out )
2553 # We found the default executable, but exeext='' is most
2554 # certainly right.
2555 break;;
2556 *.* )
2557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2558 then :; else
2559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560 fi
2561 # We set ac_cv_exeext here because the later test for it is not
2562 # safe: cross compilers may not add the suffix if given an `-o'
2563 # argument, so we may need to know it at that point already.
2564 # Even if this section looks crufty: it has the advantage of
2565 # actually working.
2566 break;;
2567 * )
2568 break;;
2569 esac
2570 done
2571 test "$ac_cv_exeext" = no && ac_cv_exeext=
2572
2573 else
2574 ac_file=''
2575 fi
2576 if test -z "$ac_file"; then :
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 $as_echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 as_fn_error 77 "C compiler cannot create executables
2585 See \`config.log' for more details" "$LINENO" 5; }
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2591 $as_echo_n "checking for C compiler default output file name... " >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2593 $as_echo "$ac_file" >&6; }
2594 ac_exeext=$ac_cv_exeext
2595
2596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2597 ac_clean_files=$ac_clean_files_save
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2599 $as_echo_n "checking for suffix of executables... " >&6; }
2600 if { { ac_try="$ac_link"
2601 case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604 esac
2605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2606 $as_echo "$ac_try_echo"; } >&5
2607 (eval "$ac_link") 2>&5
2608 ac_status=$?
2609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610 test $ac_status = 0; }; then :
2611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2613 # work properly (i.e., refer to `conftest.exe'), while it won't with
2614 # `rm'.
2615 for ac_file in conftest.exe conftest conftest.*; do
2616 test -f "$ac_file" || continue
2617 case $ac_file in
2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620 break;;
2621 * ) break;;
2622 esac
2623 done
2624 else
2625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details" "$LINENO" 5; }
2629 fi
2630 rm -f conftest conftest$ac_cv_exeext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2632 $as_echo "$ac_cv_exeext" >&6; }
2633
2634 rm -f conftest.$ac_ext
2635 EXEEXT=$ac_cv_exeext
2636 ac_exeext=$EXEEXT
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 #include <stdio.h>
2640 int
2641 main ()
2642 {
2643 FILE *f = fopen ("conftest.out", "w");
2644 return ferror (f) || fclose (f) != 0;
2645
2646 ;
2647 return 0;
2648 }
2649 _ACEOF
2650 ac_clean_files="$ac_clean_files conftest.out"
2651 # Check that the compiler produces executables we can run. If not, either
2652 # the compiler is broken, or we cross compile.
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2654 $as_echo_n "checking whether we are cross compiling... " >&6; }
2655 if test "$cross_compiling" != yes; then
2656 { { ac_try="$ac_link"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_link") 2>&5
2664 ac_status=$?
2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; }
2667 if { ac_try='./conftest$ac_cv_exeext'
2668 { { case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_try") 2>&5
2675 ac_status=$?
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; }; }; then
2678 cross_compiling=no
2679 else
2680 if test "$cross_compiling" = maybe; then
2681 cross_compiling=yes
2682 else
2683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 as_fn_error $? "cannot run C compiled programs.
2686 If you meant to cross compile, use \`--host'.
2687 See \`config.log' for more details" "$LINENO" 5; }
2688 fi
2689 fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2692 $as_echo "$cross_compiling" >&6; }
2693
2694 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2695 ac_clean_files=$ac_clean_files_save
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2697 $as_echo_n "checking for suffix of object files... " >&6; }
2698 if ${ac_cv_objext+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2703
2704 int
2705 main ()
2706 {
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.o conftest.obj
2713 if { { ac_try="$ac_compile"
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_compile") 2>&5
2721 ac_status=$?
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }; then :
2724 for ac_file in conftest.o conftest.obj conftest.*; do
2725 test -f "$ac_file" || continue;
2726 case $ac_file in
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2729 break;;
2730 esac
2731 done
2732 else
2733 $as_echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738 as_fn_error $? "cannot compute suffix of object files: cannot compile
2739 See \`config.log' for more details" "$LINENO" 5; }
2740 fi
2741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2744 $as_echo "$ac_cv_objext" >&6; }
2745 OBJEXT=$ac_cv_objext
2746 ac_objext=$OBJEXT
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2748 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749 if ${ac_cv_c_compiler_gnu+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2754
2755 int
2756 main ()
2757 {
2758 #ifndef __GNUC__
2759 choke me
2760 #endif
2761
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_compiler_gnu=yes
2768 else
2769 ac_compiler_gnu=no
2770 fi
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2776 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2777 if test $ac_compiler_gnu = yes; then
2778 GCC=yes
2779 else
2780 GCC=
2781 fi
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2785 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2786 if ${ac_cv_prog_cc_g+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 ac_save_c_werror_flag=$ac_c_werror_flag
2790 ac_c_werror_flag=yes
2791 ac_cv_prog_cc_g=no
2792 CFLAGS="-g"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2795
2796 int
2797 main ()
2798 {
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_cv_prog_cc_g=yes
2806 else
2807 CFLAGS=""
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2810
2811 int
2812 main ()
2813 {
2814
2815 ;
2816 return 0;
2817 }
2818 _ACEOF
2819 if ac_fn_c_try_compile "$LINENO"; then :
2820
2821 else
2822 ac_c_werror_flag=$ac_save_c_werror_flag
2823 CFLAGS="-g"
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826
2827 int
2828 main ()
2829 {
2830
2831 ;
2832 return 0;
2833 }
2834 _ACEOF
2835 if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_cv_prog_cc_g=yes
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 fi
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2846 $as_echo "$ac_cv_prog_cc_g" >&6; }
2847 if test "$ac_test_CFLAGS" = set; then
2848 CFLAGS=$ac_save_CFLAGS
2849 elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2851 CFLAGS="-g -O2"
2852 else
2853 CFLAGS="-g"
2854 fi
2855 else
2856 if test "$GCC" = yes; then
2857 CFLAGS="-O2"
2858 else
2859 CFLAGS=
2860 fi
2861 fi
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2864 if ${ac_cv_prog_cc_c89+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 ac_cv_prog_cc_c89=no
2868 ac_save_CC=$CC
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879 char **p;
2880 int i;
2881 {
2882 return p[i];
2883 }
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2885 {
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2892 }
2893
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
2903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904 inside strings and character constants. */
2905 #define FOO(x) 'x'
2906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2907
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 int argc;
2913 char **argv;
2914 int
2915 main ()
2916 {
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 do
2925 CC="$ac_save_CC $ac_arg"
2926 if ac_fn_c_try_compile "$LINENO"; then :
2927 ac_cv_prog_cc_c89=$ac_arg
2928 fi
2929 rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
2931 done
2932 rm -f conftest.$ac_ext
2933 CC=$ac_save_CC
2934
2935 fi
2936 # AC_CACHE_VAL
2937 case "x$ac_cv_prog_cc_c89" in
2938 x)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2940 $as_echo "none needed" >&6; } ;;
2941 xno)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2943 $as_echo "unsupported" >&6; } ;;
2944 *)
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2948 esac
2949 if test "x$ac_cv_prog_cc_c89" != xno; then :
2950
2951 fi
2952
2953 ac_ext=c
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
2965 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
2966 if ${am_cv_prog_cc_c_o+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971
2972 int
2973 main ()
2974 {
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 # Make sure it works both with $CC and with simple cc.
2981 # Following AC_PROG_CC_C_O, we do the test twice because some
2982 # compilers refuse to overwrite an existing .o file with -o,
2983 # though they will create one.
2984 am_cv_prog_cc_c_o=yes
2985 for am_i in 1 2; do
2986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
2987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } \
2991 && test -f conftest2.$ac_objext; then
2992 : OK
2993 else
2994 am_cv_prog_cc_c_o=no
2995 break
2996 fi
2997 done
2998 rm -f core conftest*
2999 unset am_i
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3002 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3003 if test "$am_cv_prog_cc_c_o" != yes; then
3004 # Losing compiler, so override with the script.
3005 # FIXME: It is wrong to rewrite CC.
3006 # But if we don't then we get into trouble of one sort or another.
3007 # A longer-term fix would be to have automake use am__CC in this case,
3008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3009 CC="$am_aux_dir/compile $CC"
3010 fi
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3025 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3026 # On Suns, sometimes $CPP names a directory.
3027 if test -n "$CPP" && test -d "$CPP"; then
3028 CPP=
3029 fi
3030 if test -z "$CPP"; then
3031 if ${ac_cv_prog_CPP+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 # Double quotes because CPP needs to be expanded
3035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3036 do
3037 ac_preproc_ok=false
3038 for ac_c_preproc_warn_flag in '' yes
3039 do
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043 # <limits.h> exists even on freestanding compilers.
3044 # On the NeXT, cc -E runs the code through the compiler's parser,
3045 # not just through cpp. "Syntax error" is here to catch this case.
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048 #ifdef __STDC__
3049 # include <limits.h>
3050 #else
3051 # include <assert.h>
3052 #endif
3053 Syntax error
3054 _ACEOF
3055 if ac_fn_c_try_cpp "$LINENO"; then :
3056
3057 else
3058 # Broken: fails on valid input.
3059 continue
3060 fi
3061 rm -f conftest.err conftest.i conftest.$ac_ext
3062
3063 # OK, works on sane cases. Now check whether nonexistent headers
3064 # can be detected and how.
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3067 #include <ac_nonexistent.h>
3068 _ACEOF
3069 if ac_fn_c_try_cpp "$LINENO"; then :
3070 # Broken: success on invalid input.
3071 continue
3072 else
3073 # Passes both tests.
3074 ac_preproc_ok=:
3075 break
3076 fi
3077 rm -f conftest.err conftest.i conftest.$ac_ext
3078
3079 done
3080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081 rm -f conftest.i conftest.err conftest.$ac_ext
3082 if $ac_preproc_ok; then :
3083 break
3084 fi
3085
3086 done
3087 ac_cv_prog_CPP=$CPP
3088
3089 fi
3090 CPP=$ac_cv_prog_CPP
3091 else
3092 ac_cv_prog_CPP=$CPP
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3095 $as_echo "$CPP" >&6; }
3096 ac_preproc_ok=false
3097 for ac_c_preproc_warn_flag in '' yes
3098 do
3099 # Use a header file that comes with gcc, so configuring glibc
3100 # with a fresh cross-compiler works.
3101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3102 # <limits.h> exists even on freestanding compilers.
3103 # On the NeXT, cc -E runs the code through the compiler's parser,
3104 # not just through cpp. "Syntax error" is here to catch this case.
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107 #ifdef __STDC__
3108 # include <limits.h>
3109 #else
3110 # include <assert.h>
3111 #endif
3112 Syntax error
3113 _ACEOF
3114 if ac_fn_c_try_cpp "$LINENO"; then :
3115
3116 else
3117 # Broken: fails on valid input.
3118 continue
3119 fi
3120 rm -f conftest.err conftest.i conftest.$ac_ext
3121
3122 # OK, works on sane cases. Now check whether nonexistent headers
3123 # can be detected and how.
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if ac_fn_c_try_cpp "$LINENO"; then :
3129 # Broken: success on invalid input.
3130 continue
3131 else
3132 # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3135 fi
3136 rm -f conftest.err conftest.i conftest.$ac_ext
3137
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.i conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then :
3142
3143 else
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details" "$LINENO" 5; }
3148 fi
3149
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3158 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3159 if ${ac_cv_path_GREP+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -z "$GREP"; then
3163 ac_path_GREP_found=false
3164 # Loop through the user's path and test for each of PROGNAME-LIST
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_prog in grep ggrep; do
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3173 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3174 # Check for GNU ac_path_GREP and select it if it is found.
3175 # Check for GNU $ac_path_GREP
3176 case `"$ac_path_GREP" --version 2>&1` in
3177 *GNU*)
3178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3179 *)
3180 ac_count=0
3181 $as_echo_n 0123456789 >"conftest.in"
3182 while :
3183 do
3184 cat "conftest.in" "conftest.in" >"conftest.tmp"
3185 mv "conftest.tmp" "conftest.in"
3186 cp "conftest.in" "conftest.nl"
3187 $as_echo 'GREP' >> "conftest.nl"
3188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3190 as_fn_arith $ac_count + 1 && ac_count=$as_val
3191 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3192 # Best one so far, save it but keep looking for a better one
3193 ac_cv_path_GREP="$ac_path_GREP"
3194 ac_path_GREP_max=$ac_count
3195 fi
3196 # 10*(2^10) chars as input seems more than enough
3197 test $ac_count -gt 10 && break
3198 done
3199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3200 esac
3201
3202 $ac_path_GREP_found && break 3
3203 done
3204 done
3205 done
3206 IFS=$as_save_IFS
3207 if test -z "$ac_cv_path_GREP"; then
3208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3209 fi
3210 else
3211 ac_cv_path_GREP=$GREP
3212 fi
3213
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3216 $as_echo "$ac_cv_path_GREP" >&6; }
3217 GREP="$ac_cv_path_GREP"
3218
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3221 $as_echo_n "checking for egrep... " >&6; }
3222 if ${ac_cv_path_EGREP+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3226 then ac_cv_path_EGREP="$GREP -E"
3227 else
3228 if test -z "$EGREP"; then
3229 ac_path_EGREP_found=false
3230 # Loop through the user's path and test for each of PROGNAME-LIST
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in egrep; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3239 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3240 # Check for GNU ac_path_EGREP and select it if it is found.
3241 # Check for GNU $ac_path_EGREP
3242 case `"$ac_path_EGREP" --version 2>&1` in
3243 *GNU*)
3244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3245 *)
3246 ac_count=0
3247 $as_echo_n 0123456789 >"conftest.in"
3248 while :
3249 do
3250 cat "conftest.in" "conftest.in" >"conftest.tmp"
3251 mv "conftest.tmp" "conftest.in"
3252 cp "conftest.in" "conftest.nl"
3253 $as_echo 'EGREP' >> "conftest.nl"
3254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256 as_fn_arith $ac_count + 1 && ac_count=$as_val
3257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3258 # Best one so far, save it but keep looking for a better one
3259 ac_cv_path_EGREP="$ac_path_EGREP"
3260 ac_path_EGREP_max=$ac_count
3261 fi
3262 # 10*(2^10) chars as input seems more than enough
3263 test $ac_count -gt 10 && break
3264 done
3265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3266 esac
3267
3268 $ac_path_EGREP_found && break 3
3269 done
3270 done
3271 done
3272 IFS=$as_save_IFS
3273 if test -z "$ac_cv_path_EGREP"; then
3274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3275 fi
3276 else
3277 ac_cv_path_EGREP=$EGREP
3278 fi
3279
3280 fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3283 $as_echo "$ac_cv_path_EGREP" >&6; }
3284 EGREP="$ac_cv_path_EGREP"
3285
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3288 $as_echo_n "checking for ANSI C header files... " >&6; }
3289 if ${ac_cv_header_stdc+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #include <stdlib.h>
3295 #include <stdarg.h>
3296 #include <string.h>
3297 #include <float.h>
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308 ac_cv_header_stdc=yes
3309 else
3310 ac_cv_header_stdc=no
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313
3314 if test $ac_cv_header_stdc = yes; then
3315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <string.h>
3319
3320 _ACEOF
3321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3322 $EGREP "memchr" >/dev/null 2>&1; then :
3323
3324 else
3325 ac_cv_header_stdc=no
3326 fi
3327 rm -f conftest*
3328
3329 fi
3330
3331 if test $ac_cv_header_stdc = yes; then
3332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <stdlib.h>
3336
3337 _ACEOF
3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339 $EGREP "free" >/dev/null 2>&1; then :
3340
3341 else
3342 ac_cv_header_stdc=no
3343 fi
3344 rm -f conftest*
3345
3346 fi
3347
3348 if test $ac_cv_header_stdc = yes; then
3349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3350 if test "$cross_compiling" = yes; then :
3351 :
3352 else
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <ctype.h>
3356 #include <stdlib.h>
3357 #if ((' ' & 0x0FF) == 0x020)
3358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3360 #else
3361 # define ISLOWER(c) \
3362 (('a' <= (c) && (c) <= 'i') \
3363 || ('j' <= (c) && (c) <= 'r') \
3364 || ('s' <= (c) && (c) <= 'z'))
3365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3366 #endif
3367
3368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3369 int
3370 main ()
3371 {
3372 int i;
3373 for (i = 0; i < 256; i++)
3374 if (XOR (islower (i), ISLOWER (i))
3375 || toupper (i) != TOUPPER (i))
3376 return 2;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_run "$LINENO"; then :
3381
3382 else
3383 ac_cv_header_stdc=no
3384 fi
3385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3386 conftest.$ac_objext conftest.beam conftest.$ac_ext
3387 fi
3388
3389 fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3392 $as_echo "$ac_cv_header_stdc" >&6; }
3393 if test $ac_cv_header_stdc = yes; then
3394
3395 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3396
3397 fi
3398
3399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3401 inttypes.h stdint.h unistd.h
3402 do :
3403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3404 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3405 "
3406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3407 cat >>confdefs.h <<_ACEOF
3408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409 _ACEOF
3410
3411 fi
3412
3413 done
3414
3415
3416
3417 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3418 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3419 MINIX=yes
3420 else
3421 MINIX=
3422 fi
3423
3424
3425 if test "$MINIX" = yes; then
3426
3427 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3428
3429
3430 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3431
3432
3433 $as_echo "#define _MINIX 1" >>confdefs.h
3434
3435 fi
3436
3437
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3439 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3440 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 # define __EXTENSIONS__ 1
3447 $ac_includes_default
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_cv_safe_to_define___extensions__=yes
3458 else
3459 ac_cv_safe_to_define___extensions__=no
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3464 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3465 test $ac_cv_safe_to_define___extensions__ = yes &&
3466 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3467
3468 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3469
3470 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3471
3472 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3473
3474 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3475
3476
3477
3478 # Initialize Automake
3479 am__api_version='1.14'
3480
3481 ac_aux_dir=
3482 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3483 if test -f "$ac_dir/install-sh"; then
3484 ac_aux_dir=$ac_dir
3485 ac_install_sh="$ac_aux_dir/install-sh -c"
3486 break
3487 elif test -f "$ac_dir/install.sh"; then
3488 ac_aux_dir=$ac_dir
3489 ac_install_sh="$ac_aux_dir/install.sh -c"
3490 break
3491 elif test -f "$ac_dir/shtool"; then
3492 ac_aux_dir=$ac_dir
3493 ac_install_sh="$ac_aux_dir/shtool install -c"
3494 break
3495 fi
3496 done
3497 if test -z "$ac_aux_dir"; then
3498 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3499 fi
3500
3501 # These three variables are undocumented and unsupported,
3502 # and are intended to be withdrawn in a future Autoconf release.
3503 # They can cause serious problems if a builder's source tree is in a directory
3504 # whose full name contains unusual characters.
3505 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3506 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3507 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3508
3509
3510 # Find a good install program. We prefer a C program (faster),
3511 # so one script is as good as another. But avoid the broken or
3512 # incompatible versions:
3513 # SysV /etc/install, /usr/sbin/install
3514 # SunOS /usr/etc/install
3515 # IRIX /sbin/install
3516 # AIX /bin/install
3517 # AmigaOS /C/install, which installs bootblocks on floppy discs
3518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3521 # OS/2's system install, which has a completely different semantic
3522 # ./install, which can be erroneously created by make from ./install.sh.
3523 # Reject install programs that cannot install multiple files.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3525 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3526 if test -z "$INSTALL"; then
3527 if ${ac_cv_path_install+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 # Account for people who put trailing slashes in PATH elements.
3536 case $as_dir/ in #((
3537 ./ | .// | /[cC]/* | \
3538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3539 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3540 /usr/ucb/* ) ;;
3541 *)
3542 # OSF1 and SCO ODT 3.0 have their own names for install.
3543 # Don't use installbsd from OSF since it installs stuff as root
3544 # by default.
3545 for ac_prog in ginstall scoinst install; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3548 if test $ac_prog = install &&
3549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550 # AIX install. It has an incompatible calling convention.
3551 :
3552 elif test $ac_prog = install &&
3553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554 # program-specific install script used by HP pwplus--don't use.
3555 :
3556 else
3557 rm -rf conftest.one conftest.two conftest.dir
3558 echo one > conftest.one
3559 echo two > conftest.two
3560 mkdir conftest.dir
3561 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3562 test -s conftest.one && test -s conftest.two &&
3563 test -s conftest.dir/conftest.one &&
3564 test -s conftest.dir/conftest.two
3565 then
3566 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3567 break 3
3568 fi
3569 fi
3570 fi
3571 done
3572 done
3573 ;;
3574 esac
3575
3576 done
3577 IFS=$as_save_IFS
3578
3579 rm -rf conftest.one conftest.two conftest.dir
3580
3581 fi
3582 if test "${ac_cv_path_install+set}" = set; then
3583 INSTALL=$ac_cv_path_install
3584 else
3585 # As a last resort, use the slow shell script. Don't cache a
3586 # value for INSTALL within a source directory, because that will
3587 # break other packages using the cache if that directory is
3588 # removed, or if the value is a relative name.
3589 INSTALL=$ac_install_sh
3590 fi
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3593 $as_echo "$INSTALL" >&6; }
3594
3595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596 # It thinks the first close brace ends the variable substitution.
3597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598
3599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600
3601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3604 $as_echo_n "checking whether build environment is sane... " >&6; }
3605 # Reject unsafe characters in $srcdir or the absolute working directory
3606 # name. Accept space and tab only in the latter.
3607 am_lf='
3608 '
3609 case `pwd` in
3610 *[\\\"\#\$\&\'\`$am_lf]*)
3611 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3612 esac
3613 case $srcdir in
3614 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3615 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3616 esac
3617
3618 # Do 'set' in a subshell so we don't clobber the current shell's
3619 # arguments. Must try -L first in case configure is actually a
3620 # symlink; some systems play weird games with the mod time of symlinks
3621 # (eg FreeBSD returns the mod time of the symlink's containing
3622 # directory).
3623 if (
3624 am_has_slept=no
3625 for am_try in 1 2; do
3626 echo "timestamp, slept: $am_has_slept" > conftest.file
3627 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3628 if test "$*" = "X"; then
3629 # -L didn't work.
3630 set X `ls -t "$srcdir/configure" conftest.file`
3631 fi
3632 if test "$*" != "X $srcdir/configure conftest.file" \
3633 && test "$*" != "X conftest.file $srcdir/configure"; then
3634
3635 # If neither matched, then we have a broken ls. This can happen
3636 # if, for instance, CONFIG_SHELL is bash and it inherits a
3637 # broken ls alias from the environment. This has actually
3638 # happened. Such a system could not be considered "sane".
3639 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3640 alias in your environment" "$LINENO" 5
3641 fi
3642 if test "$2" = conftest.file || test $am_try -eq 2; then
3643 break
3644 fi
3645 # Just in case.
3646 sleep 1
3647 am_has_slept=yes
3648 done
3649 test "$2" = conftest.file
3650 )
3651 then
3652 # Ok.
3653 :
3654 else
3655 as_fn_error $? "newly created file is older than distributed files!
3656 Check your system clock" "$LINENO" 5
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659 $as_echo "yes" >&6; }
3660 # If we didn't sleep, we still need to ensure time stamps of config.status and
3661 # generated files are strictly newer.
3662 am_sleep_pid=
3663 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3664 ( sleep 1 ) &
3665 am_sleep_pid=$!
3666 fi
3667
3668 rm -f conftest.file
3669
3670 test "$program_prefix" != NONE &&
3671 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3672 # Use a double $ so make ignores it.
3673 test "$program_suffix" != NONE &&
3674 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3675 # Double any \ or $.
3676 # By default was `s,x,x', remove it if useless.
3677 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3678 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3679
3680 if test x"${MISSING+set}" != xset; then
3681 case $am_aux_dir in
3682 *\ * | *\ *)
3683 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3684 *)
3685 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3686 esac
3687 fi
3688 # Use eval to expand $SHELL
3689 if eval "$MISSING --is-lightweight"; then
3690 am_missing_run="$MISSING "
3691 else
3692 am_missing_run=
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3694 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3695 fi
3696
3697 if test x"${install_sh}" != xset; then
3698 case $am_aux_dir in
3699 *\ * | *\ *)
3700 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3701 *)
3702 install_sh="\${SHELL} $am_aux_dir/install-sh"
3703 esac
3704 fi
3705
3706 # Installed binaries are usually stripped using 'strip' when the user
3707 # run "make install-strip". However 'strip' might not be the right
3708 # tool to use in cross-compilation environments, therefore Automake
3709 # will honor the 'STRIP' environment variable to overrule this program.
3710 if test "$cross_compiling" != no; then
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}strip; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_STRIP+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$STRIP"; then
3720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 STRIP=$ac_cv_prog_STRIP
3740 if test -n "$STRIP"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3742 $as_echo "$STRIP" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 fi
3750 if test -z "$ac_cv_prog_STRIP"; then
3751 ac_ct_STRIP=$STRIP
3752 # Extract the first word of "strip", so it can be a program name with args.
3753 set dummy strip; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -n "$ac_ct_STRIP"; then
3760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_ac_ct_STRIP="strip"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3780 if test -n "$ac_ct_STRIP"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3782 $as_echo "$ac_ct_STRIP" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788 if test "x$ac_ct_STRIP" = x; then
3789 STRIP=":"
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 STRIP=$ac_ct_STRIP
3798 fi
3799 else
3800 STRIP="$ac_cv_prog_STRIP"
3801 fi
3802
3803 fi
3804 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3807 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3808 if test -z "$MKDIR_P"; then
3809 if ${ac_cv_path_mkdir+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_prog in mkdir gmkdir; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3820 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3821 'mkdir (GNU coreutils) '* | \
3822 'mkdir (coreutils) '* | \
3823 'mkdir (fileutils) '4.1*)
3824 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3825 break 3;;
3826 esac
3827 done
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi
3833
3834 test -d ./--version && rmdir ./--version
3835 if test "${ac_cv_path_mkdir+set}" = set; then
3836 MKDIR_P="$ac_cv_path_mkdir -p"
3837 else
3838 # As a last resort, use the slow shell script. Don't cache a
3839 # value for MKDIR_P within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the value is a relative name.
3842 MKDIR_P="$ac_install_sh -d"
3843 fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3846 $as_echo "$MKDIR_P" >&6; }
3847
3848 for ac_prog in gawk mawk nawk awk
3849 do
3850 # Extract the first word of "$ac_prog", so it can be a program name with args.
3851 set dummy $ac_prog; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_AWK+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if test -n "$AWK"; then
3858 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 ac_cv_prog_AWK="$ac_prog"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871 done
3872 done
3873 IFS=$as_save_IFS
3874
3875 fi
3876 fi
3877 AWK=$ac_cv_prog_AWK
3878 if test -n "$AWK"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3880 $as_echo "$AWK" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 fi
3885
3886
3887 test -n "$AWK" && break
3888 done
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3891 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3892 set x ${MAKE-make}
3893 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3894 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 cat >conftest.make <<\_ACEOF
3898 SHELL = /bin/sh
3899 all:
3900 @echo '@@@%%%=$(MAKE)=@@@%%%'
3901 _ACEOF
3902 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3904 *@@@%%%=?*=@@@%%%*)
3905 eval ac_cv_prog_make_${ac_make}_set=yes;;
3906 *)
3907 eval ac_cv_prog_make_${ac_make}_set=no;;
3908 esac
3909 rm -f conftest.make
3910 fi
3911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3913 $as_echo "yes" >&6; }
3914 SET_MAKE=
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918 SET_MAKE="MAKE=${MAKE-make}"
3919 fi
3920
3921 rm -rf .tst 2>/dev/null
3922 mkdir .tst 2>/dev/null
3923 if test -d .tst; then
3924 am__leading_dot=.
3925 else
3926 am__leading_dot=_
3927 fi
3928 rmdir .tst 2>/dev/null
3929
3930 DEPDIR="${am__leading_dot}deps"
3931
3932 ac_config_commands="$ac_config_commands depfiles"
3933
3934
3935 am_make=${MAKE-make}
3936 cat > confinc << 'END'
3937 am__doit:
3938 @echo this is the am__doit target
3939 .PHONY: am__doit
3940 END
3941 # If we don't find an include directive, just comment out the code.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3943 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3944 am__include="#"
3945 am__quote=
3946 _am_result=none
3947 # First try GNU make style include.
3948 echo "include confinc" > confmf
3949 # Ignore all kinds of additional output from 'make'.
3950 case `$am_make -s -f confmf 2> /dev/null` in #(
3951 *the\ am__doit\ target*)
3952 am__include=include
3953 am__quote=
3954 _am_result=GNU
3955 ;;
3956 esac
3957 # Now try BSD make style include.
3958 if test "$am__include" = "#"; then
3959 echo '.include "confinc"' > confmf
3960 case `$am_make -s -f confmf 2> /dev/null` in #(
3961 *the\ am__doit\ target*)
3962 am__include=.include
3963 am__quote="\""
3964 _am_result=BSD
3965 ;;
3966 esac
3967 fi
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3971 $as_echo "$_am_result" >&6; }
3972 rm -f confinc confmf
3973
3974 # Check whether --enable-dependency-tracking was given.
3975 if test "${enable_dependency_tracking+set}" = set; then :
3976 enableval=$enable_dependency_tracking;
3977 fi
3978
3979 if test "x$enable_dependency_tracking" != xno; then
3980 am_depcomp="$ac_aux_dir/depcomp"
3981 AMDEPBACKSLASH='\'
3982 am__nodep='_no'
3983 fi
3984 if test "x$enable_dependency_tracking" != xno; then
3985 AMDEP_TRUE=
3986 AMDEP_FALSE='#'
3987 else
3988 AMDEP_TRUE='#'
3989 AMDEP_FALSE=
3990 fi
3991
3992
3993 # Check whether --enable-silent-rules was given.
3994 if test "${enable_silent_rules+set}" = set; then :
3995 enableval=$enable_silent_rules;
3996 fi
3997
3998 case $enable_silent_rules in # (((
3999 yes) AM_DEFAULT_VERBOSITY=0;;
4000 no) AM_DEFAULT_VERBOSITY=1;;
4001 *) AM_DEFAULT_VERBOSITY=1;;
4002 esac
4003 am_make=${MAKE-make}
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4005 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4006 if ${am_cv_make_support_nested_variables+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if $as_echo 'TRUE=$(BAR$(V))
4010 BAR0=false
4011 BAR1=true
4012 V=1
4013 am__doit:
4014 @$(TRUE)
4015 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4016 am_cv_make_support_nested_variables=yes
4017 else
4018 am_cv_make_support_nested_variables=no
4019 fi
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4022 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4023 if test $am_cv_make_support_nested_variables = yes; then
4024 AM_V='$(V)'
4025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4026 else
4027 AM_V=$AM_DEFAULT_VERBOSITY
4028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4029 fi
4030 AM_BACKSLASH='\'
4031
4032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4034 # is not polluted with repeated "-I."
4035 am__isrc=' -I$(srcdir)'
4036 # test to see if srcdir already configured
4037 if test -f $srcdir/config.status; then
4038 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4039 fi
4040 fi
4041
4042 # test whether we have cygpath
4043 if test -z "$CYGPATH_W"; then
4044 if (cygpath --version) >/dev/null 2>/dev/null; then
4045 CYGPATH_W='cygpath -w'
4046 else
4047 CYGPATH_W=echo
4048 fi
4049 fi
4050
4051
4052 # Define the identity of the package.
4053 PACKAGE='xlsclients'
4054 VERSION='1.1.3'
4055
4056
4057 cat >>confdefs.h <<_ACEOF
4058 #define PACKAGE "$PACKAGE"
4059 _ACEOF
4060
4061
4062 cat >>confdefs.h <<_ACEOF
4063 #define VERSION "$VERSION"
4064 _ACEOF
4065
4066 # Some tools Automake needs.
4067
4068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4069
4070
4071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4072
4073
4074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4075
4076
4077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4078
4079
4080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4081
4082 # For better backward compatibility. To be removed once Automake 1.9.x
4083 # dies out for good. For more background, see:
4084 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4085 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4086 mkdir_p='$(MKDIR_P)'
4087
4088 # We need awk for the "check" target. The system "awk" is bad on
4089 # some platforms.
4090 # Always define AMTAR for backward compatibility. Yes, it's still used
4091 # in the wild :-( We should find a proper way to deprecate it ...
4092 AMTAR='$${TAR-tar}'
4093
4094
4095 # We'll loop over all known methods to create a tar archive until one works.
4096 _am_tools='gnutar pax cpio none'
4097
4098 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4099
4100
4101
4102
4103
4104 depcc="$CC" am_compiler_list=
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107 $as_echo_n "checking dependency style of $depcc... " >&6; }
4108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112 # We make a subdir and do the tests there. Otherwise we can end up
4113 # making bogus files that we don't know about and never remove. For
4114 # instance it was reported that on HP-UX the gcc test will end up
4115 # making a dummy file named 'D' -- because '-MD' means "put the output
4116 # in D".
4117 rm -rf conftest.dir
4118 mkdir conftest.dir
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4122 cd conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4128 # directory.
4129 mkdir sub
4130
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134 fi
4135 am__universal=false
4136 case " $depcc " in #(
4137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138 esac
4139
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4144 #
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4148 : > sub/conftest.c
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4152 # Solaris 10 /bin/sh.
4153 echo '/* dummy */' > sub/conftst$i.h
4154 done
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4158 # mode. It turns out that the SunPro C++ compiler does not properly
4159 # handle '-M -o', and we need to detect this. Also, some Intel
4160 # versions had trouble with output in subdirs.
4161 am__obj=sub/conftest.${OBJEXT-o}
4162 am__minus_obj="-o $am__obj"
4163 case $depmode in
4164 gcc)
4165 # This depmode causes a compiler race in universal mode.
4166 test "$am__universal" = false || continue
4167 ;;
4168 nosideeffect)
4169 # After this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested.
4171 if test "x$enable_dependency_tracking" = xyes; then
4172 continue
4173 else
4174 break
4175 fi
4176 ;;
4177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4178 # This compiler won't grok '-c -o', but also, the minuso test has
4179 # not run yet. These depmodes are late enough in the game, and
4180 # so weak that their functioning should not be impacted.
4181 am__obj=conftest.${OBJEXT-o}
4182 am__minus_obj=
4183 ;;
4184 none) break ;;
4185 esac
4186 if depmode=$depmode \
4187 source=sub/conftest.c object=$am__obj \
4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190 >/dev/null 2>conftest.err &&
4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195 # icc doesn't choke on unknown options, it will just issue warnings
4196 # or remarks (even with -Werror). So we grep stderr for any message
4197 # that says an option was ignored or not supported.
4198 # When given -MP, icc 7.0 and 7.1 complain thusly:
4199 # icc: Command line warning: ignoring option '-M'; no argument required
4200 # The diagnosis changed in icc 8.0:
4201 # icc: Command line remark: option '-MP' not supported
4202 if (grep 'ignoring option' conftest.err ||
4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204 am_cv_CC_dependencies_compiler_type=$depmode
4205 break
4206 fi
4207 fi
4208 done
4209
4210 cd ..
4211 rm -rf conftest.dir
4212 else
4213 am_cv_CC_dependencies_compiler_type=none
4214 fi
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220
4221 if
4222 test "x$enable_dependency_tracking" != xno \
4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224 am__fastdepCC_TRUE=
4225 am__fastdepCC_FALSE='#'
4226 else
4227 am__fastdepCC_TRUE='#'
4228 am__fastdepCC_FALSE=
4229 fi
4230
4231
4232
4233 # POSIX will say in a future version that running "rm -f" with no argument
4234 # is OK; and we want to be able to make that assumption in our Makefile
4235 # recipes. So use an aggressive probe to check that the usage we want is
4236 # actually supported "in the wild" to an acceptable degree.
4237 # See automake bug#10828.
4238 # To make any issue more visible, cause the running configure to be aborted
4239 # by default if the 'rm' program in use doesn't match our expectations; the
4240 # user can still override this though.
4241 if rm -f && rm -fr && rm -rf; then : OK; else
4242 cat >&2 <<'END'
4243 Oops!
4244
4245 Your 'rm' program seems unable to run without file operands specified
4246 on the command line, even when the '-f' option is present. This is contrary
4247 to the behaviour of most rm programs out there, and not conforming with
4248 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4249
4250 Please tell bug-automake@gnu.org about your system, including the value
4251 of your $PATH and any error possibly output before this message. This
4252 can help us improve future automake versions.
4253
4254 END
4255 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4256 echo 'Configuration will proceed anyway, since you have set the' >&2
4257 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4258 echo >&2
4259 else
4260 cat >&2 <<'END'
4261 Aborting the configuration process, to ensure you take notice of the issue.
4262
4263 You can download and install GNU coreutils to get an 'rm' implementation
4264 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4265
4266 If you want to complete the configuration process using your problematic
4267 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4268 to "yes", and re-run configure.
4269
4270 END
4271 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4272 fi
4273 fi
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4276 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4277 # Check whether --enable-maintainer-mode was given.
4278 if test "${enable_maintainer_mode+set}" = set; then :
4279 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4280 else
4281 USE_MAINTAINER_MODE=no
4282 fi
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4285 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4286 if test $USE_MAINTAINER_MODE = yes; then
4287 MAINTAINER_MODE_TRUE=
4288 MAINTAINER_MODE_FALSE='#'
4289 else
4290 MAINTAINER_MODE_TRUE='#'
4291 MAINTAINER_MODE_FALSE=
4292 fi
4293
4294 MAINT=$MAINTAINER_MODE_TRUE
4295
4296
4297
4298 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4311 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4312 if ${ac_cv_prog_cc_c99+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_cv_prog_cc_c99=no
4316 ac_save_CC=$CC
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <stdarg.h>
4320 #include <stdbool.h>
4321 #include <stdlib.h>
4322 #include <wchar.h>
4323 #include <stdio.h>
4324
4325 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4326 #define debug(...) fprintf (stderr, __VA_ARGS__)
4327 #define showlist(...) puts (#__VA_ARGS__)
4328 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4329 static void
4330 test_varargs_macros (void)
4331 {
4332 int x = 1234;
4333 int y = 5678;
4334 debug ("Flag");
4335 debug ("X = %d\n", x);
4336 showlist (The first, second, and third items.);
4337 report (x>y, "x is %d but y is %d", x, y);
4338 }
4339
4340 // Check long long types.
4341 #define BIG64 18446744073709551615ull
4342 #define BIG32 4294967295ul
4343 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4344 #if !BIG_OK
4345 your preprocessor is broken;
4346 #endif
4347 #if BIG_OK
4348 #else
4349 your preprocessor is broken;
4350 #endif
4351 static long long int bignum = -9223372036854775807LL;
4352 static unsigned long long int ubignum = BIG64;
4353
4354 struct incomplete_array
4355 {
4356 int datasize;
4357 double data[];
4358 };
4359
4360 struct named_init {
4361 int number;
4362 const wchar_t *name;
4363 double average;
4364 };
4365
4366 typedef const char *ccp;
4367
4368 static inline int
4369 test_restrict (ccp restrict text)
4370 {
4371 // See if C++-style comments work.
4372 // Iterate through items via the restricted pointer.
4373 // Also check for declarations in for loops.
4374 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4375 continue;
4376 return 0;
4377 }
4378
4379 // Check varargs and va_copy.
4380 static void
4381 test_varargs (const char *format, ...)
4382 {
4383 va_list args;
4384 va_start (args, format);
4385 va_list args_copy;
4386 va_copy (args_copy, args);
4387
4388 const char *str;
4389 int number;
4390 float fnumber;
4391
4392 while (*format)
4393 {
4394 switch (*format++)
4395 {
4396 case 's': // string
4397 str = va_arg (args_copy, const char *);
4398 break;
4399 case 'd': // int
4400 number = va_arg (args_copy, int);
4401 break;
4402 case 'f': // float
4403 fnumber = va_arg (args_copy, double);
4404 break;
4405 default:
4406 break;
4407 }
4408 }
4409 va_end (args_copy);
4410 va_end (args);
4411 }
4412
4413 int
4414 main ()
4415 {
4416
4417 // Check bool.
4418 _Bool success = false;
4419
4420 // Check restrict.
4421 if (test_restrict ("String literal") == 0)
4422 success = true;
4423 char *restrict newvar = "Another string";
4424
4425 // Check varargs.
4426 test_varargs ("s, d' f .", "string", 65, 34.234);
4427 test_varargs_macros ();
4428
4429 // Check flexible array members.
4430 struct incomplete_array *ia =
4431 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4432 ia->datasize = 10;
4433 for (int i = 0; i < ia->datasize; ++i)
4434 ia->data[i] = i * 1.234;
4435
4436 // Check named initializers.
4437 struct named_init ni = {
4438 .number = 34,
4439 .name = L"Test wide string",
4440 .average = 543.34343,
4441 };
4442
4443 ni.number = 58;
4444
4445 int dynamic_array[ni.number];
4446 dynamic_array[ni.number - 1] = 543;
4447
4448 // work around unused variable warnings
4449 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4450 || dynamic_array[ni.number - 1] != 543);
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4457 do
4458 CC="$ac_save_CC $ac_arg"
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_prog_cc_c99=$ac_arg
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext
4463 test "x$ac_cv_prog_cc_c99" != "xno" && break
4464 done
4465 rm -f conftest.$ac_ext
4466 CC=$ac_save_CC
4467
4468 fi
4469 # AC_CACHE_VAL
4470 case "x$ac_cv_prog_cc_c99" in
4471 x)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473 $as_echo "none needed" >&6; } ;;
4474 xno)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4476 $as_echo "unsupported" >&6; } ;;
4477 *)
4478 CC="$CC $ac_cv_prog_cc_c99"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4480 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4481 esac
4482 if test "x$ac_cv_prog_cc_c99" != xno; then :
4483
4484 fi
4485
4486
4487
4488
4489
4490
4491 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4492 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4493 CLANGCC="yes"
4494 else
4495 CLANGCC="no"
4496 fi
4497
4498 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4499 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4500 INTELCC="yes"
4501 else
4502 INTELCC="no"
4503 fi
4504
4505 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4506 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4507 SUNCC="yes"
4508 else
4509 SUNCC="no"
4510 fi
4511
4512
4513
4514
4515 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4516 if test -n "$ac_tool_prefix"; then
4517 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4518 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 case $PKG_CONFIG in
4525 [\\/]* | ?:[\\/]*)
4526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4527 ;;
4528 *)
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 ;;
4545 esac
4546 fi
4547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4548 if test -n "$PKG_CONFIG"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4550 $as_echo "$PKG_CONFIG" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4554 fi
4555
4556
4557 fi
4558 if test -z "$ac_cv_path_PKG_CONFIG"; then
4559 ac_pt_PKG_CONFIG=$PKG_CONFIG
4560 # Extract the first word of "pkg-config", so it can be a program name with args.
4561 set dummy pkg-config; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 case $ac_pt_PKG_CONFIG in
4568 [\\/]* | ?:[\\/]*)
4569 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4570 ;;
4571 *)
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 ;;
4588 esac
4589 fi
4590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4591 if test -n "$ac_pt_PKG_CONFIG"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4593 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598
4599 if test "x$ac_pt_PKG_CONFIG" = x; then
4600 PKG_CONFIG=""
4601 else
4602 case $cross_compiling:$ac_tool_warned in
4603 yes:)
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608 PKG_CONFIG=$ac_pt_PKG_CONFIG
4609 fi
4610 else
4611 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4612 fi
4613
4614 fi
4615 if test -n "$PKG_CONFIG"; then
4616 _pkg_min_version=0.9.0
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4618 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4619 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 PKG_CONFIG=""
4626 fi
4627
4628 fi
4629 # Make sure we can run config.sub.
4630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4634 $as_echo_n "checking build system type... " >&6; }
4635 if ${ac_cv_build+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 ac_build_alias=$build_alias
4639 test "x$ac_build_alias" = x &&
4640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4641 test "x$ac_build_alias" = x &&
4642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4648 $as_echo "$ac_cv_build" >&6; }
4649 case $ac_cv_build in
4650 *-*-*) ;;
4651 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4652 esac
4653 build=$ac_cv_build
4654 ac_save_IFS=$IFS; IFS='-'
4655 set x $ac_cv_build
4656 shift
4657 build_cpu=$1
4658 build_vendor=$2
4659 shift; shift
4660 # Remember, the first character of IFS is used to create $*,
4661 # except with old shells:
4662 build_os=$*
4663 IFS=$ac_save_IFS
4664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4668 $as_echo_n "checking host system type... " >&6; }
4669 if ${ac_cv_host+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test "x$host_alias" = x; then
4673 ac_cv_host=$ac_cv_build
4674 else
4675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4677 fi
4678
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4681 $as_echo "$ac_cv_host" >&6; }
4682 case $ac_cv_host in
4683 *-*-*) ;;
4684 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4685 esac
4686 host=$ac_cv_host
4687 ac_save_IFS=$IFS; IFS='-'
4688 set x $ac_cv_host
4689 shift
4690 host_cpu=$1
4691 host_vendor=$2
4692 shift; shift
4693 # Remember, the first character of IFS is used to create $*,
4694 # except with old shells:
4695 host_os=$*
4696 IFS=$ac_save_IFS
4697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4701 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4702 if ${ac_cv_path_SED+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4706 for ac_i in 1 2 3 4 5 6 7; do
4707 ac_script="$ac_script$as_nl$ac_script"
4708 done
4709 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4710 { ac_script=; unset ac_script;}
4711 if test -z "$SED"; then
4712 ac_path_SED_found=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in sed gsed; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4722 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4723 # Check for GNU ac_path_SED and select it if it is found.
4724 # Check for GNU $ac_path_SED
4725 case `"$ac_path_SED" --version 2>&1` in
4726 *GNU*)
4727 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4728 *)
4729 ac_count=0
4730 $as_echo_n 0123456789 >"conftest.in"
4731 while :
4732 do
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo '' >> "conftest.nl"
4737 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739 as_fn_arith $ac_count + 1 && ac_count=$as_val
4740 if test $ac_count -gt ${ac_path_SED_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_SED="$ac_path_SED"
4743 ac_path_SED_max=$ac_count
4744 fi
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4747 done
4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749 esac
4750
4751 $ac_path_SED_found && break 3
4752 done
4753 done
4754 done
4755 IFS=$as_save_IFS
4756 if test -z "$ac_cv_path_SED"; then
4757 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4758 fi
4759 else
4760 ac_cv_path_SED=$SED
4761 fi
4762
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4765 $as_echo "$ac_cv_path_SED" >&6; }
4766 SED="$ac_cv_path_SED"
4767 rm -f conftest.sed
4768
4769
4770
4771
4772
4773
4774 # Check whether --enable-selective-werror was given.
4775 if test "${enable_selective_werror+set}" = set; then :
4776 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4777 else
4778 SELECTIVE_WERROR=yes
4779 fi
4780
4781
4782
4783
4784
4785 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4786 if test "x$SUNCC" = "xyes"; then
4787 BASE_CFLAGS="-v"
4788 else
4789 BASE_CFLAGS=""
4790 fi
4791
4792 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806 xorg_testset_save_CFLAGS="$CFLAGS"
4807
4808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 int i;
4818 _ACEOF
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 xorg_cv_cc_flag_unknown_warning_option=yes
4821 else
4822 xorg_cv_cc_flag_unknown_warning_option=no
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4829 CFLAGS="$xorg_testset_save_CFLAGS"
4830 fi
4831
4832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4835 fi
4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 int i;
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847 xorg_cv_cc_flag_unused_command_line_argument=yes
4848 else
4849 xorg_cv_cc_flag_unused_command_line_argument=no
4850 fi
4851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4856 CFLAGS="$xorg_testset_save_CFLAGS"
4857 fi
4858
4859 found="no"
4860
4861 if test $found = "no" ; then
4862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864 fi
4865
4866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4868 fi
4869
4870 CFLAGS="$CFLAGS -Wall"
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4873 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4874 cacheid=xorg_cv_cc_flag__Wall
4875 if eval \${$cacheid+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 int i;
4881 int
4882 main ()
4883 {
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_link "$LINENO"; then :
4890 eval $cacheid=yes
4891 else
4892 eval $cacheid=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext \
4895 conftest$ac_exeext conftest.$ac_ext
4896 fi
4897
4898
4899 CFLAGS="$xorg_testset_save_CFLAGS"
4900
4901 eval supported=\$$cacheid
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4903 $as_echo "$supported" >&6; }
4904 if test "$supported" = "yes" ; then
4905 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4906 found="yes"
4907 fi
4908 fi
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 xorg_testset_save_CFLAGS="$CFLAGS"
4925
4926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 int i;
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 xorg_cv_cc_flag_unknown_warning_option=yes
4939 else
4940 xorg_cv_cc_flag_unknown_warning_option=no
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4947 CFLAGS="$xorg_testset_save_CFLAGS"
4948 fi
4949
4950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4953 fi
4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 int i;
4963 _ACEOF
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 xorg_cv_cc_flag_unused_command_line_argument=yes
4966 else
4967 xorg_cv_cc_flag_unused_command_line_argument=no
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4974 CFLAGS="$xorg_testset_save_CFLAGS"
4975 fi
4976
4977 found="no"
4978
4979 if test $found = "no" ; then
4980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982 fi
4983
4984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4986 fi
4987
4988 CFLAGS="$CFLAGS -Wpointer-arith"
4989
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4991 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4992 cacheid=xorg_cv_cc_flag__Wpointer_arith
4993 if eval \${$cacheid+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 int i;
4999 int
5000 main ()
5001 {
5002
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_link "$LINENO"; then :
5008 eval $cacheid=yes
5009 else
5010 eval $cacheid=no
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext \
5013 conftest$ac_exeext conftest.$ac_ext
5014 fi
5015
5016
5017 CFLAGS="$xorg_testset_save_CFLAGS"
5018
5019 eval supported=\$$cacheid
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5021 $as_echo "$supported" >&6; }
5022 if test "$supported" = "yes" ; then
5023 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5024 found="yes"
5025 fi
5026 fi
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 xorg_testset_save_CFLAGS="$CFLAGS"
5043
5044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 int i;
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 xorg_cv_cc_flag_unknown_warning_option=yes
5057 else
5058 xorg_cv_cc_flag_unknown_warning_option=no
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5065 CFLAGS="$xorg_testset_save_CFLAGS"
5066 fi
5067
5068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5071 fi
5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 int i;
5081 _ACEOF
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083 xorg_cv_cc_flag_unused_command_line_argument=yes
5084 else
5085 xorg_cv_cc_flag_unused_command_line_argument=no
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5092 CFLAGS="$xorg_testset_save_CFLAGS"
5093 fi
5094
5095 found="no"
5096
5097 if test $found = "no" ; then
5098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100 fi
5101
5102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104 fi
5105
5106 CFLAGS="$CFLAGS -Wmissing-declarations"
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5109 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5110 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5111 if eval \${$cacheid+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 int
5118 main ()
5119 {
5120
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 eval $cacheid=yes
5127 else
5128 eval $cacheid=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5132 fi
5133
5134
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5136
5137 eval supported=\$$cacheid
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139 $as_echo "$supported" >&6; }
5140 if test "$supported" = "yes" ; then
5141 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5142 found="yes"
5143 fi
5144 fi
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 xorg_testset_save_CFLAGS="$CFLAGS"
5161
5162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 int i;
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 xorg_cv_cc_flag_unknown_warning_option=yes
5175 else
5176 xorg_cv_cc_flag_unknown_warning_option=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5183 CFLAGS="$xorg_testset_save_CFLAGS"
5184 fi
5185
5186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 fi
5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 int i;
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 xorg_cv_cc_flag_unused_command_line_argument=yes
5202 else
5203 xorg_cv_cc_flag_unused_command_line_argument=no
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5210 CFLAGS="$xorg_testset_save_CFLAGS"
5211 fi
5212
5213 found="no"
5214
5215 if test $found = "no" ; then
5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218 fi
5219
5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5222 fi
5223
5224 CFLAGS="$CFLAGS -Wformat=2"
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5227 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5228 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5229 if eval \${$cacheid+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 int i;
5235 int
5236 main ()
5237 {
5238
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_link "$LINENO"; then :
5244 eval $cacheid=yes
5245 else
5246 eval $cacheid=no
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext \
5249 conftest$ac_exeext conftest.$ac_ext
5250 fi
5251
5252
5253 CFLAGS="$xorg_testset_save_CFLAGS"
5254
5255 eval supported=\$$cacheid
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5257 $as_echo "$supported" >&6; }
5258 if test "$supported" = "yes" ; then
5259 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5260 found="yes"
5261 fi
5262 fi
5263
5264 if test $found = "no" ; then
5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268
5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271 fi
5272
5273 CFLAGS="$CFLAGS -Wformat"
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5276 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5277 cacheid=xorg_cv_cc_flag__Wformat
5278 if eval \${$cacheid+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 int
5285 main ()
5286 {
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_link "$LINENO"; then :
5293 eval $cacheid=yes
5294 else
5295 eval $cacheid=no
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext \
5298 conftest$ac_exeext conftest.$ac_ext
5299 fi
5300
5301
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303
5304 eval supported=\$$cacheid
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5306 $as_echo "$supported" >&6; }
5307 if test "$supported" = "yes" ; then
5308 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5309 found="yes"
5310 fi
5311 fi
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329 xorg_testset_save_CFLAGS="$CFLAGS"
5330
5331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 int i;
5341 _ACEOF
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 xorg_cv_cc_flag_unknown_warning_option=yes
5344 else
5345 xorg_cv_cc_flag_unknown_warning_option=no
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5352 CFLAGS="$xorg_testset_save_CFLAGS"
5353 fi
5354
5355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358 fi
5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 int i;
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 xorg_cv_cc_flag_unused_command_line_argument=yes
5371 else
5372 xorg_cv_cc_flag_unused_command_line_argument=no
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5379 CFLAGS="$xorg_testset_save_CFLAGS"
5380 fi
5381
5382 found="no"
5383
5384 if test $found = "no" ; then
5385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387 fi
5388
5389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391 fi
5392
5393 CFLAGS="$CFLAGS -Wstrict-prototypes"
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5396 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5397 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5398 if eval \${$cacheid+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 int i;
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_link "$LINENO"; then :
5413 eval $cacheid=yes
5414 else
5415 eval $cacheid=no
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 fi
5420
5421
5422 CFLAGS="$xorg_testset_save_CFLAGS"
5423
5424 eval supported=\$$cacheid
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5426 $as_echo "$supported" >&6; }
5427 if test "$supported" = "yes" ; then
5428 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5429 found="yes"
5430 fi
5431 fi
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447 xorg_testset_save_CFLAGS="$CFLAGS"
5448
5449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 int i;
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 xorg_cv_cc_flag_unknown_warning_option=yes
5462 else
5463 xorg_cv_cc_flag_unknown_warning_option=no
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5470 CFLAGS="$xorg_testset_save_CFLAGS"
5471 fi
5472
5473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476 fi
5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 int i;
5486 _ACEOF
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488 xorg_cv_cc_flag_unused_command_line_argument=yes
5489 else
5490 xorg_cv_cc_flag_unused_command_line_argument=no
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5497 CFLAGS="$xorg_testset_save_CFLAGS"
5498 fi
5499
5500 found="no"
5501
5502 if test $found = "no" ; then
5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505 fi
5506
5507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5509 fi
5510
5511 CFLAGS="$CFLAGS -Wmissing-prototypes"
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5514 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5515 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5516 if eval \${$cacheid+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_c_try_link "$LINENO"; then :
5531 eval $cacheid=yes
5532 else
5533 eval $cacheid=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext \
5536 conftest$ac_exeext conftest.$ac_ext
5537 fi
5538
5539
5540 CFLAGS="$xorg_testset_save_CFLAGS"
5541
5542 eval supported=\$$cacheid
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5544 $as_echo "$supported" >&6; }
5545 if test "$supported" = "yes" ; then
5546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5547 found="yes"
5548 fi
5549 fi
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565 xorg_testset_save_CFLAGS="$CFLAGS"
5566
5567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 int i;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 xorg_cv_cc_flag_unknown_warning_option=yes
5580 else
5581 xorg_cv_cc_flag_unknown_warning_option=no
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5588 CFLAGS="$xorg_testset_save_CFLAGS"
5589 fi
5590
5591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594 fi
5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 int i;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 xorg_cv_cc_flag_unused_command_line_argument=yes
5607 else
5608 xorg_cv_cc_flag_unused_command_line_argument=no
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5615 CFLAGS="$xorg_testset_save_CFLAGS"
5616 fi
5617
5618 found="no"
5619
5620 if test $found = "no" ; then
5621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5623 fi
5624
5625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5627 fi
5628
5629 CFLAGS="$CFLAGS -Wnested-externs"
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5632 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5633 cacheid=xorg_cv_cc_flag__Wnested_externs
5634 if eval \${$cacheid+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 int
5641 main ()
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_link "$LINENO"; then :
5649 eval $cacheid=yes
5650 else
5651 eval $cacheid=no
5652 fi
5653 rm -f core conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 fi
5656
5657
5658 CFLAGS="$xorg_testset_save_CFLAGS"
5659
5660 eval supported=\$$cacheid
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5662 $as_echo "$supported" >&6; }
5663 if test "$supported" = "yes" ; then
5664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5665 found="yes"
5666 fi
5667 fi
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 xorg_testset_save_CFLAGS="$CFLAGS"
5684
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 int i;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 xorg_cv_cc_flag_unknown_warning_option=yes
5698 else
5699 xorg_cv_cc_flag_unknown_warning_option=no
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5706 CFLAGS="$xorg_testset_save_CFLAGS"
5707 fi
5708
5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712 fi
5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 int i;
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 xorg_cv_cc_flag_unused_command_line_argument=yes
5725 else
5726 xorg_cv_cc_flag_unused_command_line_argument=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5733 CFLAGS="$xorg_testset_save_CFLAGS"
5734 fi
5735
5736 found="no"
5737
5738 if test $found = "no" ; then
5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5741 fi
5742
5743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5745 fi
5746
5747 CFLAGS="$CFLAGS -Wbad-function-cast"
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5750 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5751 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5752 if eval \${$cacheid+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 int i;
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_link "$LINENO"; then :
5767 eval $cacheid=yes
5768 else
5769 eval $cacheid=no
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext conftest.$ac_ext
5773 fi
5774
5775
5776 CFLAGS="$xorg_testset_save_CFLAGS"
5777
5778 eval supported=\$$cacheid
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5780 $as_echo "$supported" >&6; }
5781 if test "$supported" = "yes" ; then
5782 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5783 found="yes"
5784 fi
5785 fi
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 xorg_testset_save_CFLAGS="$CFLAGS"
5802
5803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 int i;
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"; then :
5815 xorg_cv_cc_flag_unknown_warning_option=yes
5816 else
5817 xorg_cv_cc_flag_unknown_warning_option=no
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5824 CFLAGS="$xorg_testset_save_CFLAGS"
5825 fi
5826
5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830 fi
5831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 int i;
5840 _ACEOF
5841 if ac_fn_c_try_compile "$LINENO"; then :
5842 xorg_cv_cc_flag_unused_command_line_argument=yes
5843 else
5844 xorg_cv_cc_flag_unused_command_line_argument=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852 fi
5853
5854 found="no"
5855
5856 if test $found = "no" ; then
5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 fi
5860
5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863 fi
5864
5865 CFLAGS="$CFLAGS -Wold-style-definition"
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5868 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5869 cacheid=xorg_cv_cc_flag__Wold_style_definition
5870 if eval \${$cacheid+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 int
5877 main ()
5878 {
5879
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_c_try_link "$LINENO"; then :
5885 eval $cacheid=yes
5886 else
5887 eval $cacheid=no
5888 fi
5889 rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
5891 fi
5892
5893
5894 CFLAGS="$xorg_testset_save_CFLAGS"
5895
5896 eval supported=\$$cacheid
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5898 $as_echo "$supported" >&6; }
5899 if test "$supported" = "yes" ; then
5900 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5901 found="yes"
5902 fi
5903 fi
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 xorg_testset_save_CFLAGS="$CFLAGS"
5920
5921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 int i;
5931 _ACEOF
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 xorg_cv_cc_flag_unknown_warning_option=yes
5934 else
5935 xorg_cv_cc_flag_unknown_warning_option=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5942 CFLAGS="$xorg_testset_save_CFLAGS"
5943 fi
5944
5945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5948 fi
5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 int i;
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 xorg_cv_cc_flag_unused_command_line_argument=yes
5961 else
5962 xorg_cv_cc_flag_unused_command_line_argument=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970 fi
5971
5972 found="no"
5973
5974 if test $found = "no" ; then
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 fi
5982
5983 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5986 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5987 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5988 if eval \${$cacheid+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 int i;
5994 int
5995 main ()
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 eval $cacheid=yes
6004 else
6005 eval $cacheid=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 fi
6010
6011
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013
6014 eval supported=\$$cacheid
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6016 $as_echo "$supported" >&6; }
6017 if test "$supported" = "yes" ; then
6018 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6019 found="yes"
6020 fi
6021 fi
6022
6023
6024
6025
6026
6027 # This chunk adds additional warnings that could catch undesired effects.
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 xorg_testset_save_CFLAGS="$CFLAGS"
6042
6043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 int i;
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 xorg_cv_cc_flag_unknown_warning_option=yes
6056 else
6057 xorg_cv_cc_flag_unknown_warning_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 fi
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 int i;
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 xorg_cv_cc_flag_unused_command_line_argument=yes
6083 else
6084 xorg_cv_cc_flag_unused_command_line_argument=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6091 CFLAGS="$xorg_testset_save_CFLAGS"
6092 fi
6093
6094 found="no"
6095
6096 if test $found = "no" ; then
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 fi
6100
6101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6103 fi
6104
6105 CFLAGS="$CFLAGS -Wunused"
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6108 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6109 cacheid=xorg_cv_cc_flag__Wunused
6110 if eval \${$cacheid+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 int
6117 main ()
6118 {
6119
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 if ac_fn_c_try_link "$LINENO"; then :
6125 eval $cacheid=yes
6126 else
6127 eval $cacheid=no
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131 fi
6132
6133
6134 CFLAGS="$xorg_testset_save_CFLAGS"
6135
6136 eval supported=\$$cacheid
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6138 $as_echo "$supported" >&6; }
6139 if test "$supported" = "yes" ; then
6140 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6141 found="yes"
6142 fi
6143 fi
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 xorg_testset_save_CFLAGS="$CFLAGS"
6160
6161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 int i;
6171 _ACEOF
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173 xorg_cv_cc_flag_unknown_warning_option=yes
6174 else
6175 xorg_cv_cc_flag_unknown_warning_option=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6182 CFLAGS="$xorg_testset_save_CFLAGS"
6183 fi
6184
6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 fi
6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 int i;
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200 xorg_cv_cc_flag_unused_command_line_argument=yes
6201 else
6202 xorg_cv_cc_flag_unused_command_line_argument=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6209 CFLAGS="$xorg_testset_save_CFLAGS"
6210 fi
6211
6212 found="no"
6213
6214 if test $found = "no" ; then
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 fi
6218
6219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6221 fi
6222
6223 CFLAGS="$CFLAGS -Wuninitialized"
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6226 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6227 cacheid=xorg_cv_cc_flag__Wuninitialized
6228 if eval \${$cacheid+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 int i;
6234 int
6235 main ()
6236 {
6237
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 if ac_fn_c_try_link "$LINENO"; then :
6243 eval $cacheid=yes
6244 else
6245 eval $cacheid=no
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext \
6248 conftest$ac_exeext conftest.$ac_ext
6249 fi
6250
6251
6252 CFLAGS="$xorg_testset_save_CFLAGS"
6253
6254 eval supported=\$$cacheid
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6256 $as_echo "$supported" >&6; }
6257 if test "$supported" = "yes" ; then
6258 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6259 found="yes"
6260 fi
6261 fi
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277 xorg_testset_save_CFLAGS="$CFLAGS"
6278
6279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 int i;
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 xorg_cv_cc_flag_unknown_warning_option=yes
6292 else
6293 xorg_cv_cc_flag_unknown_warning_option=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6300 CFLAGS="$xorg_testset_save_CFLAGS"
6301 fi
6302
6303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306 fi
6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 int i;
6316 _ACEOF
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 xorg_cv_cc_flag_unused_command_line_argument=yes
6319 else
6320 xorg_cv_cc_flag_unused_command_line_argument=no
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6327 CFLAGS="$xorg_testset_save_CFLAGS"
6328 fi
6329
6330 found="no"
6331
6332 if test $found = "no" ; then
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 fi
6336
6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 fi
6340
6341 CFLAGS="$CFLAGS -Wshadow"
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6344 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6345 cacheid=xorg_cv_cc_flag__Wshadow
6346 if eval \${$cacheid+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 int i;
6352 int
6353 main ()
6354 {
6355
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 eval $cacheid=yes
6362 else
6363 eval $cacheid=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 fi
6368
6369
6370 CFLAGS="$xorg_testset_save_CFLAGS"
6371
6372 eval supported=\$$cacheid
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6374 $as_echo "$supported" >&6; }
6375 if test "$supported" = "yes" ; then
6376 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6377 found="yes"
6378 fi
6379 fi
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 xorg_testset_save_CFLAGS="$CFLAGS"
6396
6397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 int i;
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 xorg_cv_cc_flag_unknown_warning_option=yes
6410 else
6411 xorg_cv_cc_flag_unknown_warning_option=no
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6418 CFLAGS="$xorg_testset_save_CFLAGS"
6419 fi
6420
6421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424 fi
6425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 int i;
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 xorg_cv_cc_flag_unused_command_line_argument=yes
6437 else
6438 xorg_cv_cc_flag_unused_command_line_argument=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6445 CFLAGS="$xorg_testset_save_CFLAGS"
6446 fi
6447
6448 found="no"
6449
6450 if test $found = "no" ; then
6451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453 fi
6454
6455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6457 fi
6458
6459 CFLAGS="$CFLAGS -Wcast-qual"
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6462 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6463 cacheid=xorg_cv_cc_flag__Wcast_qual
6464 if eval \${$cacheid+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 int
6471 main ()
6472 {
6473
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 eval $cacheid=yes
6480 else
6481 eval $cacheid=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6485 fi
6486
6487
6488 CFLAGS="$xorg_testset_save_CFLAGS"
6489
6490 eval supported=\$$cacheid
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6492 $as_echo "$supported" >&6; }
6493 if test "$supported" = "yes" ; then
6494 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6495 found="yes"
6496 fi
6497 fi
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 xorg_testset_save_CFLAGS="$CFLAGS"
6514
6515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 int i;
6525 _ACEOF
6526 if ac_fn_c_try_compile "$LINENO"; then :
6527 xorg_cv_cc_flag_unknown_warning_option=yes
6528 else
6529 xorg_cv_cc_flag_unknown_warning_option=no
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6536 CFLAGS="$xorg_testset_save_CFLAGS"
6537 fi
6538
6539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542 fi
6543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 int i;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 xorg_cv_cc_flag_unused_command_line_argument=yes
6555 else
6556 xorg_cv_cc_flag_unused_command_line_argument=no
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6563 CFLAGS="$xorg_testset_save_CFLAGS"
6564 fi
6565
6566 found="no"
6567
6568 if test $found = "no" ; then
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 fi
6572
6573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575 fi
6576
6577 CFLAGS="$CFLAGS -Wmissing-noreturn"
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6580 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6581 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6582 if eval \${$cacheid+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 int i;
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 eval $cacheid=yes
6598 else
6599 eval $cacheid=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 fi
6604
6605
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607
6608 eval supported=\$$cacheid
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6610 $as_echo "$supported" >&6; }
6611 if test "$supported" = "yes" ; then
6612 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6613 found="yes"
6614 fi
6615 fi
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631 xorg_testset_save_CFLAGS="$CFLAGS"
6632
6633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"; then :
6645 xorg_cv_cc_flag_unknown_warning_option=yes
6646 else
6647 xorg_cv_cc_flag_unknown_warning_option=no
6648 fi
6649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 fi
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6654 CFLAGS="$xorg_testset_save_CFLAGS"
6655 fi
6656
6657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6660 fi
6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int i;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 xorg_cv_cc_flag_unused_command_line_argument=yes
6673 else
6674 xorg_cv_cc_flag_unused_command_line_argument=no
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6681 CFLAGS="$xorg_testset_save_CFLAGS"
6682 fi
6683
6684 found="no"
6685
6686 if test $found = "no" ; then
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 fi
6690
6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6693 fi
6694
6695 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6698 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6699 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6700 if eval \${$cacheid+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 int i;
6706 int
6707 main ()
6708 {
6709
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 eval $cacheid=yes
6716 else
6717 eval $cacheid=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 fi
6722
6723
6724 CFLAGS="$xorg_testset_save_CFLAGS"
6725
6726 eval supported=\$$cacheid
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728 $as_echo "$supported" >&6; }
6729 if test "$supported" = "yes" ; then
6730 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6731 found="yes"
6732 fi
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 xorg_testset_save_CFLAGS="$CFLAGS"
6750
6751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int i;
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 xorg_cv_cc_flag_unknown_warning_option=yes
6764 else
6765 xorg_cv_cc_flag_unknown_warning_option=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772 CFLAGS="$xorg_testset_save_CFLAGS"
6773 fi
6774
6775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778 fi
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 int i;
6788 _ACEOF
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 xorg_cv_cc_flag_unused_command_line_argument=yes
6791 else
6792 xorg_cv_cc_flag_unused_command_line_argument=no
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6799 CFLAGS="$xorg_testset_save_CFLAGS"
6800 fi
6801
6802 found="no"
6803
6804 if test $found = "no" ; then
6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 fi
6808
6809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6811 fi
6812
6813 CFLAGS="$CFLAGS -Wredundant-decls"
6814
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6816 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6817 cacheid=xorg_cv_cc_flag__Wredundant_decls
6818 if eval \${$cacheid+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 int i;
6824 int
6825 main ()
6826 {
6827
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 if ac_fn_c_try_link "$LINENO"; then :
6833 eval $cacheid=yes
6834 else
6835 eval $cacheid=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 fi
6840
6841
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843
6844 eval supported=\$$cacheid
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6846 $as_echo "$supported" >&6; }
6847 if test "$supported" = "yes" ; then
6848 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6849 found="yes"
6850 fi
6851 fi
6852
6853
6854
6855 # These are currently disabled because they are noisy. They will be enabled
6856 # in the future once the codebase is sufficiently modernized to silence
6857 # them. For now, I don't want them to drown out the other warnings.
6858 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6859 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6860 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6861
6862 # Turn some warnings into errors, so we don't accidently get successful builds
6863 # when there are problems that should be fixed.
6864
6865 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879 xorg_testset_save_CFLAGS="$CFLAGS"
6880
6881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 int i;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 xorg_cv_cc_flag_unknown_warning_option=yes
6894 else
6895 xorg_cv_cc_flag_unknown_warning_option=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6903 fi
6904
6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908 fi
6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 int i;
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 xorg_cv_cc_flag_unused_command_line_argument=yes
6921 else
6922 xorg_cv_cc_flag_unused_command_line_argument=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6929 CFLAGS="$xorg_testset_save_CFLAGS"
6930 fi
6931
6932 found="no"
6933
6934 if test $found = "no" ; then
6935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 fi
6938
6939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941 fi
6942
6943 CFLAGS="$CFLAGS -Werror=implicit"
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6946 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6947 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6948 if eval \${$cacheid+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 int i;
6954 int
6955 main ()
6956 {
6957
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_link "$LINENO"; then :
6963 eval $cacheid=yes
6964 else
6965 eval $cacheid=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 fi
6970
6971
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973
6974 eval supported=\$$cacheid
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976 $as_echo "$supported" >&6; }
6977 if test "$supported" = "yes" ; then
6978 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6979 found="yes"
6980 fi
6981 fi
6982
6983 if test $found = "no" ; then
6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986 fi
6987
6988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990 fi
6991
6992 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6995 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6996 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6997 if eval \${$cacheid+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 int
7004 main ()
7005 {
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012 eval $cacheid=yes
7013 else
7014 eval $cacheid=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 fi
7019
7020
7021 CFLAGS="$xorg_testset_save_CFLAGS"
7022
7023 eval supported=\$$cacheid
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7025 $as_echo "$supported" >&6; }
7026 if test "$supported" = "yes" ; then
7027 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7028 found="yes"
7029 fi
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 xorg_testset_save_CFLAGS="$CFLAGS"
7047
7048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int i;
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060 xorg_cv_cc_flag_unknown_warning_option=yes
7061 else
7062 xorg_cv_cc_flag_unknown_warning_option=no
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7069 CFLAGS="$xorg_testset_save_CFLAGS"
7070 fi
7071
7072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7075 fi
7076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 int i;
7085 _ACEOF
7086 if ac_fn_c_try_compile "$LINENO"; then :
7087 xorg_cv_cc_flag_unused_command_line_argument=yes
7088 else
7089 xorg_cv_cc_flag_unused_command_line_argument=no
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7096 CFLAGS="$xorg_testset_save_CFLAGS"
7097 fi
7098
7099 found="no"
7100
7101 if test $found = "no" ; then
7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104 fi
7105
7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7108 fi
7109
7110 CFLAGS="$CFLAGS -Werror=nonnull"
7111
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7113 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7114 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7115 if eval \${$cacheid+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 int i;
7121 int
7122 main ()
7123 {
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130 eval $cacheid=yes
7131 else
7132 eval $cacheid=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 fi
7137
7138
7139 CFLAGS="$xorg_testset_save_CFLAGS"
7140
7141 eval supported=\$$cacheid
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7143 $as_echo "$supported" >&6; }
7144 if test "$supported" = "yes" ; then
7145 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7146 found="yes"
7147 fi
7148 fi
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 xorg_testset_save_CFLAGS="$CFLAGS"
7165
7166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 int i;
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 xorg_cv_cc_flag_unknown_warning_option=yes
7179 else
7180 xorg_cv_cc_flag_unknown_warning_option=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7187 CFLAGS="$xorg_testset_save_CFLAGS"
7188 fi
7189
7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193 fi
7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 int i;
7203 _ACEOF
7204 if ac_fn_c_try_compile "$LINENO"; then :
7205 xorg_cv_cc_flag_unused_command_line_argument=yes
7206 else
7207 xorg_cv_cc_flag_unused_command_line_argument=no
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7214 CFLAGS="$xorg_testset_save_CFLAGS"
7215 fi
7216
7217 found="no"
7218
7219 if test $found = "no" ; then
7220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222 fi
7223
7224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226 fi
7227
7228 CFLAGS="$CFLAGS -Werror=init-self"
7229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7231 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7232 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7233 if eval \${$cacheid+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int i;
7239 int
7240 main ()
7241 {
7242
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 if ac_fn_c_try_link "$LINENO"; then :
7248 eval $cacheid=yes
7249 else
7250 eval $cacheid=no
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254 fi
7255
7256
7257 CFLAGS="$xorg_testset_save_CFLAGS"
7258
7259 eval supported=\$$cacheid
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7261 $as_echo "$supported" >&6; }
7262 if test "$supported" = "yes" ; then
7263 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7264 found="yes"
7265 fi
7266 fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 xorg_testset_save_CFLAGS="$CFLAGS"
7283
7284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7287 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7288 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 int i;
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296 xorg_cv_cc_flag_unknown_warning_option=yes
7297 else
7298 xorg_cv_cc_flag_unknown_warning_option=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7303 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7305 CFLAGS="$xorg_testset_save_CFLAGS"
7306 fi
7307
7308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311 fi
7312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7315 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 int i;
7321 _ACEOF
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323 xorg_cv_cc_flag_unused_command_line_argument=yes
7324 else
7325 xorg_cv_cc_flag_unused_command_line_argument=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7330 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7332 CFLAGS="$xorg_testset_save_CFLAGS"
7333 fi
7334
7335 found="no"
7336
7337 if test $found = "no" ; then
7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 fi
7341
7342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344 fi
7345
7346 CFLAGS="$CFLAGS -Werror=main"
7347
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7349 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7350 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7351 if eval \${$cacheid+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 int i;
7357 int
7358 main ()
7359 {
7360
7361 ;
7362 return 0;
7363 }
7364 _ACEOF
7365 if ac_fn_c_try_link "$LINENO"; then :
7366 eval $cacheid=yes
7367 else
7368 eval $cacheid=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7372 fi
7373
7374
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376
7377 eval supported=\$$cacheid
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7379 $as_echo "$supported" >&6; }
7380 if test "$supported" = "yes" ; then
7381 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7382 found="yes"
7383 fi
7384 fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 xorg_testset_save_CFLAGS="$CFLAGS"
7401
7402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 xorg_cv_cc_flag_unknown_warning_option=yes
7415 else
7416 xorg_cv_cc_flag_unknown_warning_option=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424 fi
7425
7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429 fi
7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 int i;
7439 _ACEOF
7440 if ac_fn_c_try_compile "$LINENO"; then :
7441 xorg_cv_cc_flag_unused_command_line_argument=yes
7442 else
7443 xorg_cv_cc_flag_unused_command_line_argument=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7450 CFLAGS="$xorg_testset_save_CFLAGS"
7451 fi
7452
7453 found="no"
7454
7455 if test $found = "no" ; then
7456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458 fi
7459
7460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462 fi
7463
7464 CFLAGS="$CFLAGS -Werror=missing-braces"
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7467 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7468 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7469 if eval \${$cacheid+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 int
7476 main ()
7477 {
7478
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 eval $cacheid=yes
7485 else
7486 eval $cacheid=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 fi
7491
7492
7493 CFLAGS="$xorg_testset_save_CFLAGS"
7494
7495 eval supported=\$$cacheid
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7497 $as_echo "$supported" >&6; }
7498 if test "$supported" = "yes" ; then
7499 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7500 found="yes"
7501 fi
7502 fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 xorg_testset_save_CFLAGS="$CFLAGS"
7519
7520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 int i;
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 xorg_cv_cc_flag_unknown_warning_option=yes
7533 else
7534 xorg_cv_cc_flag_unknown_warning_option=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7542 fi
7543
7544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547 fi
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 int i;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 xorg_cv_cc_flag_unused_command_line_argument=yes
7560 else
7561 xorg_cv_cc_flag_unused_command_line_argument=no
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7568 CFLAGS="$xorg_testset_save_CFLAGS"
7569 fi
7570
7571 found="no"
7572
7573 if test $found = "no" ; then
7574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576 fi
7577
7578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580 fi
7581
7582 CFLAGS="$CFLAGS -Werror=sequence-point"
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7585 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7586 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7587 if eval \${$cacheid+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int i;
7593 int
7594 main ()
7595 {
7596
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 eval $cacheid=yes
7603 else
7604 eval $cacheid=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 fi
7609
7610
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613 eval supported=\$$cacheid
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 $as_echo "$supported" >&6; }
7616 if test "$supported" = "yes" ; then
7617 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7618 found="yes"
7619 fi
7620 fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 int i;
7648 _ACEOF
7649 if ac_fn_c_try_compile "$LINENO"; then :
7650 xorg_cv_cc_flag_unknown_warning_option=yes
7651 else
7652 xorg_cv_cc_flag_unknown_warning_option=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659 CFLAGS="$xorg_testset_save_CFLAGS"
7660 fi
7661
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665 fi
7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 int i;
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"; then :
7677 xorg_cv_cc_flag_unused_command_line_argument=yes
7678 else
7679 xorg_cv_cc_flag_unused_command_line_argument=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686 CFLAGS="$xorg_testset_save_CFLAGS"
7687 fi
7688
7689 found="no"
7690
7691 if test $found = "no" ; then
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 fi
7695
7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7698 fi
7699
7700 CFLAGS="$CFLAGS -Werror=return-type"
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7703 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7704 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7705 if eval \${$cacheid+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 int i;
7711 int
7712 main ()
7713 {
7714
7715 ;
7716 return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720 eval $cacheid=yes
7721 else
7722 eval $cacheid=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 fi
7727
7728
7729 CFLAGS="$xorg_testset_save_CFLAGS"
7730
7731 eval supported=\$$cacheid
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733 $as_echo "$supported" >&6; }
7734 if test "$supported" = "yes" ; then
7735 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7736 found="yes"
7737 fi
7738 fi
7739
7740 if test $found = "no" ; then
7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743 fi
7744
7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747 fi
7748
7749 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7752 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7753 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7754 if eval \${$cacheid+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 int
7761 main ()
7762 {
7763
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"; then :
7769 eval $cacheid=yes
7770 else
7771 eval $cacheid=no
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775 fi
7776
7777
7778 CFLAGS="$xorg_testset_save_CFLAGS"
7779
7780 eval supported=\$$cacheid
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7782 $as_echo "$supported" >&6; }
7783 if test "$supported" = "yes" ; then
7784 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7785 found="yes"
7786 fi
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803 xorg_testset_save_CFLAGS="$CFLAGS"
7804
7805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 int i;
7815 _ACEOF
7816 if ac_fn_c_try_compile "$LINENO"; then :
7817 xorg_cv_cc_flag_unknown_warning_option=yes
7818 else
7819 xorg_cv_cc_flag_unknown_warning_option=no
7820 fi
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7826 CFLAGS="$xorg_testset_save_CFLAGS"
7827 fi
7828
7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832 fi
7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 int i;
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 xorg_cv_cc_flag_unused_command_line_argument=yes
7845 else
7846 xorg_cv_cc_flag_unused_command_line_argument=no
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7853 CFLAGS="$xorg_testset_save_CFLAGS"
7854 fi
7855
7856 found="no"
7857
7858 if test $found = "no" ; then
7859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861 fi
7862
7863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7865 fi
7866
7867 CFLAGS="$CFLAGS -Werror=trigraphs"
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7870 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7871 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7872 if eval \${$cacheid+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 int
7879 main ()
7880 {
7881
7882 ;
7883 return 0;
7884 }
7885 _ACEOF
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 eval $cacheid=yes
7888 else
7889 eval $cacheid=no
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 fi
7894
7895
7896 CFLAGS="$xorg_testset_save_CFLAGS"
7897
7898 eval supported=\$$cacheid
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7900 $as_echo "$supported" >&6; }
7901 if test "$supported" = "yes" ; then
7902 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7903 found="yes"
7904 fi
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 xorg_testset_save_CFLAGS="$CFLAGS"
7922
7923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 int i;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 xorg_cv_cc_flag_unknown_warning_option=yes
7936 else
7937 xorg_cv_cc_flag_unknown_warning_option=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7944 CFLAGS="$xorg_testset_save_CFLAGS"
7945 fi
7946
7947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7950 fi
7951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 int i;
7960 _ACEOF
7961 if ac_fn_c_try_compile "$LINENO"; then :
7962 xorg_cv_cc_flag_unused_command_line_argument=yes
7963 else
7964 xorg_cv_cc_flag_unused_command_line_argument=no
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7971 CFLAGS="$xorg_testset_save_CFLAGS"
7972 fi
7973
7974 found="no"
7975
7976 if test $found = "no" ; then
7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979 fi
7980
7981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983 fi
7984
7985 CFLAGS="$CFLAGS -Werror=array-bounds"
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7988 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7989 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7990 if eval \${$cacheid+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 int
7997 main ()
7998 {
7999
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 eval $cacheid=yes
8006 else
8007 eval $cacheid=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 fi
8012
8013
8014 CFLAGS="$xorg_testset_save_CFLAGS"
8015
8016 eval supported=\$$cacheid
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8018 $as_echo "$supported" >&6; }
8019 if test "$supported" = "yes" ; then
8020 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8021 found="yes"
8022 fi
8023 fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 xorg_testset_save_CFLAGS="$CFLAGS"
8040
8041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 int i;
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 xorg_cv_cc_flag_unknown_warning_option=yes
8054 else
8055 xorg_cv_cc_flag_unknown_warning_option=no
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8062 CFLAGS="$xorg_testset_save_CFLAGS"
8063 fi
8064
8065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068 fi
8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 int i;
8078 _ACEOF
8079 if ac_fn_c_try_compile "$LINENO"; then :
8080 xorg_cv_cc_flag_unused_command_line_argument=yes
8081 else
8082 xorg_cv_cc_flag_unused_command_line_argument=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8089 CFLAGS="$xorg_testset_save_CFLAGS"
8090 fi
8091
8092 found="no"
8093
8094 if test $found = "no" ; then
8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 fi
8098
8099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101 fi
8102
8103 CFLAGS="$CFLAGS -Werror=write-strings"
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8106 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8107 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8108 if eval \${$cacheid+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 int i;
8114 int
8115 main ()
8116 {
8117
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 eval $cacheid=yes
8124 else
8125 eval $cacheid=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 fi
8130
8131
8132 CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134 eval supported=\$$cacheid
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136 $as_echo "$supported" >&6; }
8137 if test "$supported" = "yes" ; then
8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8139 found="yes"
8140 fi
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 xorg_testset_save_CFLAGS="$CFLAGS"
8158
8159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171 xorg_cv_cc_flag_unknown_warning_option=yes
8172 else
8173 xorg_cv_cc_flag_unknown_warning_option=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8181 fi
8182
8183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186 fi
8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 int i;
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 xorg_cv_cc_flag_unused_command_line_argument=yes
8199 else
8200 xorg_cv_cc_flag_unused_command_line_argument=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8207 CFLAGS="$xorg_testset_save_CFLAGS"
8208 fi
8209
8210 found="no"
8211
8212 if test $found = "no" ; then
8213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 fi
8216
8217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8219 fi
8220
8221 CFLAGS="$CFLAGS -Werror=address"
8222
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8224 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8225 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8226 if eval \${$cacheid+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 int i;
8232 int
8233 main ()
8234 {
8235
8236 ;
8237 return 0;
8238 }
8239 _ACEOF
8240 if ac_fn_c_try_link "$LINENO"; then :
8241 eval $cacheid=yes
8242 else
8243 eval $cacheid=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 fi
8248
8249
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251
8252 eval supported=\$$cacheid
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254 $as_echo "$supported" >&6; }
8255 if test "$supported" = "yes" ; then
8256 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8257 found="yes"
8258 fi
8259 fi
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275 xorg_testset_save_CFLAGS="$CFLAGS"
8276
8277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289 xorg_cv_cc_flag_unknown_warning_option=yes
8290 else
8291 xorg_cv_cc_flag_unknown_warning_option=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 fi
8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 int i;
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 xorg_cv_cc_flag_unused_command_line_argument=yes
8317 else
8318 xorg_cv_cc_flag_unused_command_line_argument=no
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8325 CFLAGS="$xorg_testset_save_CFLAGS"
8326 fi
8327
8328 found="no"
8329
8330 if test $found = "no" ; then
8331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333 fi
8334
8335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337 fi
8338
8339 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8342 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8343 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8344 if eval \${$cacheid+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 int i;
8350 int
8351 main ()
8352 {
8353
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359 eval $cacheid=yes
8360 else
8361 eval $cacheid=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 fi
8366
8367
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370 eval supported=\$$cacheid
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372 $as_echo "$supported" >&6; }
8373 if test "$supported" = "yes" ; then
8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8375 found="yes"
8376 fi
8377 fi
8378
8379 if test $found = "no" ; then
8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8382 fi
8383
8384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8386 fi
8387
8388 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8389
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8391 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8392 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8393 if eval \${$cacheid+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 int i;
8399 int
8400 main ()
8401 {
8402
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408 eval $cacheid=yes
8409 else
8410 eval $cacheid=no
8411 fi
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 fi
8415
8416
8417 CFLAGS="$xorg_testset_save_CFLAGS"
8418
8419 eval supported=\$$cacheid
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8421 $as_echo "$supported" >&6; }
8422 if test "$supported" = "yes" ; then
8423 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8424 found="yes"
8425 fi
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442 xorg_testset_save_CFLAGS="$CFLAGS"
8443
8444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 int i;
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 xorg_cv_cc_flag_unused_command_line_argument=yes
8484 else
8485 xorg_cv_cc_flag_unused_command_line_argument=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8492 CFLAGS="$xorg_testset_save_CFLAGS"
8493 fi
8494
8495 found="no"
8496
8497 if test $found = "no" ; then
8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 fi
8501
8502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504 fi
8505
8506 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8509 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8511 if eval \${$cacheid+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 int
8518 main ()
8519 {
8520
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 eval $cacheid=yes
8527 else
8528 eval $cacheid=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 fi
8533
8534
8535 CFLAGS="$xorg_testset_save_CFLAGS"
8536
8537 eval supported=\$$cacheid
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8539 $as_echo "$supported" >&6; }
8540 if test "$supported" = "yes" ; then
8541 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8542 found="yes"
8543 fi
8544 fi
8545
8546 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8547 else
8548 { $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
8549 $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;}
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563 xorg_testset_save_CFLAGS="$CFLAGS"
8564
8565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 int i;
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 xorg_cv_cc_flag_unknown_warning_option=yes
8578 else
8579 xorg_cv_cc_flag_unknown_warning_option=no
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8586 CFLAGS="$xorg_testset_save_CFLAGS"
8587 fi
8588
8589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592 fi
8593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 int i;
8602 _ACEOF
8603 if ac_fn_c_try_compile "$LINENO"; then :
8604 xorg_cv_cc_flag_unused_command_line_argument=yes
8605 else
8606 xorg_cv_cc_flag_unused_command_line_argument=no
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8613 CFLAGS="$xorg_testset_save_CFLAGS"
8614 fi
8615
8616 found="no"
8617
8618 if test $found = "no" ; then
8619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621 fi
8622
8623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8625 fi
8626
8627 CFLAGS="$CFLAGS -Wimplicit"
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8630 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8631 cacheid=xorg_cv_cc_flag__Wimplicit
8632 if eval \${$cacheid+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 int
8639 main ()
8640 {
8641
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 eval $cacheid=yes
8648 else
8649 eval $cacheid=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 fi
8654
8655
8656 CFLAGS="$xorg_testset_save_CFLAGS"
8657
8658 eval supported=\$$cacheid
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8660 $as_echo "$supported" >&6; }
8661 if test "$supported" = "yes" ; then
8662 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8663 found="yes"
8664 fi
8665 fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681 xorg_testset_save_CFLAGS="$CFLAGS"
8682
8683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 int i;
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 xorg_cv_cc_flag_unknown_warning_option=yes
8696 else
8697 xorg_cv_cc_flag_unknown_warning_option=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8704 CFLAGS="$xorg_testset_save_CFLAGS"
8705 fi
8706
8707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 fi
8711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 int i;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722 xorg_cv_cc_flag_unused_command_line_argument=yes
8723 else
8724 xorg_cv_cc_flag_unused_command_line_argument=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8731 CFLAGS="$xorg_testset_save_CFLAGS"
8732 fi
8733
8734 found="no"
8735
8736 if test $found = "no" ; then
8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739 fi
8740
8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8743 fi
8744
8745 CFLAGS="$CFLAGS -Wnonnull"
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8748 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8749 cacheid=xorg_cv_cc_flag__Wnonnull
8750 if eval \${$cacheid+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 int i;
8756 int
8757 main ()
8758 {
8759
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_link "$LINENO"; then :
8765 eval $cacheid=yes
8766 else
8767 eval $cacheid=no
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 fi
8772
8773
8774 CFLAGS="$xorg_testset_save_CFLAGS"
8775
8776 eval supported=\$$cacheid
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8778 $as_echo "$supported" >&6; }
8779 if test "$supported" = "yes" ; then
8780 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8781 found="yes"
8782 fi
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799 xorg_testset_save_CFLAGS="$CFLAGS"
8800
8801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 int i;
8811 _ACEOF
8812 if ac_fn_c_try_compile "$LINENO"; then :
8813 xorg_cv_cc_flag_unknown_warning_option=yes
8814 else
8815 xorg_cv_cc_flag_unknown_warning_option=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8822 CFLAGS="$xorg_testset_save_CFLAGS"
8823 fi
8824
8825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828 fi
8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 int i;
8838 _ACEOF
8839 if ac_fn_c_try_compile "$LINENO"; then :
8840 xorg_cv_cc_flag_unused_command_line_argument=yes
8841 else
8842 xorg_cv_cc_flag_unused_command_line_argument=no
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8849 CFLAGS="$xorg_testset_save_CFLAGS"
8850 fi
8851
8852 found="no"
8853
8854 if test $found = "no" ; then
8855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857 fi
8858
8859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8861 fi
8862
8863 CFLAGS="$CFLAGS -Winit-self"
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8866 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8867 cacheid=xorg_cv_cc_flag__Winit_self
8868 if eval \${$cacheid+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 int i;
8874 int
8875 main ()
8876 {
8877
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8883 eval $cacheid=yes
8884 else
8885 eval $cacheid=no
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 fi
8890
8891
8892 CFLAGS="$xorg_testset_save_CFLAGS"
8893
8894 eval supported=\$$cacheid
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8896 $as_echo "$supported" >&6; }
8897 if test "$supported" = "yes" ; then
8898 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8899 found="yes"
8900 fi
8901 fi
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 xorg_testset_save_CFLAGS="$CFLAGS"
8918
8919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 int i;
8929 _ACEOF
8930 if ac_fn_c_try_compile "$LINENO"; then :
8931 xorg_cv_cc_flag_unknown_warning_option=yes
8932 else
8933 xorg_cv_cc_flag_unknown_warning_option=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8941 fi
8942
8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946 fi
8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 int i;
8956 _ACEOF
8957 if ac_fn_c_try_compile "$LINENO"; then :
8958 xorg_cv_cc_flag_unused_command_line_argument=yes
8959 else
8960 xorg_cv_cc_flag_unused_command_line_argument=no
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 fi
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8967 CFLAGS="$xorg_testset_save_CFLAGS"
8968 fi
8969
8970 found="no"
8971
8972 if test $found = "no" ; then
8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975 fi
8976
8977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8979 fi
8980
8981 CFLAGS="$CFLAGS -Wmain"
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8984 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8985 cacheid=xorg_cv_cc_flag__Wmain
8986 if eval \${$cacheid+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 int
8993 main ()
8994 {
8995
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 if ac_fn_c_try_link "$LINENO"; then :
9001 eval $cacheid=yes
9002 else
9003 eval $cacheid=no
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007 fi
9008
9009
9010 CFLAGS="$xorg_testset_save_CFLAGS"
9011
9012 eval supported=\$$cacheid
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9014 $as_echo "$supported" >&6; }
9015 if test "$supported" = "yes" ; then
9016 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9017 found="yes"
9018 fi
9019 fi
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035 xorg_testset_save_CFLAGS="$CFLAGS"
9036
9037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 xorg_cv_cc_flag_unknown_warning_option=yes
9050 else
9051 xorg_cv_cc_flag_unknown_warning_option=no
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9058 CFLAGS="$xorg_testset_save_CFLAGS"
9059 fi
9060
9061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064 fi
9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073 int i;
9074 _ACEOF
9075 if ac_fn_c_try_compile "$LINENO"; then :
9076 xorg_cv_cc_flag_unused_command_line_argument=yes
9077 else
9078 xorg_cv_cc_flag_unused_command_line_argument=no
9079 fi
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9085 CFLAGS="$xorg_testset_save_CFLAGS"
9086 fi
9087
9088 found="no"
9089
9090 if test $found = "no" ; then
9091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093 fi
9094
9095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9097 fi
9098
9099 CFLAGS="$CFLAGS -Wmissing-braces"
9100
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9102 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9103 cacheid=xorg_cv_cc_flag__Wmissing_braces
9104 if eval \${$cacheid+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 int
9111 main ()
9112 {
9113
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 if ac_fn_c_try_link "$LINENO"; then :
9119 eval $cacheid=yes
9120 else
9121 eval $cacheid=no
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 fi
9126
9127
9128 CFLAGS="$xorg_testset_save_CFLAGS"
9129
9130 eval supported=\$$cacheid
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9132 $as_echo "$supported" >&6; }
9133 if test "$supported" = "yes" ; then
9134 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9135 found="yes"
9136 fi
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 xorg_testset_save_CFLAGS="$CFLAGS"
9154
9155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 int i;
9165 _ACEOF
9166 if ac_fn_c_try_compile "$LINENO"; then :
9167 xorg_cv_cc_flag_unknown_warning_option=yes
9168 else
9169 xorg_cv_cc_flag_unknown_warning_option=no
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9176 CFLAGS="$xorg_testset_save_CFLAGS"
9177 fi
9178
9179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9182 fi
9183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 int i;
9192 _ACEOF
9193 if ac_fn_c_try_compile "$LINENO"; then :
9194 xorg_cv_cc_flag_unused_command_line_argument=yes
9195 else
9196 xorg_cv_cc_flag_unused_command_line_argument=no
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204 fi
9205
9206 found="no"
9207
9208 if test $found = "no" ; then
9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211 fi
9212
9213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9215 fi
9216
9217 CFLAGS="$CFLAGS -Wsequence-point"
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9220 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9221 cacheid=xorg_cv_cc_flag__Wsequence_point
9222 if eval \${$cacheid+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 int
9229 main ()
9230 {
9231
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 eval $cacheid=yes
9238 else
9239 eval $cacheid=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 fi
9244
9245
9246 CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248 eval supported=\$$cacheid
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250 $as_echo "$supported" >&6; }
9251 if test "$supported" = "yes" ; then
9252 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9253 found="yes"
9254 fi
9255 fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int i;
9283 _ACEOF
9284 if ac_fn_c_try_compile "$LINENO"; then :
9285 xorg_cv_cc_flag_unknown_warning_option=yes
9286 else
9287 xorg_cv_cc_flag_unknown_warning_option=no
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 fi
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9294 CFLAGS="$xorg_testset_save_CFLAGS"
9295 fi
9296
9297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300 fi
9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 int i;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 xorg_cv_cc_flag_unused_command_line_argument=yes
9313 else
9314 xorg_cv_cc_flag_unused_command_line_argument=no
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9321 CFLAGS="$xorg_testset_save_CFLAGS"
9322 fi
9323
9324 found="no"
9325
9326 if test $found = "no" ; then
9327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329 fi
9330
9331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9333 fi
9334
9335 CFLAGS="$CFLAGS -Wreturn-type"
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9338 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9339 cacheid=xorg_cv_cc_flag__Wreturn_type
9340 if eval \${$cacheid+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 int
9347 main ()
9348 {
9349
9350 ;
9351 return 0;
9352 }
9353 _ACEOF
9354 if ac_fn_c_try_link "$LINENO"; then :
9355 eval $cacheid=yes
9356 else
9357 eval $cacheid=no
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 fi
9362
9363
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365
9366 eval supported=\$$cacheid
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9368 $as_echo "$supported" >&6; }
9369 if test "$supported" = "yes" ; then
9370 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9371 found="yes"
9372 fi
9373 fi
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 xorg_testset_save_CFLAGS="$CFLAGS"
9390
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 int i;
9401 _ACEOF
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 xorg_cv_cc_flag_unknown_warning_option=yes
9404 else
9405 xorg_cv_cc_flag_unknown_warning_option=no
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 fi
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9412 CFLAGS="$xorg_testset_save_CFLAGS"
9413 fi
9414
9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 fi
9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 int i;
9428 _ACEOF
9429 if ac_fn_c_try_compile "$LINENO"; then :
9430 xorg_cv_cc_flag_unused_command_line_argument=yes
9431 else
9432 xorg_cv_cc_flag_unused_command_line_argument=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9439 CFLAGS="$xorg_testset_save_CFLAGS"
9440 fi
9441
9442 found="no"
9443
9444 if test $found = "no" ; then
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 fi
9448
9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9451 fi
9452
9453 CFLAGS="$CFLAGS -Wtrigraphs"
9454
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9456 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9457 cacheid=xorg_cv_cc_flag__Wtrigraphs
9458 if eval \${$cacheid+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 int
9465 main ()
9466 {
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 eval $cacheid=yes
9474 else
9475 eval $cacheid=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 fi
9480
9481
9482 CFLAGS="$xorg_testset_save_CFLAGS"
9483
9484 eval supported=\$$cacheid
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9486 $as_echo "$supported" >&6; }
9487 if test "$supported" = "yes" ; then
9488 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9489 found="yes"
9490 fi
9491 fi
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507 xorg_testset_save_CFLAGS="$CFLAGS"
9508
9509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 _ACEOF
9520 if ac_fn_c_try_compile "$LINENO"; then :
9521 xorg_cv_cc_flag_unknown_warning_option=yes
9522 else
9523 xorg_cv_cc_flag_unknown_warning_option=no
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9530 CFLAGS="$xorg_testset_save_CFLAGS"
9531 fi
9532
9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536 fi
9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 int i;
9546 _ACEOF
9547 if ac_fn_c_try_compile "$LINENO"; then :
9548 xorg_cv_cc_flag_unused_command_line_argument=yes
9549 else
9550 xorg_cv_cc_flag_unused_command_line_argument=no
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9558 fi
9559
9560 found="no"
9561
9562 if test $found = "no" ; then
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 fi
9566
9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569 fi
9570
9571 CFLAGS="$CFLAGS -Warray-bounds"
9572
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9574 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9575 cacheid=xorg_cv_cc_flag__Warray_bounds
9576 if eval \${$cacheid+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 int
9583 main ()
9584 {
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 eval $cacheid=yes
9592 else
9593 eval $cacheid=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 fi
9598
9599
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601
9602 eval supported=\$$cacheid
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9604 $as_echo "$supported" >&6; }
9605 if test "$supported" = "yes" ; then
9606 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9607 found="yes"
9608 fi
9609 fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625 xorg_testset_save_CFLAGS="$CFLAGS"
9626
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 int i;
9637 _ACEOF
9638 if ac_fn_c_try_compile "$LINENO"; then :
9639 xorg_cv_cc_flag_unknown_warning_option=yes
9640 else
9641 xorg_cv_cc_flag_unknown_warning_option=no
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9648 CFLAGS="$xorg_testset_save_CFLAGS"
9649 fi
9650
9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654 fi
9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 int i;
9664 _ACEOF
9665 if ac_fn_c_try_compile "$LINENO"; then :
9666 xorg_cv_cc_flag_unused_command_line_argument=yes
9667 else
9668 xorg_cv_cc_flag_unused_command_line_argument=no
9669 fi
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9675 CFLAGS="$xorg_testset_save_CFLAGS"
9676 fi
9677
9678 found="no"
9679
9680 if test $found = "no" ; then
9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 fi
9684
9685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687 fi
9688
9689 CFLAGS="$CFLAGS -Wwrite-strings"
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9692 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9693 cacheid=xorg_cv_cc_flag__Wwrite_strings
9694 if eval \${$cacheid+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 int
9701 main ()
9702 {
9703
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 if ac_fn_c_try_link "$LINENO"; then :
9709 eval $cacheid=yes
9710 else
9711 eval $cacheid=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 fi
9716
9717
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720 eval supported=\$$cacheid
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722 $as_echo "$supported" >&6; }
9723 if test "$supported" = "yes" ; then
9724 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9725 found="yes"
9726 fi
9727 fi
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743 xorg_testset_save_CFLAGS="$CFLAGS"
9744
9745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 int i;
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 xorg_cv_cc_flag_unknown_warning_option=yes
9758 else
9759 xorg_cv_cc_flag_unknown_warning_option=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9766 CFLAGS="$xorg_testset_save_CFLAGS"
9767 fi
9768
9769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9772 fi
9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 int i;
9782 _ACEOF
9783 if ac_fn_c_try_compile "$LINENO"; then :
9784 xorg_cv_cc_flag_unused_command_line_argument=yes
9785 else
9786 xorg_cv_cc_flag_unused_command_line_argument=no
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9793 CFLAGS="$xorg_testset_save_CFLAGS"
9794 fi
9795
9796 found="no"
9797
9798 if test $found = "no" ; then
9799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801 fi
9802
9803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9805 fi
9806
9807 CFLAGS="$CFLAGS -Waddress"
9808
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9810 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9811 cacheid=xorg_cv_cc_flag__Waddress
9812 if eval \${$cacheid+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 int i;
9818 int
9819 main ()
9820 {
9821
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827 eval $cacheid=yes
9828 else
9829 eval $cacheid=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 fi
9834
9835
9836 CFLAGS="$xorg_testset_save_CFLAGS"
9837
9838 eval supported=\$$cacheid
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9840 $as_echo "$supported" >&6; }
9841 if test "$supported" = "yes" ; then
9842 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9843 found="yes"
9844 fi
9845 fi
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861 xorg_testset_save_CFLAGS="$CFLAGS"
9862
9863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 int i;
9873 _ACEOF
9874 if ac_fn_c_try_compile "$LINENO"; then :
9875 xorg_cv_cc_flag_unknown_warning_option=yes
9876 else
9877 xorg_cv_cc_flag_unknown_warning_option=no
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9884 CFLAGS="$xorg_testset_save_CFLAGS"
9885 fi
9886
9887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9890 fi
9891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 xorg_cv_cc_flag_unused_command_line_argument=yes
9903 else
9904 xorg_cv_cc_flag_unused_command_line_argument=no
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9911 CFLAGS="$xorg_testset_save_CFLAGS"
9912 fi
9913
9914 found="no"
9915
9916 if test $found = "no" ; then
9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919 fi
9920
9921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923 fi
9924
9925 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9928 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9929 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9930 if eval \${$cacheid+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 int
9937 main ()
9938 {
9939
9940 ;
9941 return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_c_try_link "$LINENO"; then :
9945 eval $cacheid=yes
9946 else
9947 eval $cacheid=no
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 fi
9952
9953
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9955
9956 eval supported=\$$cacheid
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9958 $as_echo "$supported" >&6; }
9959 if test "$supported" = "yes" ; then
9960 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9961 found="yes"
9962 fi
9963 fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979 xorg_testset_save_CFLAGS="$CFLAGS"
9980
9981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"; then :
9993 xorg_cv_cc_flag_unknown_warning_option=yes
9994 else
9995 xorg_cv_cc_flag_unknown_warning_option=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10002 CFLAGS="$xorg_testset_save_CFLAGS"
10003 fi
10004
10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10008 fi
10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 int i;
10018 _ACEOF
10019 if ac_fn_c_try_compile "$LINENO"; then :
10020 xorg_cv_cc_flag_unused_command_line_argument=yes
10021 else
10022 xorg_cv_cc_flag_unused_command_line_argument=no
10023 fi
10024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10029 CFLAGS="$xorg_testset_save_CFLAGS"
10030 fi
10031
10032 found="no"
10033
10034 if test $found = "no" ; then
10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037 fi
10038
10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041 fi
10042
10043 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10046 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10047 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10048 if eval \${$cacheid+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int i;
10054 int
10055 main ()
10056 {
10057
10058 ;
10059 return 0;
10060 }
10061 _ACEOF
10062 if ac_fn_c_try_link "$LINENO"; then :
10063 eval $cacheid=yes
10064 else
10065 eval $cacheid=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 fi
10070
10071
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10073
10074 eval supported=\$$cacheid
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10076 $as_echo "$supported" >&6; }
10077 if test "$supported" = "yes" ; then
10078 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10079 found="yes"
10080 fi
10081 fi
10082
10083
10084 fi
10085
10086
10087
10088
10089
10090
10091
10092 CWARNFLAGS="$BASE_CFLAGS"
10093 if test "x$GCC" = xyes ; then
10094 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10095 fi
10096
10097
10098
10099
10100
10101
10102
10103
10104 # Check whether --enable-strict-compilation was given.
10105 if test "${enable_strict_compilation+set}" = set; then :
10106 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10107 else
10108 STRICT_COMPILE=no
10109 fi
10110
10111
10112
10113
10114
10115
10116 STRICT_CFLAGS=""
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 xorg_testset_save_CFLAGS="$CFLAGS"
10131
10132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 int i;
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144 xorg_cv_cc_flag_unknown_warning_option=yes
10145 else
10146 xorg_cv_cc_flag_unknown_warning_option=no
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10153 CFLAGS="$xorg_testset_save_CFLAGS"
10154 fi
10155
10156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10159 fi
10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10164 $as_echo_n "(cached) " >&6
10165 else
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 int i;
10169 _ACEOF
10170 if ac_fn_c_try_compile "$LINENO"; then :
10171 xorg_cv_cc_flag_unused_command_line_argument=yes
10172 else
10173 xorg_cv_cc_flag_unused_command_line_argument=no
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10180 CFLAGS="$xorg_testset_save_CFLAGS"
10181 fi
10182
10183 found="no"
10184
10185 if test $found = "no" ; then
10186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188 fi
10189
10190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10192 fi
10193
10194 CFLAGS="$CFLAGS -pedantic"
10195
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10197 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10198 cacheid=xorg_cv_cc_flag__pedantic
10199 if eval \${$cacheid+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 int i;
10205 int
10206 main ()
10207 {
10208
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 eval $cacheid=yes
10215 else
10216 eval $cacheid=no
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 fi
10221
10222
10223 CFLAGS="$xorg_testset_save_CFLAGS"
10224
10225 eval supported=\$$cacheid
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10227 $as_echo "$supported" >&6; }
10228 if test "$supported" = "yes" ; then
10229 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10230 found="yes"
10231 fi
10232 fi
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248 xorg_testset_save_CFLAGS="$CFLAGS"
10249
10250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 int i;
10260 _ACEOF
10261 if ac_fn_c_try_compile "$LINENO"; then :
10262 xorg_cv_cc_flag_unknown_warning_option=yes
10263 else
10264 xorg_cv_cc_flag_unknown_warning_option=no
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10271 CFLAGS="$xorg_testset_save_CFLAGS"
10272 fi
10273
10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10277 fi
10278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 int i;
10287 _ACEOF
10288 if ac_fn_c_try_compile "$LINENO"; then :
10289 xorg_cv_cc_flag_unused_command_line_argument=yes
10290 else
10291 xorg_cv_cc_flag_unused_command_line_argument=no
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10298 CFLAGS="$xorg_testset_save_CFLAGS"
10299 fi
10300
10301 found="no"
10302
10303 if test $found = "no" ; then
10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306 fi
10307
10308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10310 fi
10311
10312 CFLAGS="$CFLAGS -Werror"
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10315 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10316 cacheid=xorg_cv_cc_flag__Werror
10317 if eval \${$cacheid+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 int i;
10323 int
10324 main ()
10325 {
10326
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 eval $cacheid=yes
10333 else
10334 eval $cacheid=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 fi
10339
10340
10341 CFLAGS="$xorg_testset_save_CFLAGS"
10342
10343 eval supported=\$$cacheid
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10345 $as_echo "$supported" >&6; }
10346 if test "$supported" = "yes" ; then
10347 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10348 found="yes"
10349 fi
10350 fi
10351
10352 if test $found = "no" ; then
10353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10355 fi
10356
10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10359 fi
10360
10361 CFLAGS="$CFLAGS -errwarn"
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10364 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10365 cacheid=xorg_cv_cc_flag__errwarn
10366 if eval \${$cacheid+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10371 int i;
10372 int
10373 main ()
10374 {
10375
10376 ;
10377 return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381 eval $cacheid=yes
10382 else
10383 eval $cacheid=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 fi
10388
10389
10390 CFLAGS="$xorg_testset_save_CFLAGS"
10391
10392 eval supported=\$$cacheid
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10394 $as_echo "$supported" >&6; }
10395 if test "$supported" = "yes" ; then
10396 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10397 found="yes"
10398 fi
10399 fi
10400
10401
10402
10403 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10404 # activate it with -Werror, so we add it here explicitly.
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418 xorg_testset_save_CFLAGS="$CFLAGS"
10419
10420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 int i;
10430 _ACEOF
10431 if ac_fn_c_try_compile "$LINENO"; then :
10432 xorg_cv_cc_flag_unknown_warning_option=yes
10433 else
10434 xorg_cv_cc_flag_unknown_warning_option=no
10435 fi
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10441 CFLAGS="$xorg_testset_save_CFLAGS"
10442 fi
10443
10444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447 fi
10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 int i;
10457 _ACEOF
10458 if ac_fn_c_try_compile "$LINENO"; then :
10459 xorg_cv_cc_flag_unused_command_line_argument=yes
10460 else
10461 xorg_cv_cc_flag_unused_command_line_argument=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10468 CFLAGS="$xorg_testset_save_CFLAGS"
10469 fi
10470
10471 found="no"
10472
10473 if test $found = "no" ; then
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 fi
10477
10478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10480 fi
10481
10482 CFLAGS="$CFLAGS -Werror=attributes"
10483
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10485 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10486 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10487 if eval \${$cacheid+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492 int i;
10493 int
10494 main ()
10495 {
10496
10497 ;
10498 return 0;
10499 }
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 eval $cacheid=yes
10503 else
10504 eval $cacheid=no
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 fi
10509
10510
10511 CFLAGS="$xorg_testset_save_CFLAGS"
10512
10513 eval supported=\$$cacheid
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10515 $as_echo "$supported" >&6; }
10516 if test "$supported" = "yes" ; then
10517 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10518 found="yes"
10519 fi
10520 fi
10521
10522
10523
10524 if test "x$STRICT_COMPILE" = "xyes"; then
10525 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10526 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10527 fi
10528
10529
10530
10531
10532
10533
10534 cat >>confdefs.h <<_ACEOF
10535 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10536 _ACEOF
10537
10538 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10539 if test "x$PVM" = "x"; then
10540 PVM="0"
10541 fi
10542
10543 cat >>confdefs.h <<_ACEOF
10544 #define PACKAGE_VERSION_MINOR $PVM
10545 _ACEOF
10546
10547 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10548 if test "x$PVP" = "x"; then
10549 PVP="0"
10550 fi
10551
10552 cat >>confdefs.h <<_ACEOF
10553 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10554 _ACEOF
10555
10556
10557
10558 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10559 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10560 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10561 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10562
10563
10564
10565
10566 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10567 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10568 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10569 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10570 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10571
10572
10573
10574
10575
10576
10577 if test x$APP_MAN_SUFFIX = x ; then
10578 APP_MAN_SUFFIX=1
10579 fi
10580 if test x$APP_MAN_DIR = x ; then
10581 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10582 fi
10583
10584 if test x$LIB_MAN_SUFFIX = x ; then
10585 LIB_MAN_SUFFIX=3
10586 fi
10587 if test x$LIB_MAN_DIR = x ; then
10588 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10589 fi
10590
10591 if test x$FILE_MAN_SUFFIX = x ; then
10592 case $host_os in
10593 solaris*) FILE_MAN_SUFFIX=4 ;;
10594 *) FILE_MAN_SUFFIX=5 ;;
10595 esac
10596 fi
10597 if test x$FILE_MAN_DIR = x ; then
10598 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10599 fi
10600
10601 if test x$MISC_MAN_SUFFIX = x ; then
10602 case $host_os in
10603 solaris*) MISC_MAN_SUFFIX=5 ;;
10604 *) MISC_MAN_SUFFIX=7 ;;
10605 esac
10606 fi
10607 if test x$MISC_MAN_DIR = x ; then
10608 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10609 fi
10610
10611 if test x$DRIVER_MAN_SUFFIX = x ; then
10612 case $host_os in
10613 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10614 *) DRIVER_MAN_SUFFIX=4 ;;
10615 esac
10616 fi
10617 if test x$DRIVER_MAN_DIR = x ; then
10618 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10619 fi
10620
10621 if test x$ADMIN_MAN_SUFFIX = x ; then
10622 case $host_os in
10623 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10624 *) ADMIN_MAN_SUFFIX=8 ;;
10625 esac
10626 fi
10627 if test x$ADMIN_MAN_DIR = x ; then
10628 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10629 fi
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645 XORG_MAN_PAGE="X Version 11"
10646
10647 MAN_SUBSTS="\
10648 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10649 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10650 -e 's|__xservername__|Xorg|g' \
10651 -e 's|__xconfigfile__|xorg.conf|g' \
10652 -e 's|__projectroot__|\$(prefix)|g' \
10653 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10654 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10655 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10656 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10657 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10658 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10659 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10660
10661
10662
10663 # Check whether --enable-silent-rules was given.
10664 if test "${enable_silent_rules+set}" = set; then :
10665 enableval=$enable_silent_rules;
10666 fi
10667
10668 case $enable_silent_rules in # (((
10669 yes) AM_DEFAULT_VERBOSITY=0;;
10670 no) AM_DEFAULT_VERBOSITY=1;;
10671 *) AM_DEFAULT_VERBOSITY=0;;
10672 esac
10673 am_make=${MAKE-make}
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10675 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10676 if ${am_cv_make_support_nested_variables+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if $as_echo 'TRUE=$(BAR$(V))
10680 BAR0=false
10681 BAR1=true
10682 V=1
10683 am__doit:
10684 @$(TRUE)
10685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10686 am_cv_make_support_nested_variables=yes
10687 else
10688 am_cv_make_support_nested_variables=no
10689 fi
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10692 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10693 if test $am_cv_make_support_nested_variables = yes; then
10694 AM_V='$(V)'
10695 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10696 else
10697 AM_V=$AM_DEFAULT_VERBOSITY
10698 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10699 fi
10700 AM_BACKSLASH='\'
10701
10702
10703
10704 # Use POSIX strnlen or the implementation supplied in this module
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
10706 $as_echo_n "checking for working strnlen... " >&6; }
10707 if ${ac_cv_func_strnlen_working+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test "$cross_compiling" = yes; then :
10711 # Guess no on AIX systems, yes otherwise.
10712 case "$host_os" in
10713 aix*) ac_cv_func_strnlen_working=no;;
10714 *) ac_cv_func_strnlen_working=yes;;
10715 esac
10716 else
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 $ac_includes_default
10720 int
10721 main ()
10722 {
10723
10724 #define S "foobar"
10725 #define S_LEN (sizeof S - 1)
10726
10727 /* At least one implementation is buggy: that of AIX 4.3 would
10728 give strnlen (S, 1) == 3. */
10729
10730 int i;
10731 for (i = 0; i < S_LEN + 1; ++i)
10732 {
10733 int expected = i <= S_LEN ? i : S_LEN;
10734 if (strnlen (S, i) != expected)
10735 return 1;
10736 }
10737 return 0;
10738
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_run "$LINENO"; then :
10744 ac_cv_func_strnlen_working=yes
10745 else
10746 ac_cv_func_strnlen_working=no
10747 fi
10748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10749 conftest.$ac_objext conftest.beam conftest.$ac_ext
10750 fi
10751
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
10754 $as_echo "$ac_cv_func_strnlen_working" >&6; }
10755 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
10756 *" strnlen.$ac_objext "* ) ;;
10757 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
10758 ;;
10759 esac
10760
10761
10762 if test "x$ac_cv_func_strnlen_working" = xyes; then
10763
10764 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
10765
10766 fi
10767
10768 # Obtain compiler/linker options for xlsclients dependencies
10769
10770 pkg_failed=no
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5
10772 $as_echo_n "checking for XLSCLIENTS... " >&6; }
10773
10774 if test -n "$XLSCLIENTS_CFLAGS"; then
10775 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS"
10776 elif test -n "$PKG_CONFIG"; then
10777 if test -n "$PKG_CONFIG" && \
10778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
10779 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
10780 ac_status=$?
10781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10782 test $ac_status = 0; }; then
10783 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null`
10784 else
10785 pkg_failed=yes
10786 fi
10787 else
10788 pkg_failed=untried
10789 fi
10790 if test -n "$XLSCLIENTS_LIBS"; then
10791 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS"
10792 elif test -n "$PKG_CONFIG"; then
10793 if test -n "$PKG_CONFIG" && \
10794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
10795 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
10796 ac_status=$?
10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; }; then
10799 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null`
10800 else
10801 pkg_failed=yes
10802 fi
10803 else
10804 pkg_failed=untried
10805 fi
10806
10807
10808
10809 if test $pkg_failed = yes; then
10810
10811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10812 _pkg_short_errors_supported=yes
10813 else
10814 _pkg_short_errors_supported=no
10815 fi
10816 if test $_pkg_short_errors_supported = yes; then
10817 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6" 2>&1`
10818 else
10819 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6" 2>&1`
10820 fi
10821 # Put the nasty error message in config.log where it belongs
10822 echo "$XLSCLIENTS_PKG_ERRORS" >&5
10823
10824 as_fn_error $? "Package requirements (xcb >= 1.6) were not met:
10825
10826 $XLSCLIENTS_PKG_ERRORS
10827
10828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10829 installed software in a non-standard prefix.
10830
10831 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
10832 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
10833 See the pkg-config man page for more details.
10834 " "$LINENO" 5
10835 elif test $pkg_failed = untried; then
10836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10838 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10839 is in your PATH or set the PKG_CONFIG environment variable to the full
10840 path to pkg-config.
10841
10842 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
10843 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
10844 See the pkg-config man page for more details.
10845
10846 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10847 See \`config.log' for more details" "$LINENO" 5; }
10848 else
10849 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS
10850 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852 $as_echo "yes" >&6; }
10853 :
10854 fi
10855
10856 ac_config_files="$ac_config_files Makefile man/Makefile"
10857
10858 cat >confcache <<\_ACEOF
10859 # This file is a shell script that caches the results of configure
10860 # tests run on this system so they can be shared between configure
10861 # scripts and configure runs, see configure's option --config-cache.
10862 # It is not useful on other systems. If it contains results you don't
10863 # want to keep, you may remove or edit it.
10864 #
10865 # config.status only pays attention to the cache file if you give it
10866 # the --recheck option to rerun configure.
10867 #
10868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10870 # following values.
10871
10872 _ACEOF
10873
10874 # The following way of writing the cache mishandles newlines in values,
10875 # but we know of no workaround that is simple, portable, and efficient.
10876 # So, we kill variables containing newlines.
10877 # Ultrix sh set writes to stderr and can't be redirected directly,
10878 # and sets the high bit in the cache file unless we assign to the vars.
10879 (
10880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10881 eval ac_val=\$$ac_var
10882 case $ac_val in #(
10883 *${as_nl}*)
10884 case $ac_var in #(
10885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10887 esac
10888 case $ac_var in #(
10889 _ | IFS | as_nl) ;; #(
10890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10891 *) { eval $ac_var=; unset $ac_var;} ;;
10892 esac ;;
10893 esac
10894 done
10895
10896 (set) 2>&1 |
10897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10898 *${as_nl}ac_space=\ *)
10899 # `set' does not quote correctly, so add quotes: double-quote
10900 # substitution turns \\\\ into \\, and sed turns \\ into \.
10901 sed -n \
10902 "s/'/'\\\\''/g;
10903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10904 ;; #(
10905 *)
10906 # `set' quotes correctly as required by POSIX, so do not add quotes.
10907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10908 ;;
10909 esac |
10910 sort
10911 ) |
10912 sed '
10913 /^ac_cv_env_/b end
10914 t clear
10915 :clear
10916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10917 t end
10918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10919 :end' >>confcache
10920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10921 if test -w "$cache_file"; then
10922 if test "x$cache_file" != "x/dev/null"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10924 $as_echo "$as_me: updating cache $cache_file" >&6;}
10925 if test ! -f "$cache_file" || test -h "$cache_file"; then
10926 cat confcache >"$cache_file"
10927 else
10928 case $cache_file in #(
10929 */* | ?:*)
10930 mv -f confcache "$cache_file"$$ &&
10931 mv -f "$cache_file"$$ "$cache_file" ;; #(
10932 *)
10933 mv -f confcache "$cache_file" ;;
10934 esac
10935 fi
10936 fi
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10940 fi
10941 fi
10942 rm -f confcache
10943
10944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10945 # Let make expand exec_prefix.
10946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10947
10948 DEFS=-DHAVE_CONFIG_H
10949
10950 ac_libobjs=
10951 ac_ltlibobjs=
10952 U=
10953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10954 # 1. Remove the extension, and $U if already installed.
10955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10956 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10958 # will be set to the directory where LIBOBJS objects are built.
10959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10961 done
10962 LIBOBJS=$ac_libobjs
10963
10964 LTLIBOBJS=$ac_ltlibobjs
10965
10966
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10968 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10969 if test -n "$am_sleep_pid"; then
10970 # Hide warnings about reused PIDs.
10971 wait $am_sleep_pid 2>/dev/null
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10974 $as_echo "done" >&6; }
10975 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10976 as_fn_error $? "conditional \"AMDEP\" was never defined.
10977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10978 fi
10979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10980 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10982 fi
10983 if test -n "$EXEEXT"; then
10984 am__EXEEXT_TRUE=
10985 am__EXEEXT_FALSE='#'
10986 else
10987 am__EXEEXT_TRUE='#'
10988 am__EXEEXT_FALSE=
10989 fi
10990
10991 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10992 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10994 fi
10995
10996 : "${CONFIG_STATUS=./config.status}"
10997 ac_write_fail=0
10998 ac_clean_files_save=$ac_clean_files
10999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11002 as_write_fail=0
11003 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11004 #! $SHELL
11005 # Generated by $as_me.
11006 # Run this file to recreate the current configuration.
11007 # Compiler output produced by configure, useful for debugging
11008 # configure, is in config.log if it exists.
11009
11010 debug=false
11011 ac_cs_recheck=false
11012 ac_cs_silent=false
11013
11014 SHELL=\${CONFIG_SHELL-$SHELL}
11015 export SHELL
11016 _ASEOF
11017 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11018 ## -------------------- ##
11019 ## M4sh Initialization. ##
11020 ## -------------------- ##
11021
11022 # Be more Bourne compatible
11023 DUALCASE=1; export DUALCASE # for MKS sh
11024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11025 emulate sh
11026 NULLCMD=:
11027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11028 # is contrary to our usage. Disable this feature.
11029 alias -g '${1+"$@"}'='"$@"'
11030 setopt NO_GLOB_SUBST
11031 else
11032 case `(set -o) 2>/dev/null` in #(
11033 *posix*) :
11034 set -o posix ;; #(
11035 *) :
11036 ;;
11037 esac
11038 fi
11039
11040
11041 as_nl='
11042 '
11043 export as_nl
11044 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11045 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11048 # Prefer a ksh shell builtin over an external printf program on Solaris,
11049 # but without wasting forks for bash or zsh.
11050 if test -z "$BASH_VERSION$ZSH_VERSION" \
11051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11052 as_echo='print -r --'
11053 as_echo_n='print -rn --'
11054 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11055 as_echo='printf %s\n'
11056 as_echo_n='printf %s'
11057 else
11058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11060 as_echo_n='/usr/ucb/echo -n'
11061 else
11062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11063 as_echo_n_body='eval
11064 arg=$1;
11065 case $arg in #(
11066 *"$as_nl"*)
11067 expr "X$arg" : "X\\(.*\\)$as_nl";
11068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11069 esac;
11070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11071 '
11072 export as_echo_n_body
11073 as_echo_n='sh -c $as_echo_n_body as_echo'
11074 fi
11075 export as_echo_body
11076 as_echo='sh -c $as_echo_body as_echo'
11077 fi
11078
11079 # The user is always right.
11080 if test "${PATH_SEPARATOR+set}" != set; then
11081 PATH_SEPARATOR=:
11082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11084 PATH_SEPARATOR=';'
11085 }
11086 fi
11087
11088
11089 # IFS
11090 # We need space, tab and new line, in precisely that order. Quoting is
11091 # there to prevent editors from complaining about space-tab.
11092 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11093 # splitting by setting IFS to empty value.)
11094 IFS=" "" $as_nl"
11095
11096 # Find who we are. Look in the path if we contain no directory separator.
11097 as_myself=
11098 case $0 in #((
11099 *[\\/]* ) as_myself=$0 ;;
11100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11106 done
11107 IFS=$as_save_IFS
11108
11109 ;;
11110 esac
11111 # We did not find ourselves, most probably we were run as `sh COMMAND'
11112 # in which case we are not to be found in the path.
11113 if test "x$as_myself" = x; then
11114 as_myself=$0
11115 fi
11116 if test ! -f "$as_myself"; then
11117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11118 exit 1
11119 fi
11120
11121 # Unset variables that we do not need and which cause bugs (e.g. in
11122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11123 # suppresses any "Segmentation fault" message there. '((' could
11124 # trigger a bug in pdksh 5.2.14.
11125 for as_var in BASH_ENV ENV MAIL MAILPATH
11126 do eval test x\${$as_var+set} = xset \
11127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11128 done
11129 PS1='$ '
11130 PS2='> '
11131 PS4='+ '
11132
11133 # NLS nuisances.
11134 LC_ALL=C
11135 export LC_ALL
11136 LANGUAGE=C
11137 export LANGUAGE
11138
11139 # CDPATH.
11140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11141
11142
11143 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11144 # ----------------------------------------
11145 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11146 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11147 # script with STATUS, using 1 if that was 0.
11148 as_fn_error ()
11149 {
11150 as_status=$1; test $as_status -eq 0 && as_status=1
11151 if test "$4"; then
11152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11154 fi
11155 $as_echo "$as_me: error: $2" >&2
11156 as_fn_exit $as_status
11157 } # as_fn_error
11158
11159
11160 # as_fn_set_status STATUS
11161 # -----------------------
11162 # Set $? to STATUS, without forking.
11163 as_fn_set_status ()
11164 {
11165 return $1
11166 } # as_fn_set_status
11167
11168 # as_fn_exit STATUS
11169 # -----------------
11170 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11171 as_fn_exit ()
11172 {
11173 set +e
11174 as_fn_set_status $1
11175 exit $1
11176 } # as_fn_exit
11177
11178 # as_fn_unset VAR
11179 # ---------------
11180 # Portably unset VAR.
11181 as_fn_unset ()
11182 {
11183 { eval $1=; unset $1;}
11184 }
11185 as_unset=as_fn_unset
11186 # as_fn_append VAR VALUE
11187 # ----------------------
11188 # Append the text in VALUE to the end of the definition contained in VAR. Take
11189 # advantage of any shell optimizations that allow amortized linear growth over
11190 # repeated appends, instead of the typical quadratic growth present in naive
11191 # implementations.
11192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11193 eval 'as_fn_append ()
11194 {
11195 eval $1+=\$2
11196 }'
11197 else
11198 as_fn_append ()
11199 {
11200 eval $1=\$$1\$2
11201 }
11202 fi # as_fn_append
11203
11204 # as_fn_arith ARG...
11205 # ------------------
11206 # Perform arithmetic evaluation on the ARGs, and store the result in the
11207 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11208 # must be portable across $(()) and expr.
11209 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11210 eval 'as_fn_arith ()
11211 {
11212 as_val=$(( $* ))
11213 }'
11214 else
11215 as_fn_arith ()
11216 {
11217 as_val=`expr "$@" || test $? -eq 1`
11218 }
11219 fi # as_fn_arith
11220
11221
11222 if expr a : '\(a\)' >/dev/null 2>&1 &&
11223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11224 as_expr=expr
11225 else
11226 as_expr=false
11227 fi
11228
11229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11230 as_basename=basename
11231 else
11232 as_basename=false
11233 fi
11234
11235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11236 as_dirname=dirname
11237 else
11238 as_dirname=false
11239 fi
11240
11241 as_me=`$as_basename -- "$0" ||
11242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11243 X"$0" : 'X\(//\)$' \| \
11244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11245 $as_echo X/"$0" |
11246 sed '/^.*\/\([^/][^/]*\)\/*$/{
11247 s//\1/
11248 q
11249 }
11250 /^X\/\(\/\/\)$/{
11251 s//\1/
11252 q
11253 }
11254 /^X\/\(\/\).*/{
11255 s//\1/
11256 q
11257 }
11258 s/.*/./; q'`
11259
11260 # Avoid depending upon Character Ranges.
11261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11264 as_cr_digits='0123456789'
11265 as_cr_alnum=$as_cr_Letters$as_cr_digits
11266
11267 ECHO_C= ECHO_N= ECHO_T=
11268 case `echo -n x` in #(((((
11269 -n*)
11270 case `echo 'xy\c'` in
11271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11272 xy) ECHO_C='\c';;
11273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11274 ECHO_T=' ';;
11275 esac;;
11276 *)
11277 ECHO_N='-n';;
11278 esac
11279
11280 rm -f conf$$ conf$$.exe conf$$.file
11281 if test -d conf$$.dir; then
11282 rm -f conf$$.dir/conf$$.file
11283 else
11284 rm -f conf$$.dir
11285 mkdir conf$$.dir 2>/dev/null
11286 fi
11287 if (echo >conf$$.file) 2>/dev/null; then
11288 if ln -s conf$$.file conf$$ 2>/dev/null; then
11289 as_ln_s='ln -s'
11290 # ... but there are two gotchas:
11291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11293 # In both cases, we have to default to `cp -p'.
11294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11295 as_ln_s='cp -p'
11296 elif ln conf$$.file conf$$ 2>/dev/null; then
11297 as_ln_s=ln
11298 else
11299 as_ln_s='cp -p'
11300 fi
11301 else
11302 as_ln_s='cp -p'
11303 fi
11304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11305 rmdir conf$$.dir 2>/dev/null
11306
11307
11308 # as_fn_mkdir_p
11309 # -------------
11310 # Create "$as_dir" as a directory, including parents if necessary.
11311 as_fn_mkdir_p ()
11312 {
11313
11314 case $as_dir in #(
11315 -*) as_dir=./$as_dir;;
11316 esac
11317 test -d "$as_dir" || eval $as_mkdir_p || {
11318 as_dirs=
11319 while :; do
11320 case $as_dir in #(
11321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11322 *) as_qdir=$as_dir;;
11323 esac
11324 as_dirs="'$as_qdir' $as_dirs"
11325 as_dir=`$as_dirname -- "$as_dir" ||
11326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11327 X"$as_dir" : 'X\(//\)[^/]' \| \
11328 X"$as_dir" : 'X\(//\)$' \| \
11329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11330 $as_echo X"$as_dir" |
11331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11332 s//\1/
11333 q
11334 }
11335 /^X\(\/\/\)[^/].*/{
11336 s//\1/
11337 q
11338 }
11339 /^X\(\/\/\)$/{
11340 s//\1/
11341 q
11342 }
11343 /^X\(\/\).*/{
11344 s//\1/
11345 q
11346 }
11347 s/.*/./; q'`
11348 test -d "$as_dir" && break
11349 done
11350 test -z "$as_dirs" || eval "mkdir $as_dirs"
11351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11352
11353
11354 } # as_fn_mkdir_p
11355 if mkdir -p . 2>/dev/null; then
11356 as_mkdir_p='mkdir -p "$as_dir"'
11357 else
11358 test -d ./-p && rmdir ./-p
11359 as_mkdir_p=false
11360 fi
11361
11362 if test -x / >/dev/null 2>&1; then
11363 as_test_x='test -x'
11364 else
11365 if ls -dL / >/dev/null 2>&1; then
11366 as_ls_L_option=L
11367 else
11368 as_ls_L_option=
11369 fi
11370 as_test_x='
11371 eval sh -c '\''
11372 if test -d "$1"; then
11373 test -d "$1/.";
11374 else
11375 case $1 in #(
11376 -*)set "./$1";;
11377 esac;
11378 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11379 ???[sx]*):;;*)false;;esac;fi
11380 '\'' sh
11381 '
11382 fi
11383 as_executable_p=$as_test_x
11384
11385 # Sed expression to map a string onto a valid CPP name.
11386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11387
11388 # Sed expression to map a string onto a valid variable name.
11389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11390
11391
11392 exec 6>&1
11393 ## ----------------------------------- ##
11394 ## Main body of $CONFIG_STATUS script. ##
11395 ## ----------------------------------- ##
11396 _ASEOF
11397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11398
11399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11400 # Save the log message, to keep $0 and so on meaningful, and to
11401 # report actual input values of CONFIG_FILES etc. instead of their
11402 # values after options handling.
11403 ac_log="
11404 This file was extended by xlsclients $as_me 1.1.3, which was
11405 generated by GNU Autoconf 2.68. Invocation command line was
11406
11407 CONFIG_FILES = $CONFIG_FILES
11408 CONFIG_HEADERS = $CONFIG_HEADERS
11409 CONFIG_LINKS = $CONFIG_LINKS
11410 CONFIG_COMMANDS = $CONFIG_COMMANDS
11411 $ $0 $@
11412
11413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11414 "
11415
11416 _ACEOF
11417
11418 case $ac_config_files in *"
11419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11420 esac
11421
11422 case $ac_config_headers in *"
11423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11424 esac
11425
11426
11427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11428 # Files that config.status was made for.
11429 config_files="$ac_config_files"
11430 config_headers="$ac_config_headers"
11431 config_commands="$ac_config_commands"
11432
11433 _ACEOF
11434
11435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11436 ac_cs_usage="\
11437 \`$as_me' instantiates files and other configuration actions
11438 from templates according to the current configuration. Unless the files
11439 and actions are specified as TAGs, all are instantiated by default.
11440
11441 Usage: $0 [OPTION]... [TAG]...
11442
11443 -h, --help print this help, then exit
11444 -V, --version print version number and configuration settings, then exit
11445 --config print configuration, then exit
11446 -q, --quiet, --silent
11447 do not print progress messages
11448 -d, --debug don't remove temporary files
11449 --recheck update $as_me by reconfiguring in the same conditions
11450 --file=FILE[:TEMPLATE]
11451 instantiate the configuration file FILE
11452 --header=FILE[:TEMPLATE]
11453 instantiate the configuration header FILE
11454
11455 Configuration files:
11456 $config_files
11457
11458 Configuration headers:
11459 $config_headers
11460
11461 Configuration commands:
11462 $config_commands
11463
11464 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11465
11466 _ACEOF
11467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11469 ac_cs_version="\\
11470 xlsclients config.status 1.1.3
11471 configured by $0, generated by GNU Autoconf 2.68,
11472 with options \\"\$ac_cs_config\\"
11473
11474 Copyright (C) 2010 Free Software Foundation, Inc.
11475 This config.status script is free software; the Free Software Foundation
11476 gives unlimited permission to copy, distribute and modify it."
11477
11478 ac_pwd='$ac_pwd'
11479 srcdir='$srcdir'
11480 INSTALL='$INSTALL'
11481 MKDIR_P='$MKDIR_P'
11482 AWK='$AWK'
11483 test -n "\$AWK" || AWK=awk
11484 _ACEOF
11485
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 # The default lists apply if the user does not specify any file.
11488 ac_need_defaults=:
11489 while test $# != 0
11490 do
11491 case $1 in
11492 --*=?*)
11493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11495 ac_shift=:
11496 ;;
11497 --*=)
11498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11499 ac_optarg=
11500 ac_shift=:
11501 ;;
11502 *)
11503 ac_option=$1
11504 ac_optarg=$2
11505 ac_shift=shift
11506 ;;
11507 esac
11508
11509 case $ac_option in
11510 # Handling of the options.
11511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11512 ac_cs_recheck=: ;;
11513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11514 $as_echo "$ac_cs_version"; exit ;;
11515 --config | --confi | --conf | --con | --co | --c )
11516 $as_echo "$ac_cs_config"; exit ;;
11517 --debug | --debu | --deb | --de | --d | -d )
11518 debug=: ;;
11519 --file | --fil | --fi | --f )
11520 $ac_shift
11521 case $ac_optarg in
11522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11523 '') as_fn_error $? "missing file argument" ;;
11524 esac
11525 as_fn_append CONFIG_FILES " '$ac_optarg'"
11526 ac_need_defaults=false;;
11527 --header | --heade | --head | --hea )
11528 $ac_shift
11529 case $ac_optarg in
11530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11531 esac
11532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11533 ac_need_defaults=false;;
11534 --he | --h)
11535 # Conflict between --help and --header
11536 as_fn_error $? "ambiguous option: \`$1'
11537 Try \`$0 --help' for more information.";;
11538 --help | --hel | -h )
11539 $as_echo "$ac_cs_usage"; exit ;;
11540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11542 ac_cs_silent=: ;;
11543
11544 # This is an error.
11545 -*) as_fn_error $? "unrecognized option: \`$1'
11546 Try \`$0 --help' for more information." ;;
11547
11548 *) as_fn_append ac_config_targets " $1"
11549 ac_need_defaults=false ;;
11550
11551 esac
11552 shift
11553 done
11554
11555 ac_configure_extra_args=
11556
11557 if $ac_cs_silent; then
11558 exec 6>/dev/null
11559 ac_configure_extra_args="$ac_configure_extra_args --silent"
11560 fi
11561
11562 _ACEOF
11563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11564 if \$ac_cs_recheck; then
11565 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11566 shift
11567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11568 CONFIG_SHELL='$SHELL'
11569 export CONFIG_SHELL
11570 exec "\$@"
11571 fi
11572
11573 _ACEOF
11574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575 exec 5>>config.log
11576 {
11577 echo
11578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11579 ## Running $as_me. ##
11580 _ASBOX
11581 $as_echo "$ac_log"
11582 } >&5
11583
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 #
11587 # INIT-COMMANDS
11588 #
11589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11590
11591 _ACEOF
11592
11593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594
11595 # Handling of arguments.
11596 for ac_config_target in $ac_config_targets
11597 do
11598 case $ac_config_target in
11599 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11600 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11601 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11602 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11603
11604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11605 esac
11606 done
11607
11608
11609 # If the user did not use the arguments to specify the items to instantiate,
11610 # then the envvar interface is used. Set only those that are not.
11611 # We use the long form for the default assignment because of an extremely
11612 # bizarre bug on SunOS 4.1.3.
11613 if $ac_need_defaults; then
11614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11617 fi
11618
11619 # Have a temporary directory for convenience. Make it in the build tree
11620 # simply because there is no reason against having it here, and in addition,
11621 # creating and moving files from /tmp can sometimes cause problems.
11622 # Hook for its removal unless debugging.
11623 # Note that there is a small window in which the directory will not be cleaned:
11624 # after its creation but before its name has been assigned to `$tmp'.
11625 $debug ||
11626 {
11627 tmp= ac_tmp=
11628 trap 'exit_status=$?
11629 : "${ac_tmp:=$tmp}"
11630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11631 ' 0
11632 trap 'as_fn_exit 1' 1 2 13 15
11633 }
11634 # Create a (secure) tmp directory for tmp files.
11635
11636 {
11637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11638 test -d "$tmp"
11639 } ||
11640 {
11641 tmp=./conf$$-$RANDOM
11642 (umask 077 && mkdir "$tmp")
11643 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11644 ac_tmp=$tmp
11645
11646 # Set up the scripts for CONFIG_FILES section.
11647 # No need to generate them if there are no CONFIG_FILES.
11648 # This happens for instance with `./config.status config.h'.
11649 if test -n "$CONFIG_FILES"; then
11650
11651
11652 ac_cr=`echo X | tr X '\015'`
11653 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11654 # But we know of no other shell where ac_cr would be empty at this
11655 # point, so we can use a bashism as a fallback.
11656 if test "x$ac_cr" = x; then
11657 eval ac_cr=\$\'\\r\'
11658 fi
11659 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11660 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11661 ac_cs_awk_cr='\\r'
11662 else
11663 ac_cs_awk_cr=$ac_cr
11664 fi
11665
11666 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11667 _ACEOF
11668
11669
11670 {
11671 echo "cat >conf$$subs.awk <<_ACEOF" &&
11672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11673 echo "_ACEOF"
11674 } >conf$$subs.sh ||
11675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11677 ac_delim='%!_!# '
11678 for ac_last_try in false false false false false :; do
11679 . ./conf$$subs.sh ||
11680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11681
11682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11683 if test $ac_delim_n = $ac_delim_num; then
11684 break
11685 elif $ac_last_try; then
11686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11687 else
11688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11689 fi
11690 done
11691 rm -f conf$$subs.sh
11692
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11695 _ACEOF
11696 sed -n '
11697 h
11698 s/^/S["/; s/!.*/"]=/
11699 p
11700 g
11701 s/^[^!]*!//
11702 :repl
11703 t repl
11704 s/'"$ac_delim"'$//
11705 t delim
11706 :nl
11707 h
11708 s/\(.\{148\}\)..*/\1/
11709 t more1
11710 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11711 p
11712 n
11713 b repl
11714 :more1
11715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11716 p
11717 g
11718 s/.\{148\}//
11719 t nl
11720 :delim
11721 h
11722 s/\(.\{148\}\)..*/\1/
11723 t more2
11724 s/["\\]/\\&/g; s/^/"/; s/$/"/
11725 p
11726 b
11727 :more2
11728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11729 p
11730 g
11731 s/.\{148\}//
11732 t delim
11733 ' <conf$$subs.awk | sed '
11734 /^[^""]/{
11735 N
11736 s/\n//
11737 }
11738 ' >>$CONFIG_STATUS || ac_write_fail=1
11739 rm -f conf$$subs.awk
11740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741 _ACAWK
11742 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11743 for (key in S) S_is_set[key] = 1
11744 FS = ""
11745
11746 }
11747 {
11748 line = $ 0
11749 nfields = split(line, field, "@")
11750 substed = 0
11751 len = length(field[1])
11752 for (i = 2; i < nfields; i++) {
11753 key = field[i]
11754 keylen = length(key)
11755 if (S_is_set[key]) {
11756 value = S[key]
11757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11758 len += length(value) + length(field[++i])
11759 substed = 1
11760 } else
11761 len += 1 + keylen
11762 }
11763
11764 print line
11765 }
11766
11767 _ACAWK
11768 _ACEOF
11769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11770 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11772 else
11773 cat
11774 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11776 _ACEOF
11777
11778 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11779 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11780 # trailing colons and then remove the whole line if VPATH becomes empty
11781 # (actually we leave an empty line to preserve line numbers).
11782 if test "x$srcdir" = x.; then
11783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11784 h
11785 s///
11786 s/^/:/
11787 s/[ ]*$/:/
11788 s/:\$(srcdir):/:/g
11789 s/:\${srcdir}:/:/g
11790 s/:@srcdir@:/:/g
11791 s/^:*//
11792 s/:*$//
11793 x
11794 s/\(=[ ]*\).*/\1/
11795 G
11796 s/\n//
11797 s/^[^=]*=[ ]*$//
11798 }'
11799 fi
11800
11801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802 fi # test -n "$CONFIG_FILES"
11803
11804 # Set up the scripts for CONFIG_HEADERS section.
11805 # No need to generate them if there are no CONFIG_HEADERS.
11806 # This happens for instance with `./config.status Makefile'.
11807 if test -n "$CONFIG_HEADERS"; then
11808 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11809 BEGIN {
11810 _ACEOF
11811
11812 # Transform confdefs.h into an awk script `defines.awk', embedded as
11813 # here-document in config.status, that substitutes the proper values into
11814 # config.h.in to produce config.h.
11815
11816 # Create a delimiter string that does not exist in confdefs.h, to ease
11817 # handling of long lines.
11818 ac_delim='%!_!# '
11819 for ac_last_try in false false :; do
11820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11821 if test -z "$ac_tt"; then
11822 break
11823 elif $ac_last_try; then
11824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11825 else
11826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11827 fi
11828 done
11829
11830 # For the awk script, D is an array of macro values keyed by name,
11831 # likewise P contains macro parameters if any. Preserve backslash
11832 # newline sequences.
11833
11834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11835 sed -n '
11836 s/.\{148\}/&'"$ac_delim"'/g
11837 t rset
11838 :rset
11839 s/^[ ]*#[ ]*define[ ][ ]*/ /
11840 t def
11841 d
11842 :def
11843 s/\\$//
11844 t bsnl
11845 s/["\\]/\\&/g
11846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11847 D["\1"]=" \3"/p
11848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11849 d
11850 :bsnl
11851 s/["\\]/\\&/g
11852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11853 D["\1"]=" \3\\\\\\n"\\/p
11854 t cont
11855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11856 t cont
11857 d
11858 :cont
11859 n
11860 s/.\{148\}/&'"$ac_delim"'/g
11861 t clear
11862 :clear
11863 s/\\$//
11864 t bsnlc
11865 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11866 d
11867 :bsnlc
11868 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11869 b cont
11870 ' <confdefs.h | sed '
11871 s/'"$ac_delim"'/"\\\
11872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11873
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 for (key in D) D_is_set[key] = 1
11876 FS = ""
11877 }
11878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11879 line = \$ 0
11880 split(line, arg, " ")
11881 if (arg[1] == "#") {
11882 defundef = arg[2]
11883 mac1 = arg[3]
11884 } else {
11885 defundef = substr(arg[1], 2)
11886 mac1 = arg[2]
11887 }
11888 split(mac1, mac2, "(") #)
11889 macro = mac2[1]
11890 prefix = substr(line, 1, index(line, defundef) - 1)
11891 if (D_is_set[macro]) {
11892 # Preserve the white space surrounding the "#".
11893 print prefix "define", macro P[macro] D[macro]
11894 next
11895 } else {
11896 # Replace #undef with comments. This is necessary, for example,
11897 # in the case of _POSIX_SOURCE, which is predefined and required
11898 # on some systems where configure will not decide to define it.
11899 if (defundef == "undef") {
11900 print "/*", prefix defundef, macro, "*/"
11901 next
11902 }
11903 }
11904 }
11905 { print }
11906 _ACAWK
11907 _ACEOF
11908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11910 fi # test -n "$CONFIG_HEADERS"
11911
11912
11913 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11914 shift
11915 for ac_tag
11916 do
11917 case $ac_tag in
11918 :[FHLC]) ac_mode=$ac_tag; continue;;
11919 esac
11920 case $ac_mode$ac_tag in
11921 :[FHL]*:*);;
11922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11923 :[FH]-) ac_tag=-:-;;
11924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11925 esac
11926 ac_save_IFS=$IFS
11927 IFS=:
11928 set x $ac_tag
11929 IFS=$ac_save_IFS
11930 shift
11931 ac_file=$1
11932 shift
11933
11934 case $ac_mode in
11935 :L) ac_source=$1;;
11936 :[FH])
11937 ac_file_inputs=
11938 for ac_f
11939 do
11940 case $ac_f in
11941 -) ac_f="$ac_tmp/stdin";;
11942 *) # Look for the file first in the build tree, then in the source tree
11943 # (if the path is not absolute). The absolute path cannot be DOS-style,
11944 # because $ac_f cannot contain `:'.
11945 test -f "$ac_f" ||
11946 case $ac_f in
11947 [\\/$]*) false;;
11948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11949 esac ||
11950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11951 esac
11952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11953 as_fn_append ac_file_inputs " '$ac_f'"
11954 done
11955
11956 # Let's still pretend it is `configure' which instantiates (i.e., don't
11957 # use $as_me), people would be surprised to read:
11958 # /* config.h. Generated by config.status. */
11959 configure_input='Generated from '`
11960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11961 `' by configure.'
11962 if test x"$ac_file" != x-; then
11963 configure_input="$ac_file. $configure_input"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11965 $as_echo "$as_me: creating $ac_file" >&6;}
11966 fi
11967 # Neutralize special characters interpreted by sed in replacement strings.
11968 case $configure_input in #(
11969 *\&* | *\|* | *\\* )
11970 ac_sed_conf_input=`$as_echo "$configure_input" |
11971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11972 *) ac_sed_conf_input=$configure_input;;
11973 esac
11974
11975 case $ac_tag in
11976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11978 esac
11979 ;;
11980 esac
11981
11982 ac_dir=`$as_dirname -- "$ac_file" ||
11983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11984 X"$ac_file" : 'X\(//\)[^/]' \| \
11985 X"$ac_file" : 'X\(//\)$' \| \
11986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11987 $as_echo X"$ac_file" |
11988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11989 s//\1/
11990 q
11991 }
11992 /^X\(\/\/\)[^/].*/{
11993 s//\1/
11994 q
11995 }
11996 /^X\(\/\/\)$/{
11997 s//\1/
11998 q
11999 }
12000 /^X\(\/\).*/{
12001 s//\1/
12002 q
12003 }
12004 s/.*/./; q'`
12005 as_dir="$ac_dir"; as_fn_mkdir_p
12006 ac_builddir=.
12007
12008 case "$ac_dir" in
12009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12010 *)
12011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12012 # A ".." for each directory in $ac_dir_suffix.
12013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12014 case $ac_top_builddir_sub in
12015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12017 esac ;;
12018 esac
12019 ac_abs_top_builddir=$ac_pwd
12020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12021 # for backward compatibility:
12022 ac_top_builddir=$ac_top_build_prefix
12023
12024 case $srcdir in
12025 .) # We are building in place.
12026 ac_srcdir=.
12027 ac_top_srcdir=$ac_top_builddir_sub
12028 ac_abs_top_srcdir=$ac_pwd ;;
12029 [\\/]* | ?:[\\/]* ) # Absolute name.
12030 ac_srcdir=$srcdir$ac_dir_suffix;
12031 ac_top_srcdir=$srcdir
12032 ac_abs_top_srcdir=$srcdir ;;
12033 *) # Relative name.
12034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12035 ac_top_srcdir=$ac_top_build_prefix$srcdir
12036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12037 esac
12038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12039
12040
12041 case $ac_mode in
12042 :F)
12043 #
12044 # CONFIG_FILE
12045 #
12046
12047 case $INSTALL in
12048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12050 esac
12051 ac_MKDIR_P=$MKDIR_P
12052 case $MKDIR_P in
12053 [\\/$]* | ?:[\\/]* ) ;;
12054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12055 esac
12056 _ACEOF
12057
12058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059 # If the template does not know about datarootdir, expand it.
12060 # FIXME: This hack should be removed a few years after 2.60.
12061 ac_datarootdir_hack=; ac_datarootdir_seen=
12062 ac_sed_dataroot='
12063 /datarootdir/ {
12064 p
12065 q
12066 }
12067 /@datadir@/p
12068 /@docdir@/p
12069 /@infodir@/p
12070 /@localedir@/p
12071 /@mandir@/p'
12072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12073 *datarootdir*) ac_datarootdir_seen=yes;;
12074 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12077 _ACEOF
12078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12079 ac_datarootdir_hack='
12080 s&@datadir@&$datadir&g
12081 s&@docdir@&$docdir&g
12082 s&@infodir@&$infodir&g
12083 s&@localedir@&$localedir&g
12084 s&@mandir@&$mandir&g
12085 s&\\\${datarootdir}&$datarootdir&g' ;;
12086 esac
12087 _ACEOF
12088
12089 # Neutralize VPATH when `$srcdir' = `.'.
12090 # Shell code in configure.ac might set extrasub.
12091 # FIXME: do we really want to maintain this feature?
12092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12093 ac_sed_extra="$ac_vpsub
12094 $extrasub
12095 _ACEOF
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 :t
12098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12099 s|@configure_input@|$ac_sed_conf_input|;t t
12100 s&@top_builddir@&$ac_top_builddir_sub&;t t
12101 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12102 s&@srcdir@&$ac_srcdir&;t t
12103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12104 s&@top_srcdir@&$ac_top_srcdir&;t t
12105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12106 s&@builddir@&$ac_builddir&;t t
12107 s&@abs_builddir@&$ac_abs_builddir&;t t
12108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12109 s&@INSTALL@&$ac_INSTALL&;t t
12110 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12111 $ac_datarootdir_hack
12112 "
12113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12115
12116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12119 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12121 which seems to be undefined. Please make sure it is defined" >&5
12122 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12123 which seems to be undefined. Please make sure it is defined" >&2;}
12124
12125 rm -f "$ac_tmp/stdin"
12126 case $ac_file in
12127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12129 esac \
12130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12131 ;;
12132 :H)
12133 #
12134 # CONFIG_HEADER
12135 #
12136 if test x"$ac_file" != x-; then
12137 {
12138 $as_echo "/* $configure_input */" \
12139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12140 } >"$ac_tmp/config.h" \
12141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12144 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12145 else
12146 rm -f "$ac_file"
12147 mv "$ac_tmp/config.h" "$ac_file" \
12148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12149 fi
12150 else
12151 $as_echo "/* $configure_input */" \
12152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12153 || as_fn_error $? "could not create -" "$LINENO" 5
12154 fi
12155 # Compute "$ac_file"'s index in $config_headers.
12156 _am_arg="$ac_file"
12157 _am_stamp_count=1
12158 for _am_header in $config_headers :; do
12159 case $_am_header in
12160 $_am_arg | $_am_arg:* )
12161 break ;;
12162 * )
12163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12164 esac
12165 done
12166 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12167 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12168 X"$_am_arg" : 'X\(//\)[^/]' \| \
12169 X"$_am_arg" : 'X\(//\)$' \| \
12170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12171 $as_echo X"$_am_arg" |
12172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12173 s//\1/
12174 q
12175 }
12176 /^X\(\/\/\)[^/].*/{
12177 s//\1/
12178 q
12179 }
12180 /^X\(\/\/\)$/{
12181 s//\1/
12182 q
12183 }
12184 /^X\(\/\).*/{
12185 s//\1/
12186 q
12187 }
12188 s/.*/./; q'`/stamp-h$_am_stamp_count
12189 ;;
12190
12191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12192 $as_echo "$as_me: executing $ac_file commands" >&6;}
12193 ;;
12194 esac
12195
12196
12197 case $ac_file$ac_mode in
12198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12199 # Older Autoconf quotes --file arguments for eval, but not when files
12200 # are listed without --file. Let's play safe and only enable the eval
12201 # if we detect the quoting.
12202 case $CONFIG_FILES in
12203 *\'*) eval set x "$CONFIG_FILES" ;;
12204 *) set x $CONFIG_FILES ;;
12205 esac
12206 shift
12207 for mf
12208 do
12209 # Strip MF so we end up with the name of the file.
12210 mf=`echo "$mf" | sed -e 's/:.*$//'`
12211 # Check whether this is an Automake generated Makefile or not.
12212 # We used to match only the files named 'Makefile.in', but
12213 # some people rename them; so instead we look at the file content.
12214 # Grep'ing the first line is not enough: some people post-process
12215 # each Makefile.in and add a new line on top of each file to say so.
12216 # Grep'ing the whole file is not good either: AIX grep has a line
12217 # limit of 2048, but all sed's we know have understand at least 4000.
12218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12219 dirpart=`$as_dirname -- "$mf" ||
12220 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12221 X"$mf" : 'X\(//\)[^/]' \| \
12222 X"$mf" : 'X\(//\)$' \| \
12223 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12224 $as_echo X"$mf" |
12225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12226 s//\1/
12227 q
12228 }
12229 /^X\(\/\/\)[^/].*/{
12230 s//\1/
12231 q
12232 }
12233 /^X\(\/\/\)$/{
12234 s//\1/
12235 q
12236 }
12237 /^X\(\/\).*/{
12238 s//\1/
12239 q
12240 }
12241 s/.*/./; q'`
12242 else
12243 continue
12244 fi
12245 # Extract the definition of DEPDIR, am__include, and am__quote
12246 # from the Makefile without running 'make'.
12247 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12248 test -z "$DEPDIR" && continue
12249 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12250 test -z "$am__include" && continue
12251 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12252 # Find all dependency output files, they are included files with
12253 # $(DEPDIR) in their names. We invoke sed twice because it is the
12254 # simplest approach to changing $(DEPDIR) to its actual value in the
12255 # expansion.
12256 for file in `sed -n "
12257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12259 # Make sure the directory exists.
12260 test -f "$dirpart/$file" && continue
12261 fdir=`$as_dirname -- "$file" ||
12262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12263 X"$file" : 'X\(//\)[^/]' \| \
12264 X"$file" : 'X\(//\)$' \| \
12265 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12266 $as_echo X"$file" |
12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12268 s//\1/
12269 q
12270 }
12271 /^X\(\/\/\)[^/].*/{
12272 s//\1/
12273 q
12274 }
12275 /^X\(\/\/\)$/{
12276 s//\1/
12277 q
12278 }
12279 /^X\(\/\).*/{
12280 s//\1/
12281 q
12282 }
12283 s/.*/./; q'`
12284 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12285 # echo "creating $dirpart/$file"
12286 echo '# dummy' > "$dirpart/$file"
12287 done
12288 done
12289 }
12290 ;;
12291
12292 esac
12293 done # for ac_tag
12294
12295
12296 as_fn_exit 0
12297 _ACEOF
12298 ac_clean_files=$ac_clean_files_save
12299
12300 test $ac_write_fail = 0 ||
12301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12302
12303
12304 # configure is writing to config.log, and then calls config.status.
12305 # config.status does its own redirection, appending to config.log.
12306 # Unfortunately, on DOS this fails, as config.log is still kept open
12307 # by configure, so config.status won't be able to write to it; its
12308 # output is simply discarded. So we exec the FD to /dev/null,
12309 # effectively closing config.log, so it can be properly (re)opened and
12310 # appended to by config.status. When coming back to configure, we
12311 # need to make the FD available again.
12312 if test "$no_create" != yes; then
12313 ac_cs_success=:
12314 ac_config_status_args=
12315 test "$silent" = yes &&
12316 ac_config_status_args="$ac_config_status_args --quiet"
12317 exec 5>/dev/null
12318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12319 exec 5>>config.log
12320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12321 # would make configure fail if this is the last instruction.
12322 $ac_cs_success || as_fn_exit 1
12323 fi
12324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12327 fi
12328
12329