configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xconsole 1.0.6.
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='xconsole'
563 PACKAGE_TARNAME='xconsole'
564 PACKAGE_VERSION='1.0.6'
565 PACKAGE_STRING='xconsole 1.0.6'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 appdefaultdir
611 APPDEFS_LIBS
612 APPDEFS_CFLAGS
613 XCONSOLE_LIBS
614 XCONSOLE_CFLAGS
615 MAN_SUBSTS
616 XORG_MAN_PAGE
617 ADMIN_MAN_DIR
618 DRIVER_MAN_DIR
619 MISC_MAN_DIR
620 FILE_MAN_DIR
621 LIB_MAN_DIR
622 APP_MAN_DIR
623 ADMIN_MAN_SUFFIX
624 DRIVER_MAN_SUFFIX
625 MISC_MAN_SUFFIX
626 FILE_MAN_SUFFIX
627 LIB_MAN_SUFFIX
628 APP_MAN_SUFFIX
629 SED
630 host_os
631 host_vendor
632 host_cpu
633 host
634 build_os
635 build_vendor
636 build_cpu
637 build
638 INSTALL_CMD
639 PKG_CONFIG
640 CHANGELOG_CMD
641 STRICT_CFLAGS
642 CWARNFLAGS
643 BASE_CFLAGS
644 EGREP
645 GREP
646 CPP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 AM_BACKSLASH
668 AM_DEFAULT_VERBOSITY
669 AM_DEFAULT_V
670 AM_V
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_silent_rules
736 enable_maintainer_mode
737 enable_dependency_tracking
738 enable_selective_werror
739 enable_strict_compilation
740 with_appdefaultdir
741 '
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
745 CC
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP
751 PKG_CONFIG
752 XCONSOLE_CFLAGS
753 XCONSOLE_LIBS
754 APPDEFS_CFLAGS
755 APPDEFS_LIBS'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
813 ac_prev=
814 continue
815 fi
816
817 case $ac_option in
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 *=) ac_optarg= ;;
820 *) ac_optarg=yes ;;
821 esac
822
823 # Accept the important Cygnus configure options, so we can diagnose typos.
824
825 case $ac_dashdash$ac_option in
826 --)
827 ac_dashdash=yes ;;
828
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 ac_prev=bindir ;;
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 bindir=$ac_optarg ;;
833
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
838
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
845
846 --config-cache | -C)
847 cache_file=config.cache ;;
848
849 -datadir | --datadir | --datadi | --datad)
850 ac_prev=datadir ;;
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
853
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
860
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
869 *"
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=no ;;
876
877 -docdir | --docdir | --docdi | --doc | --do)
878 ac_prev=docdir ;;
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 docdir=$ac_optarg ;;
881
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 ac_prev=dvidir ;;
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 dvidir=$ac_optarg ;;
886
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=\$ac_optarg ;;
902
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
911
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
915
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
922
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
927
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
933
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
940
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
945
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
950
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
957
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
962
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
969
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
974
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
978
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
982
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
986
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
995
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1000
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1007
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1014
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1031
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1036
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1041
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1045
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
1050 sbindir=$ac_optarg ;;
1051
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
1061 sharedstatedir=$ac_optarg ;;
1062
1063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
1066 site=$ac_optarg ;;
1067
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1072
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1079
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1084
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1087
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1090
1091 -with-* | --with-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=\$ac_optarg ;;
1106
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=no ;;
1122
1123 --x)
1124 # Obsolete; use --with-x.
1125 with_x=yes ;;
1126
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1133
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1140
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143 ;;
1144
1145 *=*)
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 esac
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1154
1155 *)
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 ;;
1162
1163 esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1173 no) ;;
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1184 do
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1187 case $ac_val in
1188 */ )
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1191 esac
1192 # Be sure to have absolute directory names.
1193 case $ac_val in
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 esac
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used" >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1215 fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\).*/{
1255 s//\1/
1256 q
1257 }
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1262 fi
1263 else
1264 ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures xconsole 1.0.6 to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1352
1353 cat <<\_ACEOF
1354
1355 Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359
1360 System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of xconsole 1.0.6:";;
1369 esac
1370 cat <<\_ACEOF
1371
1372 Optional Features:
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-silent-rules less verbose build output (undo: "make V=1")
1377 --disable-silent-rules verbose build output (undo: "make V=0")
1378 --enable-maintainer-mode
1379 enable make rules and dependencies not useful (and
1380 sometimes confusing) to the casual installer
1381 --enable-dependency-tracking
1382 do not reject slow dependency extractors
1383 --disable-dependency-tracking
1384 speeds up one-time build
1385 --disable-selective-werror
1386 Turn off selective compiler errors. (default:
1387 enabled)
1388 --enable-strict-compilation
1389 Enable all warnings from compiler and make them
1390 errors (default: disabled)
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-appdefaultdir=<pathname>
1396 specify directory for app-defaults files (default is
1397 autodetected)
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408 PKG_CONFIG path to pkg-config utility
1409 XCONSOLE_CFLAGS
1410 C compiler flags for XCONSOLE, overriding pkg-config
1411 XCONSOLE_LIBS
1412 linker flags for XCONSOLE, overriding pkg-config
1413 APPDEFS_CFLAGS
1414 C compiler flags for APPDEFS, overriding pkg-config
1415 APPDEFS_LIBS
1416 linker flags for APPDEFS, overriding pkg-config
1417
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1420
1421 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 xconsole configure 1.0.6
1485 generated by GNU Autoconf 2.68
1486
1487 Copyright (C) 2010 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1537 # ---------------------------------------------
1538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1539 # accordingly.
1540 ac_fn_c_check_decl ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 as_decl_name=`echo $2|sed 's/ *(.*//'`
1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1547 if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1549 else
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1552 $4
1553 int
1554 main ()
1555 {
1556 #ifndef $as_decl_name
1557 #ifdef __cplusplus
1558 (void) $as_decl_use;
1559 #else
1560 (void) $as_decl_name;
1561 #endif
1562 #endif
1563
1564 ;
1565 return 0;
1566 }
1567 _ACEOF
1568 if ac_fn_c_try_compile "$LINENO"; then :
1569 eval "$3=yes"
1570 else
1571 eval "$3=no"
1572 fi
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574 fi
1575 eval ac_res=\$$3
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
1580 } # ac_fn_c_check_decl
1581
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_cpp ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } > conftest.i && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_cpp
1618
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1623 ac_fn_c_try_run ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1634 ac_status=$?
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=$ac_status
1654 fi
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_run
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 $as_test_x conftest$ac_exeext
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808 # the include files in INCLUDES and setting the cache variable VAR
1809 # accordingly.
1810 ac_fn_c_check_header_mongrel ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if eval \${$3+:} false; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 else
1823 # Is the header compilable?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825 $as_echo_n "checking $2 usability... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833 else
1834 ac_header_compiler=no
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838 $as_echo "$ac_header_compiler" >&6; }
1839
1840 # Is the header present?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842 $as_echo_n "checking $2 presence... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849 else
1850 ac_header_preproc=no
1851 fi
1852 rm -f conftest.err conftest.i conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854 $as_echo "$ac_header_preproc" >&6; }
1855
1856 # So? What about this header?
1857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ;;
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ( $as_echo "## ---------------------------------------------------------------------- ##
1876 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1877 ## ---------------------------------------------------------------------- ##"
1878 ) | sed "s/^/$as_me: WARNING: /" >&2
1879 ;;
1880 esac
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=\$ac_header_compiler"
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_header_mongrel
1895 cat >config.log <<_ACEOF
1896 This file contains any messages produced by compilers while
1897 running configure, to aid debugging if configure makes a mistake.
1898
1899 It was created by xconsole $as_me 1.0.6, which was
1900 generated by GNU Autoconf 2.68. Invocation command line was
1901
1902 $ $0 $@
1903
1904 _ACEOF
1905 exec 5>>config.log
1906 {
1907 cat <<_ASUNAME
1908 ## --------- ##
1909 ## Platform. ##
1910 ## --------- ##
1911
1912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1920
1921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928
1929 _ASUNAME
1930
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 $as_echo "PATH: $as_dir"
1937 done
1938 IFS=$as_save_IFS
1939
1940 } >&5
1941
1942 cat >&5 <<_ACEOF
1943
1944
1945 ## ----------- ##
1946 ## Core tests. ##
1947 ## ----------- ##
1948
1949 _ACEOF
1950
1951
1952 # Keep a trace of the command line.
1953 # Strip out --no-create and --no-recursion so they do not pile up.
1954 # Strip out --silent because we don't want to record it for future runs.
1955 # Also quote any args containing shell meta-characters.
1956 # Make two passes to allow for proper duplicate-argument suppression.
1957 ac_configure_args=
1958 ac_configure_args0=
1959 ac_configure_args1=
1960 ac_must_keep_next=false
1961 for ac_pass in 1 2
1962 do
1963 for ac_arg
1964 do
1965 case $ac_arg in
1966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 | -silent | --silent | --silen | --sile | --sil)
1969 continue ;;
1970 *\'*)
1971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 esac
1973 case $ac_pass in
1974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1975 2)
1976 as_fn_append ac_configure_args1 " '$ac_arg'"
1977 if test $ac_must_keep_next = true; then
1978 ac_must_keep_next=false # Got value, back to normal.
1979 else
1980 case $ac_arg in
1981 *=* | --config-cache | -C | -disable-* | --disable-* \
1982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1984 | -with-* | --with-* | -without-* | --without-* | --x)
1985 case "$ac_configure_args0 " in
1986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1987 esac
1988 ;;
1989 -* ) ac_must_keep_next=true ;;
1990 esac
1991 fi
1992 as_fn_append ac_configure_args " '$ac_arg'"
1993 ;;
1994 esac
1995 done
1996 done
1997 { ac_configure_args0=; unset ac_configure_args0;}
1998 { ac_configure_args1=; unset ac_configure_args1;}
1999
2000 # When interrupted or exit'd, cleanup temporary files, and complete
2001 # config.log. We remove comments because anyway the quotes in there
2002 # would cause problems or look ugly.
2003 # WARNING: Use '\'' to represent an apostrophe within the trap.
2004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2005 trap 'exit_status=$?
2006 # Save into config.log some information that might help in debugging.
2007 {
2008 echo
2009
2010 $as_echo "## ---------------- ##
2011 ## Cache variables. ##
2012 ## ---------------- ##"
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2015 (
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2038 *)
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 ;;
2041 esac |
2042 sort
2043 )
2044 echo
2045
2046 $as_echo "## ----------------- ##
2047 ## Output variables. ##
2048 ## ----------------- ##"
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 $as_echo "## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##"
2064 echo
2065 for ac_var in $ac_subst_files
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074 fi
2075
2076 if test -s confdefs.h; then
2077 $as_echo "## ----------- ##
2078 ## confdefs.h. ##
2079 ## ----------- ##"
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091 ' 0
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2096
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2099
2100 $as_echo "/* confdefs.h */" > confdefs.h
2101
2102 # Predefined preprocessor variables.
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2126 _ACEOF
2127
2128
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134 # We do not want a PATH search for config.site.
2135 case $CONFIG_SITE in #((
2136 -*) ac_site_file1=./$CONFIG_SITE;;
2137 */*) ac_site_file1=$CONFIG_SITE;;
2138 *) ac_site_file1=./$CONFIG_SITE;;
2139 esac
2140 elif test "x$prefix" != xNONE; then
2141 ac_site_file1=$prefix/share/config.site
2142 ac_site_file2=$prefix/etc/config.site
2143 else
2144 ac_site_file1=$ac_default_prefix/share/config.site
2145 ac_site_file2=$ac_default_prefix/etc/config.site
2146 fi
2147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2148 do
2149 test "x$ac_site_file" = xNONE && continue
2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2154 . "$ac_site_file" \
2155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 as_fn_error $? "failed to load site script $ac_site_file
2158 See \`config.log' for more details" "$LINENO" 5; }
2159 fi
2160 done
2161
2162 if test -r "$cache_file"; then
2163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167 $as_echo "$as_me: loading cache $cache_file" >&6;}
2168 case $cache_file in
2169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
2171 esac
2172 fi
2173 else
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175 $as_echo "$as_me: creating cache $cache_file" >&6;}
2176 >$cache_file
2177 fi
2178
2179 # Check that the precious variables saved in the cache have kept the same
2180 # value.
2181 ac_cache_corrupted=false
2182 for ac_var in $ac_precious_vars; do
2183 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2184 eval ac_new_set=\$ac_env_${ac_var}_set
2185 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2186 eval ac_new_val=\$ac_env_${ac_var}_value
2187 case $ac_old_set,$ac_new_set in
2188 set,)
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2192 ,set)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,);;
2197 *)
2198 if test "x$ac_old_val" != "x$ac_new_val"; then
2199 # differences in whitespace do not lead to failure.
2200 ac_old_val_w=`echo x $ac_old_val`
2201 ac_new_val_w=`echo x $ac_new_val`
2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205 ac_cache_corrupted=:
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209 eval $ac_var=\$ac_old_val
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2212 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2214 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2215 fi;;
2216 esac
2217 # Pass precious variables to config.status.
2218 if test "$ac_new_set" = set; then
2219 case $ac_new_val in
2220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2221 *) ac_arg=$ac_var=$ac_new_val ;;
2222 esac
2223 case " $ac_configure_args " in
2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2225 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226 esac
2227 fi
2228 done
2229 if $ac_cache_corrupted; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2235 fi
2236 ## -------------------- ##
2237 ## Main body of script. ##
2238 ## -------------------- ##
2239
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
2246
2247
2248 ac_config_headers="$ac_config_headers config.h"
2249
2250
2251 # Initialize Automake
2252 am__api_version='1.14'
2253
2254 ac_aux_dir=
2255 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2256 if test -f "$ac_dir/install-sh"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/install-sh -c"
2259 break
2260 elif test -f "$ac_dir/install.sh"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/install.sh -c"
2263 break
2264 elif test -f "$ac_dir/shtool"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/shtool install -c"
2267 break
2268 fi
2269 done
2270 if test -z "$ac_aux_dir"; then
2271 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2272 fi
2273
2274 # These three variables are undocumented and unsupported,
2275 # and are intended to be withdrawn in a future Autoconf release.
2276 # They can cause serious problems if a builder's source tree is in a directory
2277 # whose full name contains unusual characters.
2278 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2279 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2280 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2281
2282
2283 # Find a good install program. We prefer a C program (faster),
2284 # so one script is as good as another. But avoid the broken or
2285 # incompatible versions:
2286 # SysV /etc/install, /usr/sbin/install
2287 # SunOS /usr/etc/install
2288 # IRIX /sbin/install
2289 # AIX /bin/install
2290 # AmigaOS /C/install, which installs bootblocks on floppy discs
2291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2294 # OS/2's system install, which has a completely different semantic
2295 # ./install, which can be erroneously created by make from ./install.sh.
2296 # Reject install programs that cannot install multiple files.
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2299 if test -z "$INSTALL"; then
2300 if ${ac_cv_path_install+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 # Account for people who put trailing slashes in PATH elements.
2309 case $as_dir/ in #((
2310 ./ | .// | /[cC]/* | \
2311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2312 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2313 /usr/ucb/* ) ;;
2314 *)
2315 # OSF1 and SCO ODT 3.0 have their own names for install.
2316 # Don't use installbsd from OSF since it installs stuff as root
2317 # by default.
2318 for ac_prog in ginstall scoinst install; do
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2321 if test $ac_prog = install &&
2322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323 # AIX install. It has an incompatible calling convention.
2324 :
2325 elif test $ac_prog = install &&
2326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327 # program-specific install script used by HP pwplus--don't use.
2328 :
2329 else
2330 rm -rf conftest.one conftest.two conftest.dir
2331 echo one > conftest.one
2332 echo two > conftest.two
2333 mkdir conftest.dir
2334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2335 test -s conftest.one && test -s conftest.two &&
2336 test -s conftest.dir/conftest.one &&
2337 test -s conftest.dir/conftest.two
2338 then
2339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340 break 3
2341 fi
2342 fi
2343 fi
2344 done
2345 done
2346 ;;
2347 esac
2348
2349 done
2350 IFS=$as_save_IFS
2351
2352 rm -rf conftest.one conftest.two conftest.dir
2353
2354 fi
2355 if test "${ac_cv_path_install+set}" = set; then
2356 INSTALL=$ac_cv_path_install
2357 else
2358 # As a last resort, use the slow shell script. Don't cache a
2359 # value for INSTALL within a source directory, because that will
2360 # break other packages using the cache if that directory is
2361 # removed, or if the value is a relative name.
2362 INSTALL=$ac_install_sh
2363 fi
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2366 $as_echo "$INSTALL" >&6; }
2367
2368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2369 # It thinks the first close brace ends the variable substitution.
2370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2371
2372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2373
2374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2377 $as_echo_n "checking whether build environment is sane... " >&6; }
2378 # Reject unsafe characters in $srcdir or the absolute working directory
2379 # name. Accept space and tab only in the latter.
2380 am_lf='
2381 '
2382 case `pwd` in
2383 *[\\\"\#\$\&\'\`$am_lf]*)
2384 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2385 esac
2386 case $srcdir in
2387 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2388 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2389 esac
2390
2391 # Do 'set' in a subshell so we don't clobber the current shell's
2392 # arguments. Must try -L first in case configure is actually a
2393 # symlink; some systems play weird games with the mod time of symlinks
2394 # (eg FreeBSD returns the mod time of the symlink's containing
2395 # directory).
2396 if (
2397 am_has_slept=no
2398 for am_try in 1 2; do
2399 echo "timestamp, slept: $am_has_slept" > conftest.file
2400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401 if test "$*" = "X"; then
2402 # -L didn't work.
2403 set X `ls -t "$srcdir/configure" conftest.file`
2404 fi
2405 if test "$*" != "X $srcdir/configure conftest.file" \
2406 && test "$*" != "X conftest.file $srcdir/configure"; then
2407
2408 # If neither matched, then we have a broken ls. This can happen
2409 # if, for instance, CONFIG_SHELL is bash and it inherits a
2410 # broken ls alias from the environment. This has actually
2411 # happened. Such a system could not be considered "sane".
2412 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2413 alias in your environment" "$LINENO" 5
2414 fi
2415 if test "$2" = conftest.file || test $am_try -eq 2; then
2416 break
2417 fi
2418 # Just in case.
2419 sleep 1
2420 am_has_slept=yes
2421 done
2422 test "$2" = conftest.file
2423 )
2424 then
2425 # Ok.
2426 :
2427 else
2428 as_fn_error $? "newly created file is older than distributed files!
2429 Check your system clock" "$LINENO" 5
2430 fi
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2432 $as_echo "yes" >&6; }
2433 # If we didn't sleep, we still need to ensure time stamps of config.status and
2434 # generated files are strictly newer.
2435 am_sleep_pid=
2436 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2437 ( sleep 1 ) &
2438 am_sleep_pid=$!
2439 fi
2440
2441 rm -f conftest.file
2442
2443 test "$program_prefix" != NONE &&
2444 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2445 # Use a double $ so make ignores it.
2446 test "$program_suffix" != NONE &&
2447 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2448 # Double any \ or $.
2449 # By default was `s,x,x', remove it if useless.
2450 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2451 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2452
2453 # expand $ac_aux_dir to an absolute path
2454 am_aux_dir=`cd $ac_aux_dir && pwd`
2455
2456 if test x"${MISSING+set}" != xset; then
2457 case $am_aux_dir in
2458 *\ * | *\ *)
2459 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2460 *)
2461 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2462 esac
2463 fi
2464 # Use eval to expand $SHELL
2465 if eval "$MISSING --is-lightweight"; then
2466 am_missing_run="$MISSING "
2467 else
2468 am_missing_run=
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2470 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2471 fi
2472
2473 if test x"${install_sh}" != xset; then
2474 case $am_aux_dir in
2475 *\ * | *\ *)
2476 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2477 *)
2478 install_sh="\${SHELL} $am_aux_dir/install-sh"
2479 esac
2480 fi
2481
2482 # Installed binaries are usually stripped using 'strip' when the user
2483 # run "make install-strip". However 'strip' might not be the right
2484 # tool to use in cross-compilation environments, therefore Automake
2485 # will honor the 'STRIP' environment variable to overrule this program.
2486 if test "$cross_compiling" != no; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}strip; ac_word=$2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if ${ac_cv_prog_STRIP+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test -n "$STRIP"; then
2496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 STRIP=$ac_cv_prog_STRIP
2516 if test -n "$STRIP"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2518 $as_echo "$STRIP" >&6; }
2519 else
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2522 fi
2523
2524
2525 fi
2526 if test -z "$ac_cv_prog_STRIP"; then
2527 ac_ct_STRIP=$STRIP
2528 # Extract the first word of "strip", so it can be a program name with args.
2529 set dummy strip; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test -n "$ac_ct_STRIP"; then
2536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_STRIP="strip"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2556 if test -n "$ac_ct_STRIP"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2558 $as_echo "$ac_ct_STRIP" >&6; }
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 fi
2563
2564 if test "x$ac_ct_STRIP" = x; then
2565 STRIP=":"
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573 STRIP=$ac_ct_STRIP
2574 fi
2575 else
2576 STRIP="$ac_cv_prog_STRIP"
2577 fi
2578
2579 fi
2580 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2583 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2584 if test -z "$MKDIR_P"; then
2585 if ${ac_cv_path_mkdir+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in mkdir gmkdir; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2596 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2597 'mkdir (GNU coreutils) '* | \
2598 'mkdir (coreutils) '* | \
2599 'mkdir (fileutils) '4.1*)
2600 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601 break 3;;
2602 esac
2603 done
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609
2610 test -d ./--version && rmdir ./--version
2611 if test "${ac_cv_path_mkdir+set}" = set; then
2612 MKDIR_P="$ac_cv_path_mkdir -p"
2613 else
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for MKDIR_P within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 MKDIR_P="$ac_install_sh -d"
2619 fi
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2622 $as_echo "$MKDIR_P" >&6; }
2623
2624 for ac_prog in gawk mawk nawk awk
2625 do
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_AWK+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$AWK"; then
2634 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_AWK="$ac_prog"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 AWK=$ac_cv_prog_AWK
2654 if test -n "$AWK"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2656 $as_echo "$AWK" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662
2663 test -n "$AWK" && break
2664 done
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2667 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2668 set x ${MAKE-make}
2669 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2670 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat >conftest.make <<\_ACEOF
2674 SHELL = /bin/sh
2675 all:
2676 @echo '@@@%%%=$(MAKE)=@@@%%%'
2677 _ACEOF
2678 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2679 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2680 *@@@%%%=?*=@@@%%%*)
2681 eval ac_cv_prog_make_${ac_make}_set=yes;;
2682 *)
2683 eval ac_cv_prog_make_${ac_make}_set=no;;
2684 esac
2685 rm -f conftest.make
2686 fi
2687 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689 $as_echo "yes" >&6; }
2690 SET_MAKE=
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 SET_MAKE="MAKE=${MAKE-make}"
2695 fi
2696
2697 rm -rf .tst 2>/dev/null
2698 mkdir .tst 2>/dev/null
2699 if test -d .tst; then
2700 am__leading_dot=.
2701 else
2702 am__leading_dot=_
2703 fi
2704 rmdir .tst 2>/dev/null
2705
2706 # Check whether --enable-silent-rules was given.
2707 if test "${enable_silent_rules+set}" = set; then :
2708 enableval=$enable_silent_rules;
2709 fi
2710
2711 case $enable_silent_rules in # (((
2712 yes) AM_DEFAULT_VERBOSITY=0;;
2713 no) AM_DEFAULT_VERBOSITY=1;;
2714 *) AM_DEFAULT_VERBOSITY=1;;
2715 esac
2716 am_make=${MAKE-make}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2718 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2719 if ${am_cv_make_support_nested_variables+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if $as_echo 'TRUE=$(BAR$(V))
2723 BAR0=false
2724 BAR1=true
2725 V=1
2726 am__doit:
2727 @$(TRUE)
2728 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2729 am_cv_make_support_nested_variables=yes
2730 else
2731 am_cv_make_support_nested_variables=no
2732 fi
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2735 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2736 if test $am_cv_make_support_nested_variables = yes; then
2737 AM_V='$(V)'
2738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2739 else
2740 AM_V=$AM_DEFAULT_VERBOSITY
2741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2742 fi
2743 AM_BACKSLASH='\'
2744
2745 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2746 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2747 # is not polluted with repeated "-I."
2748 am__isrc=' -I$(srcdir)'
2749 # test to see if srcdir already configured
2750 if test -f $srcdir/config.status; then
2751 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2752 fi
2753 fi
2754
2755 # test whether we have cygpath
2756 if test -z "$CYGPATH_W"; then
2757 if (cygpath --version) >/dev/null 2>/dev/null; then
2758 CYGPATH_W='cygpath -w'
2759 else
2760 CYGPATH_W=echo
2761 fi
2762 fi
2763
2764
2765 # Define the identity of the package.
2766 PACKAGE='xconsole'
2767 VERSION='1.0.6'
2768
2769
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE "$PACKAGE"
2772 _ACEOF
2773
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define VERSION "$VERSION"
2777 _ACEOF
2778
2779 # Some tools Automake needs.
2780
2781 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2782
2783
2784 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2785
2786
2787 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2788
2789
2790 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2791
2792
2793 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2794
2795 # For better backward compatibility. To be removed once Automake 1.9.x
2796 # dies out for good. For more background, see:
2797 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2798 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2799 mkdir_p='$(MKDIR_P)'
2800
2801 # We need awk for the "check" target. The system "awk" is bad on
2802 # some platforms.
2803 # Always define AMTAR for backward compatibility. Yes, it's still used
2804 # in the wild :-( We should find a proper way to deprecate it ...
2805 AMTAR='$${TAR-tar}'
2806
2807
2808 # We'll loop over all known methods to create a tar archive until one works.
2809 _am_tools='gnutar pax cpio none'
2810
2811 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2812
2813
2814
2815
2816
2817
2818 # POSIX will say in a future version that running "rm -f" with no argument
2819 # is OK; and we want to be able to make that assumption in our Makefile
2820 # recipes. So use an aggressive probe to check that the usage we want is
2821 # actually supported "in the wild" to an acceptable degree.
2822 # See automake bug#10828.
2823 # To make any issue more visible, cause the running configure to be aborted
2824 # by default if the 'rm' program in use doesn't match our expectations; the
2825 # user can still override this though.
2826 if rm -f && rm -fr && rm -rf; then : OK; else
2827 cat >&2 <<'END'
2828 Oops!
2829
2830 Your 'rm' program seems unable to run without file operands specified
2831 on the command line, even when the '-f' option is present. This is contrary
2832 to the behaviour of most rm programs out there, and not conforming with
2833 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2834
2835 Please tell bug-automake@gnu.org about your system, including the value
2836 of your $PATH and any error possibly output before this message. This
2837 can help us improve future automake versions.
2838
2839 END
2840 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2841 echo 'Configuration will proceed anyway, since you have set the' >&2
2842 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2843 echo >&2
2844 else
2845 cat >&2 <<'END'
2846 Aborting the configuration process, to ensure you take notice of the issue.
2847
2848 You can download and install GNU coreutils to get an 'rm' implementation
2849 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2850
2851 If you want to complete the configuration process using your problematic
2852 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2853 to "yes", and re-run configure.
2854
2855 END
2856 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2857 fi
2858 fi
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862 # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2865 else
2866 USE_MAINTAINER_MODE=no
2867 fi
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871 if test $USE_MAINTAINER_MODE = yes; then
2872 MAINTAINER_MODE_TRUE=
2873 MAINTAINER_MODE_FALSE='#'
2874 else
2875 MAINTAINER_MODE_TRUE='#'
2876 MAINTAINER_MODE_FALSE=
2877 fi
2878
2879 MAINT=$MAINTAINER_MODE_TRUE
2880
2881
2882
2883 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895 DEPDIR="${am__leading_dot}deps"
2896
2897 ac_config_commands="$ac_config_commands depfiles"
2898
2899
2900 am_make=${MAKE-make}
2901 cat > confinc << 'END'
2902 am__doit:
2903 @echo this is the am__doit target
2904 .PHONY: am__doit
2905 END
2906 # If we don't find an include directive, just comment out the code.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2908 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2909 am__include="#"
2910 am__quote=
2911 _am_result=none
2912 # First try GNU make style include.
2913 echo "include confinc" > confmf
2914 # Ignore all kinds of additional output from 'make'.
2915 case `$am_make -s -f confmf 2> /dev/null` in #(
2916 *the\ am__doit\ target*)
2917 am__include=include
2918 am__quote=
2919 _am_result=GNU
2920 ;;
2921 esac
2922 # Now try BSD make style include.
2923 if test "$am__include" = "#"; then
2924 echo '.include "confinc"' > confmf
2925 case `$am_make -s -f confmf 2> /dev/null` in #(
2926 *the\ am__doit\ target*)
2927 am__include=.include
2928 am__quote="\""
2929 _am_result=BSD
2930 ;;
2931 esac
2932 fi
2933
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2936 $as_echo "$_am_result" >&6; }
2937 rm -f confinc confmf
2938
2939 # Check whether --enable-dependency-tracking was given.
2940 if test "${enable_dependency_tracking+set}" = set; then :
2941 enableval=$enable_dependency_tracking;
2942 fi
2943
2944 if test "x$enable_dependency_tracking" != xno; then
2945 am_depcomp="$ac_aux_dir/depcomp"
2946 AMDEPBACKSLASH='\'
2947 am__nodep='_no'
2948 fi
2949 if test "x$enable_dependency_tracking" != xno; then
2950 AMDEP_TRUE=
2951 AMDEP_FALSE='#'
2952 else
2953 AMDEP_TRUE='#'
2954 AMDEP_FALSE=
2955 fi
2956
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 if test -z "$ac_cv_prog_CC"; then
3003 ac_ct_CC=$CC
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3050 fi
3051 else
3052 CC="$ac_cv_prog_CC"
3053 fi
3054
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_CC="${ac_tool_prefix}cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 fi
3096 if test -z "$CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 ac_prog_rejected=no
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116 ac_prog_rejected=yes
3117 continue
3118 fi
3119 ac_cv_prog_CC="cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 if test $ac_prog_rejected = yes; then
3128 # We found a bogon in the path, so make sure we never use it.
3129 set dummy $ac_cv_prog_CC
3130 shift
3131 if test $# != 0; then
3132 # We chose a different compiler from the bogus one.
3133 # However, it has the same basename, so the bogon will be chosen
3134 # first if we set CC to just the basename; use the full file name.
3135 shift
3136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137 fi
3138 fi
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 for ac_prog in cl.exe
3155 do
3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 test -n "$CC" && break
3194 done
3195 fi
3196 if test -z "$CC"; then
3197 ac_ct_CC=$CC
3198 for ac_prog in cl.exe
3199 do
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_ac_ct_CC="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 test -n "$ac_ct_CC" && break
3238 done
3239
3240 if test "x$ac_ct_CC" = x; then
3241 CC=""
3242 else
3243 case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3250 fi
3251 fi
3252
3253 fi
3254
3255
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details" "$LINENO" 5; }
3260
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 for ac_option in --version -v -V -qversion; do
3266 { { ac_try="$ac_compiler $ac_option >&5"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 ac_status=$?
3275 if test -s conftest.err; then
3276 sed '10a\
3277 ... rest of stderr output deleted ...
3278 10q' conftest.err >conftest.er1
3279 cat conftest.er1 >&5
3280 fi
3281 rm -f conftest.er1 conftest.err
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 done
3285
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288
3289 int
3290 main ()
3291 {
3292
3293 ;
3294 return 0;
3295 }
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { { ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link_default") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3336 do
3337 test -f "$ac_file" || continue
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340 ;;
3341 [ab].out )
3342 # We found the default executable, but exeext='' is most
3343 # certainly right.
3344 break;;
3345 *.* )
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 then :; else
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 fi
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3354 # actually working.
3355 break;;
3356 * )
3357 break;;
3358 esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362 else
3363 ac_file=''
3364 fi
3365 if test -z "$ac_file"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error 77 "C compiler cannot create executables
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3380 $as_echo_n "checking for C compiler default output file name... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3382 $as_echo "$ac_file" >&6; }
3383 ac_exeext=$ac_cv_exeext
3384
3385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3386 ac_clean_files=$ac_clean_files_save
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3388 $as_echo_n "checking for suffix of executables... " >&6; }
3389 if { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 # `rm'.
3404 for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 break;;
3410 * ) break;;
3411 esac
3412 done
3413 else
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details" "$LINENO" 5; }
3418 fi
3419 rm -f conftest conftest$ac_cv_exeext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3421 $as_echo "$ac_cv_exeext" >&6; }
3422
3423 rm -f conftest.$ac_ext
3424 EXEEXT=$ac_cv_exeext
3425 ac_exeext=$EXEEXT
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #include <stdio.h>
3429 int
3430 main ()
3431 {
3432 FILE *f = fopen ("conftest.out", "w");
3433 return ferror (f) || fclose (f) != 0;
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 ac_clean_files="$ac_clean_files conftest.out"
3440 # Check that the compiler produces executables we can run. If not, either
3441 # the compiler is broken, or we cross compile.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3443 $as_echo_n "checking whether we are cross compiling... " >&6; }
3444 if test "$cross_compiling" != yes; then
3445 { { ac_try="$ac_link"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }
3456 if { ac_try='./conftest$ac_cv_exeext'
3457 { { case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_try") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; }; then
3467 cross_compiling=no
3468 else
3469 if test "$cross_compiling" = maybe; then
3470 cross_compiling=yes
3471 else
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details" "$LINENO" 5; }
3477 fi
3478 fi
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3481 $as_echo "$cross_compiling" >&6; }
3482
3483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3484 ac_clean_files=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3486 $as_echo_n "checking for suffix of object files... " >&6; }
3487 if ${ac_cv_objext+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.o conftest.obj
3502 if { { ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compile") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 for ac_file in conftest.o conftest.obj conftest.*; do
3514 test -f "$ac_file" || continue;
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3518 break;;
3519 esac
3520 done
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of object files: cannot compile
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3535 ac_objext=$OBJEXT
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3538 if ${ac_cv_c_compiler_gnu+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547 #ifndef __GNUC__
3548 choke me
3549 #endif
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_compiler_gnu=yes
3557 else
3558 ac_compiler_gnu=no
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3566 if test $ac_compiler_gnu = yes; then
3567 GCC=yes
3568 else
3569 GCC=
3570 fi
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3575 if ${ac_cv_prog_cc_g+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3580 ac_cv_prog_cc_g=no
3581 CFLAGS="-g"
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_g=yes
3595 else
3596 CFLAGS=""
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609
3610 else
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 $as_echo "$ac_cv_prog_cc_g" >&6; }
3636 if test "$ac_test_CFLAGS" = set; then
3637 CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639 if test "$GCC" = yes; then
3640 CFLAGS="-g -O2"
3641 else
3642 CFLAGS="-g"
3643 fi
3644 else
3645 if test "$GCC" = yes; then
3646 CFLAGS="-O2"
3647 else
3648 CFLAGS=
3649 fi
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3653 if ${ac_cv_prog_cc_c89+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 ac_cv_prog_cc_c89=no
3657 ac_save_CC=$CC
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #include <stdarg.h>
3661 #include <stdio.h>
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3665 struct buf { int x; };
3666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3667 static char *e (p, i)
3668 char **p;
3669 int i;
3670 {
3671 return p[i];
3672 }
3673 static char *f (char * (*g) (char **, int), char **p, ...)
3674 {
3675 char *s;
3676 va_list v;
3677 va_start (v,p);
3678 s = g (p, va_arg (v,int));
3679 va_end (v);
3680 return s;
3681 }
3682
3683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3684 function prototypes and stuff, but not '\xHH' hex character constants.
3685 These don't provoke an error unfortunately, instead are silently treated
3686 as 'x'. The following induces an error, until -std is added to get
3687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3688 array size at least. It's necessary to write '\x00'==0 to get something
3689 that's true only with -std. */
3690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3691
3692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3693 inside strings and character constants. */
3694 #define FOO(x) 'x'
3695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3696
3697 int test (int i, double x);
3698 struct s1 {int (*f) (int a);};
3699 struct s2 {int (*f) (double a);};
3700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3701 int argc;
3702 char **argv;
3703 int
3704 main ()
3705 {
3706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713 do
3714 CC="$ac_save_CC $ac_arg"
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_cv_prog_cc_c89=$ac_arg
3717 fi
3718 rm -f core conftest.err conftest.$ac_objext
3719 test "x$ac_cv_prog_cc_c89" != "xno" && break
3720 done
3721 rm -f conftest.$ac_ext
3722 CC=$ac_save_CC
3723
3724 fi
3725 # AC_CACHE_VAL
3726 case "x$ac_cv_prog_cc_c89" in
3727 x)
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3729 $as_echo "none needed" >&6; } ;;
3730 xno)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3732 $as_echo "unsupported" >&6; } ;;
3733 *)
3734 CC="$CC $ac_cv_prog_cc_c89"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3737 esac
3738 if test "x$ac_cv_prog_cc_c89" != xno; then :
3739
3740 fi
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3754 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3755 if ${am_cv_prog_cc_c_o+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 # Make sure it works both with $CC and with simple cc.
3770 # Following AC_PROG_CC_C_O, we do the test twice because some
3771 # compilers refuse to overwrite an existing .o file with -o,
3772 # though they will create one.
3773 am_cv_prog_cc_c_o=yes
3774 for am_i in 1 2; do
3775 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3776 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } \
3780 && test -f conftest2.$ac_objext; then
3781 : OK
3782 else
3783 am_cv_prog_cc_c_o=no
3784 break
3785 fi
3786 done
3787 rm -f core conftest*
3788 unset am_i
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3791 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3792 if test "$am_cv_prog_cc_c_o" != yes; then
3793 # Losing compiler, so override with the script.
3794 # FIXME: It is wrong to rewrite CC.
3795 # But if we don't then we get into trouble of one sort or another.
3796 # A longer-term fix would be to have automake use am__CC in this case,
3797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3798 CC="$am_aux_dir/compile $CC"
3799 fi
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806
3807 depcc="$CC" am_compiler_list=
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3810 $as_echo_n "checking dependency style of $depcc... " >&6; }
3811 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3815 # We make a subdir and do the tests there. Otherwise we can end up
3816 # making bogus files that we don't know about and never remove. For
3817 # instance it was reported that on HP-UX the gcc test will end up
3818 # making a dummy file named 'D' -- because '-MD' means "put the output
3819 # in D".
3820 rm -rf conftest.dir
3821 mkdir conftest.dir
3822 # Copy depcomp to subdir because otherwise we won't find it if we're
3823 # using a relative directory.
3824 cp "$am_depcomp" conftest.dir
3825 cd conftest.dir
3826 # We will build objects and dependencies in a subdirectory because
3827 # it helps to detect inapplicable dependency modes. For instance
3828 # both Tru64's cc and ICC support -MD to output dependencies as a
3829 # side effect of compilation, but ICC will put the dependencies in
3830 # the current directory while Tru64 will put them in the object
3831 # directory.
3832 mkdir sub
3833
3834 am_cv_CC_dependencies_compiler_type=none
3835 if test "$am_compiler_list" = ""; then
3836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3837 fi
3838 am__universal=false
3839 case " $depcc " in #(
3840 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3841 esac
3842
3843 for depmode in $am_compiler_list; do
3844 # Setup a source with many dependencies, because some compilers
3845 # like to wrap large dependency lists on column 80 (with \), and
3846 # we should not choose a depcomp mode which is confused by this.
3847 #
3848 # We need to recreate these files for each test, as the compiler may
3849 # overwrite some of them when testing with obscure command lines.
3850 # This happens at least with the AIX C compiler.
3851 : > sub/conftest.c
3852 for i in 1 2 3 4 5 6; do
3853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3854 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3855 # Solaris 10 /bin/sh.
3856 echo '/* dummy */' > sub/conftst$i.h
3857 done
3858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3859
3860 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3861 # mode. It turns out that the SunPro C++ compiler does not properly
3862 # handle '-M -o', and we need to detect this. Also, some Intel
3863 # versions had trouble with output in subdirs.
3864 am__obj=sub/conftest.${OBJEXT-o}
3865 am__minus_obj="-o $am__obj"
3866 case $depmode in
3867 gcc)
3868 # This depmode causes a compiler race in universal mode.
3869 test "$am__universal" = false || continue
3870 ;;
3871 nosideeffect)
3872 # After this tag, mechanisms are not by side-effect, so they'll
3873 # only be used when explicitly requested.
3874 if test "x$enable_dependency_tracking" = xyes; then
3875 continue
3876 else
3877 break
3878 fi
3879 ;;
3880 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3881 # This compiler won't grok '-c -o', but also, the minuso test has
3882 # not run yet. These depmodes are late enough in the game, and
3883 # so weak that their functioning should not be impacted.
3884 am__obj=conftest.${OBJEXT-o}
3885 am__minus_obj=
3886 ;;
3887 none) break ;;
3888 esac
3889 if depmode=$depmode \
3890 source=sub/conftest.c object=$am__obj \
3891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3893 >/dev/null 2>conftest.err &&
3894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3898 # icc doesn't choke on unknown options, it will just issue warnings
3899 # or remarks (even with -Werror). So we grep stderr for any message
3900 # that says an option was ignored or not supported.
3901 # When given -MP, icc 7.0 and 7.1 complain thusly:
3902 # icc: Command line warning: ignoring option '-M'; no argument required
3903 # The diagnosis changed in icc 8.0:
3904 # icc: Command line remark: option '-MP' not supported
3905 if (grep 'ignoring option' conftest.err ||
3906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3907 am_cv_CC_dependencies_compiler_type=$depmode
3908 break
3909 fi
3910 fi
3911 done
3912
3913 cd ..
3914 rm -rf conftest.dir
3915 else
3916 am_cv_CC_dependencies_compiler_type=none
3917 fi
3918
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3923
3924 if
3925 test "x$enable_dependency_tracking" != xno \
3926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3927 am__fastdepCC_TRUE=
3928 am__fastdepCC_FALSE='#'
3929 else
3930 am__fastdepCC_TRUE='#'
3931 am__fastdepCC_FALSE=
3932 fi
3933
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3936 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3937 if ${ac_cv_prog_cc_c99+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 ac_cv_prog_cc_c99=no
3941 ac_save_CC=$CC
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <stdarg.h>
3945 #include <stdbool.h>
3946 #include <stdlib.h>
3947 #include <wchar.h>
3948 #include <stdio.h>
3949
3950 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3951 #define debug(...) fprintf (stderr, __VA_ARGS__)
3952 #define showlist(...) puts (#__VA_ARGS__)
3953 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3954 static void
3955 test_varargs_macros (void)
3956 {
3957 int x = 1234;
3958 int y = 5678;
3959 debug ("Flag");
3960 debug ("X = %d\n", x);
3961 showlist (The first, second, and third items.);
3962 report (x>y, "x is %d but y is %d", x, y);
3963 }
3964
3965 // Check long long types.
3966 #define BIG64 18446744073709551615ull
3967 #define BIG32 4294967295ul
3968 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3969 #if !BIG_OK
3970 your preprocessor is broken;
3971 #endif
3972 #if BIG_OK
3973 #else
3974 your preprocessor is broken;
3975 #endif
3976 static long long int bignum = -9223372036854775807LL;
3977 static unsigned long long int ubignum = BIG64;
3978
3979 struct incomplete_array
3980 {
3981 int datasize;
3982 double data[];
3983 };
3984
3985 struct named_init {
3986 int number;
3987 const wchar_t *name;
3988 double average;
3989 };
3990
3991 typedef const char *ccp;
3992
3993 static inline int
3994 test_restrict (ccp restrict text)
3995 {
3996 // See if C++-style comments work.
3997 // Iterate through items via the restricted pointer.
3998 // Also check for declarations in for loops.
3999 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4000 continue;
4001 return 0;
4002 }
4003
4004 // Check varargs and va_copy.
4005 static void
4006 test_varargs (const char *format, ...)
4007 {
4008 va_list args;
4009 va_start (args, format);
4010 va_list args_copy;
4011 va_copy (args_copy, args);
4012
4013 const char *str;
4014 int number;
4015 float fnumber;
4016
4017 while (*format)
4018 {
4019 switch (*format++)
4020 {
4021 case 's': // string
4022 str = va_arg (args_copy, const char *);
4023 break;
4024 case 'd': // int
4025 number = va_arg (args_copy, int);
4026 break;
4027 case 'f': // float
4028 fnumber = va_arg (args_copy, double);
4029 break;
4030 default:
4031 break;
4032 }
4033 }
4034 va_end (args_copy);
4035 va_end (args);
4036 }
4037
4038 int
4039 main ()
4040 {
4041
4042 // Check bool.
4043 _Bool success = false;
4044
4045 // Check restrict.
4046 if (test_restrict ("String literal") == 0)
4047 success = true;
4048 char *restrict newvar = "Another string";
4049
4050 // Check varargs.
4051 test_varargs ("s, d' f .", "string", 65, 34.234);
4052 test_varargs_macros ();
4053
4054 // Check flexible array members.
4055 struct incomplete_array *ia =
4056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4057 ia->datasize = 10;
4058 for (int i = 0; i < ia->datasize; ++i)
4059 ia->data[i] = i * 1.234;
4060
4061 // Check named initializers.
4062 struct named_init ni = {
4063 .number = 34,
4064 .name = L"Test wide string",
4065 .average = 543.34343,
4066 };
4067
4068 ni.number = 58;
4069
4070 int dynamic_array[ni.number];
4071 dynamic_array[ni.number - 1] = 543;
4072
4073 // work around unused variable warnings
4074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4075 || dynamic_array[ni.number - 1] != 543);
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4082 do
4083 CC="$ac_save_CC $ac_arg"
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_prog_cc_c99=$ac_arg
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext
4088 test "x$ac_cv_prog_cc_c99" != "xno" && break
4089 done
4090 rm -f conftest.$ac_ext
4091 CC=$ac_save_CC
4092
4093 fi
4094 # AC_CACHE_VAL
4095 case "x$ac_cv_prog_cc_c99" in
4096 x)
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4098 $as_echo "none needed" >&6; } ;;
4099 xno)
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4101 $as_echo "unsupported" >&6; } ;;
4102 *)
4103 CC="$CC $ac_cv_prog_cc_c99"
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4105 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4106 esac
4107 if test "x$ac_cv_prog_cc_c99" != xno; then :
4108
4109 fi
4110
4111
4112
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4119 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4122 CPP=
4123 fi
4124 if test -z "$CPP"; then
4125 if ${ac_cv_prog_CPP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 # Double quotes because CPP needs to be expanded
4129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4130 do
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4133 do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4150
4151 else
4152 # Broken: fails on valid input.
4153 continue
4154 fi
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4156
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4170 fi
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4172
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4177 break
4178 fi
4179
4180 done
4181 ac_cv_prog_CPP=$CPP
4182
4183 fi
4184 CPP=$ac_cv_prog_CPP
4185 else
4186 ac_cv_prog_CPP=$CPP
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4190 ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206 Syntax error
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209
4210 else
4211 # Broken: fails on valid input.
4212 continue
4213 fi
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4215
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4236
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4241 See \`config.log' for more details" "$LINENO" 5; }
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253 if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4268 # Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270 case `"$ac_path_GREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_GREP=$GREP
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310 $as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315 $as_echo_n "checking for egrep... " >&6; }
4316 if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4337 *GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 *)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366 IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 fi
4370 else
4371 ac_cv_path_EGREP=$EGREP
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377 $as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4382 $as_echo_n "checking for ANSI C header files... " >&6; }
4383 if ${ac_cv_header_stdc+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <stdlib.h>
4389 #include <stdarg.h>
4390 #include <string.h>
4391 #include <float.h>
4392
4393 int
4394 main ()
4395 {
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"; then :
4402 ac_cv_header_stdc=yes
4403 else
4404 ac_cv_header_stdc=no
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <string.h>
4413
4414 _ACEOF
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 $EGREP "memchr" >/dev/null 2>&1; then :
4417
4418 else
4419 ac_cv_header_stdc=no
4420 fi
4421 rm -f conftest*
4422
4423 fi
4424
4425 if test $ac_cv_header_stdc = yes; then
4426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <stdlib.h>
4430
4431 _ACEOF
4432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4433 $EGREP "free" >/dev/null 2>&1; then :
4434
4435 else
4436 ac_cv_header_stdc=no
4437 fi
4438 rm -f conftest*
4439
4440 fi
4441
4442 if test $ac_cv_header_stdc = yes; then
4443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4444 if test "$cross_compiling" = yes; then :
4445 :
4446 else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <ctype.h>
4450 #include <stdlib.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4461
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 int
4464 main ()
4465 {
4466 int i;
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4470 return 2;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_c_try_run "$LINENO"; then :
4475
4476 else
4477 ac_cv_header_stdc=no
4478 fi
4479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4480 conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 fi
4482
4483 fi
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4486 $as_echo "$ac_cv_header_stdc" >&6; }
4487 if test $ac_cv_header_stdc = yes; then
4488
4489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4490
4491 fi
4492
4493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4494 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4495 inttypes.h stdint.h unistd.h
4496 do :
4497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4498 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4499 "
4500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4501 cat >>confdefs.h <<_ACEOF
4502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4503 _ACEOF
4504
4505 fi
4506
4507 done
4508
4509
4510
4511
4512
4513
4514 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4515 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4516 CLANGCC="yes"
4517 else
4518 CLANGCC="no"
4519 fi
4520
4521 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4522 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4523 INTELCC="yes"
4524 else
4525 INTELCC="no"
4526 fi
4527
4528 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4529 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4530 SUNCC="yes"
4531 else
4532 SUNCC="no"
4533 fi
4534
4535
4536
4537
4538 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 case $PKG_CONFIG in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567 ;;
4568 esac
4569 fi
4570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4571 if test -n "$PKG_CONFIG"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4573 $as_echo "$PKG_CONFIG" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_path_PKG_CONFIG"; then
4582 ac_pt_PKG_CONFIG=$PKG_CONFIG
4583 # Extract the first word of "pkg-config", so it can be a program name with args.
4584 set dummy pkg-config; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 case $ac_pt_PKG_CONFIG in
4591 [\\/]* | ?:[\\/]*)
4592 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4593 ;;
4594 *)
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 ;;
4611 esac
4612 fi
4613 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4614 if test -n "$ac_pt_PKG_CONFIG"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4616 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621
4622 if test "x$ac_pt_PKG_CONFIG" = x; then
4623 PKG_CONFIG=""
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631 PKG_CONFIG=$ac_pt_PKG_CONFIG
4632 fi
4633 else
4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4635 fi
4636
4637 fi
4638 if test -n "$PKG_CONFIG"; then
4639 _pkg_min_version=0.9.0
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4641 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644 $as_echo "yes" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 PKG_CONFIG=""
4649 fi
4650
4651 fi
4652 # Make sure we can run config.sub.
4653 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4654 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4657 $as_echo_n "checking build system type... " >&6; }
4658 if ${ac_cv_build+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_build_alias=$build_alias
4662 test "x$ac_build_alias" = x &&
4663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4664 test "x$ac_build_alias" = x &&
4665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4671 $as_echo "$ac_cv_build" >&6; }
4672 case $ac_cv_build in
4673 *-*-*) ;;
4674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4675 esac
4676 build=$ac_cv_build
4677 ac_save_IFS=$IFS; IFS='-'
4678 set x $ac_cv_build
4679 shift
4680 build_cpu=$1
4681 build_vendor=$2
4682 shift; shift
4683 # Remember, the first character of IFS is used to create $*,
4684 # except with old shells:
4685 build_os=$*
4686 IFS=$ac_save_IFS
4687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4691 $as_echo_n "checking host system type... " >&6; }
4692 if ${ac_cv_host+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test "x$host_alias" = x; then
4696 ac_cv_host=$ac_cv_build
4697 else
4698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4700 fi
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4704 $as_echo "$ac_cv_host" >&6; }
4705 case $ac_cv_host in
4706 *-*-*) ;;
4707 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4708 esac
4709 host=$ac_cv_host
4710 ac_save_IFS=$IFS; IFS='-'
4711 set x $ac_cv_host
4712 shift
4713 host_cpu=$1
4714 host_vendor=$2
4715 shift; shift
4716 # Remember, the first character of IFS is used to create $*,
4717 # except with old shells:
4718 host_os=$*
4719 IFS=$ac_save_IFS
4720 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4721
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4724 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4725 if ${ac_cv_path_SED+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729 for ac_i in 1 2 3 4 5 6 7; do
4730 ac_script="$ac_script$as_nl$ac_script"
4731 done
4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733 { ac_script=; unset ac_script;}
4734 if test -z "$SED"; then
4735 ac_path_SED_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_prog in sed gsed; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4745 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4746 # Check for GNU ac_path_SED and select it if it is found.
4747 # Check for GNU $ac_path_SED
4748 case `"$ac_path_SED" --version 2>&1` in
4749 *GNU*)
4750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4751 *)
4752 ac_count=0
4753 $as_echo_n 0123456789 >"conftest.in"
4754 while :
4755 do
4756 cat "conftest.in" "conftest.in" >"conftest.tmp"
4757 mv "conftest.tmp" "conftest.in"
4758 cp "conftest.in" "conftest.nl"
4759 $as_echo '' >> "conftest.nl"
4760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762 as_fn_arith $ac_count + 1 && ac_count=$as_val
4763 if test $ac_count -gt ${ac_path_SED_max-0}; then
4764 # Best one so far, save it but keep looking for a better one
4765 ac_cv_path_SED="$ac_path_SED"
4766 ac_path_SED_max=$ac_count
4767 fi
4768 # 10*(2^10) chars as input seems more than enough
4769 test $ac_count -gt 10 && break
4770 done
4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4773
4774 $ac_path_SED_found && break 3
4775 done
4776 done
4777 done
4778 IFS=$as_save_IFS
4779 if test -z "$ac_cv_path_SED"; then
4780 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4781 fi
4782 else
4783 ac_cv_path_SED=$SED
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4788 $as_echo "$ac_cv_path_SED" >&6; }
4789 SED="$ac_cv_path_SED"
4790 rm -f conftest.sed
4791
4792
4793
4794
4795
4796
4797 # Check whether --enable-selective-werror was given.
4798 if test "${enable_selective_werror+set}" = set; then :
4799 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4800 else
4801 SELECTIVE_WERROR=yes
4802 fi
4803
4804
4805
4806
4807
4808 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4809 if test "x$SUNCC" = "xyes"; then
4810 BASE_CFLAGS="-v"
4811 else
4812 BASE_CFLAGS=""
4813 fi
4814
4815 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829 xorg_testset_save_CFLAGS="$CFLAGS"
4830
4831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 int i;
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 xorg_cv_cc_flag_unknown_warning_option=yes
4844 else
4845 xorg_cv_cc_flag_unknown_warning_option=no
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852 CFLAGS="$xorg_testset_save_CFLAGS"
4853 fi
4854
4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858 fi
4859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 int i;
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870 xorg_cv_cc_flag_unused_command_line_argument=yes
4871 else
4872 xorg_cv_cc_flag_unused_command_line_argument=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4880 fi
4881
4882 found="no"
4883
4884 if test $found = "no" ; then
4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 fi
4888
4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 fi
4892
4893 CFLAGS="$CFLAGS -Wall"
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4896 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4897 cacheid=xorg_cv_cc_flag__Wall
4898 if eval \${$cacheid+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 int i;
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_link "$LINENO"; then :
4913 eval $cacheid=yes
4914 else
4915 eval $cacheid=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 fi
4920
4921
4922 CFLAGS="$xorg_testset_save_CFLAGS"
4923
4924 eval supported=\$$cacheid
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4926 $as_echo "$supported" >&6; }
4927 if test "$supported" = "yes" ; then
4928 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4929 found="yes"
4930 fi
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 xorg_testset_save_CFLAGS="$CFLAGS"
4948
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 int i;
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961 xorg_cv_cc_flag_unknown_warning_option=yes
4962 else
4963 xorg_cv_cc_flag_unknown_warning_option=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4970 CFLAGS="$xorg_testset_save_CFLAGS"
4971 fi
4972
4973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976 fi
4977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 int i;
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988 xorg_cv_cc_flag_unused_command_line_argument=yes
4989 else
4990 xorg_cv_cc_flag_unused_command_line_argument=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998 fi
4999
5000 found="no"
5001
5002 if test $found = "no" ; then
5003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005 fi
5006
5007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5009 fi
5010
5011 CFLAGS="$CFLAGS -Wpointer-arith"
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5014 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5015 cacheid=xorg_cv_cc_flag__Wpointer_arith
5016 if eval \${$cacheid+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 int i;
5022 int
5023 main ()
5024 {
5025
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 if ac_fn_c_try_link "$LINENO"; then :
5031 eval $cacheid=yes
5032 else
5033 eval $cacheid=no
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext \
5036 conftest$ac_exeext conftest.$ac_ext
5037 fi
5038
5039
5040 CFLAGS="$xorg_testset_save_CFLAGS"
5041
5042 eval supported=\$$cacheid
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5044 $as_echo "$supported" >&6; }
5045 if test "$supported" = "yes" ; then
5046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5047 found="yes"
5048 fi
5049 fi
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 xorg_testset_save_CFLAGS="$CFLAGS"
5066
5067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 int i;
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 xorg_cv_cc_flag_unknown_warning_option=yes
5080 else
5081 xorg_cv_cc_flag_unknown_warning_option=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5088 CFLAGS="$xorg_testset_save_CFLAGS"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 fi
5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 xorg_cv_cc_flag_unused_command_line_argument=yes
5107 else
5108 xorg_cv_cc_flag_unused_command_line_argument=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 found="no"
5119
5120 if test $found = "no" ; then
5121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 fi
5124
5125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127 fi
5128
5129 CFLAGS="$CFLAGS -Wmissing-declarations"
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5132 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5133 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5134 if eval \${$cacheid+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 int
5141 main ()
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_link "$LINENO"; then :
5149 eval $cacheid=yes
5150 else
5151 eval $cacheid=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext \
5154 conftest$ac_exeext conftest.$ac_ext
5155 fi
5156
5157
5158 CFLAGS="$xorg_testset_save_CFLAGS"
5159
5160 eval supported=\$$cacheid
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5162 $as_echo "$supported" >&6; }
5163 if test "$supported" = "yes" ; then
5164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5165 found="yes"
5166 fi
5167 fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 xorg_testset_save_CFLAGS="$CFLAGS"
5184
5185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 int i;
5195 _ACEOF
5196 if ac_fn_c_try_compile "$LINENO"; then :
5197 xorg_cv_cc_flag_unknown_warning_option=yes
5198 else
5199 xorg_cv_cc_flag_unknown_warning_option=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5206 CFLAGS="$xorg_testset_save_CFLAGS"
5207 fi
5208
5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212 fi
5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 xorg_cv_cc_flag_unused_command_line_argument=yes
5225 else
5226 xorg_cv_cc_flag_unused_command_line_argument=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234 fi
5235
5236 found="no"
5237
5238 if test $found = "no" ; then
5239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241 fi
5242
5243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245 fi
5246
5247 CFLAGS="$CFLAGS -Wformat=2"
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5250 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5251 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5252 if eval \${$cacheid+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 int i;
5258 int
5259 main ()
5260 {
5261
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267 eval $cacheid=yes
5268 else
5269 eval $cacheid=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
5273 fi
5274
5275
5276 CFLAGS="$xorg_testset_save_CFLAGS"
5277
5278 eval supported=\$$cacheid
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5280 $as_echo "$supported" >&6; }
5281 if test "$supported" = "yes" ; then
5282 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5283 found="yes"
5284 fi
5285 fi
5286
5287 if test $found = "no" ; then
5288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 fi
5291
5292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294 fi
5295
5296 CFLAGS="$CFLAGS -Wformat"
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5299 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5300 cacheid=xorg_cv_cc_flag__Wformat
5301 if eval \${$cacheid+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 int
5308 main ()
5309 {
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_link "$LINENO"; then :
5316 eval $cacheid=yes
5317 else
5318 eval $cacheid=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 fi
5323
5324
5325 CFLAGS="$xorg_testset_save_CFLAGS"
5326
5327 eval supported=\$$cacheid
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5329 $as_echo "$supported" >&6; }
5330 if test "$supported" = "yes" ; then
5331 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5332 found="yes"
5333 fi
5334 fi
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 xorg_testset_save_CFLAGS="$CFLAGS"
5353
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 int i;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 xorg_cv_cc_flag_unknown_warning_option=yes
5367 else
5368 xorg_cv_cc_flag_unknown_warning_option=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5375 CFLAGS="$xorg_testset_save_CFLAGS"
5376 fi
5377
5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 fi
5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 int i;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 xorg_cv_cc_flag_unused_command_line_argument=yes
5394 else
5395 xorg_cv_cc_flag_unused_command_line_argument=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403 fi
5404
5405 found="no"
5406
5407 if test $found = "no" ; then
5408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411
5412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 fi
5415
5416 CFLAGS="$CFLAGS -Wstrict-prototypes"
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5419 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5420 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5421 if eval \${$cacheid+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int i;
5427 int
5428 main ()
5429 {
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_link "$LINENO"; then :
5436 eval $cacheid=yes
5437 else
5438 eval $cacheid=no
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext \
5441 conftest$ac_exeext conftest.$ac_ext
5442 fi
5443
5444
5445 CFLAGS="$xorg_testset_save_CFLAGS"
5446
5447 eval supported=\$$cacheid
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5449 $as_echo "$supported" >&6; }
5450 if test "$supported" = "yes" ; then
5451 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5452 found="yes"
5453 fi
5454 fi
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 xorg_testset_save_CFLAGS="$CFLAGS"
5471
5472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 int i;
5482 _ACEOF
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 xorg_cv_cc_flag_unknown_warning_option=yes
5485 else
5486 xorg_cv_cc_flag_unknown_warning_option=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494 fi
5495
5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 fi
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 xorg_cv_cc_flag_unused_command_line_argument=yes
5512 else
5513 xorg_cv_cc_flag_unused_command_line_argument=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5520 CFLAGS="$xorg_testset_save_CFLAGS"
5521 fi
5522
5523 found="no"
5524
5525 if test $found = "no" ; then
5526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528 fi
5529
5530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532 fi
5533
5534 CFLAGS="$CFLAGS -Wmissing-prototypes"
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5537 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5538 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5539 if eval \${$cacheid+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 int
5546 main ()
5547 {
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 eval $cacheid=yes
5555 else
5556 eval $cacheid=no
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5560 fi
5561
5562
5563 CFLAGS="$xorg_testset_save_CFLAGS"
5564
5565 eval supported=\$$cacheid
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5567 $as_echo "$supported" >&6; }
5568 if test "$supported" = "yes" ; then
5569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5570 found="yes"
5571 fi
5572 fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 xorg_testset_save_CFLAGS="$CFLAGS"
5589
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 int i;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 xorg_cv_cc_flag_unknown_warning_option=yes
5603 else
5604 xorg_cv_cc_flag_unknown_warning_option=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5611 CFLAGS="$xorg_testset_save_CFLAGS"
5612 fi
5613
5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617 fi
5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unused_command_line_argument=yes
5630 else
5631 xorg_cv_cc_flag_unused_command_line_argument=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 found="no"
5642
5643 if test $found = "no" ; then
5644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 fi
5647
5648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650 fi
5651
5652 CFLAGS="$CFLAGS -Wnested-externs"
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5655 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5656 cacheid=xorg_cv_cc_flag__Wnested_externs
5657 if eval \${$cacheid+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 int i;
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"; then :
5672 eval $cacheid=yes
5673 else
5674 eval $cacheid=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5678 fi
5679
5680
5681 CFLAGS="$xorg_testset_save_CFLAGS"
5682
5683 eval supported=\$$cacheid
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5685 $as_echo "$supported" >&6; }
5686 if test "$supported" = "yes" ; then
5687 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5688 found="yes"
5689 fi
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 xorg_testset_save_CFLAGS="$CFLAGS"
5707
5708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 int i;
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"; then :
5720 xorg_cv_cc_flag_unknown_warning_option=yes
5721 else
5722 xorg_cv_cc_flag_unknown_warning_option=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5729 CFLAGS="$xorg_testset_save_CFLAGS"
5730 fi
5731
5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735 fi
5736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 xorg_cv_cc_flag_unused_command_line_argument=yes
5748 else
5749 xorg_cv_cc_flag_unused_command_line_argument=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757 fi
5758
5759 found="no"
5760
5761 if test $found = "no" ; then
5762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 fi
5765
5766 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768 fi
5769
5770 CFLAGS="$CFLAGS -Wbad-function-cast"
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5773 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5774 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5775 if eval \${$cacheid+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 int
5782 main ()
5783 {
5784
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 eval $cacheid=yes
5791 else
5792 eval $cacheid=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 $as_echo "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int i;
5836 _ACEOF
5837 if ac_fn_c_try_compile "$LINENO"; then :
5838 xorg_cv_cc_flag_unknown_warning_option=yes
5839 else
5840 xorg_cv_cc_flag_unknown_warning_option=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5847 CFLAGS="$xorg_testset_save_CFLAGS"
5848 fi
5849
5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 xorg_cv_cc_flag_unused_command_line_argument=yes
5866 else
5867 xorg_cv_cc_flag_unused_command_line_argument=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875 fi
5876
5877 found="no"
5878
5879 if test $found = "no" ; then
5880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 fi
5883
5884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886 fi
5887
5888 CFLAGS="$CFLAGS -Wold-style-definition"
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5891 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5892 cacheid=xorg_cv_cc_flag__Wold_style_definition
5893 if eval \${$cacheid+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_c_try_link "$LINENO"; then :
5908 eval $cacheid=yes
5909 else
5910 eval $cacheid=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914 fi
5915
5916
5917 CFLAGS="$xorg_testset_save_CFLAGS"
5918
5919 eval supported=\$$cacheid
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5921 $as_echo "$supported" >&6; }
5922 if test "$supported" = "yes" ; then
5923 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5924 found="yes"
5925 fi
5926 fi
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 xorg_testset_save_CFLAGS="$CFLAGS"
5943
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 int i;
5954 _ACEOF
5955 if ac_fn_c_try_compile "$LINENO"; then :
5956 xorg_cv_cc_flag_unknown_warning_option=yes
5957 else
5958 xorg_cv_cc_flag_unknown_warning_option=no
5959 fi
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5965 CFLAGS="$xorg_testset_save_CFLAGS"
5966 fi
5967
5968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 int i;
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 xorg_cv_cc_flag_unused_command_line_argument=yes
5984 else
5985 xorg_cv_cc_flag_unused_command_line_argument=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993 fi
5994
5995 found="no"
5996
5997 if test $found = "no" ; then
5998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 fi
6001
6002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004 fi
6005
6006 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6009 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6010 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6011 if eval \${$cacheid+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 int i;
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 eval $cacheid=yes
6027 else
6028 eval $cacheid=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 fi
6033
6034
6035 CFLAGS="$xorg_testset_save_CFLAGS"
6036
6037 eval supported=\$$cacheid
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6039 $as_echo "$supported" >&6; }
6040 if test "$supported" = "yes" ; then
6041 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6042 found="yes"
6043 fi
6044 fi
6045
6046
6047
6048
6049
6050 # This chunk adds additional warnings that could catch undesired effects.
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 xorg_testset_save_CFLAGS="$CFLAGS"
6065
6066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 int i;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 xorg_cv_cc_flag_unknown_warning_option=yes
6079 else
6080 xorg_cv_cc_flag_unknown_warning_option=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6087 CFLAGS="$xorg_testset_save_CFLAGS"
6088 fi
6089
6090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 fi
6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 int i;
6103 _ACEOF
6104 if ac_fn_c_try_compile "$LINENO"; then :
6105 xorg_cv_cc_flag_unused_command_line_argument=yes
6106 else
6107 xorg_cv_cc_flag_unused_command_line_argument=no
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6114 CFLAGS="$xorg_testset_save_CFLAGS"
6115 fi
6116
6117 found="no"
6118
6119 if test $found = "no" ; then
6120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123
6124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 fi
6127
6128 CFLAGS="$CFLAGS -Wunused"
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6131 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6132 cacheid=xorg_cv_cc_flag__Wunused
6133 if eval \${$cacheid+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 int i;
6139 int
6140 main ()
6141 {
6142
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_link "$LINENO"; then :
6148 eval $cacheid=yes
6149 else
6150 eval $cacheid=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 fi
6155
6156
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159 eval supported=\$$cacheid
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161 $as_echo "$supported" >&6; }
6162 if test "$supported" = "yes" ; then
6163 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6164 found="yes"
6165 fi
6166 fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 int i;
6194 _ACEOF
6195 if ac_fn_c_try_compile "$LINENO"; then :
6196 xorg_cv_cc_flag_unknown_warning_option=yes
6197 else
6198 xorg_cv_cc_flag_unknown_warning_option=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211 fi
6212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 xorg_cv_cc_flag_unused_command_line_argument=yes
6224 else
6225 xorg_cv_cc_flag_unused_command_line_argument=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6232 CFLAGS="$xorg_testset_save_CFLAGS"
6233 fi
6234
6235 found="no"
6236
6237 if test $found = "no" ; then
6238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241
6242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244 fi
6245
6246 CFLAGS="$CFLAGS -Wuninitialized"
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6249 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6250 cacheid=xorg_cv_cc_flag__Wuninitialized
6251 if eval \${$cacheid+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 int i;
6257 int
6258 main ()
6259 {
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_link "$LINENO"; then :
6266 eval $cacheid=yes
6267 else
6268 eval $cacheid=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273
6274
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277 eval supported=\$$cacheid
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279 $as_echo "$supported" >&6; }
6280 if test "$supported" = "yes" ; then
6281 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6282 found="yes"
6283 fi
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 int i;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 xorg_cv_cc_flag_unknown_warning_option=yes
6315 else
6316 xorg_cv_cc_flag_unknown_warning_option=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324 fi
6325
6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 fi
6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 int i;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 xorg_cv_cc_flag_unused_command_line_argument=yes
6342 else
6343 xorg_cv_cc_flag_unused_command_line_argument=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351 fi
6352
6353 found="no"
6354
6355 if test $found = "no" ; then
6356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359
6360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362 fi
6363
6364 CFLAGS="$CFLAGS -Wshadow"
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6367 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6368 cacheid=xorg_cv_cc_flag__Wshadow
6369 if eval \${$cacheid+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 int
6376 main ()
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 eval $cacheid=yes
6385 else
6386 eval $cacheid=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391
6392
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395 eval supported=\$$cacheid
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397 $as_echo "$supported" >&6; }
6398 if test "$supported" = "yes" ; then
6399 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6400 found="yes"
6401 fi
6402 fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429 int i;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 xorg_cv_cc_flag_unknown_warning_option=yes
6433 else
6434 xorg_cv_cc_flag_unknown_warning_option=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442 fi
6443
6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 fi
6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 xorg_cv_cc_flag_unused_command_line_argument=yes
6460 else
6461 xorg_cv_cc_flag_unused_command_line_argument=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468 CFLAGS="$xorg_testset_save_CFLAGS"
6469 fi
6470
6471 found="no"
6472
6473 if test $found = "no" ; then
6474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 fi
6477
6478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480 fi
6481
6482 CFLAGS="$CFLAGS -Wcast-qual"
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6485 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6486 cacheid=xorg_cv_cc_flag__Wcast_qual
6487 if eval \${$cacheid+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 int i;
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 eval $cacheid=yes
6503 else
6504 eval $cacheid=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 fi
6509
6510
6511 CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513 eval supported=\$$cacheid
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515 $as_echo "$supported" >&6; }
6516 if test "$supported" = "yes" ; then
6517 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6518 found="yes"
6519 fi
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 int i;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 xorg_cv_cc_flag_unknown_warning_option=yes
6551 else
6552 xorg_cv_cc_flag_unknown_warning_option=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560 fi
6561
6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 fi
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 xorg_cv_cc_flag_unused_command_line_argument=yes
6578 else
6579 xorg_cv_cc_flag_unused_command_line_argument=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586 CFLAGS="$xorg_testset_save_CFLAGS"
6587 fi
6588
6589 found="no"
6590
6591 if test $found = "no" ; then
6592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595
6596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598 fi
6599
6600 CFLAGS="$CFLAGS -Wmissing-noreturn"
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6603 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6604 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6605 if eval \${$cacheid+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 eval $cacheid=yes
6621 else
6622 eval $cacheid=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 fi
6627
6628
6629 CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631 eval supported=\$$cacheid
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633 $as_echo "$supported" >&6; }
6634 if test "$supported" = "yes" ; then
6635 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6636 found="yes"
6637 fi
6638 fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int i;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 xorg_cv_cc_flag_unknown_warning_option=yes
6669 else
6670 xorg_cv_cc_flag_unknown_warning_option=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678 fi
6679
6680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 fi
6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 xorg_cv_cc_flag_unused_command_line_argument=yes
6696 else
6697 xorg_cv_cc_flag_unused_command_line_argument=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705 fi
6706
6707 found="no"
6708
6709 if test $found = "no" ; then
6710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713
6714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716 fi
6717
6718 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6721 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6722 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6723 if eval \${$cacheid+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 int i;
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 eval $cacheid=yes
6739 else
6740 eval $cacheid=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 fi
6745
6746
6747 CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749 eval supported=\$$cacheid
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751 $as_echo "$supported" >&6; }
6752 if test "$supported" = "yes" ; then
6753 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6754 found="yes"
6755 fi
6756 fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 int i;
6784 _ACEOF
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 xorg_cv_cc_flag_unknown_warning_option=yes
6787 else
6788 xorg_cv_cc_flag_unknown_warning_option=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6796 fi
6797
6798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801 fi
6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int i;
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 xorg_cv_cc_flag_unused_command_line_argument=yes
6814 else
6815 xorg_cv_cc_flag_unused_command_line_argument=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822 CFLAGS="$xorg_testset_save_CFLAGS"
6823 fi
6824
6825 found="no"
6826
6827 if test $found = "no" ; then
6828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831
6832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 fi
6835
6836 CFLAGS="$CFLAGS -Wredundant-decls"
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6839 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6840 cacheid=xorg_cv_cc_flag__Wredundant_decls
6841 if eval \${$cacheid+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 int i;
6847 int
6848 main ()
6849 {
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 eval $cacheid=yes
6857 else
6858 eval $cacheid=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 fi
6863
6864
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867 eval supported=\$$cacheid
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869 $as_echo "$supported" >&6; }
6870 if test "$supported" = "yes" ; then
6871 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6872 found="yes"
6873 fi
6874 fi
6875
6876
6877
6878 # These are currently disabled because they are noisy. They will be enabled
6879 # in the future once the codebase is sufficiently modernized to silence
6880 # them. For now, I don't want them to drown out the other warnings.
6881 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6882 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6883 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6884
6885 # Turn some warnings into errors, so we don't accidently get successful builds
6886 # when there are problems that should be fixed.
6887
6888 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 xorg_testset_save_CFLAGS="$CFLAGS"
6903
6904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int i;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 xorg_cv_cc_flag_unknown_warning_option=yes
6917 else
6918 xorg_cv_cc_flag_unknown_warning_option=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 fi
6932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 xorg_cv_cc_flag_unused_command_line_argument=yes
6944 else
6945 xorg_cv_cc_flag_unused_command_line_argument=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953 fi
6954
6955 found="no"
6956
6957 if test $found = "no" ; then
6958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961
6962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 fi
6965
6966 CFLAGS="$CFLAGS -Werror=implicit"
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6969 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6970 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6971 if eval \${$cacheid+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 int i;
6977 int
6978 main ()
6979 {
6980
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 eval $cacheid=yes
6987 else
6988 eval $cacheid=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 fi
6993
6994
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997 eval supported=\$$cacheid
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999 $as_echo "$supported" >&6; }
7000 if test "$supported" = "yes" ; then
7001 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7002 found="yes"
7003 fi
7004 fi
7005
7006 if test $found = "no" ; then
7007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010
7011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 fi
7014
7015 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7018 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7019 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7020 if eval \${$cacheid+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 eval $cacheid=yes
7036 else
7037 eval $cacheid=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 fi
7042
7043
7044 CFLAGS="$xorg_testset_save_CFLAGS"
7045
7046 eval supported=\$$cacheid
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7048 $as_echo "$supported" >&6; }
7049 if test "$supported" = "yes" ; then
7050 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7051 found="yes"
7052 fi
7053 fi
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 xorg_testset_save_CFLAGS="$CFLAGS"
7070
7071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 int i;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 xorg_cv_cc_flag_unknown_warning_option=yes
7084 else
7085 xorg_cv_cc_flag_unknown_warning_option=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093 fi
7094
7095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 int i;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 xorg_cv_cc_flag_unused_command_line_argument=yes
7111 else
7112 xorg_cv_cc_flag_unused_command_line_argument=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120 fi
7121
7122 found="no"
7123
7124 if test $found = "no" ; then
7125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128
7129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 fi
7132
7133 CFLAGS="$CFLAGS -Werror=nonnull"
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7136 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7137 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7138 if eval \${$cacheid+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 int
7145 main ()
7146 {
7147
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"; then :
7153 eval $cacheid=yes
7154 else
7155 eval $cacheid=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7159 fi
7160
7161
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164 eval supported=\$$cacheid
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166 $as_echo "$supported" >&6; }
7167 if test "$supported" = "yes" ; then
7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7169 found="yes"
7170 fi
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 xorg_testset_save_CFLAGS="$CFLAGS"
7188
7189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 int i;
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 xorg_cv_cc_flag_unknown_warning_option=yes
7202 else
7203 xorg_cv_cc_flag_unknown_warning_option=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211 fi
7212
7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 fi
7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 int i;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 xorg_cv_cc_flag_unused_command_line_argument=yes
7229 else
7230 xorg_cv_cc_flag_unused_command_line_argument=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238 fi
7239
7240 found="no"
7241
7242 if test $found = "no" ; then
7243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246
7247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 fi
7250
7251 CFLAGS="$CFLAGS -Werror=init-self"
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7254 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7255 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7256 if eval \${$cacheid+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 int
7263 main ()
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 eval $cacheid=yes
7272 else
7273 eval $cacheid=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 fi
7278
7279
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282 eval supported=\$$cacheid
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284 $as_echo "$supported" >&6; }
7285 if test "$supported" = "yes" ; then
7286 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7287 found="yes"
7288 fi
7289 fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 int i;
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 xorg_cv_cc_flag_unknown_warning_option=yes
7320 else
7321 xorg_cv_cc_flag_unknown_warning_option=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329 fi
7330
7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 fi
7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 int i;
7344 _ACEOF
7345 if ac_fn_c_try_compile "$LINENO"; then :
7346 xorg_cv_cc_flag_unused_command_line_argument=yes
7347 else
7348 xorg_cv_cc_flag_unused_command_line_argument=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7355 CFLAGS="$xorg_testset_save_CFLAGS"
7356 fi
7357
7358 found="no"
7359
7360 if test $found = "no" ; then
7361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364
7365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 fi
7368
7369 CFLAGS="$CFLAGS -Werror=main"
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7372 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7373 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7374 if eval \${$cacheid+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 int i;
7380 int
7381 main ()
7382 {
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389 eval $cacheid=yes
7390 else
7391 eval $cacheid=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 fi
7396
7397
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400 eval supported=\$$cacheid
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402 $as_echo "$supported" >&6; }
7403 if test "$supported" = "yes" ; then
7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7405 found="yes"
7406 fi
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 xorg_cv_cc_flag_unknown_warning_option=yes
7438 else
7439 xorg_cv_cc_flag_unknown_warning_option=no
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446 CFLAGS="$xorg_testset_save_CFLAGS"
7447 fi
7448
7449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452 fi
7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 xorg_cv_cc_flag_unused_command_line_argument=yes
7465 else
7466 xorg_cv_cc_flag_unused_command_line_argument=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474 fi
7475
7476 found="no"
7477
7478 if test $found = "no" ; then
7479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 fi
7482
7483 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485 fi
7486
7487 CFLAGS="$CFLAGS -Werror=missing-braces"
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7490 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7491 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7492 if eval \${$cacheid+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 int i;
7498 int
7499 main ()
7500 {
7501
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7507 eval $cacheid=yes
7508 else
7509 eval $cacheid=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513 fi
7514
7515
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518 eval supported=\$$cacheid
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520 $as_echo "$supported" >&6; }
7521 if test "$supported" = "yes" ; then
7522 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7523 found="yes"
7524 fi
7525 fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555 xorg_cv_cc_flag_unknown_warning_option=yes
7556 else
7557 xorg_cv_cc_flag_unknown_warning_option=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 xorg_cv_cc_flag_unused_command_line_argument=yes
7583 else
7584 xorg_cv_cc_flag_unused_command_line_argument=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7592 fi
7593
7594 found="no"
7595
7596 if test $found = "no" ; then
7597 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600
7601 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603 fi
7604
7605 CFLAGS="$CFLAGS -Werror=sequence-point"
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7608 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7609 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7610 if eval \${$cacheid+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 int
7617 main ()
7618 {
7619
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625 eval $cacheid=yes
7626 else
7627 eval $cacheid=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632
7633
7634 CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636 eval supported=\$$cacheid
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638 $as_echo "$supported" >&6; }
7639 if test "$supported" = "yes" ; then
7640 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7641 found="yes"
7642 fi
7643 fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 xorg_testset_save_CFLAGS="$CFLAGS"
7660
7661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7664 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7665 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 int i;
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 xorg_cv_cc_flag_unknown_warning_option=yes
7674 else
7675 xorg_cv_cc_flag_unknown_warning_option=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682 CFLAGS="$xorg_testset_save_CFLAGS"
7683 fi
7684
7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 fi
7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 xorg_cv_cc_flag_unused_command_line_argument=yes
7701 else
7702 xorg_cv_cc_flag_unused_command_line_argument=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7707 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710 fi
7711
7712 found="no"
7713
7714 if test $found = "no" ; then
7715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717 fi
7718
7719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721 fi
7722
7723 CFLAGS="$CFLAGS -Werror=return-type"
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7726 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7727 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7728 if eval \${$cacheid+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 int i;
7734 int
7735 main ()
7736 {
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 eval $cacheid=yes
7744 else
7745 eval $cacheid=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 fi
7750
7751
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754 eval supported=\$$cacheid
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756 $as_echo "$supported" >&6; }
7757 if test "$supported" = "yes" ; then
7758 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7759 found="yes"
7760 fi
7761 fi
7762
7763 if test $found = "no" ; then
7764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 fi
7767
7768 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770 fi
7771
7772 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7775 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7776 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7777 if eval \${$cacheid+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 int
7784 main ()
7785 {
7786
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 eval $cacheid=yes
7793 else
7794 eval $cacheid=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 fi
7799
7800
7801 CFLAGS="$xorg_testset_save_CFLAGS"
7802
7803 eval supported=\$$cacheid
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7805 $as_echo "$supported" >&6; }
7806 if test "$supported" = "yes" ; then
7807 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7808 found="yes"
7809 fi
7810 fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 xorg_testset_save_CFLAGS="$CFLAGS"
7827
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7831 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7832 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 int i;
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 xorg_cv_cc_flag_unknown_warning_option=yes
7841 else
7842 xorg_cv_cc_flag_unknown_warning_option=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7847 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850 fi
7851
7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7859 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 xorg_cv_cc_flag_unused_command_line_argument=yes
7868 else
7869 xorg_cv_cc_flag_unused_command_line_argument=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7874 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7876 CFLAGS="$xorg_testset_save_CFLAGS"
7877 fi
7878
7879 found="no"
7880
7881 if test $found = "no" ; then
7882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 fi
7885
7886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 fi
7889
7890 CFLAGS="$CFLAGS -Werror=trigraphs"
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7893 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7894 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7895 if eval \${$cacheid+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main ()
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 eval $cacheid=yes
7911 else
7912 eval $cacheid=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 fi
7917
7918
7919 CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921 eval supported=\$$cacheid
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923 $as_echo "$supported" >&6; }
7924 if test "$supported" = "yes" ; then
7925 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7926 found="yes"
7927 fi
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944 xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 int i;
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 xorg_cv_cc_flag_unknown_warning_option=yes
7959 else
7960 xorg_cv_cc_flag_unknown_warning_option=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7967 CFLAGS="$xorg_testset_save_CFLAGS"
7968 fi
7969
7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973 fi
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 int i;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 xorg_cv_cc_flag_unused_command_line_argument=yes
7986 else
7987 xorg_cv_cc_flag_unused_command_line_argument=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994 CFLAGS="$xorg_testset_save_CFLAGS"
7995 fi
7996
7997 found="no"
7998
7999 if test $found = "no" ; then
8000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 fi
8003
8004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006 fi
8007
8008 CFLAGS="$CFLAGS -Werror=array-bounds"
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8011 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8012 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8013 if eval \${$cacheid+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 int i;
8019 int
8020 main ()
8021 {
8022
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_link "$LINENO"; then :
8028 eval $cacheid=yes
8029 else
8030 eval $cacheid=no
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 fi
8035
8036
8037 CFLAGS="$xorg_testset_save_CFLAGS"
8038
8039 eval supported=\$$cacheid
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8041 $as_echo "$supported" >&6; }
8042 if test "$supported" = "yes" ; then
8043 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8044 found="yes"
8045 fi
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 xorg_testset_save_CFLAGS="$CFLAGS"
8063
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 int i;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 xorg_cv_cc_flag_unknown_warning_option=yes
8077 else
8078 xorg_cv_cc_flag_unknown_warning_option=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 fi
8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 xorg_cv_cc_flag_unused_command_line_argument=yes
8104 else
8105 xorg_cv_cc_flag_unused_command_line_argument=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8112 CFLAGS="$xorg_testset_save_CFLAGS"
8113 fi
8114
8115 found="no"
8116
8117 if test $found = "no" ; then
8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 fi
8121
8122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 fi
8125
8126 CFLAGS="$CFLAGS -Werror=write-strings"
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8129 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8131 if eval \${$cacheid+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 int
8138 main ()
8139 {
8140
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"; then :
8146 eval $cacheid=yes
8147 else
8148 eval $cacheid=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
8152 fi
8153
8154
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157 eval supported=\$$cacheid
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159 $as_echo "$supported" >&6; }
8160 if test "$supported" = "yes" ; then
8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8162 found="yes"
8163 fi
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180 xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 xorg_cv_cc_flag_unknown_warning_option=yes
8195 else
8196 xorg_cv_cc_flag_unknown_warning_option=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204 fi
8205
8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 fi
8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int i;
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 xorg_cv_cc_flag_unused_command_line_argument=yes
8222 else
8223 xorg_cv_cc_flag_unused_command_line_argument=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8231 fi
8232
8233 found="no"
8234
8235 if test $found = "no" ; then
8236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 fi
8239
8240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242 fi
8243
8244 CFLAGS="$CFLAGS -Werror=address"
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8247 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8249 if eval \${$cacheid+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 int i;
8255 int
8256 main ()
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 eval $cacheid=yes
8265 else
8266 eval $cacheid=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 fi
8271
8272
8273 CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275 eval supported=\$$cacheid
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277 $as_echo "$supported" >&6; }
8278 if test "$supported" = "yes" ; then
8279 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8280 found="yes"
8281 fi
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 xorg_testset_save_CFLAGS="$CFLAGS"
8299
8300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 int i;
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 xorg_cv_cc_flag_unknown_warning_option=yes
8313 else
8314 xorg_cv_cc_flag_unknown_warning_option=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321 CFLAGS="$xorg_testset_save_CFLAGS"
8322 fi
8323
8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327 fi
8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 int i;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339 xorg_cv_cc_flag_unused_command_line_argument=yes
8340 else
8341 xorg_cv_cc_flag_unused_command_line_argument=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349 fi
8350
8351 found="no"
8352
8353 if test $found = "no" ; then
8354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357
8358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 fi
8361
8362 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8365 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8367 if eval \${$cacheid+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 int
8374 main ()
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"; then :
8382 eval $cacheid=yes
8383 else
8384 eval $cacheid=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 fi
8389
8390
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393 eval supported=\$$cacheid
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395 $as_echo "$supported" >&6; }
8396 if test "$supported" = "yes" ; then
8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8398 found="yes"
8399 fi
8400 fi
8401
8402 if test $found = "no" ; then
8403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 fi
8406
8407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409 fi
8410
8411 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8414 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8415 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8416 if eval \${$cacheid+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 int
8423 main ()
8424 {
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"; then :
8431 eval $cacheid=yes
8432 else
8433 eval $cacheid=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438
8439
8440 CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442 eval supported=\$$cacheid
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444 $as_echo "$supported" >&6; }
8445 if test "$supported" = "yes" ; then
8446 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8447 found="yes"
8448 fi
8449 fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465 xorg_testset_save_CFLAGS="$CFLAGS"
8466
8467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 xorg_cv_cc_flag_unknown_warning_option=yes
8480 else
8481 xorg_cv_cc_flag_unknown_warning_option=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8488 CFLAGS="$xorg_testset_save_CFLAGS"
8489 fi
8490
8491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 int i;
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 xorg_cv_cc_flag_unused_command_line_argument=yes
8507 else
8508 xorg_cv_cc_flag_unused_command_line_argument=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8515 CFLAGS="$xorg_testset_save_CFLAGS"
8516 fi
8517
8518 found="no"
8519
8520 if test $found = "no" ; then
8521 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524
8525 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527 fi
8528
8529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8530
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8532 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8533 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8534 if eval \${$cacheid+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 int i;
8540 int
8541 main ()
8542 {
8543
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549 eval $cacheid=yes
8550 else
8551 eval $cacheid=no
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 fi
8556
8557
8558 CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560 eval supported=\$$cacheid
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562 $as_echo "$supported" >&6; }
8563 if test "$supported" = "yes" ; then
8564 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8565 found="yes"
8566 fi
8567 fi
8568
8569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8570 else
8571 { $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
8572 $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;}
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586 xorg_testset_save_CFLAGS="$CFLAGS"
8587
8588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8592 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"; then :
8600 xorg_cv_cc_flag_unknown_warning_option=yes
8601 else
8602 xorg_cv_cc_flag_unknown_warning_option=no
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8607 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610 fi
8611
8612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8619 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 xorg_cv_cc_flag_unused_command_line_argument=yes
8628 else
8629 xorg_cv_cc_flag_unused_command_line_argument=no
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8634 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8636 CFLAGS="$xorg_testset_save_CFLAGS"
8637 fi
8638
8639 found="no"
8640
8641 if test $found = "no" ; then
8642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645
8646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 fi
8649
8650 CFLAGS="$CFLAGS -Wimplicit"
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8653 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8654 cacheid=xorg_cv_cc_flag__Wimplicit
8655 if eval \${$cacheid+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 int
8662 main ()
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 eval $cacheid=yes
8671 else
8672 eval $cacheid=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681 eval supported=\$$cacheid
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683 $as_echo "$supported" >&6; }
8684 if test "$supported" = "yes" ; then
8685 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8686 found="yes"
8687 fi
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 int i;
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 xorg_cv_cc_flag_unknown_warning_option=yes
8719 else
8720 xorg_cv_cc_flag_unknown_warning_option=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728 fi
8729
8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 fi
8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 int i;
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 xorg_cv_cc_flag_unused_command_line_argument=yes
8746 else
8747 xorg_cv_cc_flag_unused_command_line_argument=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755 fi
8756
8757 found="no"
8758
8759 if test $found = "no" ; then
8760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763
8764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766 fi
8767
8768 CFLAGS="$CFLAGS -Wnonnull"
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8771 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8772 cacheid=xorg_cv_cc_flag__Wnonnull
8773 if eval \${$cacheid+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int i;
8779 int
8780 main ()
8781 {
8782
8783 ;
8784 return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_c_try_link "$LINENO"; then :
8788 eval $cacheid=yes
8789 else
8790 eval $cacheid=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 fi
8795
8796
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799 eval supported=\$$cacheid
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801 $as_echo "$supported" >&6; }
8802 if test "$supported" = "yes" ; then
8803 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8804 found="yes"
8805 fi
8806 fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 int i;
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 xorg_cv_cc_flag_unknown_warning_option=yes
8837 else
8838 xorg_cv_cc_flag_unknown_warning_option=no
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845 CFLAGS="$xorg_testset_save_CFLAGS"
8846 fi
8847
8848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851 fi
8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 int i;
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"; then :
8863 xorg_cv_cc_flag_unused_command_line_argument=yes
8864 else
8865 xorg_cv_cc_flag_unused_command_line_argument=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872 CFLAGS="$xorg_testset_save_CFLAGS"
8873 fi
8874
8875 found="no"
8876
8877 if test $found = "no" ; then
8878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881
8882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884 fi
8885
8886 CFLAGS="$CFLAGS -Winit-self"
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8889 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8890 cacheid=xorg_cv_cc_flag__Winit_self
8891 if eval \${$cacheid+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 int
8898 main ()
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"; then :
8906 eval $cacheid=yes
8907 else
8908 eval $cacheid=no
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 fi
8913
8914
8915 CFLAGS="$xorg_testset_save_CFLAGS"
8916
8917 eval supported=\$$cacheid
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8919 $as_echo "$supported" >&6; }
8920 if test "$supported" = "yes" ; then
8921 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8922 found="yes"
8923 fi
8924 fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940 xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 int i;
8952 _ACEOF
8953 if ac_fn_c_try_compile "$LINENO"; then :
8954 xorg_cv_cc_flag_unknown_warning_option=yes
8955 else
8956 xorg_cv_cc_flag_unknown_warning_option=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964 fi
8965
8966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 fi
8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 xorg_cv_cc_flag_unused_command_line_argument=yes
8982 else
8983 xorg_cv_cc_flag_unused_command_line_argument=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 found="no"
8994
8995 if test $found = "no" ; then
8996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999
9000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 fi
9003
9004 CFLAGS="$CFLAGS -Wmain"
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9007 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9008 cacheid=xorg_cv_cc_flag__Wmain
9009 if eval \${$cacheid+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 int i;
9015 int
9016 main ()
9017 {
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 eval $cacheid=yes
9025 else
9026 eval $cacheid=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 fi
9031
9032
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035 eval supported=\$$cacheid
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037 $as_echo "$supported" >&6; }
9038 if test "$supported" = "yes" ; then
9039 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9040 found="yes"
9041 fi
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072 xorg_cv_cc_flag_unknown_warning_option=yes
9073 else
9074 xorg_cv_cc_flag_unknown_warning_option=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082 fi
9083
9084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087 fi
9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int i;
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9099 xorg_cv_cc_flag_unused_command_line_argument=yes
9100 else
9101 xorg_cv_cc_flag_unused_command_line_argument=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108 CFLAGS="$xorg_testset_save_CFLAGS"
9109 fi
9110
9111 found="no"
9112
9113 if test $found = "no" ; then
9114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117
9118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 fi
9121
9122 CFLAGS="$CFLAGS -Wmissing-braces"
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9125 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9126 cacheid=xorg_cv_cc_flag__Wmissing_braces
9127 if eval \${$cacheid+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 int
9134 main ()
9135 {
9136
9137 ;
9138 return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 eval $cacheid=yes
9143 else
9144 eval $cacheid=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 fi
9149
9150
9151 CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153 eval supported=\$$cacheid
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155 $as_echo "$supported" >&6; }
9156 if test "$supported" = "yes" ; then
9157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9158 found="yes"
9159 fi
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 int i;
9188 _ACEOF
9189 if ac_fn_c_try_compile "$LINENO"; then :
9190 xorg_cv_cc_flag_unknown_warning_option=yes
9191 else
9192 xorg_cv_cc_flag_unknown_warning_option=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199 CFLAGS="$xorg_testset_save_CFLAGS"
9200 fi
9201
9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205 fi
9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 int i;
9215 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"; then :
9217 xorg_cv_cc_flag_unused_command_line_argument=yes
9218 else
9219 xorg_cv_cc_flag_unused_command_line_argument=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227 fi
9228
9229 found="no"
9230
9231 if test $found = "no" ; then
9232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235
9236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 fi
9239
9240 CFLAGS="$CFLAGS -Wsequence-point"
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9243 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9244 cacheid=xorg_cv_cc_flag__Wsequence_point
9245 if eval \${$cacheid+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 int
9252 main ()
9253 {
9254
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260 eval $cacheid=yes
9261 else
9262 eval $cacheid=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi
9267
9268
9269 CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271 eval supported=\$$cacheid
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273 $as_echo "$supported" >&6; }
9274 if test "$supported" = "yes" ; then
9275 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9276 found="yes"
9277 fi
9278 fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 int i;
9306 _ACEOF
9307 if ac_fn_c_try_compile "$LINENO"; then :
9308 xorg_cv_cc_flag_unknown_warning_option=yes
9309 else
9310 xorg_cv_cc_flag_unknown_warning_option=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 xorg_cv_cc_flag_unused_command_line_argument=yes
9336 else
9337 xorg_cv_cc_flag_unused_command_line_argument=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 found="no"
9348
9349 if test $found = "no" ; then
9350 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353
9354 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 fi
9357
9358 CFLAGS="$CFLAGS -Wreturn-type"
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9361 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9362 cacheid=xorg_cv_cc_flag__Wreturn_type
9363 if eval \${$cacheid+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 int
9370 main ()
9371 {
9372
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 eval $cacheid=yes
9379 else
9380 eval $cacheid=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 fi
9385
9386
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389 eval supported=\$$cacheid
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391 $as_echo "$supported" >&6; }
9392 if test "$supported" = "yes" ; then
9393 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9394 found="yes"
9395 fi
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 int i;
9424 _ACEOF
9425 if ac_fn_c_try_compile "$LINENO"; then :
9426 xorg_cv_cc_flag_unknown_warning_option=yes
9427 else
9428 xorg_cv_cc_flag_unknown_warning_option=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436 fi
9437
9438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441 fi
9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 int i;
9451 _ACEOF
9452 if ac_fn_c_try_compile "$LINENO"; then :
9453 xorg_cv_cc_flag_unused_command_line_argument=yes
9454 else
9455 xorg_cv_cc_flag_unused_command_line_argument=no
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463 fi
9464
9465 found="no"
9466
9467 if test $found = "no" ; then
9468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471
9472 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474 fi
9475
9476 CFLAGS="$CFLAGS -Wtrigraphs"
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9479 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9480 cacheid=xorg_cv_cc_flag__Wtrigraphs
9481 if eval \${$cacheid+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int i;
9487 int
9488 main ()
9489 {
9490
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 eval $cacheid=yes
9497 else
9498 eval $cacheid=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 fi
9503
9504
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507 eval supported=\$$cacheid
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509 $as_echo "$supported" >&6; }
9510 if test "$supported" = "yes" ; then
9511 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9512 found="yes"
9513 fi
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 int i;
9542 _ACEOF
9543 if ac_fn_c_try_compile "$LINENO"; then :
9544 xorg_cv_cc_flag_unknown_warning_option=yes
9545 else
9546 xorg_cv_cc_flag_unknown_warning_option=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554 fi
9555
9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559 fi
9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int i;
9569 _ACEOF
9570 if ac_fn_c_try_compile "$LINENO"; then :
9571 xorg_cv_cc_flag_unused_command_line_argument=yes
9572 else
9573 xorg_cv_cc_flag_unused_command_line_argument=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581 fi
9582
9583 found="no"
9584
9585 if test $found = "no" ; then
9586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589
9590 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 fi
9593
9594 CFLAGS="$CFLAGS -Warray-bounds"
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9597 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9598 cacheid=xorg_cv_cc_flag__Warray_bounds
9599 if eval \${$cacheid+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int i;
9605 int
9606 main ()
9607 {
9608
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 eval $cacheid=yes
9615 else
9616 eval $cacheid=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 fi
9621
9622
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625 eval supported=\$$cacheid
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627 $as_echo "$supported" >&6; }
9628 if test "$supported" = "yes" ; then
9629 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9630 found="yes"
9631 fi
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 int i;
9660 _ACEOF
9661 if ac_fn_c_try_compile "$LINENO"; then :
9662 xorg_cv_cc_flag_unknown_warning_option=yes
9663 else
9664 xorg_cv_cc_flag_unknown_warning_option=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 int i;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9689 xorg_cv_cc_flag_unused_command_line_argument=yes
9690 else
9691 xorg_cv_cc_flag_unused_command_line_argument=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 fi
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699 fi
9700
9701 found="no"
9702
9703 if test $found = "no" ; then
9704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 fi
9707
9708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 fi
9711
9712 CFLAGS="$CFLAGS -Wwrite-strings"
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9715 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9716 cacheid=xorg_cv_cc_flag__Wwrite_strings
9717 if eval \${$cacheid+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 int
9724 main ()
9725 {
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 eval $cacheid=yes
9733 else
9734 eval $cacheid=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 fi
9739
9740
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743 eval supported=\$$cacheid
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745 $as_echo "$supported" >&6; }
9746 if test "$supported" = "yes" ; then
9747 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9748 found="yes"
9749 fi
9750 fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766 xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 int i;
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 xorg_cv_cc_flag_unknown_warning_option=yes
9781 else
9782 xorg_cv_cc_flag_unknown_warning_option=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 int i;
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 xorg_cv_cc_flag_unused_command_line_argument=yes
9808 else
9809 xorg_cv_cc_flag_unused_command_line_argument=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816 CFLAGS="$xorg_testset_save_CFLAGS"
9817 fi
9818
9819 found="no"
9820
9821 if test $found = "no" ; then
9822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 fi
9825
9826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828 fi
9829
9830 CFLAGS="$CFLAGS -Waddress"
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9833 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9834 cacheid=xorg_cv_cc_flag__Waddress
9835 if eval \${$cacheid+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 int i;
9841 int
9842 main ()
9843 {
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 eval $cacheid=yes
9851 else
9852 eval $cacheid=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 fi
9857
9858
9859 CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861 eval supported=\$$cacheid
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863 $as_echo "$supported" >&6; }
9864 if test "$supported" = "yes" ; then
9865 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9866 found="yes"
9867 fi
9868 fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 int i;
9896 _ACEOF
9897 if ac_fn_c_try_compile "$LINENO"; then :
9898 xorg_cv_cc_flag_unknown_warning_option=yes
9899 else
9900 xorg_cv_cc_flag_unknown_warning_option=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913 fi
9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"; then :
9925 xorg_cv_cc_flag_unused_command_line_argument=yes
9926 else
9927 xorg_cv_cc_flag_unused_command_line_argument=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935 fi
9936
9937 found="no"
9938
9939 if test $found = "no" ; then
9940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943
9944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946 fi
9947
9948 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9951 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9952 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9953 if eval \${$cacheid+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 int i;
9959 int
9960 main ()
9961 {
9962
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_link "$LINENO"; then :
9968 eval $cacheid=yes
9969 else
9970 eval $cacheid=no
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 fi
9975
9976
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979 eval supported=\$$cacheid
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981 $as_echo "$supported" >&6; }
9982 if test "$supported" = "yes" ; then
9983 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9984 found="yes"
9985 fi
9986 fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"; then :
10016 xorg_cv_cc_flag_unknown_warning_option=yes
10017 else
10018 xorg_cv_cc_flag_unknown_warning_option=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025 CFLAGS="$xorg_testset_save_CFLAGS"
10026 fi
10027
10028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031 fi
10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int i;
10041 _ACEOF
10042 if ac_fn_c_try_compile "$LINENO"; then :
10043 xorg_cv_cc_flag_unused_command_line_argument=yes
10044 else
10045 xorg_cv_cc_flag_unused_command_line_argument=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052 CFLAGS="$xorg_testset_save_CFLAGS"
10053 fi
10054
10055 found="no"
10056
10057 if test $found = "no" ; then
10058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061
10062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064 fi
10065
10066 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10069 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10070 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10071 if eval \${$cacheid+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 int i;
10077 int
10078 main ()
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 eval $cacheid=yes
10087 else
10088 eval $cacheid=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093
10094
10095 CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097 eval supported=\$$cacheid
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099 $as_echo "$supported" >&6; }
10100 if test "$supported" = "yes" ; then
10101 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10102 found="yes"
10103 fi
10104 fi
10105
10106
10107 fi
10108
10109
10110
10111
10112
10113
10114
10115 CWARNFLAGS="$BASE_CFLAGS"
10116 if test "x$GCC" = xyes ; then
10117 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10118 fi
10119
10120
10121
10122
10123
10124
10125
10126
10127 # Check whether --enable-strict-compilation was given.
10128 if test "${enable_strict_compilation+set}" = set; then :
10129 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10130 else
10131 STRICT_COMPILE=no
10132 fi
10133
10134
10135
10136
10137
10138
10139 STRICT_CFLAGS=""
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 xorg_testset_save_CFLAGS="$CFLAGS"
10154
10155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"; then :
10167 xorg_cv_cc_flag_unknown_warning_option=yes
10168 else
10169 xorg_cv_cc_flag_unknown_warning_option=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176 CFLAGS="$xorg_testset_save_CFLAGS"
10177 fi
10178
10179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 fi
10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 int i;
10192 _ACEOF
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194 xorg_cv_cc_flag_unused_command_line_argument=yes
10195 else
10196 xorg_cv_cc_flag_unused_command_line_argument=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204 fi
10205
10206 found="no"
10207
10208 if test $found = "no" ; then
10209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 fi
10212
10213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215 fi
10216
10217 CFLAGS="$CFLAGS -pedantic"
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10220 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10221 cacheid=xorg_cv_cc_flag__pedantic
10222 if eval \${$cacheid+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 int
10229 main ()
10230 {
10231
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 eval $cacheid=yes
10238 else
10239 eval $cacheid=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 fi
10244
10245
10246 CFLAGS="$xorg_testset_save_CFLAGS"
10247
10248 eval supported=\$$cacheid
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250 $as_echo "$supported" >&6; }
10251 if test "$supported" = "yes" ; then
10252 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10253 found="yes"
10254 fi
10255 fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271 xorg_testset_save_CFLAGS="$CFLAGS"
10272
10273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285 xorg_cv_cc_flag_unknown_warning_option=yes
10286 else
10287 xorg_cv_cc_flag_unknown_warning_option=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10294 CFLAGS="$xorg_testset_save_CFLAGS"
10295 fi
10296
10297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300 fi
10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"; then :
10312 xorg_cv_cc_flag_unused_command_line_argument=yes
10313 else
10314 xorg_cv_cc_flag_unused_command_line_argument=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 fi
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322 fi
10323
10324 found="no"
10325
10326 if test $found = "no" ; then
10327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329 fi
10330
10331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333 fi
10334
10335 CFLAGS="$CFLAGS -Werror"
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10338 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10339 cacheid=xorg_cv_cc_flag__Werror
10340 if eval \${$cacheid+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 eval $cacheid=yes
10356 else
10357 eval $cacheid=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 fi
10362
10363
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366 eval supported=\$$cacheid
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368 $as_echo "$supported" >&6; }
10369 if test "$supported" = "yes" ; then
10370 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10371 found="yes"
10372 fi
10373 fi
10374
10375 if test $found = "no" ; then
10376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379
10380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382 fi
10383
10384 CFLAGS="$CFLAGS -errwarn"
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10387 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10388 cacheid=xorg_cv_cc_flag__errwarn
10389 if eval \${$cacheid+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int i;
10395 int
10396 main ()
10397 {
10398
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404 eval $cacheid=yes
10405 else
10406 eval $cacheid=no
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 fi
10411
10412
10413 CFLAGS="$xorg_testset_save_CFLAGS"
10414
10415 eval supported=\$$cacheid
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10417 $as_echo "$supported" >&6; }
10418 if test "$supported" = "yes" ; then
10419 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10420 found="yes"
10421 fi
10422 fi
10423
10424
10425
10426 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10427 # activate it with -Werror, so we add it here explicitly.
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 xorg_testset_save_CFLAGS="$CFLAGS"
10442
10443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 int i;
10453 _ACEOF
10454 if ac_fn_c_try_compile "$LINENO"; then :
10455 xorg_cv_cc_flag_unknown_warning_option=yes
10456 else
10457 xorg_cv_cc_flag_unknown_warning_option=no
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 fi
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10464 CFLAGS="$xorg_testset_save_CFLAGS"
10465 fi
10466
10467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470 fi
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int i;
10480 _ACEOF
10481 if ac_fn_c_try_compile "$LINENO"; then :
10482 xorg_cv_cc_flag_unused_command_line_argument=yes
10483 else
10484 xorg_cv_cc_flag_unused_command_line_argument=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10491 CFLAGS="$xorg_testset_save_CFLAGS"
10492 fi
10493
10494 found="no"
10495
10496 if test $found = "no" ; then
10497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499 fi
10500
10501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503 fi
10504
10505 CFLAGS="$CFLAGS -Werror=attributes"
10506
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10508 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10510 if eval \${$cacheid+:} false; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int i;
10516 int
10517 main ()
10518 {
10519
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10525 eval $cacheid=yes
10526 else
10527 eval $cacheid=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 fi
10532
10533
10534 CFLAGS="$xorg_testset_save_CFLAGS"
10535
10536 eval supported=\$$cacheid
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10538 $as_echo "$supported" >&6; }
10539 if test "$supported" = "yes" ; then
10540 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10541 found="yes"
10542 fi
10543 fi
10544
10545
10546
10547 if test "x$STRICT_COMPILE" = "xyes"; then
10548 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10549 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10550 fi
10551
10552
10553
10554
10555
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10559 _ACEOF
10560
10561 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10562 if test "x$PVM" = "x"; then
10563 PVM="0"
10564 fi
10565
10566 cat >>confdefs.h <<_ACEOF
10567 #define PACKAGE_VERSION_MINOR $PVM
10568 _ACEOF
10569
10570 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10571 if test "x$PVP" = "x"; then
10572 PVP="0"
10573 fi
10574
10575 cat >>confdefs.h <<_ACEOF
10576 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10577 _ACEOF
10578
10579
10580
10581 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10582 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10583 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10584 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10585
10586
10587
10588
10589 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10590 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10591 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10592 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10593 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10594
10595
10596
10597
10598
10599
10600 if test x$APP_MAN_SUFFIX = x ; then
10601 APP_MAN_SUFFIX=1
10602 fi
10603 if test x$APP_MAN_DIR = x ; then
10604 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10605 fi
10606
10607 if test x$LIB_MAN_SUFFIX = x ; then
10608 LIB_MAN_SUFFIX=3
10609 fi
10610 if test x$LIB_MAN_DIR = x ; then
10611 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10612 fi
10613
10614 if test x$FILE_MAN_SUFFIX = x ; then
10615 case $host_os in
10616 solaris*) FILE_MAN_SUFFIX=4 ;;
10617 *) FILE_MAN_SUFFIX=5 ;;
10618 esac
10619 fi
10620 if test x$FILE_MAN_DIR = x ; then
10621 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10622 fi
10623
10624 if test x$MISC_MAN_SUFFIX = x ; then
10625 case $host_os in
10626 solaris*) MISC_MAN_SUFFIX=5 ;;
10627 *) MISC_MAN_SUFFIX=7 ;;
10628 esac
10629 fi
10630 if test x$MISC_MAN_DIR = x ; then
10631 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10632 fi
10633
10634 if test x$DRIVER_MAN_SUFFIX = x ; then
10635 case $host_os in
10636 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10637 *) DRIVER_MAN_SUFFIX=4 ;;
10638 esac
10639 fi
10640 if test x$DRIVER_MAN_DIR = x ; then
10641 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10642 fi
10643
10644 if test x$ADMIN_MAN_SUFFIX = x ; then
10645 case $host_os in
10646 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10647 *) ADMIN_MAN_SUFFIX=8 ;;
10648 esac
10649 fi
10650 if test x$ADMIN_MAN_DIR = x ; then
10651 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668 XORG_MAN_PAGE="X Version 11"
10669
10670 MAN_SUBSTS="\
10671 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10672 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10673 -e 's|__xservername__|Xorg|g' \
10674 -e 's|__xconfigfile__|xorg.conf|g' \
10675 -e 's|__projectroot__|\$(prefix)|g' \
10676 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10677 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10678 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10679 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10680 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10681 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10682 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10683
10684
10685
10686 # Check whether --enable-silent-rules was given.
10687 if test "${enable_silent_rules+set}" = set; then :
10688 enableval=$enable_silent_rules;
10689 fi
10690
10691 case $enable_silent_rules in # (((
10692 yes) AM_DEFAULT_VERBOSITY=0;;
10693 no) AM_DEFAULT_VERBOSITY=1;;
10694 *) AM_DEFAULT_VERBOSITY=0;;
10695 esac
10696 am_make=${MAKE-make}
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10698 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10699 if ${am_cv_make_support_nested_variables+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 if $as_echo 'TRUE=$(BAR$(V))
10703 BAR0=false
10704 BAR1=true
10705 V=1
10706 am__doit:
10707 @$(TRUE)
10708 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10709 am_cv_make_support_nested_variables=yes
10710 else
10711 am_cv_make_support_nested_variables=no
10712 fi
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10715 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10716 if test $am_cv_make_support_nested_variables = yes; then
10717 AM_V='$(V)'
10718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10719 else
10720 AM_V=$AM_DEFAULT_VERBOSITY
10721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10722 fi
10723 AM_BACKSLASH='\'
10724
10725
10726
10727 # Checks for pkg-config packages
10728
10729 pkg_failed=no
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5
10731 $as_echo_n "checking for XCONSOLE... " >&6; }
10732
10733 if test -n "$XCONSOLE_CFLAGS"; then
10734 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS"
10735 elif test -n "$PKG_CONFIG"; then
10736 if test -n "$PKG_CONFIG" && \
10737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
10738 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
10739 ac_status=$?
10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741 test $ac_status = 0; }; then
10742 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
10743 else
10744 pkg_failed=yes
10745 fi
10746 else
10747 pkg_failed=untried
10748 fi
10749 if test -n "$XCONSOLE_LIBS"; then
10750 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS"
10751 elif test -n "$PKG_CONFIG"; then
10752 if test -n "$PKG_CONFIG" && \
10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
10754 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
10755 ac_status=$?
10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10757 test $ac_status = 0; }; then
10758 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
10759 else
10760 pkg_failed=yes
10761 fi
10762 else
10763 pkg_failed=untried
10764 fi
10765
10766
10767
10768 if test $pkg_failed = yes; then
10769
10770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10771 _pkg_short_errors_supported=yes
10772 else
10773 _pkg_short_errors_supported=no
10774 fi
10775 if test $_pkg_short_errors_supported = yes; then
10776 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
10777 else
10778 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
10779 fi
10780 # Put the nasty error message in config.log where it belongs
10781 echo "$XCONSOLE_PKG_ERRORS" >&5
10782
10783 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met:
10784
10785 $XCONSOLE_PKG_ERRORS
10786
10787 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10788 installed software in a non-standard prefix.
10789
10790 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
10791 and XCONSOLE_LIBS to avoid the need to call pkg-config.
10792 See the pkg-config man page for more details.
10793 " "$LINENO" 5
10794 elif test $pkg_failed = untried; then
10795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10797 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10798 is in your PATH or set the PKG_CONFIG environment variable to the full
10799 path to pkg-config.
10800
10801 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
10802 and XCONSOLE_LIBS to avoid the need to call pkg-config.
10803 See the pkg-config man page for more details.
10804
10805 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10806 See \`config.log' for more details" "$LINENO" 5; }
10807 else
10808 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS
10809 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10811 $as_echo "yes" >&6; }
10812 :
10813 fi
10814
10815
10816 pkg_failed=no
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10818 $as_echo_n "checking for APPDEFS... " >&6; }
10819
10820 if test -n "$APPDEFS_CFLAGS"; then
10821 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10822 elif test -n "$PKG_CONFIG"; then
10823 if test -n "$PKG_CONFIG" && \
10824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10825 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10826 ac_status=$?
10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; }; then
10829 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10830 else
10831 pkg_failed=yes
10832 fi
10833 else
10834 pkg_failed=untried
10835 fi
10836 if test -n "$APPDEFS_LIBS"; then
10837 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10838 elif test -n "$PKG_CONFIG"; then
10839 if test -n "$PKG_CONFIG" && \
10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10841 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10842 ac_status=$?
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; }; then
10845 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10846 else
10847 pkg_failed=yes
10848 fi
10849 else
10850 pkg_failed=untried
10851 fi
10852
10853
10854
10855 if test $pkg_failed = yes; then
10856
10857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10858 _pkg_short_errors_supported=yes
10859 else
10860 _pkg_short_errors_supported=no
10861 fi
10862 if test $_pkg_short_errors_supported = yes; then
10863 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10864 else
10865 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10866 fi
10867 # Put the nasty error message in config.log where it belongs
10868 echo "$APPDEFS_PKG_ERRORS" >&5
10869
10870 as_fn_error $? "Package requirements (xt) were not met:
10871
10872 $APPDEFS_PKG_ERRORS
10873
10874 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10875 installed software in a non-standard prefix.
10876
10877 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10878 and APPDEFS_LIBS to avoid the need to call pkg-config.
10879 See the pkg-config man page for more details.
10880 " "$LINENO" 5
10881 elif test $pkg_failed = untried; then
10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10884 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10885 is in your PATH or set the PKG_CONFIG environment variable to the full
10886 path to pkg-config.
10887
10888 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10889 and APPDEFS_LIBS to avoid the need to call pkg-config.
10890 See the pkg-config man page for more details.
10891
10892 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10893 See \`config.log' for more details" "$LINENO" 5; }
10894 else
10895 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10896 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10898 $as_echo "yes" >&6; }
10899 :
10900 fi
10901 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10902
10903 # Check whether --with-appdefaultdir was given.
10904 if test "${with_appdefaultdir+set}" = set; then :
10905 withval=$with_appdefaultdir; appdefaultdir="$withval"
10906 else
10907 appdefaultdir="${xt_appdefaultdir}"
10908 fi
10909
10910
10911
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
10913 $as_echo_n "checking for library containing openpty... " >&6; }
10914 if ${ac_cv_search_openpty+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 ac_func_search_save_LIBS=$LIBS
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char openpty ();
10928 int
10929 main ()
10930 {
10931 return openpty ();
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 for ac_lib in '' util; do
10937 if test -z "$ac_lib"; then
10938 ac_res="none required"
10939 else
10940 ac_res=-l$ac_lib
10941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10942 fi
10943 if ac_fn_c_try_link "$LINENO"; then :
10944 ac_cv_search_openpty=$ac_res
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext \
10947 conftest$ac_exeext
10948 if ${ac_cv_search_openpty+:} false; then :
10949 break
10950 fi
10951 done
10952 if ${ac_cv_search_openpty+:} false; then :
10953
10954 else
10955 ac_cv_search_openpty=no
10956 fi
10957 rm conftest.$ac_ext
10958 LIBS=$ac_func_search_save_LIBS
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
10961 $as_echo "$ac_cv_search_openpty" >&6; }
10962 ac_res=$ac_cv_search_openpty
10963 if test "$ac_res" != no; then :
10964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10965
10966 fi
10967
10968 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
10969 if test "x$ac_cv_func_openpty" = xyes; then :
10970 HAS_OPENPTY="yes"
10971 fi
10972
10973 if test "x$HAS_OPENPTY" = "xyes" ; then
10974
10975 $as_echo "#define HAS_OPENPTY 1" >>confdefs.h
10976
10977 for ac_header in util.h libutil.h pty.h
10978 do :
10979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10982 cat >>confdefs.h <<_ACEOF
10983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10984 _ACEOF
10985 break
10986 fi
10987
10988 done
10989
10990 fi
10991
10992
10993 ac_config_files="$ac_config_files Makefile man/Makefile"
10994
10995 cat >confcache <<\_ACEOF
10996 # This file is a shell script that caches the results of configure
10997 # tests run on this system so they can be shared between configure
10998 # scripts and configure runs, see configure's option --config-cache.
10999 # It is not useful on other systems. If it contains results you don't
11000 # want to keep, you may remove or edit it.
11001 #
11002 # config.status only pays attention to the cache file if you give it
11003 # the --recheck option to rerun configure.
11004 #
11005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11007 # following values.
11008
11009 _ACEOF
11010
11011 # The following way of writing the cache mishandles newlines in values,
11012 # but we know of no workaround that is simple, portable, and efficient.
11013 # So, we kill variables containing newlines.
11014 # Ultrix sh set writes to stderr and can't be redirected directly,
11015 # and sets the high bit in the cache file unless we assign to the vars.
11016 (
11017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11018 eval ac_val=\$$ac_var
11019 case $ac_val in #(
11020 *${as_nl}*)
11021 case $ac_var in #(
11022 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11023 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11024 esac
11025 case $ac_var in #(
11026 _ | IFS | as_nl) ;; #(
11027 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11028 *) { eval $ac_var=; unset $ac_var;} ;;
11029 esac ;;
11030 esac
11031 done
11032
11033 (set) 2>&1 |
11034 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11035 *${as_nl}ac_space=\ *)
11036 # `set' does not quote correctly, so add quotes: double-quote
11037 # substitution turns \\\\ into \\, and sed turns \\ into \.
11038 sed -n \
11039 "s/'/'\\\\''/g;
11040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11041 ;; #(
11042 *)
11043 # `set' quotes correctly as required by POSIX, so do not add quotes.
11044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11045 ;;
11046 esac |
11047 sort
11048 ) |
11049 sed '
11050 /^ac_cv_env_/b end
11051 t clear
11052 :clear
11053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11054 t end
11055 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11056 :end' >>confcache
11057 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11058 if test -w "$cache_file"; then
11059 if test "x$cache_file" != "x/dev/null"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11061 $as_echo "$as_me: updating cache $cache_file" >&6;}
11062 if test ! -f "$cache_file" || test -h "$cache_file"; then
11063 cat confcache >"$cache_file"
11064 else
11065 case $cache_file in #(
11066 */* | ?:*)
11067 mv -f confcache "$cache_file"$$ &&
11068 mv -f "$cache_file"$$ "$cache_file" ;; #(
11069 *)
11070 mv -f confcache "$cache_file" ;;
11071 esac
11072 fi
11073 fi
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11076 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11077 fi
11078 fi
11079 rm -f confcache
11080
11081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11082 # Let make expand exec_prefix.
11083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11084
11085 DEFS=-DHAVE_CONFIG_H
11086
11087 ac_libobjs=
11088 ac_ltlibobjs=
11089 U=
11090 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11091 # 1. Remove the extension, and $U if already installed.
11092 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11093 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11094 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11095 # will be set to the directory where LIBOBJS objects are built.
11096 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11097 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11098 done
11099 LIBOBJS=$ac_libobjs
11100
11101 LTLIBOBJS=$ac_ltlibobjs
11102
11103
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11105 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11106 if test -n "$am_sleep_pid"; then
11107 # Hide warnings about reused PIDs.
11108 wait $am_sleep_pid 2>/dev/null
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11111 $as_echo "done" >&6; }
11112 if test -n "$EXEEXT"; then
11113 am__EXEEXT_TRUE=
11114 am__EXEEXT_FALSE='#'
11115 else
11116 am__EXEEXT_TRUE='#'
11117 am__EXEEXT_FALSE=
11118 fi
11119
11120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11121 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11123 fi
11124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11125 as_fn_error $? "conditional \"AMDEP\" was never defined.
11126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11127 fi
11128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11129 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11131 fi
11132
11133 : "${CONFIG_STATUS=./config.status}"
11134 ac_write_fail=0
11135 ac_clean_files_save=$ac_clean_files
11136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11139 as_write_fail=0
11140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11141 #! $SHELL
11142 # Generated by $as_me.
11143 # Run this file to recreate the current configuration.
11144 # Compiler output produced by configure, useful for debugging
11145 # configure, is in config.log if it exists.
11146
11147 debug=false
11148 ac_cs_recheck=false
11149 ac_cs_silent=false
11150
11151 SHELL=\${CONFIG_SHELL-$SHELL}
11152 export SHELL
11153 _ASEOF
11154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11155 ## -------------------- ##
11156 ## M4sh Initialization. ##
11157 ## -------------------- ##
11158
11159 # Be more Bourne compatible
11160 DUALCASE=1; export DUALCASE # for MKS sh
11161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11162 emulate sh
11163 NULLCMD=:
11164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11165 # is contrary to our usage. Disable this feature.
11166 alias -g '${1+"$@"}'='"$@"'
11167 setopt NO_GLOB_SUBST
11168 else
11169 case `(set -o) 2>/dev/null` in #(
11170 *posix*) :
11171 set -o posix ;; #(
11172 *) :
11173 ;;
11174 esac
11175 fi
11176
11177
11178 as_nl='
11179 '
11180 export as_nl
11181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11185 # Prefer a ksh shell builtin over an external printf program on Solaris,
11186 # but without wasting forks for bash or zsh.
11187 if test -z "$BASH_VERSION$ZSH_VERSION" \
11188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11189 as_echo='print -r --'
11190 as_echo_n='print -rn --'
11191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11192 as_echo='printf %s\n'
11193 as_echo_n='printf %s'
11194 else
11195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11197 as_echo_n='/usr/ucb/echo -n'
11198 else
11199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11200 as_echo_n_body='eval
11201 arg=$1;
11202 case $arg in #(
11203 *"$as_nl"*)
11204 expr "X$arg" : "X\\(.*\\)$as_nl";
11205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11206 esac;
11207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11208 '
11209 export as_echo_n_body
11210 as_echo_n='sh -c $as_echo_n_body as_echo'
11211 fi
11212 export as_echo_body
11213 as_echo='sh -c $as_echo_body as_echo'
11214 fi
11215
11216 # The user is always right.
11217 if test "${PATH_SEPARATOR+set}" != set; then
11218 PATH_SEPARATOR=:
11219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11221 PATH_SEPARATOR=';'
11222 }
11223 fi
11224
11225
11226 # IFS
11227 # We need space, tab and new line, in precisely that order. Quoting is
11228 # there to prevent editors from complaining about space-tab.
11229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11230 # splitting by setting IFS to empty value.)
11231 IFS=" "" $as_nl"
11232
11233 # Find who we are. Look in the path if we contain no directory separator.
11234 as_myself=
11235 case $0 in #((
11236 *[\\/]* ) as_myself=$0 ;;
11237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11239 do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11243 done
11244 IFS=$as_save_IFS
11245
11246 ;;
11247 esac
11248 # We did not find ourselves, most probably we were run as `sh COMMAND'
11249 # in which case we are not to be found in the path.
11250 if test "x$as_myself" = x; then
11251 as_myself=$0
11252 fi
11253 if test ! -f "$as_myself"; then
11254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11255 exit 1
11256 fi
11257
11258 # Unset variables that we do not need and which cause bugs (e.g. in
11259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11260 # suppresses any "Segmentation fault" message there. '((' could
11261 # trigger a bug in pdksh 5.2.14.
11262 for as_var in BASH_ENV ENV MAIL MAILPATH
11263 do eval test x\${$as_var+set} = xset \
11264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11265 done
11266 PS1='$ '
11267 PS2='> '
11268 PS4='+ '
11269
11270 # NLS nuisances.
11271 LC_ALL=C
11272 export LC_ALL
11273 LANGUAGE=C
11274 export LANGUAGE
11275
11276 # CDPATH.
11277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11278
11279
11280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11281 # ----------------------------------------
11282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11284 # script with STATUS, using 1 if that was 0.
11285 as_fn_error ()
11286 {
11287 as_status=$1; test $as_status -eq 0 && as_status=1
11288 if test "$4"; then
11289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11291 fi
11292 $as_echo "$as_me: error: $2" >&2
11293 as_fn_exit $as_status
11294 } # as_fn_error
11295
11296
11297 # as_fn_set_status STATUS
11298 # -----------------------
11299 # Set $? to STATUS, without forking.
11300 as_fn_set_status ()
11301 {
11302 return $1
11303 } # as_fn_set_status
11304
11305 # as_fn_exit STATUS
11306 # -----------------
11307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11308 as_fn_exit ()
11309 {
11310 set +e
11311 as_fn_set_status $1
11312 exit $1
11313 } # as_fn_exit
11314
11315 # as_fn_unset VAR
11316 # ---------------
11317 # Portably unset VAR.
11318 as_fn_unset ()
11319 {
11320 { eval $1=; unset $1;}
11321 }
11322 as_unset=as_fn_unset
11323 # as_fn_append VAR VALUE
11324 # ----------------------
11325 # Append the text in VALUE to the end of the definition contained in VAR. Take
11326 # advantage of any shell optimizations that allow amortized linear growth over
11327 # repeated appends, instead of the typical quadratic growth present in naive
11328 # implementations.
11329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11330 eval 'as_fn_append ()
11331 {
11332 eval $1+=\$2
11333 }'
11334 else
11335 as_fn_append ()
11336 {
11337 eval $1=\$$1\$2
11338 }
11339 fi # as_fn_append
11340
11341 # as_fn_arith ARG...
11342 # ------------------
11343 # Perform arithmetic evaluation on the ARGs, and store the result in the
11344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11345 # must be portable across $(()) and expr.
11346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11347 eval 'as_fn_arith ()
11348 {
11349 as_val=$(( $* ))
11350 }'
11351 else
11352 as_fn_arith ()
11353 {
11354 as_val=`expr "$@" || test $? -eq 1`
11355 }
11356 fi # as_fn_arith
11357
11358
11359 if expr a : '\(a\)' >/dev/null 2>&1 &&
11360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11361 as_expr=expr
11362 else
11363 as_expr=false
11364 fi
11365
11366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11367 as_basename=basename
11368 else
11369 as_basename=false
11370 fi
11371
11372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11373 as_dirname=dirname
11374 else
11375 as_dirname=false
11376 fi
11377
11378 as_me=`$as_basename -- "$0" ||
11379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11380 X"$0" : 'X\(//\)$' \| \
11381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11382 $as_echo X/"$0" |
11383 sed '/^.*\/\([^/][^/]*\)\/*$/{
11384 s//\1/
11385 q
11386 }
11387 /^X\/\(\/\/\)$/{
11388 s//\1/
11389 q
11390 }
11391 /^X\/\(\/\).*/{
11392 s//\1/
11393 q
11394 }
11395 s/.*/./; q'`
11396
11397 # Avoid depending upon Character Ranges.
11398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11401 as_cr_digits='0123456789'
11402 as_cr_alnum=$as_cr_Letters$as_cr_digits
11403
11404 ECHO_C= ECHO_N= ECHO_T=
11405 case `echo -n x` in #(((((
11406 -n*)
11407 case `echo 'xy\c'` in
11408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11409 xy) ECHO_C='\c';;
11410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11411 ECHO_T=' ';;
11412 esac;;
11413 *)
11414 ECHO_N='-n';;
11415 esac
11416
11417 rm -f conf$$ conf$$.exe conf$$.file
11418 if test -d conf$$.dir; then
11419 rm -f conf$$.dir/conf$$.file
11420 else
11421 rm -f conf$$.dir
11422 mkdir conf$$.dir 2>/dev/null
11423 fi
11424 if (echo >conf$$.file) 2>/dev/null; then
11425 if ln -s conf$$.file conf$$ 2>/dev/null; then
11426 as_ln_s='ln -s'
11427 # ... but there are two gotchas:
11428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11430 # In both cases, we have to default to `cp -p'.
11431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11432 as_ln_s='cp -p'
11433 elif ln conf$$.file conf$$ 2>/dev/null; then
11434 as_ln_s=ln
11435 else
11436 as_ln_s='cp -p'
11437 fi
11438 else
11439 as_ln_s='cp -p'
11440 fi
11441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11442 rmdir conf$$.dir 2>/dev/null
11443
11444
11445 # as_fn_mkdir_p
11446 # -------------
11447 # Create "$as_dir" as a directory, including parents if necessary.
11448 as_fn_mkdir_p ()
11449 {
11450
11451 case $as_dir in #(
11452 -*) as_dir=./$as_dir;;
11453 esac
11454 test -d "$as_dir" || eval $as_mkdir_p || {
11455 as_dirs=
11456 while :; do
11457 case $as_dir in #(
11458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11459 *) as_qdir=$as_dir;;
11460 esac
11461 as_dirs="'$as_qdir' $as_dirs"
11462 as_dir=`$as_dirname -- "$as_dir" ||
11463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11464 X"$as_dir" : 'X\(//\)[^/]' \| \
11465 X"$as_dir" : 'X\(//\)$' \| \
11466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11467 $as_echo X"$as_dir" |
11468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11469 s//\1/
11470 q
11471 }
11472 /^X\(\/\/\)[^/].*/{
11473 s//\1/
11474 q
11475 }
11476 /^X\(\/\/\)$/{
11477 s//\1/
11478 q
11479 }
11480 /^X\(\/\).*/{
11481 s//\1/
11482 q
11483 }
11484 s/.*/./; q'`
11485 test -d "$as_dir" && break
11486 done
11487 test -z "$as_dirs" || eval "mkdir $as_dirs"
11488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11489
11490
11491 } # as_fn_mkdir_p
11492 if mkdir -p . 2>/dev/null; then
11493 as_mkdir_p='mkdir -p "$as_dir"'
11494 else
11495 test -d ./-p && rmdir ./-p
11496 as_mkdir_p=false
11497 fi
11498
11499 if test -x / >/dev/null 2>&1; then
11500 as_test_x='test -x'
11501 else
11502 if ls -dL / >/dev/null 2>&1; then
11503 as_ls_L_option=L
11504 else
11505 as_ls_L_option=
11506 fi
11507 as_test_x='
11508 eval sh -c '\''
11509 if test -d "$1"; then
11510 test -d "$1/.";
11511 else
11512 case $1 in #(
11513 -*)set "./$1";;
11514 esac;
11515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11516 ???[sx]*):;;*)false;;esac;fi
11517 '\'' sh
11518 '
11519 fi
11520 as_executable_p=$as_test_x
11521
11522 # Sed expression to map a string onto a valid CPP name.
11523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11524
11525 # Sed expression to map a string onto a valid variable name.
11526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11527
11528
11529 exec 6>&1
11530 ## ----------------------------------- ##
11531 ## Main body of $CONFIG_STATUS script. ##
11532 ## ----------------------------------- ##
11533 _ASEOF
11534 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11535
11536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11537 # Save the log message, to keep $0 and so on meaningful, and to
11538 # report actual input values of CONFIG_FILES etc. instead of their
11539 # values after options handling.
11540 ac_log="
11541 This file was extended by xconsole $as_me 1.0.6, which was
11542 generated by GNU Autoconf 2.68. Invocation command line was
11543
11544 CONFIG_FILES = $CONFIG_FILES
11545 CONFIG_HEADERS = $CONFIG_HEADERS
11546 CONFIG_LINKS = $CONFIG_LINKS
11547 CONFIG_COMMANDS = $CONFIG_COMMANDS
11548 $ $0 $@
11549
11550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11551 "
11552
11553 _ACEOF
11554
11555 case $ac_config_files in *"
11556 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11557 esac
11558
11559 case $ac_config_headers in *"
11560 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11561 esac
11562
11563
11564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11565 # Files that config.status was made for.
11566 config_files="$ac_config_files"
11567 config_headers="$ac_config_headers"
11568 config_commands="$ac_config_commands"
11569
11570 _ACEOF
11571
11572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11573 ac_cs_usage="\
11574 \`$as_me' instantiates files and other configuration actions
11575 from templates according to the current configuration. Unless the files
11576 and actions are specified as TAGs, all are instantiated by default.
11577
11578 Usage: $0 [OPTION]... [TAG]...
11579
11580 -h, --help print this help, then exit
11581 -V, --version print version number and configuration settings, then exit
11582 --config print configuration, then exit
11583 -q, --quiet, --silent
11584 do not print progress messages
11585 -d, --debug don't remove temporary files
11586 --recheck update $as_me by reconfiguring in the same conditions
11587 --file=FILE[:TEMPLATE]
11588 instantiate the configuration file FILE
11589 --header=FILE[:TEMPLATE]
11590 instantiate the configuration header FILE
11591
11592 Configuration files:
11593 $config_files
11594
11595 Configuration headers:
11596 $config_headers
11597
11598 Configuration commands:
11599 $config_commands
11600
11601 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11602
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11605 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11606 ac_cs_version="\\
11607 xconsole config.status 1.0.6
11608 configured by $0, generated by GNU Autoconf 2.68,
11609 with options \\"\$ac_cs_config\\"
11610
11611 Copyright (C) 2010 Free Software Foundation, Inc.
11612 This config.status script is free software; the Free Software Foundation
11613 gives unlimited permission to copy, distribute and modify it."
11614
11615 ac_pwd='$ac_pwd'
11616 srcdir='$srcdir'
11617 INSTALL='$INSTALL'
11618 MKDIR_P='$MKDIR_P'
11619 AWK='$AWK'
11620 test -n "\$AWK" || AWK=awk
11621 _ACEOF
11622
11623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11624 # The default lists apply if the user does not specify any file.
11625 ac_need_defaults=:
11626 while test $# != 0
11627 do
11628 case $1 in
11629 --*=?*)
11630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11632 ac_shift=:
11633 ;;
11634 --*=)
11635 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11636 ac_optarg=
11637 ac_shift=:
11638 ;;
11639 *)
11640 ac_option=$1
11641 ac_optarg=$2
11642 ac_shift=shift
11643 ;;
11644 esac
11645
11646 case $ac_option in
11647 # Handling of the options.
11648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11649 ac_cs_recheck=: ;;
11650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11651 $as_echo "$ac_cs_version"; exit ;;
11652 --config | --confi | --conf | --con | --co | --c )
11653 $as_echo "$ac_cs_config"; exit ;;
11654 --debug | --debu | --deb | --de | --d | -d )
11655 debug=: ;;
11656 --file | --fil | --fi | --f )
11657 $ac_shift
11658 case $ac_optarg in
11659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11660 '') as_fn_error $? "missing file argument" ;;
11661 esac
11662 as_fn_append CONFIG_FILES " '$ac_optarg'"
11663 ac_need_defaults=false;;
11664 --header | --heade | --head | --hea )
11665 $ac_shift
11666 case $ac_optarg in
11667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11668 esac
11669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11670 ac_need_defaults=false;;
11671 --he | --h)
11672 # Conflict between --help and --header
11673 as_fn_error $? "ambiguous option: \`$1'
11674 Try \`$0 --help' for more information.";;
11675 --help | --hel | -h )
11676 $as_echo "$ac_cs_usage"; exit ;;
11677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11679 ac_cs_silent=: ;;
11680
11681 # This is an error.
11682 -*) as_fn_error $? "unrecognized option: \`$1'
11683 Try \`$0 --help' for more information." ;;
11684
11685 *) as_fn_append ac_config_targets " $1"
11686 ac_need_defaults=false ;;
11687
11688 esac
11689 shift
11690 done
11691
11692 ac_configure_extra_args=
11693
11694 if $ac_cs_silent; then
11695 exec 6>/dev/null
11696 ac_configure_extra_args="$ac_configure_extra_args --silent"
11697 fi
11698
11699 _ACEOF
11700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11701 if \$ac_cs_recheck; then
11702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11703 shift
11704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11705 CONFIG_SHELL='$SHELL'
11706 export CONFIG_SHELL
11707 exec "\$@"
11708 fi
11709
11710 _ACEOF
11711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11712 exec 5>>config.log
11713 {
11714 echo
11715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11716 ## Running $as_me. ##
11717 _ASBOX
11718 $as_echo "$ac_log"
11719 } >&5
11720
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 #
11724 # INIT-COMMANDS
11725 #
11726 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11727
11728 _ACEOF
11729
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11731
11732 # Handling of arguments.
11733 for ac_config_target in $ac_config_targets
11734 do
11735 case $ac_config_target in
11736 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11737 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11739 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11740
11741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11742 esac
11743 done
11744
11745
11746 # If the user did not use the arguments to specify the items to instantiate,
11747 # then the envvar interface is used. Set only those that are not.
11748 # We use the long form for the default assignment because of an extremely
11749 # bizarre bug on SunOS 4.1.3.
11750 if $ac_need_defaults; then
11751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11754 fi
11755
11756 # Have a temporary directory for convenience. Make it in the build tree
11757 # simply because there is no reason against having it here, and in addition,
11758 # creating and moving files from /tmp can sometimes cause problems.
11759 # Hook for its removal unless debugging.
11760 # Note that there is a small window in which the directory will not be cleaned:
11761 # after its creation but before its name has been assigned to `$tmp'.
11762 $debug ||
11763 {
11764 tmp= ac_tmp=
11765 trap 'exit_status=$?
11766 : "${ac_tmp:=$tmp}"
11767 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11768 ' 0
11769 trap 'as_fn_exit 1' 1 2 13 15
11770 }
11771 # Create a (secure) tmp directory for tmp files.
11772
11773 {
11774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11775 test -d "$tmp"
11776 } ||
11777 {
11778 tmp=./conf$$-$RANDOM
11779 (umask 077 && mkdir "$tmp")
11780 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11781 ac_tmp=$tmp
11782
11783 # Set up the scripts for CONFIG_FILES section.
11784 # No need to generate them if there are no CONFIG_FILES.
11785 # This happens for instance with `./config.status config.h'.
11786 if test -n "$CONFIG_FILES"; then
11787
11788
11789 ac_cr=`echo X | tr X '\015'`
11790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11791 # But we know of no other shell where ac_cr would be empty at this
11792 # point, so we can use a bashism as a fallback.
11793 if test "x$ac_cr" = x; then
11794 eval ac_cr=\$\'\\r\'
11795 fi
11796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11798 ac_cs_awk_cr='\\r'
11799 else
11800 ac_cs_awk_cr=$ac_cr
11801 fi
11802
11803 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11804 _ACEOF
11805
11806
11807 {
11808 echo "cat >conf$$subs.awk <<_ACEOF" &&
11809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11810 echo "_ACEOF"
11811 } >conf$$subs.sh ||
11812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11814 ac_delim='%!_!# '
11815 for ac_last_try in false false false false false :; do
11816 . ./conf$$subs.sh ||
11817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11818
11819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11820 if test $ac_delim_n = $ac_delim_num; then
11821 break
11822 elif $ac_last_try; then
11823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11824 else
11825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11826 fi
11827 done
11828 rm -f conf$$subs.sh
11829
11830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11831 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11832 _ACEOF
11833 sed -n '
11834 h
11835 s/^/S["/; s/!.*/"]=/
11836 p
11837 g
11838 s/^[^!]*!//
11839 :repl
11840 t repl
11841 s/'"$ac_delim"'$//
11842 t delim
11843 :nl
11844 h
11845 s/\(.\{148\}\)..*/\1/
11846 t more1
11847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11848 p
11849 n
11850 b repl
11851 :more1
11852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11853 p
11854 g
11855 s/.\{148\}//
11856 t nl
11857 :delim
11858 h
11859 s/\(.\{148\}\)..*/\1/
11860 t more2
11861 s/["\\]/\\&/g; s/^/"/; s/$/"/
11862 p
11863 b
11864 :more2
11865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11866 p
11867 g
11868 s/.\{148\}//
11869 t delim
11870 ' <conf$$subs.awk | sed '
11871 /^[^""]/{
11872 N
11873 s/\n//
11874 }
11875 ' >>$CONFIG_STATUS || ac_write_fail=1
11876 rm -f conf$$subs.awk
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878 _ACAWK
11879 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11880 for (key in S) S_is_set[key] = 1
11881 FS = ""
11882
11883 }
11884 {
11885 line = $ 0
11886 nfields = split(line, field, "@")
11887 substed = 0
11888 len = length(field[1])
11889 for (i = 2; i < nfields; i++) {
11890 key = field[i]
11891 keylen = length(key)
11892 if (S_is_set[key]) {
11893 value = S[key]
11894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11895 len += length(value) + length(field[++i])
11896 substed = 1
11897 } else
11898 len += 1 + keylen
11899 }
11900
11901 print line
11902 }
11903
11904 _ACAWK
11905 _ACEOF
11906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11909 else
11910 cat
11911 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11913 _ACEOF
11914
11915 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11916 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11917 # trailing colons and then remove the whole line if VPATH becomes empty
11918 # (actually we leave an empty line to preserve line numbers).
11919 if test "x$srcdir" = x.; then
11920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11921 h
11922 s///
11923 s/^/:/
11924 s/[ ]*$/:/
11925 s/:\$(srcdir):/:/g
11926 s/:\${srcdir}:/:/g
11927 s/:@srcdir@:/:/g
11928 s/^:*//
11929 s/:*$//
11930 x
11931 s/\(=[ ]*\).*/\1/
11932 G
11933 s/\n//
11934 s/^[^=]*=[ ]*$//
11935 }'
11936 fi
11937
11938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939 fi # test -n "$CONFIG_FILES"
11940
11941 # Set up the scripts for CONFIG_HEADERS section.
11942 # No need to generate them if there are no CONFIG_HEADERS.
11943 # This happens for instance with `./config.status Makefile'.
11944 if test -n "$CONFIG_HEADERS"; then
11945 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11946 BEGIN {
11947 _ACEOF
11948
11949 # Transform confdefs.h into an awk script `defines.awk', embedded as
11950 # here-document in config.status, that substitutes the proper values into
11951 # config.h.in to produce config.h.
11952
11953 # Create a delimiter string that does not exist in confdefs.h, to ease
11954 # handling of long lines.
11955 ac_delim='%!_!# '
11956 for ac_last_try in false false :; do
11957 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11958 if test -z "$ac_tt"; then
11959 break
11960 elif $ac_last_try; then
11961 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11962 else
11963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11964 fi
11965 done
11966
11967 # For the awk script, D is an array of macro values keyed by name,
11968 # likewise P contains macro parameters if any. Preserve backslash
11969 # newline sequences.
11970
11971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11972 sed -n '
11973 s/.\{148\}/&'"$ac_delim"'/g
11974 t rset
11975 :rset
11976 s/^[ ]*#[ ]*define[ ][ ]*/ /
11977 t def
11978 d
11979 :def
11980 s/\\$//
11981 t bsnl
11982 s/["\\]/\\&/g
11983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11984 D["\1"]=" \3"/p
11985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11986 d
11987 :bsnl
11988 s/["\\]/\\&/g
11989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11990 D["\1"]=" \3\\\\\\n"\\/p
11991 t cont
11992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11993 t cont
11994 d
11995 :cont
11996 n
11997 s/.\{148\}/&'"$ac_delim"'/g
11998 t clear
11999 :clear
12000 s/\\$//
12001 t bsnlc
12002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12003 d
12004 :bsnlc
12005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12006 b cont
12007 ' <confdefs.h | sed '
12008 s/'"$ac_delim"'/"\\\
12009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12010
12011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12012 for (key in D) D_is_set[key] = 1
12013 FS = ""
12014 }
12015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12016 line = \$ 0
12017 split(line, arg, " ")
12018 if (arg[1] == "#") {
12019 defundef = arg[2]
12020 mac1 = arg[3]
12021 } else {
12022 defundef = substr(arg[1], 2)
12023 mac1 = arg[2]
12024 }
12025 split(mac1, mac2, "(") #)
12026 macro = mac2[1]
12027 prefix = substr(line, 1, index(line, defundef) - 1)
12028 if (D_is_set[macro]) {
12029 # Preserve the white space surrounding the "#".
12030 print prefix "define", macro P[macro] D[macro]
12031 next
12032 } else {
12033 # Replace #undef with comments. This is necessary, for example,
12034 # in the case of _POSIX_SOURCE, which is predefined and required
12035 # on some systems where configure will not decide to define it.
12036 if (defundef == "undef") {
12037 print "/*", prefix defundef, macro, "*/"
12038 next
12039 }
12040 }
12041 }
12042 { print }
12043 _ACAWK
12044 _ACEOF
12045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12046 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12047 fi # test -n "$CONFIG_HEADERS"
12048
12049
12050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12051 shift
12052 for ac_tag
12053 do
12054 case $ac_tag in
12055 :[FHLC]) ac_mode=$ac_tag; continue;;
12056 esac
12057 case $ac_mode$ac_tag in
12058 :[FHL]*:*);;
12059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12060 :[FH]-) ac_tag=-:-;;
12061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12062 esac
12063 ac_save_IFS=$IFS
12064 IFS=:
12065 set x $ac_tag
12066 IFS=$ac_save_IFS
12067 shift
12068 ac_file=$1
12069 shift
12070
12071 case $ac_mode in
12072 :L) ac_source=$1;;
12073 :[FH])
12074 ac_file_inputs=
12075 for ac_f
12076 do
12077 case $ac_f in
12078 -) ac_f="$ac_tmp/stdin";;
12079 *) # Look for the file first in the build tree, then in the source tree
12080 # (if the path is not absolute). The absolute path cannot be DOS-style,
12081 # because $ac_f cannot contain `:'.
12082 test -f "$ac_f" ||
12083 case $ac_f in
12084 [\\/$]*) false;;
12085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12086 esac ||
12087 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12088 esac
12089 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12090 as_fn_append ac_file_inputs " '$ac_f'"
12091 done
12092
12093 # Let's still pretend it is `configure' which instantiates (i.e., don't
12094 # use $as_me), people would be surprised to read:
12095 # /* config.h. Generated by config.status. */
12096 configure_input='Generated from '`
12097 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12098 `' by configure.'
12099 if test x"$ac_file" != x-; then
12100 configure_input="$ac_file. $configure_input"
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12102 $as_echo "$as_me: creating $ac_file" >&6;}
12103 fi
12104 # Neutralize special characters interpreted by sed in replacement strings.
12105 case $configure_input in #(
12106 *\&* | *\|* | *\\* )
12107 ac_sed_conf_input=`$as_echo "$configure_input" |
12108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12109 *) ac_sed_conf_input=$configure_input;;
12110 esac
12111
12112 case $ac_tag in
12113 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12115 esac
12116 ;;
12117 esac
12118
12119 ac_dir=`$as_dirname -- "$ac_file" ||
12120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12121 X"$ac_file" : 'X\(//\)[^/]' \| \
12122 X"$ac_file" : 'X\(//\)$' \| \
12123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12124 $as_echo X"$ac_file" |
12125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12126 s//\1/
12127 q
12128 }
12129 /^X\(\/\/\)[^/].*/{
12130 s//\1/
12131 q
12132 }
12133 /^X\(\/\/\)$/{
12134 s//\1/
12135 q
12136 }
12137 /^X\(\/\).*/{
12138 s//\1/
12139 q
12140 }
12141 s/.*/./; q'`
12142 as_dir="$ac_dir"; as_fn_mkdir_p
12143 ac_builddir=.
12144
12145 case "$ac_dir" in
12146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12147 *)
12148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12149 # A ".." for each directory in $ac_dir_suffix.
12150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12151 case $ac_top_builddir_sub in
12152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12154 esac ;;
12155 esac
12156 ac_abs_top_builddir=$ac_pwd
12157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12158 # for backward compatibility:
12159 ac_top_builddir=$ac_top_build_prefix
12160
12161 case $srcdir in
12162 .) # We are building in place.
12163 ac_srcdir=.
12164 ac_top_srcdir=$ac_top_builddir_sub
12165 ac_abs_top_srcdir=$ac_pwd ;;
12166 [\\/]* | ?:[\\/]* ) # Absolute name.
12167 ac_srcdir=$srcdir$ac_dir_suffix;
12168 ac_top_srcdir=$srcdir
12169 ac_abs_top_srcdir=$srcdir ;;
12170 *) # Relative name.
12171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12172 ac_top_srcdir=$ac_top_build_prefix$srcdir
12173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12174 esac
12175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12176
12177
12178 case $ac_mode in
12179 :F)
12180 #
12181 # CONFIG_FILE
12182 #
12183
12184 case $INSTALL in
12185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12187 esac
12188 ac_MKDIR_P=$MKDIR_P
12189 case $MKDIR_P in
12190 [\\/$]* | ?:[\\/]* ) ;;
12191 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12192 esac
12193 _ACEOF
12194
12195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12196 # If the template does not know about datarootdir, expand it.
12197 # FIXME: This hack should be removed a few years after 2.60.
12198 ac_datarootdir_hack=; ac_datarootdir_seen=
12199 ac_sed_dataroot='
12200 /datarootdir/ {
12201 p
12202 q
12203 }
12204 /@datadir@/p
12205 /@docdir@/p
12206 /@infodir@/p
12207 /@localedir@/p
12208 /@mandir@/p'
12209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12210 *datarootdir*) ac_datarootdir_seen=yes;;
12211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12213 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12214 _ACEOF
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 ac_datarootdir_hack='
12217 s&@datadir@&$datadir&g
12218 s&@docdir@&$docdir&g
12219 s&@infodir@&$infodir&g
12220 s&@localedir@&$localedir&g
12221 s&@mandir@&$mandir&g
12222 s&\\\${datarootdir}&$datarootdir&g' ;;
12223 esac
12224 _ACEOF
12225
12226 # Neutralize VPATH when `$srcdir' = `.'.
12227 # Shell code in configure.ac might set extrasub.
12228 # FIXME: do we really want to maintain this feature?
12229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12230 ac_sed_extra="$ac_vpsub
12231 $extrasub
12232 _ACEOF
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234 :t
12235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12236 s|@configure_input@|$ac_sed_conf_input|;t t
12237 s&@top_builddir@&$ac_top_builddir_sub&;t t
12238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12239 s&@srcdir@&$ac_srcdir&;t t
12240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12241 s&@top_srcdir@&$ac_top_srcdir&;t t
12242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12243 s&@builddir@&$ac_builddir&;t t
12244 s&@abs_builddir@&$ac_abs_builddir&;t t
12245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12246 s&@INSTALL@&$ac_INSTALL&;t t
12247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12248 $ac_datarootdir_hack
12249 "
12250 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12251 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12252
12253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12254 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12256 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12258 which seems to be undefined. Please make sure it is defined" >&5
12259 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12260 which seems to be undefined. Please make sure it is defined" >&2;}
12261
12262 rm -f "$ac_tmp/stdin"
12263 case $ac_file in
12264 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12265 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12266 esac \
12267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12268 ;;
12269 :H)
12270 #
12271 # CONFIG_HEADER
12272 #
12273 if test x"$ac_file" != x-; then
12274 {
12275 $as_echo "/* $configure_input */" \
12276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12277 } >"$ac_tmp/config.h" \
12278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12279 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12281 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12282 else
12283 rm -f "$ac_file"
12284 mv "$ac_tmp/config.h" "$ac_file" \
12285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12286 fi
12287 else
12288 $as_echo "/* $configure_input */" \
12289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12290 || as_fn_error $? "could not create -" "$LINENO" 5
12291 fi
12292 # Compute "$ac_file"'s index in $config_headers.
12293 _am_arg="$ac_file"
12294 _am_stamp_count=1
12295 for _am_header in $config_headers :; do
12296 case $_am_header in
12297 $_am_arg | $_am_arg:* )
12298 break ;;
12299 * )
12300 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12301 esac
12302 done
12303 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12304 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12305 X"$_am_arg" : 'X\(//\)[^/]' \| \
12306 X"$_am_arg" : 'X\(//\)$' \| \
12307 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12308 $as_echo X"$_am_arg" |
12309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12310 s//\1/
12311 q
12312 }
12313 /^X\(\/\/\)[^/].*/{
12314 s//\1/
12315 q
12316 }
12317 /^X\(\/\/\)$/{
12318 s//\1/
12319 q
12320 }
12321 /^X\(\/\).*/{
12322 s//\1/
12323 q
12324 }
12325 s/.*/./; q'`/stamp-h$_am_stamp_count
12326 ;;
12327
12328 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12329 $as_echo "$as_me: executing $ac_file commands" >&6;}
12330 ;;
12331 esac
12332
12333
12334 case $ac_file$ac_mode in
12335 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12336 # Older Autoconf quotes --file arguments for eval, but not when files
12337 # are listed without --file. Let's play safe and only enable the eval
12338 # if we detect the quoting.
12339 case $CONFIG_FILES in
12340 *\'*) eval set x "$CONFIG_FILES" ;;
12341 *) set x $CONFIG_FILES ;;
12342 esac
12343 shift
12344 for mf
12345 do
12346 # Strip MF so we end up with the name of the file.
12347 mf=`echo "$mf" | sed -e 's/:.*$//'`
12348 # Check whether this is an Automake generated Makefile or not.
12349 # We used to match only the files named 'Makefile.in', but
12350 # some people rename them; so instead we look at the file content.
12351 # Grep'ing the first line is not enough: some people post-process
12352 # each Makefile.in and add a new line on top of each file to say so.
12353 # Grep'ing the whole file is not good either: AIX grep has a line
12354 # limit of 2048, but all sed's we know have understand at least 4000.
12355 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12356 dirpart=`$as_dirname -- "$mf" ||
12357 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12358 X"$mf" : 'X\(//\)[^/]' \| \
12359 X"$mf" : 'X\(//\)$' \| \
12360 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12361 $as_echo X"$mf" |
12362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12363 s//\1/
12364 q
12365 }
12366 /^X\(\/\/\)[^/].*/{
12367 s//\1/
12368 q
12369 }
12370 /^X\(\/\/\)$/{
12371 s//\1/
12372 q
12373 }
12374 /^X\(\/\).*/{
12375 s//\1/
12376 q
12377 }
12378 s/.*/./; q'`
12379 else
12380 continue
12381 fi
12382 # Extract the definition of DEPDIR, am__include, and am__quote
12383 # from the Makefile without running 'make'.
12384 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12385 test -z "$DEPDIR" && continue
12386 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12387 test -z "$am__include" && continue
12388 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12389 # Find all dependency output files, they are included files with
12390 # $(DEPDIR) in their names. We invoke sed twice because it is the
12391 # simplest approach to changing $(DEPDIR) to its actual value in the
12392 # expansion.
12393 for file in `sed -n "
12394 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12396 # Make sure the directory exists.
12397 test -f "$dirpart/$file" && continue
12398 fdir=`$as_dirname -- "$file" ||
12399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12400 X"$file" : 'X\(//\)[^/]' \| \
12401 X"$file" : 'X\(//\)$' \| \
12402 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12403 $as_echo X"$file" |
12404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12405 s//\1/
12406 q
12407 }
12408 /^X\(\/\/\)[^/].*/{
12409 s//\1/
12410 q
12411 }
12412 /^X\(\/\/\)$/{
12413 s//\1/
12414 q
12415 }
12416 /^X\(\/\).*/{
12417 s//\1/
12418 q
12419 }
12420 s/.*/./; q'`
12421 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12422 # echo "creating $dirpart/$file"
12423 echo '# dummy' > "$dirpart/$file"
12424 done
12425 done
12426 }
12427 ;;
12428
12429 esac
12430 done # for ac_tag
12431
12432
12433 as_fn_exit 0
12434 _ACEOF
12435 ac_clean_files=$ac_clean_files_save
12436
12437 test $ac_write_fail = 0 ||
12438 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12439
12440
12441 # configure is writing to config.log, and then calls config.status.
12442 # config.status does its own redirection, appending to config.log.
12443 # Unfortunately, on DOS this fails, as config.log is still kept open
12444 # by configure, so config.status won't be able to write to it; its
12445 # output is simply discarded. So we exec the FD to /dev/null,
12446 # effectively closing config.log, so it can be properly (re)opened and
12447 # appended to by config.status. When coming back to configure, we
12448 # need to make the FD available again.
12449 if test "$no_create" != yes; then
12450 ac_cs_success=:
12451 ac_config_status_args=
12452 test "$silent" = yes &&
12453 ac_config_status_args="$ac_config_status_args --quiet"
12454 exec 5>/dev/null
12455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12456 exec 5>>config.log
12457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12458 # would make configure fail if this is the last instruction.
12459 $ac_cs_success || as_fn_exit 1
12460 fi
12461 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12463 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12464 fi
12465
12466