configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xditview 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xditview'
563 PACKAGE_TARNAME='xditview'
564 PACKAGE_VERSION='1.0.3'
565 PACKAGE_STRING='xditview 1.0.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 appdefaultdir
610 APPDEFS_LIBS
611 APPDEFS_CFLAGS
612 XDITVIEW_LIBS
613 XDITVIEW_CFLAGS
614 AM_BACKSLASH
615 AM_DEFAULT_VERBOSITY
616 MAN_SUBSTS
617 XORG_MAN_PAGE
618 ADMIN_MAN_DIR
619 DRIVER_MAN_DIR
620 MISC_MAN_DIR
621 FILE_MAN_DIR
622 LIB_MAN_DIR
623 APP_MAN_DIR
624 ADMIN_MAN_SUFFIX
625 DRIVER_MAN_SUFFIX
626 MISC_MAN_SUFFIX
627 FILE_MAN_SUFFIX
628 LIB_MAN_SUFFIX
629 APP_MAN_SUFFIX
630 SED
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 INSTALL_CMD
640 PKG_CONFIG
641 CHANGELOG_CMD
642 STRICT_CFLAGS
643 CWARNFLAGS
644 BASE_CFLAGS
645 EGREP
646 GREP
647 CPP
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 enable_dependency_tracking
734 enable_selective_werror
735 enable_strict_compilation
736 enable_silent_rules
737 with_appdefaultdir
738 '
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 PKG_CONFIG
749 XDITVIEW_CFLAGS
750 XDITVIEW_LIBS
751 APPDEFS_CFLAGS
752 APPDEFS_LIBS'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 ac_unrecognized_opts=
759 ac_unrecognized_sep=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
776
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
802
803 ac_prev=
804 ac_dashdash=
805 for ac_option
806 do
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
810 ac_prev=
811 continue
812 fi
813
814 case $ac_option in
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 *=) ac_optarg= ;;
817 *) ac_optarg=yes ;;
818 esac
819
820 # Accept the important Cygnus configure options, so we can diagnose typos.
821
822 case $ac_dashdash$ac_option in
823 --)
824 ac_dashdash=yes ;;
825
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
830
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
835
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
842
843 --config-cache | -C)
844 cache_file=config.cache ;;
845
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
850
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
857
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=no ;;
873
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
878
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
883
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=\$ac_optarg ;;
899
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
908
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
911 with_gas=yes ;;
912
913 -help | --help | --hel | --he | -h)
914 ac_init_help=long ;;
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
919
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
924
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 ac_prev=htmldir ;;
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 | --ht=*)
929 htmldir=$ac_optarg ;;
930
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
937
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 ac_prev=infodir ;;
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
942
943 -libdir | --libdir | --libdi | --libd)
944 ac_prev=libdir ;;
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 libdir=$ac_optarg ;;
947
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
954
955 -localedir | --localedir | --localedi | --localed | --locale)
956 ac_prev=localedir ;;
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
959
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
966
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 ac_prev=mandir ;;
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 mandir=$ac_optarg ;;
971
972 -nfp | --nfp | --nf)
973 # Obsolete; use --without-fp.
974 with_fp=no ;;
975
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
978 no_create=yes ;;
979
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 no_recursion=yes ;;
983
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
992
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 ac_prev=prefix ;;
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 prefix=$ac_optarg ;;
997
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1004
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1011
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1028
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 ac_prev=pdfdir ;;
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1033
1034 -psdir | --psdir | --psdi | --psd | --ps)
1035 ac_prev=psdir ;;
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 psdir=$ac_optarg ;;
1038
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 silent=yes ;;
1042
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
1103
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
1119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148 esac
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158 ;;
1159
1160 esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1181 do
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
1190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used" >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1212 fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\).*/{
1252 s//\1/
1253 q
1254 }
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1259 fi
1260 else
1261 ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures xditview 1.0.3 to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/xditview]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356
1357 System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 _ACEOF
1361 fi
1362
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of xditview 1.0.3:";;
1366 esac
1367 cat <<\_ACEOF
1368
1369 Optional Features:
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --enable-maintainer-mode enable make rules and dependencies not useful
1374 (and sometimes confusing) to the casual installer
1375 --disable-dependency-tracking speeds up one-time build
1376 --enable-dependency-tracking do not reject slow dependency extractors
1377 --disable-selective-werror
1378 Turn off selective compiler errors. (default:
1379 enabled)
1380 --enable-strict-compilation
1381 Enable all warnings from compiler and make them
1382 errors (default: disabled)
1383 --enable-silent-rules less verbose build output (undo: `make V=1')
1384 --disable-silent-rules verbose build output (undo: `make V=0')
1385
1386 Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-appdefaultdir=<pathname>
1390 specify directory for app-defaults files (default is
1391 autodetected)
1392
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CPP C preprocessor
1402 PKG_CONFIG path to pkg-config utility
1403 XDITVIEW_CFLAGS
1404 C compiler flags for XDITVIEW, overriding pkg-config
1405 XDITVIEW_LIBS
1406 linker flags for XDITVIEW, overriding pkg-config
1407 APPDEFS_CFLAGS
1408 C compiler flags for APPDEFS, overriding pkg-config
1409 APPDEFS_LIBS
1410 linker flags for APPDEFS, overriding pkg-config
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 xditview configure 1.0.3
1479 generated by GNU Autoconf 2.68
1480
1481 Copyright (C) 2010 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524 fi
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 # accordingly.
1534 ac_fn_c_check_decl ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1543 else
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 $4
1547 int
1548 main ()
1549 {
1550 #ifndef $as_decl_name
1551 #ifdef __cplusplus
1552 (void) $as_decl_use;
1553 #else
1554 (void) $as_decl_name;
1555 #endif
1556 #endif
1557
1558 ;
1559 return 0;
1560 }
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564 else
1565 eval "$3=no"
1566 fi
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574 } # ac_fn_c_check_decl
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=$ac_status
1648 fi
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_run
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798 cat >config.log <<_ACEOF
1799 This file contains any messages produced by compilers while
1800 running configure, to aid debugging if configure makes a mistake.
1801
1802 It was created by xditview $as_me 1.0.3, which was
1803 generated by GNU Autoconf 2.68. Invocation command line was
1804
1805 $ $0 $@
1806
1807 _ACEOF
1808 exec 5>>config.log
1809 {
1810 cat <<_ASUNAME
1811 ## --------- ##
1812 ## Platform. ##
1813 ## --------- ##
1814
1815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823
1824 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1825 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1828 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1829 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1830 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1831
1832 _ASUNAME
1833
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 $as_echo "PATH: $as_dir"
1840 done
1841 IFS=$as_save_IFS
1842
1843 } >&5
1844
1845 cat >&5 <<_ACEOF
1846
1847
1848 ## ----------- ##
1849 ## Core tests. ##
1850 ## ----------- ##
1851
1852 _ACEOF
1853
1854
1855 # Keep a trace of the command line.
1856 # Strip out --no-create and --no-recursion so they do not pile up.
1857 # Strip out --silent because we don't want to record it for future runs.
1858 # Also quote any args containing shell meta-characters.
1859 # Make two passes to allow for proper duplicate-argument suppression.
1860 ac_configure_args=
1861 ac_configure_args0=
1862 ac_configure_args1=
1863 ac_must_keep_next=false
1864 for ac_pass in 1 2
1865 do
1866 for ac_arg
1867 do
1868 case $ac_arg in
1869 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871 | -silent | --silent | --silen | --sile | --sil)
1872 continue ;;
1873 *\'*)
1874 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 esac
1876 case $ac_pass in
1877 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1878 2)
1879 as_fn_append ac_configure_args1 " '$ac_arg'"
1880 if test $ac_must_keep_next = true; then
1881 ac_must_keep_next=false # Got value, back to normal.
1882 else
1883 case $ac_arg in
1884 *=* | --config-cache | -C | -disable-* | --disable-* \
1885 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887 | -with-* | --with-* | -without-* | --without-* | --x)
1888 case "$ac_configure_args0 " in
1889 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890 esac
1891 ;;
1892 -* ) ac_must_keep_next=true ;;
1893 esac
1894 fi
1895 as_fn_append ac_configure_args " '$ac_arg'"
1896 ;;
1897 esac
1898 done
1899 done
1900 { ac_configure_args0=; unset ac_configure_args0;}
1901 { ac_configure_args1=; unset ac_configure_args1;}
1902
1903 # When interrupted or exit'd, cleanup temporary files, and complete
1904 # config.log. We remove comments because anyway the quotes in there
1905 # would cause problems or look ugly.
1906 # WARNING: Use '\'' to represent an apostrophe within the trap.
1907 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908 trap 'exit_status=$?
1909 # Save into config.log some information that might help in debugging.
1910 {
1911 echo
1912
1913 $as_echo "## ---------------- ##
1914 ## Cache variables. ##
1915 ## ---------------- ##"
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
1918 (
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
1934 (set) 2>&1 |
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
1937 sed -n \
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
1941 *)
1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943 ;;
1944 esac |
1945 sort
1946 )
1947 echo
1948
1949 $as_echo "## ----------------- ##
1950 ## Output variables. ##
1951 ## ----------------- ##"
1952 echo
1953 for ac_var in $ac_subst_vars
1954 do
1955 eval ac_val=\$$ac_var
1956 case $ac_val in
1957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 esac
1959 $as_echo "$ac_var='\''$ac_val'\''"
1960 done | sort
1961 echo
1962
1963 if test -n "$ac_subst_files"; then
1964 $as_echo "## ------------------- ##
1965 ## File substitutions. ##
1966 ## ------------------- ##"
1967 echo
1968 for ac_var in $ac_subst_files
1969 do
1970 eval ac_val=\$$ac_var
1971 case $ac_val in
1972 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 esac
1974 $as_echo "$ac_var='\''$ac_val'\''"
1975 done | sort
1976 echo
1977 fi
1978
1979 if test -s confdefs.h; then
1980 $as_echo "## ----------- ##
1981 ## confdefs.h. ##
1982 ## ----------- ##"
1983 echo
1984 cat confdefs.h
1985 echo
1986 fi
1987 test "$ac_signal" != 0 &&
1988 $as_echo "$as_me: caught signal $ac_signal"
1989 $as_echo "$as_me: exit $exit_status"
1990 } >&5
1991 rm -f core *.core core.conftest.* &&
1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993 exit $exit_status
1994 ' 0
1995 for ac_signal in 1 2 13 15; do
1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997 done
1998 ac_signal=0
1999
2000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2001 rm -f -r conftest* confdefs.h
2002
2003 $as_echo "/* confdefs.h */" > confdefs.h
2004
2005 # Predefined preprocessor variables.
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_NAME "$PACKAGE_NAME"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_STRING "$PACKAGE_STRING"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_URL "$PACKAGE_URL"
2029 _ACEOF
2030
2031
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2034 ac_site_file1=NONE
2035 ac_site_file2=NONE
2036 if test -n "$CONFIG_SITE"; then
2037 # We do not want a PATH search for config.site.
2038 case $CONFIG_SITE in #((
2039 -*) ac_site_file1=./$CONFIG_SITE;;
2040 */*) ac_site_file1=$CONFIG_SITE;;
2041 *) ac_site_file1=./$CONFIG_SITE;;
2042 esac
2043 elif test "x$prefix" != xNONE; then
2044 ac_site_file1=$prefix/share/config.site
2045 ac_site_file2=$prefix/etc/config.site
2046 else
2047 ac_site_file1=$ac_default_prefix/share/config.site
2048 ac_site_file2=$ac_default_prefix/etc/config.site
2049 fi
2050 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051 do
2052 test "x$ac_site_file" = xNONE && continue
2053 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056 sed 's/^/| /' "$ac_site_file" >&5
2057 . "$ac_site_file" \
2058 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060 as_fn_error $? "failed to load site script $ac_site_file
2061 See \`config.log' for more details" "$LINENO" 5; }
2062 fi
2063 done
2064
2065 if test -r "$cache_file"; then
2066 # Some versions of bash will fail to source /dev/null (special files
2067 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2068 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070 $as_echo "$as_me: loading cache $cache_file" >&6;}
2071 case $cache_file in
2072 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073 *) . "./$cache_file";;
2074 esac
2075 fi
2076 else
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078 $as_echo "$as_me: creating cache $cache_file" >&6;}
2079 >$cache_file
2080 fi
2081
2082 # Check that the precious variables saved in the cache have kept the same
2083 # value.
2084 ac_cache_corrupted=false
2085 for ac_var in $ac_precious_vars; do
2086 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087 eval ac_new_set=\$ac_env_${ac_var}_set
2088 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089 eval ac_new_val=\$ac_env_${ac_var}_value
2090 case $ac_old_set,$ac_new_set in
2091 set,)
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094 ac_cache_corrupted=: ;;
2095 ,set)
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,);;
2100 *)
2101 if test "x$ac_old_val" != "x$ac_new_val"; then
2102 # differences in whitespace do not lead to failure.
2103 ac_old_val_w=`echo x $ac_old_val`
2104 ac_new_val_w=`echo x $ac_new_val`
2105 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108 ac_cache_corrupted=:
2109 else
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112 eval $ac_var=\$ac_old_val
2113 fi
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2115 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2117 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2118 fi;;
2119 esac
2120 # Pass precious variables to config.status.
2121 if test "$ac_new_set" = set; then
2122 case $ac_new_val in
2123 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124 *) ac_arg=$ac_var=$ac_new_val ;;
2125 esac
2126 case " $ac_configure_args " in
2127 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2128 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129 esac
2130 fi
2131 done
2132 if $ac_cache_corrupted; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2137 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2138 fi
2139 ## -------------------- ##
2140 ## Main body of script. ##
2141 ## -------------------- ##
2142
2143 ac_ext=c
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150 am__api_version='1.11'
2151
2152 ac_aux_dir=
2153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2154 if test -f "$ac_dir/install-sh"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/install-sh -c"
2157 break
2158 elif test -f "$ac_dir/install.sh"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/install.sh -c"
2161 break
2162 elif test -f "$ac_dir/shtool"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/shtool install -c"
2165 break
2166 fi
2167 done
2168 if test -z "$ac_aux_dir"; then
2169 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2170 fi
2171
2172 # These three variables are undocumented and unsupported,
2173 # and are intended to be withdrawn in a future Autoconf release.
2174 # They can cause serious problems if a builder's source tree is in a directory
2175 # whose full name contains unusual characters.
2176 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2177 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2178 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179
2180
2181 # Find a good install program. We prefer a C program (faster),
2182 # so one script is as good as another. But avoid the broken or
2183 # incompatible versions:
2184 # SysV /etc/install, /usr/sbin/install
2185 # SunOS /usr/etc/install
2186 # IRIX /sbin/install
2187 # AIX /bin/install
2188 # AmigaOS /C/install, which installs bootblocks on floppy discs
2189 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2192 # OS/2's system install, which has a completely different semantic
2193 # ./install, which can be erroneously created by make from ./install.sh.
2194 # Reject install programs that cannot install multiple files.
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2196 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2197 if test -z "$INSTALL"; then
2198 if ${ac_cv_path_install+:} false; then :
2199 $as_echo_n "(cached) " >&6
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 # Account for people who put trailing slashes in PATH elements.
2207 case $as_dir/ in #((
2208 ./ | .// | /[cC]/* | \
2209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2210 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2211 /usr/ucb/* ) ;;
2212 *)
2213 # OSF1 and SCO ODT 3.0 have their own names for install.
2214 # Don't use installbsd from OSF since it installs stuff as root
2215 # by default.
2216 for ac_prog in ginstall scoinst install; do
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2219 if test $ac_prog = install &&
2220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221 # AIX install. It has an incompatible calling convention.
2222 :
2223 elif test $ac_prog = install &&
2224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225 # program-specific install script used by HP pwplus--don't use.
2226 :
2227 else
2228 rm -rf conftest.one conftest.two conftest.dir
2229 echo one > conftest.one
2230 echo two > conftest.two
2231 mkdir conftest.dir
2232 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2233 test -s conftest.one && test -s conftest.two &&
2234 test -s conftest.dir/conftest.one &&
2235 test -s conftest.dir/conftest.two
2236 then
2237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2238 break 3
2239 fi
2240 fi
2241 fi
2242 done
2243 done
2244 ;;
2245 esac
2246
2247 done
2248 IFS=$as_save_IFS
2249
2250 rm -rf conftest.one conftest.two conftest.dir
2251
2252 fi
2253 if test "${ac_cv_path_install+set}" = set; then
2254 INSTALL=$ac_cv_path_install
2255 else
2256 # As a last resort, use the slow shell script. Don't cache a
2257 # value for INSTALL within a source directory, because that will
2258 # break other packages using the cache if that directory is
2259 # removed, or if the value is a relative name.
2260 INSTALL=$ac_install_sh
2261 fi
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2264 $as_echo "$INSTALL" >&6; }
2265
2266 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2267 # It thinks the first close brace ends the variable substitution.
2268 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2269
2270 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2271
2272 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2273
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2275 $as_echo_n "checking whether build environment is sane... " >&6; }
2276 # Just in case
2277 sleep 1
2278 echo timestamp > conftest.file
2279 # Reject unsafe characters in $srcdir or the absolute working directory
2280 # name. Accept space and tab only in the latter.
2281 am_lf='
2282 '
2283 case `pwd` in
2284 *[\\\"\#\$\&\'\`$am_lf]*)
2285 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286 esac
2287 case $srcdir in
2288 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2289 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2290 esac
2291
2292 # Do `set' in a subshell so we don't clobber the current shell's
2293 # arguments. Must try -L first in case configure is actually a
2294 # symlink; some systems play weird games with the mod time of symlinks
2295 # (eg FreeBSD returns the mod time of the symlink's containing
2296 # directory).
2297 if (
2298 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2299 if test "$*" = "X"; then
2300 # -L didn't work.
2301 set X `ls -t "$srcdir/configure" conftest.file`
2302 fi
2303 rm -f conftest.file
2304 if test "$*" != "X $srcdir/configure conftest.file" \
2305 && test "$*" != "X conftest.file $srcdir/configure"; then
2306
2307 # If neither matched, then we have a broken ls. This can happen
2308 # if, for instance, CONFIG_SHELL is bash and it inherits a
2309 # broken ls alias from the environment. This has actually
2310 # happened. Such a system could not be considered "sane".
2311 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2312 alias in your environment" "$LINENO" 5
2313 fi
2314
2315 test "$2" = conftest.file
2316 )
2317 then
2318 # Ok.
2319 :
2320 else
2321 as_fn_error $? "newly created file is older than distributed files!
2322 Check your system clock" "$LINENO" 5
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2325 $as_echo "yes" >&6; }
2326 test "$program_prefix" != NONE &&
2327 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2328 # Use a double $ so make ignores it.
2329 test "$program_suffix" != NONE &&
2330 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2331 # Double any \ or $.
2332 # By default was `s,x,x', remove it if useless.
2333 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2334 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2335
2336 # expand $ac_aux_dir to an absolute path
2337 am_aux_dir=`cd $ac_aux_dir && pwd`
2338
2339 if test x"${MISSING+set}" != xset; then
2340 case $am_aux_dir in
2341 *\ * | *\ *)
2342 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2343 *)
2344 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2345 esac
2346 fi
2347 # Use eval to expand $SHELL
2348 if eval "$MISSING --run true"; then
2349 am_missing_run="$MISSING --run "
2350 else
2351 am_missing_run=
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2353 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2354 fi
2355
2356 if test x"${install_sh}" != xset; then
2357 case $am_aux_dir in
2358 *\ * | *\ *)
2359 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2360 *)
2361 install_sh="\${SHELL} $am_aux_dir/install-sh"
2362 esac
2363 fi
2364
2365 # Installed binaries are usually stripped using `strip' when the user
2366 # run `make install-strip'. However `strip' might not be the right
2367 # tool to use in cross-compilation environments, therefore Automake
2368 # will honor the `STRIP' environment variable to overrule this program.
2369 if test "$cross_compiling" != no; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}strip; ac_word=$2
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
2375 if ${ac_cv_prog_STRIP+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 if test -n "$STRIP"; then
2379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 STRIP=$ac_cv_prog_STRIP
2399 if test -n "$STRIP"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2401 $as_echo "$STRIP" >&6; }
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404 $as_echo "no" >&6; }
2405 fi
2406
2407
2408 fi
2409 if test -z "$ac_cv_prog_STRIP"; then
2410 ac_ct_STRIP=$STRIP
2411 # Extract the first word of "strip", so it can be a program name with args.
2412 set dummy strip; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$ac_ct_STRIP"; then
2419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_STRIP="strip"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439 if test -n "$ac_ct_STRIP"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2441 $as_echo "$ac_ct_STRIP" >&6; }
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447 if test "x$ac_ct_STRIP" = x; then
2448 STRIP=":"
2449 else
2450 case $cross_compiling:$ac_tool_warned in
2451 yes:)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2454 ac_tool_warned=yes ;;
2455 esac
2456 STRIP=$ac_ct_STRIP
2457 fi
2458 else
2459 STRIP="$ac_cv_prog_STRIP"
2460 fi
2461
2462 fi
2463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2466 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2467 if test -z "$MKDIR_P"; then
2468 if ${ac_cv_path_mkdir+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_prog in mkdir gmkdir; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2479 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2480 'mkdir (GNU coreutils) '* | \
2481 'mkdir (coreutils) '* | \
2482 'mkdir (fileutils) '4.1*)
2483 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2484 break 3;;
2485 esac
2486 done
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492
2493 test -d ./--version && rmdir ./--version
2494 if test "${ac_cv_path_mkdir+set}" = set; then
2495 MKDIR_P="$ac_cv_path_mkdir -p"
2496 else
2497 # As a last resort, use the slow shell script. Don't cache a
2498 # value for MKDIR_P within a source directory, because that will
2499 # break other packages using the cache if that directory is
2500 # removed, or if the value is a relative name.
2501 MKDIR_P="$ac_install_sh -d"
2502 fi
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2505 $as_echo "$MKDIR_P" >&6; }
2506
2507 mkdir_p="$MKDIR_P"
2508 case $mkdir_p in
2509 [\\/$]* | ?:[\\/]*) ;;
2510 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2511 esac
2512
2513 for ac_prog in gawk mawk nawk awk
2514 do
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_AWK+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$AWK"; then
2523 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_AWK="$ac_prog"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 AWK=$ac_cv_prog_AWK
2543 if test -n "$AWK"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2545 $as_echo "$AWK" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 test -n "$AWK" && break
2553 done
2554
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2556 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2557 set x ${MAKE-make}
2558 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2559 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat >conftest.make <<\_ACEOF
2563 SHELL = /bin/sh
2564 all:
2565 @echo '@@@%%%=$(MAKE)=@@@%%%'
2566 _ACEOF
2567 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2568 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2569 *@@@%%%=?*=@@@%%%*)
2570 eval ac_cv_prog_make_${ac_make}_set=yes;;
2571 *)
2572 eval ac_cv_prog_make_${ac_make}_set=no;;
2573 esac
2574 rm -f conftest.make
2575 fi
2576 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 SET_MAKE=
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 SET_MAKE="MAKE=${MAKE-make}"
2584 fi
2585
2586 rm -rf .tst 2>/dev/null
2587 mkdir .tst 2>/dev/null
2588 if test -d .tst; then
2589 am__leading_dot=.
2590 else
2591 am__leading_dot=_
2592 fi
2593 rmdir .tst 2>/dev/null
2594
2595 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2596 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2597 # is not polluted with repeated "-I."
2598 am__isrc=' -I$(srcdir)'
2599 # test to see if srcdir already configured
2600 if test -f $srcdir/config.status; then
2601 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2602 fi
2603 fi
2604
2605 # test whether we have cygpath
2606 if test -z "$CYGPATH_W"; then
2607 if (cygpath --version) >/dev/null 2>/dev/null; then
2608 CYGPATH_W='cygpath -w'
2609 else
2610 CYGPATH_W=echo
2611 fi
2612 fi
2613
2614
2615 # Define the identity of the package.
2616 PACKAGE='xditview'
2617 VERSION='1.0.3'
2618
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE "$PACKAGE"
2622 _ACEOF
2623
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define VERSION "$VERSION"
2627 _ACEOF
2628
2629 # Some tools Automake needs.
2630
2631 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2632
2633
2634 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2635
2636
2637 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2638
2639
2640 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2641
2642
2643 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2644
2645 # We need awk for the "check" target. The system "awk" is bad on
2646 # some platforms.
2647 # Always define AMTAR for backward compatibility.
2648
2649 AMTAR=${AMTAR-"${am_missing_run}tar"}
2650
2651 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2652
2653
2654
2655
2656
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2659 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2660 # Check whether --enable-maintainer-mode was given.
2661 if test "${enable_maintainer_mode+set}" = set; then :
2662 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2663 else
2664 USE_MAINTAINER_MODE=no
2665 fi
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2668 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2669 if test $USE_MAINTAINER_MODE = yes; then
2670 MAINTAINER_MODE_TRUE=
2671 MAINTAINER_MODE_FALSE='#'
2672 else
2673 MAINTAINER_MODE_TRUE='#'
2674 MAINTAINER_MODE_FALSE=
2675 fi
2676
2677 MAINT=$MAINTAINER_MODE_TRUE
2678
2679
2680
2681 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693 DEPDIR="${am__leading_dot}deps"
2694
2695 ac_config_commands="$ac_config_commands depfiles"
2696
2697
2698 am_make=${MAKE-make}
2699 cat > confinc << 'END'
2700 am__doit:
2701 @echo this is the am__doit target
2702 .PHONY: am__doit
2703 END
2704 # If we don't find an include directive, just comment out the code.
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2706 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2707 am__include="#"
2708 am__quote=
2709 _am_result=none
2710 # First try GNU make style include.
2711 echo "include confinc" > confmf
2712 # Ignore all kinds of additional output from `make'.
2713 case `$am_make -s -f confmf 2> /dev/null` in #(
2714 *the\ am__doit\ target*)
2715 am__include=include
2716 am__quote=
2717 _am_result=GNU
2718 ;;
2719 esac
2720 # Now try BSD make style include.
2721 if test "$am__include" = "#"; then
2722 echo '.include "confinc"' > confmf
2723 case `$am_make -s -f confmf 2> /dev/null` in #(
2724 *the\ am__doit\ target*)
2725 am__include=.include
2726 am__quote="\""
2727 _am_result=BSD
2728 ;;
2729 esac
2730 fi
2731
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2734 $as_echo "$_am_result" >&6; }
2735 rm -f confinc confmf
2736
2737 # Check whether --enable-dependency-tracking was given.
2738 if test "${enable_dependency_tracking+set}" = set; then :
2739 enableval=$enable_dependency_tracking;
2740 fi
2741
2742 if test "x$enable_dependency_tracking" != xno; then
2743 am_depcomp="$ac_aux_dir/depcomp"
2744 AMDEPBACKSLASH='\'
2745 am__nodep='_no'
2746 fi
2747 if test "x$enable_dependency_tracking" != xno; then
2748 AMDEP_TRUE=
2749 AMDEP_FALSE='#'
2750 else
2751 AMDEP_TRUE='#'
2752 AMDEP_FALSE=
2753 fi
2754
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$ac_cv_prog_CC"; then
2801 ac_ct_CC=$CC
2802 # Extract the first word of "gcc", so it can be a program name with args.
2803 set dummy gcc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC="gcc"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 CC=$ac_ct_CC
2848 fi
2849 else
2850 CC="$ac_cv_prog_CC"
2851 fi
2852
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}cc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 fi
2894 if test -z "$CC"; then
2895 # Extract the first word of "cc", so it can be a program name with args.
2896 set dummy cc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 ac_prog_rejected=no
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914 ac_prog_rejected=yes
2915 continue
2916 fi
2917 ac_cv_prog_CC="cc"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 if test $ac_prog_rejected = yes; then
2926 # We found a bogon in the path, so make sure we never use it.
2927 set dummy $ac_cv_prog_CC
2928 shift
2929 if test $# != 0; then
2930 # We chose a different compiler from the bogus one.
2931 # However, it has the same basename, so the bogon will be chosen
2932 # first if we set CC to just the basename; use the full file name.
2933 shift
2934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 fi
2936 fi
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 for ac_prog in cl.exe
2953 do
2954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 test -n "$CC" && break
2992 done
2993 fi
2994 if test -z "$CC"; then
2995 ac_ct_CC=$CC
2996 for ac_prog in cl.exe
2997 do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="$ac_prog"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 test -n "$ac_ct_CC" && break
3036 done
3037
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3048 fi
3049 fi
3050
3051 fi
3052
3053
3054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details" "$LINENO" 5; }
3058
3059 # Provide some information about the compiler.
3060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3061 set X $ac_compile
3062 ac_compiler=$2
3063 for ac_option in --version -v -V -qversion; do
3064 { { ac_try="$ac_compiler $ac_option >&5"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3072 ac_status=$?
3073 if test -s conftest.err; then
3074 sed '10a\
3075 ... rest of stderr output deleted ...
3076 10q' conftest.err >conftest.er1
3077 cat conftest.er1 >&5
3078 fi
3079 rm -f conftest.er1 conftest.err
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }
3082 done
3083
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101 $as_echo_n "checking whether the C compiler works... " >&6; }
3102 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103
3104 # The possible output files:
3105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3106
3107 ac_rmfiles=
3108 for ac_file in $ac_files
3109 do
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113 esac
3114 done
3115 rm -f $ac_rmfiles
3116
3117 if { { ac_try="$ac_link_default"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_link_default") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; then :
3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3132 # Autoconf.
3133 for ac_file in $ac_files ''
3134 do
3135 test -f "$ac_file" || continue
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3138 ;;
3139 [ab].out )
3140 # We found the default executable, but exeext='' is most
3141 # certainly right.
3142 break;;
3143 *.* )
3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145 then :; else
3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147 fi
3148 # We set ac_cv_exeext here because the later test for it is not
3149 # safe: cross compilers may not add the suffix if given an `-o'
3150 # argument, so we may need to know it at that point already.
3151 # Even if this section looks crufty: it has the advantage of
3152 # actually working.
3153 break;;
3154 * )
3155 break;;
3156 esac
3157 done
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160 else
3161 ac_file=''
3162 fi
3163 if test -z "$ac_file"; then :
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 $as_echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error 77 "C compiler cannot create executables
3172 See \`config.log' for more details" "$LINENO" 5; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178 $as_echo_n "checking for C compiler default output file name... " >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180 $as_echo "$ac_file" >&6; }
3181 ac_exeext=$ac_cv_exeext
3182
3183 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184 ac_clean_files=$ac_clean_files_save
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186 $as_echo_n "checking for suffix of executables... " >&6; }
3187 if { { ac_try="$ac_link"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
3195 ac_status=$?
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 break;;
3208 * ) break;;
3209 esac
3210 done
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details" "$LINENO" 5; }
3216 fi
3217 rm -f conftest conftest$ac_cv_exeext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3220
3221 rm -f conftest.$ac_ext
3222 EXEEXT=$ac_cv_exeext
3223 ac_exeext=$EXEEXT
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226 #include <stdio.h>
3227 int
3228 main ()
3229 {
3230 FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 ac_clean_files="$ac_clean_files conftest.out"
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241 $as_echo_n "checking whether we are cross compiling... " >&6; }
3242 if test "$cross_compiling" != yes; then
3243 { { ac_try="$ac_link"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 if { ac_try='./conftest$ac_cv_exeext'
3255 { { case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; }; then
3265 cross_compiling=no
3266 else
3267 if test "$cross_compiling" = maybe; then
3268 cross_compiling=yes
3269 else
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "cannot run C compiled programs.
3273 If you meant to cross compile, use \`--host'.
3274 See \`config.log' for more details" "$LINENO" 5; }
3275 fi
3276 fi
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279 $as_echo "$cross_compiling" >&6; }
3280
3281 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282 ac_clean_files=$ac_clean_files_save
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284 $as_echo_n "checking for suffix of object files... " >&6; }
3285 if ${ac_cv_objext+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.o conftest.obj
3300 if { { ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_compile") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 for ac_file in conftest.o conftest.obj conftest.*; do
3312 test -f "$ac_file" || continue;
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316 break;;
3317 esac
3318 done
3319 else
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot compute suffix of object files: cannot compile
3326 See \`config.log' for more details" "$LINENO" 5; }
3327 fi
3328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331 $as_echo "$ac_cv_objext" >&6; }
3332 OBJEXT=$ac_cv_objext
3333 ac_objext=$OBJEXT
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336 if ${ac_cv_c_compiler_gnu+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345 #ifndef __GNUC__
3346 choke me
3347 #endif
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_compiler_gnu=yes
3355 else
3356 ac_compiler_gnu=no
3357 fi
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364 if test $ac_compiler_gnu = yes; then
3365 GCC=yes
3366 else
3367 GCC=
3368 fi
3369 ac_test_CFLAGS=${CFLAGS+set}
3370 ac_save_CFLAGS=$CFLAGS
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3373 if ${ac_cv_prog_cc_g+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 ac_save_c_werror_flag=$ac_c_werror_flag
3377 ac_c_werror_flag=yes
3378 ac_cv_prog_cc_g=no
3379 CFLAGS="-g"
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392 ac_cv_prog_cc_g=yes
3393 else
3394 CFLAGS=""
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407
3408 else
3409 ac_c_werror_flag=$ac_save_c_werror_flag
3410 CFLAGS="-g"
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_g=yes
3424 fi
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433 $as_echo "$ac_cv_prog_cc_g" >&6; }
3434 if test "$ac_test_CFLAGS" = set; then
3435 CFLAGS=$ac_save_CFLAGS
3436 elif test $ac_cv_prog_cc_g = yes; then
3437 if test "$GCC" = yes; then
3438 CFLAGS="-g -O2"
3439 else
3440 CFLAGS="-g"
3441 fi
3442 else
3443 if test "$GCC" = yes; then
3444 CFLAGS="-O2"
3445 else
3446 CFLAGS=
3447 fi
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451 if ${ac_cv_prog_cc_c89+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 ac_cv_prog_cc_c89=no
3455 ac_save_CC=$CC
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <stdarg.h>
3459 #include <stdio.h>
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3466 char **p;
3467 int i;
3468 {
3469 return p[i];
3470 }
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3472 {
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3479 }
3480
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3492 #define FOO(x) 'x'
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 int argc;
3500 char **argv;
3501 int
3502 main ()
3503 {
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 do
3512 CC="$ac_save_CC $ac_arg"
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_c89=$ac_arg
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
3518 done
3519 rm -f conftest.$ac_ext
3520 CC=$ac_save_CC
3521
3522 fi
3523 # AC_CACHE_VAL
3524 case "x$ac_cv_prog_cc_c89" in
3525 x)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527 $as_echo "none needed" >&6; } ;;
3528 xno)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530 $as_echo "unsupported" >&6; } ;;
3531 *)
3532 CC="$CC $ac_cv_prog_cc_c89"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535 esac
3536 if test "x$ac_cv_prog_cc_c89" != xno; then :
3537
3538 fi
3539
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546 depcc="$CC" am_compiler_list=
3547
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3549 $as_echo_n "checking dependency style of $depcc... " >&6; }
3550 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3554 # We make a subdir and do the tests there. Otherwise we can end up
3555 # making bogus files that we don't know about and never remove. For
3556 # instance it was reported that on HP-UX the gcc test will end up
3557 # making a dummy file named `D' -- because `-MD' means `put the output
3558 # in D'.
3559 rm -rf conftest.dir
3560 mkdir conftest.dir
3561 # Copy depcomp to subdir because otherwise we won't find it if we're
3562 # using a relative directory.
3563 cp "$am_depcomp" conftest.dir
3564 cd conftest.dir
3565 # We will build objects and dependencies in a subdirectory because
3566 # it helps to detect inapplicable dependency modes. For instance
3567 # both Tru64's cc and ICC support -MD to output dependencies as a
3568 # side effect of compilation, but ICC will put the dependencies in
3569 # the current directory while Tru64 will put them in the object
3570 # directory.
3571 mkdir sub
3572
3573 am_cv_CC_dependencies_compiler_type=none
3574 if test "$am_compiler_list" = ""; then
3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576 fi
3577 am__universal=false
3578 case " $depcc " in #(
3579 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3580 esac
3581
3582 for depmode in $am_compiler_list; do
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this. Also, some Intel
3602 # versions had trouble with output in subdirs
3603 am__obj=sub/conftest.${OBJEXT-o}
3604 am__minus_obj="-o $am__obj"
3605 case $depmode in
3606 gcc)
3607 # This depmode causes a compiler race in universal mode.
3608 test "$am__universal" = false || continue
3609 ;;
3610 nosideeffect)
3611 # after this tag, mechanisms are not by side-effect, so they'll
3612 # only be used when explicitly requested
3613 if test "x$enable_dependency_tracking" = xyes; then
3614 continue
3615 else
3616 break
3617 fi
3618 ;;
3619 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3620 # This compiler won't grok `-c -o', but also, the minuso test has
3621 # not run yet. These depmodes are late enough in the game, and
3622 # so weak that their functioning should not be impacted.
3623 am__obj=conftest.${OBJEXT-o}
3624 am__minus_obj=
3625 ;;
3626 none) break ;;
3627 esac
3628 if depmode=$depmode \
3629 source=sub/conftest.c object=$am__obj \
3630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3632 >/dev/null 2>conftest.err &&
3633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3637 # icc doesn't choke on unknown options, it will just issue warnings
3638 # or remarks (even with -Werror). So we grep stderr for any message
3639 # that says an option was ignored or not supported.
3640 # When given -MP, icc 7.0 and 7.1 complain thusly:
3641 # icc: Command line warning: ignoring option '-M'; no argument required
3642 # The diagnosis changed in icc 8.0:
3643 # icc: Command line remark: option '-MP' not supported
3644 if (grep 'ignoring option' conftest.err ||
3645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3646 am_cv_CC_dependencies_compiler_type=$depmode
3647 break
3648 fi
3649 fi
3650 done
3651
3652 cd ..
3653 rm -rf conftest.dir
3654 else
3655 am_cv_CC_dependencies_compiler_type=none
3656 fi
3657
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3660 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3661 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662
3663 if
3664 test "x$enable_dependency_tracking" != xno \
3665 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3666 am__fastdepCC_TRUE=
3667 am__fastdepCC_FALSE='#'
3668 else
3669 am__fastdepCC_TRUE='#'
3670 am__fastdepCC_FALSE=
3671 fi
3672
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3675 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3676 if ${ac_cv_prog_cc_c99+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_cv_prog_cc_c99=no
3680 ac_save_CC=$CC
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #include <stdarg.h>
3684 #include <stdbool.h>
3685 #include <stdlib.h>
3686 #include <wchar.h>
3687 #include <stdio.h>
3688
3689 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3690 #define debug(...) fprintf (stderr, __VA_ARGS__)
3691 #define showlist(...) puts (#__VA_ARGS__)
3692 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3693 static void
3694 test_varargs_macros (void)
3695 {
3696 int x = 1234;
3697 int y = 5678;
3698 debug ("Flag");
3699 debug ("X = %d\n", x);
3700 showlist (The first, second, and third items.);
3701 report (x>y, "x is %d but y is %d", x, y);
3702 }
3703
3704 // Check long long types.
3705 #define BIG64 18446744073709551615ull
3706 #define BIG32 4294967295ul
3707 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3708 #if !BIG_OK
3709 your preprocessor is broken;
3710 #endif
3711 #if BIG_OK
3712 #else
3713 your preprocessor is broken;
3714 #endif
3715 static long long int bignum = -9223372036854775807LL;
3716 static unsigned long long int ubignum = BIG64;
3717
3718 struct incomplete_array
3719 {
3720 int datasize;
3721 double data[];
3722 };
3723
3724 struct named_init {
3725 int number;
3726 const wchar_t *name;
3727 double average;
3728 };
3729
3730 typedef const char *ccp;
3731
3732 static inline int
3733 test_restrict (ccp restrict text)
3734 {
3735 // See if C++-style comments work.
3736 // Iterate through items via the restricted pointer.
3737 // Also check for declarations in for loops.
3738 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3739 continue;
3740 return 0;
3741 }
3742
3743 // Check varargs and va_copy.
3744 static void
3745 test_varargs (const char *format, ...)
3746 {
3747 va_list args;
3748 va_start (args, format);
3749 va_list args_copy;
3750 va_copy (args_copy, args);
3751
3752 const char *str;
3753 int number;
3754 float fnumber;
3755
3756 while (*format)
3757 {
3758 switch (*format++)
3759 {
3760 case 's': // string
3761 str = va_arg (args_copy, const char *);
3762 break;
3763 case 'd': // int
3764 number = va_arg (args_copy, int);
3765 break;
3766 case 'f': // float
3767 fnumber = va_arg (args_copy, double);
3768 break;
3769 default:
3770 break;
3771 }
3772 }
3773 va_end (args_copy);
3774 va_end (args);
3775 }
3776
3777 int
3778 main ()
3779 {
3780
3781 // Check bool.
3782 _Bool success = false;
3783
3784 // Check restrict.
3785 if (test_restrict ("String literal") == 0)
3786 success = true;
3787 char *restrict newvar = "Another string";
3788
3789 // Check varargs.
3790 test_varargs ("s, d' f .", "string", 65, 34.234);
3791 test_varargs_macros ();
3792
3793 // Check flexible array members.
3794 struct incomplete_array *ia =
3795 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3796 ia->datasize = 10;
3797 for (int i = 0; i < ia->datasize; ++i)
3798 ia->data[i] = i * 1.234;
3799
3800 // Check named initializers.
3801 struct named_init ni = {
3802 .number = 34,
3803 .name = L"Test wide string",
3804 .average = 543.34343,
3805 };
3806
3807 ni.number = 58;
3808
3809 int dynamic_array[ni.number];
3810 dynamic_array[ni.number - 1] = 543;
3811
3812 // work around unused variable warnings
3813 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3814 || dynamic_array[ni.number - 1] != 543);
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3821 do
3822 CC="$ac_save_CC $ac_arg"
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824 ac_cv_prog_cc_c99=$ac_arg
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext
3827 test "x$ac_cv_prog_cc_c99" != "xno" && break
3828 done
3829 rm -f conftest.$ac_ext
3830 CC=$ac_save_CC
3831
3832 fi
3833 # AC_CACHE_VAL
3834 case "x$ac_cv_prog_cc_c99" in
3835 x)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837 $as_echo "none needed" >&6; } ;;
3838 xno)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840 $as_echo "unsupported" >&6; } ;;
3841 *)
3842 CC="$CC $ac_cv_prog_cc_c99"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3844 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3845 esac
3846 if test "x$ac_cv_prog_cc_c99" != xno; then :
3847
3848 fi
3849
3850
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3858 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3859 # On Suns, sometimes $CPP names a directory.
3860 if test -n "$CPP" && test -d "$CPP"; then
3861 CPP=
3862 fi
3863 if test -z "$CPP"; then
3864 if ${ac_cv_prog_CPP+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 # Double quotes because CPP needs to be expanded
3868 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3869 do
3870 ac_preproc_ok=false
3871 for ac_c_preproc_warn_flag in '' yes
3872 do
3873 # Use a header file that comes with gcc, so configuring glibc
3874 # with a fresh cross-compiler works.
3875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3876 # <limits.h> exists even on freestanding compilers.
3877 # On the NeXT, cc -E runs the code through the compiler's parser,
3878 # not just through cpp. "Syntax error" is here to catch this case.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #ifdef __STDC__
3882 # include <limits.h>
3883 #else
3884 # include <assert.h>
3885 #endif
3886 Syntax error
3887 _ACEOF
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889
3890 else
3891 # Broken: fails on valid input.
3892 continue
3893 fi
3894 rm -f conftest.err conftest.i conftest.$ac_ext
3895
3896 # OK, works on sane cases. Now check whether nonexistent headers
3897 # can be detected and how.
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 #include <ac_nonexistent.h>
3901 _ACEOF
3902 if ac_fn_c_try_cpp "$LINENO"; then :
3903 # Broken: success on invalid input.
3904 continue
3905 else
3906 # Passes both tests.
3907 ac_preproc_ok=:
3908 break
3909 fi
3910 rm -f conftest.err conftest.i conftest.$ac_ext
3911
3912 done
3913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3914 rm -f conftest.i conftest.err conftest.$ac_ext
3915 if $ac_preproc_ok; then :
3916 break
3917 fi
3918
3919 done
3920 ac_cv_prog_CPP=$CPP
3921
3922 fi
3923 CPP=$ac_cv_prog_CPP
3924 else
3925 ac_cv_prog_CPP=$CPP
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3928 $as_echo "$CPP" >&6; }
3929 ac_preproc_ok=false
3930 for ac_c_preproc_warn_flag in '' yes
3931 do
3932 # Use a header file that comes with gcc, so configuring glibc
3933 # with a fresh cross-compiler works.
3934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3935 # <limits.h> exists even on freestanding compilers.
3936 # On the NeXT, cc -E runs the code through the compiler's parser,
3937 # not just through cpp. "Syntax error" is here to catch this case.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #ifdef __STDC__
3941 # include <limits.h>
3942 #else
3943 # include <assert.h>
3944 #endif
3945 Syntax error
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948
3949 else
3950 # Broken: fails on valid input.
3951 continue
3952 fi
3953 rm -f conftest.err conftest.i conftest.$ac_ext
3954
3955 # OK, works on sane cases. Now check whether nonexistent headers
3956 # can be detected and how.
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <ac_nonexistent.h>
3960 _ACEOF
3961 if ac_fn_c_try_cpp "$LINENO"; then :
3962 # Broken: success on invalid input.
3963 continue
3964 else
3965 # Passes both tests.
3966 ac_preproc_ok=:
3967 break
3968 fi
3969 rm -f conftest.err conftest.i conftest.$ac_ext
3970
3971 done
3972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3973 rm -f conftest.i conftest.err conftest.$ac_ext
3974 if $ac_preproc_ok; then :
3975
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 fi
3982
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3991 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992 if ${ac_cv_path_GREP+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -z "$GREP"; then
3996 ac_path_GREP_found=false
3997 # Loop through the user's path and test for each of PROGNAME-LIST
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in grep ggrep; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007 # Check for GNU ac_path_GREP and select it if it is found.
4008 # Check for GNU $ac_path_GREP
4009 case `"$ac_path_GREP" --version 2>&1` in
4010 *GNU*)
4011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012 *)
4013 ac_count=0
4014 $as_echo_n 0123456789 >"conftest.in"
4015 while :
4016 do
4017 cat "conftest.in" "conftest.in" >"conftest.tmp"
4018 mv "conftest.tmp" "conftest.in"
4019 cp "conftest.in" "conftest.nl"
4020 $as_echo 'GREP' >> "conftest.nl"
4021 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023 as_fn_arith $ac_count + 1 && ac_count=$as_val
4024 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025 # Best one so far, save it but keep looking for a better one
4026 ac_cv_path_GREP="$ac_path_GREP"
4027 ac_path_GREP_max=$ac_count
4028 fi
4029 # 10*(2^10) chars as input seems more than enough
4030 test $ac_count -gt 10 && break
4031 done
4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 esac
4034
4035 $ac_path_GREP_found && break 3
4036 done
4037 done
4038 done
4039 IFS=$as_save_IFS
4040 if test -z "$ac_cv_path_GREP"; then
4041 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042 fi
4043 else
4044 ac_cv_path_GREP=$GREP
4045 fi
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4049 $as_echo "$ac_cv_path_GREP" >&6; }
4050 GREP="$ac_cv_path_GREP"
4051
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4054 $as_echo_n "checking for egrep... " >&6; }
4055 if ${ac_cv_path_EGREP+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059 then ac_cv_path_EGREP="$GREP -E"
4060 else
4061 if test -z "$EGREP"; then
4062 ac_path_EGREP_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in egrep; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4072 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4073 # Check for GNU ac_path_EGREP and select it if it is found.
4074 # Check for GNU $ac_path_EGREP
4075 case `"$ac_path_EGREP" --version 2>&1` in
4076 *GNU*)
4077 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078 *)
4079 ac_count=0
4080 $as_echo_n 0123456789 >"conftest.in"
4081 while :
4082 do
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 $as_echo 'EGREP' >> "conftest.nl"
4087 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 as_fn_arith $ac_count + 1 && ac_count=$as_val
4090 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_EGREP="$ac_path_EGREP"
4093 ac_path_EGREP_max=$ac_count
4094 fi
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4097 done
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 esac
4100
4101 $ac_path_EGREP_found && break 3
4102 done
4103 done
4104 done
4105 IFS=$as_save_IFS
4106 if test -z "$ac_cv_path_EGREP"; then
4107 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108 fi
4109 else
4110 ac_cv_path_EGREP=$EGREP
4111 fi
4112
4113 fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4116 $as_echo "$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121 $as_echo_n "checking for ANSI C header files... " >&6; }
4122 if ${ac_cv_header_stdc+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <stdlib.h>
4128 #include <stdarg.h>
4129 #include <string.h>
4130 #include <float.h>
4131
4132 int
4133 main ()
4134 {
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_header_stdc=yes
4142 else
4143 ac_cv_header_stdc=no
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147 if test $ac_cv_header_stdc = yes; then
4148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <string.h>
4152
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157 else
4158 ac_cv_header_stdc=no
4159 fi
4160 rm -f conftest*
4161
4162 fi
4163
4164 if test $ac_cv_header_stdc = yes; then
4165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <stdlib.h>
4169
4170 _ACEOF
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "free" >/dev/null 2>&1; then :
4173
4174 else
4175 ac_cv_header_stdc=no
4176 fi
4177 rm -f conftest*
4178
4179 fi
4180
4181 if test $ac_cv_header_stdc = yes; then
4182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183 if test "$cross_compiling" = yes; then :
4184 :
4185 else
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ctype.h>
4189 #include <stdlib.h>
4190 #if ((' ' & 0x0FF) == 0x020)
4191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193 #else
4194 # define ISLOWER(c) \
4195 (('a' <= (c) && (c) <= 'i') \
4196 || ('j' <= (c) && (c) <= 'r') \
4197 || ('s' <= (c) && (c) <= 'z'))
4198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #endif
4200
4201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202 int
4203 main ()
4204 {
4205 int i;
4206 for (i = 0; i < 256; i++)
4207 if (XOR (islower (i), ISLOWER (i))
4208 || toupper (i) != TOUPPER (i))
4209 return 2;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_run "$LINENO"; then :
4214
4215 else
4216 ac_cv_header_stdc=no
4217 fi
4218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219 conftest.$ac_objext conftest.beam conftest.$ac_ext
4220 fi
4221
4222 fi
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225 $as_echo "$ac_cv_header_stdc" >&6; }
4226 if test $ac_cv_header_stdc = yes; then
4227
4228 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230 fi
4231
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234 inttypes.h stdint.h unistd.h
4235 do :
4236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4238 "
4239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4240 cat >>confdefs.h <<_ACEOF
4241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4242 _ACEOF
4243
4244 fi
4245
4246 done
4247
4248
4249
4250
4251
4252
4253 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4254 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4255 CLANGCC="yes"
4256 else
4257 CLANGCC="no"
4258 fi
4259
4260 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4261 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4262 INTELCC="yes"
4263 else
4264 INTELCC="no"
4265 fi
4266
4267 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4268 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4269 SUNCC="yes"
4270 else
4271 SUNCC="no"
4272 fi
4273
4274
4275
4276
4277 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4278 if test -n "$ac_tool_prefix"; then
4279 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4280 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 case $PKG_CONFIG in
4287 [\\/]* | ?:[\\/]*)
4288 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4289 ;;
4290 *)
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4301 fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 ;;
4307 esac
4308 fi
4309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4310 if test -n "$PKG_CONFIG"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4312 $as_echo "$PKG_CONFIG" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319 fi
4320 if test -z "$ac_cv_path_PKG_CONFIG"; then
4321 ac_pt_PKG_CONFIG=$PKG_CONFIG
4322 # Extract the first word of "pkg-config", so it can be a program name with args.
4323 set dummy pkg-config; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 case $ac_pt_PKG_CONFIG in
4330 [\\/]* | ?:[\\/]*)
4331 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4332 ;;
4333 *)
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349 ;;
4350 esac
4351 fi
4352 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4353 if test -n "$ac_pt_PKG_CONFIG"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4355 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361 if test "x$ac_pt_PKG_CONFIG" = x; then
4362 PKG_CONFIG=""
4363 else
4364 case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370 PKG_CONFIG=$ac_pt_PKG_CONFIG
4371 fi
4372 else
4373 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4374 fi
4375
4376 fi
4377 if test -n "$PKG_CONFIG"; then
4378 _pkg_min_version=0.9.0
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4380 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4381 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4383 $as_echo "yes" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 PKG_CONFIG=""
4388 fi
4389
4390 fi
4391 # Make sure we can run config.sub.
4392 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4393 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4396 $as_echo_n "checking build system type... " >&6; }
4397 if ${ac_cv_build+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 ac_build_alias=$build_alias
4401 test "x$ac_build_alias" = x &&
4402 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4403 test "x$ac_build_alias" = x &&
4404 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4410 $as_echo "$ac_cv_build" >&6; }
4411 case $ac_cv_build in
4412 *-*-*) ;;
4413 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4414 esac
4415 build=$ac_cv_build
4416 ac_save_IFS=$IFS; IFS='-'
4417 set x $ac_cv_build
4418 shift
4419 build_cpu=$1
4420 build_vendor=$2
4421 shift; shift
4422 # Remember, the first character of IFS is used to create $*,
4423 # except with old shells:
4424 build_os=$*
4425 IFS=$ac_save_IFS
4426 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4430 $as_echo_n "checking host system type... " >&6; }
4431 if ${ac_cv_host+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test "x$host_alias" = x; then
4435 ac_cv_host=$ac_cv_build
4436 else
4437 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4439 fi
4440
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4443 $as_echo "$ac_cv_host" >&6; }
4444 case $ac_cv_host in
4445 *-*-*) ;;
4446 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4447 esac
4448 host=$ac_cv_host
4449 ac_save_IFS=$IFS; IFS='-'
4450 set x $ac_cv_host
4451 shift
4452 host_cpu=$1
4453 host_vendor=$2
4454 shift; shift
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4457 host_os=$*
4458 IFS=$ac_save_IFS
4459 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4463 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4464 if ${ac_cv_path_SED+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4468 for ac_i in 1 2 3 4 5 6 7; do
4469 ac_script="$ac_script$as_nl$ac_script"
4470 done
4471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4472 { ac_script=; unset ac_script;}
4473 if test -z "$SED"; then
4474 ac_path_SED_found=false
4475 # Loop through the user's path and test for each of PROGNAME-LIST
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_prog in sed gsed; do
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4484 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4485 # Check for GNU ac_path_SED and select it if it is found.
4486 # Check for GNU $ac_path_SED
4487 case `"$ac_path_SED" --version 2>&1` in
4488 *GNU*)
4489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4490 *)
4491 ac_count=0
4492 $as_echo_n 0123456789 >"conftest.in"
4493 while :
4494 do
4495 cat "conftest.in" "conftest.in" >"conftest.tmp"
4496 mv "conftest.tmp" "conftest.in"
4497 cp "conftest.in" "conftest.nl"
4498 $as_echo '' >> "conftest.nl"
4499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501 as_fn_arith $ac_count + 1 && ac_count=$as_val
4502 if test $ac_count -gt ${ac_path_SED_max-0}; then
4503 # Best one so far, save it but keep looking for a better one
4504 ac_cv_path_SED="$ac_path_SED"
4505 ac_path_SED_max=$ac_count
4506 fi
4507 # 10*(2^10) chars as input seems more than enough
4508 test $ac_count -gt 10 && break
4509 done
4510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 esac
4512
4513 $ac_path_SED_found && break 3
4514 done
4515 done
4516 done
4517 IFS=$as_save_IFS
4518 if test -z "$ac_cv_path_SED"; then
4519 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4520 fi
4521 else
4522 ac_cv_path_SED=$SED
4523 fi
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4527 $as_echo "$ac_cv_path_SED" >&6; }
4528 SED="$ac_cv_path_SED"
4529 rm -f conftest.sed
4530
4531
4532
4533
4534
4535
4536 # Check whether --enable-selective-werror was given.
4537 if test "${enable_selective_werror+set}" = set; then :
4538 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4539 else
4540 SELECTIVE_WERROR=yes
4541 fi
4542
4543
4544
4545
4546
4547 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4548 if test "x$SUNCC" = "xyes"; then
4549 BASE_CFLAGS="-v"
4550 else
4551 BASE_CFLAGS=""
4552 fi
4553
4554 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568 xorg_testset_save_CFLAGS="$CFLAGS"
4569
4570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579 int i;
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 xorg_cv_cc_flag_unknown_warning_option=yes
4583 else
4584 xorg_cv_cc_flag_unknown_warning_option=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4591 CFLAGS="$xorg_testset_save_CFLAGS"
4592 fi
4593
4594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4597 fi
4598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 int i;
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 xorg_cv_cc_flag_unused_command_line_argument=yes
4610 else
4611 xorg_cv_cc_flag_unused_command_line_argument=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4618 CFLAGS="$xorg_testset_save_CFLAGS"
4619 fi
4620
4621 found="no"
4622
4623 if test $found = "no" ; then
4624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4626 fi
4627
4628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4630 fi
4631
4632 CFLAGS="$CFLAGS -Wall"
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4635 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4636 cacheid=xorg_cv_cc_flag__Wall
4637 if eval \${$cacheid+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 int i;
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_link "$LINENO"; then :
4652 eval $cacheid=yes
4653 else
4654 eval $cacheid=no
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4658 fi
4659
4660
4661 CFLAGS="$xorg_testset_save_CFLAGS"
4662
4663 eval supported=\$$cacheid
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4665 $as_echo "$supported" >&6; }
4666 if test "$supported" = "yes" ; then
4667 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4668 found="yes"
4669 fi
4670 fi
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 xorg_testset_save_CFLAGS="$CFLAGS"
4687
4688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 int i;
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 xorg_cv_cc_flag_unknown_warning_option=yes
4701 else
4702 xorg_cv_cc_flag_unknown_warning_option=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709 CFLAGS="$xorg_testset_save_CFLAGS"
4710 fi
4711
4712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715 fi
4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 int i;
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 xorg_cv_cc_flag_unused_command_line_argument=yes
4728 else
4729 xorg_cv_cc_flag_unused_command_line_argument=no
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736 CFLAGS="$xorg_testset_save_CFLAGS"
4737 fi
4738
4739 found="no"
4740
4741 if test $found = "no" ; then
4742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 fi
4745
4746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 fi
4749
4750 CFLAGS="$CFLAGS -Wpointer-arith"
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4753 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4754 cacheid=xorg_cv_cc_flag__Wpointer_arith
4755 if eval \${$cacheid+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 int i;
4761 int
4762 main ()
4763 {
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_link "$LINENO"; then :
4770 eval $cacheid=yes
4771 else
4772 eval $cacheid=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext \
4775 conftest$ac_exeext conftest.$ac_ext
4776 fi
4777
4778
4779 CFLAGS="$xorg_testset_save_CFLAGS"
4780
4781 eval supported=\$$cacheid
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783 $as_echo "$supported" >&6; }
4784 if test "$supported" = "yes" ; then
4785 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4786 found="yes"
4787 fi
4788 fi
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 xorg_testset_save_CFLAGS="$CFLAGS"
4805
4806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 int i;
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 xorg_cv_cc_flag_unknown_warning_option=yes
4819 else
4820 xorg_cv_cc_flag_unknown_warning_option=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4827 CFLAGS="$xorg_testset_save_CFLAGS"
4828 fi
4829
4830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833 fi
4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 int i;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 xorg_cv_cc_flag_unused_command_line_argument=yes
4846 else
4847 xorg_cv_cc_flag_unused_command_line_argument=no
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4854 CFLAGS="$xorg_testset_save_CFLAGS"
4855 fi
4856
4857 found="no"
4858
4859 if test $found = "no" ; then
4860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4862 fi
4863
4864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4866 fi
4867
4868 CFLAGS="$CFLAGS -Wmissing-declarations"
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4871 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4872 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4873 if eval \${$cacheid+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878 int i;
4879 int
4880 main ()
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_link "$LINENO"; then :
4888 eval $cacheid=yes
4889 else
4890 eval $cacheid=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4894 fi
4895
4896
4897 CFLAGS="$xorg_testset_save_CFLAGS"
4898
4899 eval supported=\$$cacheid
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4901 $as_echo "$supported" >&6; }
4902 if test "$supported" = "yes" ; then
4903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4904 found="yes"
4905 fi
4906 fi
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 xorg_testset_save_CFLAGS="$CFLAGS"
4923
4924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 int i;
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936 xorg_cv_cc_flag_unknown_warning_option=yes
4937 else
4938 xorg_cv_cc_flag_unknown_warning_option=no
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4945 CFLAGS="$xorg_testset_save_CFLAGS"
4946 fi
4947
4948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 fi
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 int i;
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 xorg_cv_cc_flag_unused_command_line_argument=yes
4964 else
4965 xorg_cv_cc_flag_unused_command_line_argument=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4972 CFLAGS="$xorg_testset_save_CFLAGS"
4973 fi
4974
4975 found="no"
4976
4977 if test $found = "no" ; then
4978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4980 fi
4981
4982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984 fi
4985
4986 CFLAGS="$CFLAGS -Wformat=2"
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4989 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4990 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4991 if eval \${$cacheid+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int i;
4997 int
4998 main ()
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_c_try_link "$LINENO"; then :
5006 eval $cacheid=yes
5007 else
5008 eval $cacheid=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext \
5011 conftest$ac_exeext conftest.$ac_ext
5012 fi
5013
5014
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017 eval supported=\$$cacheid
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019 $as_echo "$supported" >&6; }
5020 if test "$supported" = "yes" ; then
5021 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5022 found="yes"
5023 fi
5024 fi
5025
5026 if test $found = "no" ; then
5027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029 fi
5030
5031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5033 fi
5034
5035 CFLAGS="$CFLAGS -Wformat"
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5038 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5039 cacheid=xorg_cv_cc_flag__Wformat
5040 if eval \${$cacheid+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 int i;
5046 int
5047 main ()
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_link "$LINENO"; then :
5055 eval $cacheid=yes
5056 else
5057 eval $cacheid=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 fi
5062
5063
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5065
5066 eval supported=\$$cacheid
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068 $as_echo "$supported" >&6; }
5069 if test "$supported" = "yes" ; then
5070 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5071 found="yes"
5072 fi
5073 fi
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 xorg_cv_cc_flag_unknown_warning_option=yes
5106 else
5107 xorg_cv_cc_flag_unknown_warning_option=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115 fi
5116
5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120 fi
5121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 int i;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 xorg_cv_cc_flag_unused_command_line_argument=yes
5133 else
5134 xorg_cv_cc_flag_unused_command_line_argument=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142 fi
5143
5144 found="no"
5145
5146 if test $found = "no" ; then
5147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149 fi
5150
5151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153 fi
5154
5155 CFLAGS="$CFLAGS -Wstrict-prototypes"
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5158 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5159 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5160 if eval \${$cacheid+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 int
5167 main ()
5168 {
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_link "$LINENO"; then :
5175 eval $cacheid=yes
5176 else
5177 eval $cacheid=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 fi
5182
5183
5184 CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186 eval supported=\$$cacheid
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188 $as_echo "$supported" >&6; }
5189 if test "$supported" = "yes" ; then
5190 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5191 found="yes"
5192 fi
5193 fi
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 xorg_testset_save_CFLAGS="$CFLAGS"
5210
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 int i;
5221 _ACEOF
5222 if ac_fn_c_try_compile "$LINENO"; then :
5223 xorg_cv_cc_flag_unknown_warning_option=yes
5224 else
5225 xorg_cv_cc_flag_unknown_warning_option=no
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5232 CFLAGS="$xorg_testset_save_CFLAGS"
5233 fi
5234
5235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 fi
5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 xorg_cv_cc_flag_unused_command_line_argument=yes
5251 else
5252 xorg_cv_cc_flag_unused_command_line_argument=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260 fi
5261
5262 found="no"
5263
5264 if test $found = "no" ; then
5265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268
5269 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271 fi
5272
5273 CFLAGS="$CFLAGS -Wmissing-prototypes"
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5276 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5277 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5278 if eval \${$cacheid+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 int
5285 main ()
5286 {
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_link "$LINENO"; then :
5293 eval $cacheid=yes
5294 else
5295 eval $cacheid=no
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext \
5298 conftest$ac_exeext conftest.$ac_ext
5299 fi
5300
5301
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303
5304 eval supported=\$$cacheid
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5306 $as_echo "$supported" >&6; }
5307 if test "$supported" = "yes" ; then
5308 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5309 found="yes"
5310 fi
5311 fi
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 xorg_testset_save_CFLAGS="$CFLAGS"
5328
5329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 int i;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 xorg_cv_cc_flag_unknown_warning_option=yes
5342 else
5343 xorg_cv_cc_flag_unknown_warning_option=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5350 CFLAGS="$xorg_testset_save_CFLAGS"
5351 fi
5352
5353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 fi
5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 int i;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 xorg_cv_cc_flag_unused_command_line_argument=yes
5369 else
5370 xorg_cv_cc_flag_unused_command_line_argument=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5377 CFLAGS="$xorg_testset_save_CFLAGS"
5378 fi
5379
5380 found="no"
5381
5382 if test $found = "no" ; then
5383 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385 fi
5386
5387 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389 fi
5390
5391 CFLAGS="$CFLAGS -Wnested-externs"
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5394 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5395 cacheid=xorg_cv_cc_flag__Wnested_externs
5396 if eval \${$cacheid+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 int i;
5402 int
5403 main ()
5404 {
5405
5406 ;
5407 return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_link "$LINENO"; then :
5411 eval $cacheid=yes
5412 else
5413 eval $cacheid=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 fi
5418
5419
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421
5422 eval supported=\$$cacheid
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5424 $as_echo "$supported" >&6; }
5425 if test "$supported" = "yes" ; then
5426 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5427 found="yes"
5428 fi
5429 fi
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 xorg_testset_save_CFLAGS="$CFLAGS"
5446
5447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 int i;
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 xorg_cv_cc_flag_unknown_warning_option=yes
5460 else
5461 xorg_cv_cc_flag_unknown_warning_option=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5468 CFLAGS="$xorg_testset_save_CFLAGS"
5469 fi
5470
5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474 fi
5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 int i;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 xorg_cv_cc_flag_unused_command_line_argument=yes
5487 else
5488 xorg_cv_cc_flag_unused_command_line_argument=no
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5495 CFLAGS="$xorg_testset_save_CFLAGS"
5496 fi
5497
5498 found="no"
5499
5500 if test $found = "no" ; then
5501 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5503 fi
5504
5505 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5507 fi
5508
5509 CFLAGS="$CFLAGS -Wbad-function-cast"
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5512 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5513 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5514 if eval \${$cacheid+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 int i;
5520 int
5521 main ()
5522 {
5523
5524 ;
5525 return 0;
5526 }
5527 _ACEOF
5528 if ac_fn_c_try_link "$LINENO"; then :
5529 eval $cacheid=yes
5530 else
5531 eval $cacheid=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535 fi
5536
5537
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539
5540 eval supported=\$$cacheid
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5542 $as_echo "$supported" >&6; }
5543 if test "$supported" = "yes" ; then
5544 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5545 found="yes"
5546 fi
5547 fi
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 xorg_testset_save_CFLAGS="$CFLAGS"
5564
5565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 int i;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 xorg_cv_cc_flag_unknown_warning_option=yes
5578 else
5579 xorg_cv_cc_flag_unknown_warning_option=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5587 fi
5588
5589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 fi
5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 int i;
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 xorg_cv_cc_flag_unused_command_line_argument=yes
5605 else
5606 xorg_cv_cc_flag_unused_command_line_argument=no
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5613 CFLAGS="$xorg_testset_save_CFLAGS"
5614 fi
5615
5616 found="no"
5617
5618 if test $found = "no" ; then
5619 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621 fi
5622
5623 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625 fi
5626
5627 CFLAGS="$CFLAGS -Wold-style-definition"
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5630 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5631 cacheid=xorg_cv_cc_flag__Wold_style_definition
5632 if eval \${$cacheid+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 int i;
5638 int
5639 main ()
5640 {
5641
5642 ;
5643 return 0;
5644 }
5645 _ACEOF
5646 if ac_fn_c_try_link "$LINENO"; then :
5647 eval $cacheid=yes
5648 else
5649 eval $cacheid=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653 fi
5654
5655
5656 CFLAGS="$xorg_testset_save_CFLAGS"
5657
5658 eval supported=\$$cacheid
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5660 $as_echo "$supported" >&6; }
5661 if test "$supported" = "yes" ; then
5662 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5663 found="yes"
5664 fi
5665 fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 xorg_testset_save_CFLAGS="$CFLAGS"
5682
5683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 int i;
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 xorg_cv_cc_flag_unknown_warning_option=yes
5696 else
5697 xorg_cv_cc_flag_unknown_warning_option=no
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5704 CFLAGS="$xorg_testset_save_CFLAGS"
5705 fi
5706
5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710 fi
5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 xorg_cv_cc_flag_unused_command_line_argument=yes
5723 else
5724 xorg_cv_cc_flag_unused_command_line_argument=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5731 CFLAGS="$xorg_testset_save_CFLAGS"
5732 fi
5733
5734 found="no"
5735
5736 if test $found = "no" ; then
5737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739 fi
5740
5741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5743 fi
5744
5745 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5748 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5749 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5750 if eval \${$cacheid+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 int i;
5756 int
5757 main ()
5758 {
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_c_try_link "$LINENO"; then :
5765 eval $cacheid=yes
5766 else
5767 eval $cacheid=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext \
5770 conftest$ac_exeext conftest.$ac_ext
5771 fi
5772
5773
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775
5776 eval supported=\$$cacheid
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5778 $as_echo "$supported" >&6; }
5779 if test "$supported" = "yes" ; then
5780 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5781 found="yes"
5782 fi
5783 fi
5784
5785
5786
5787
5788
5789 # This chunk adds additional warnings that could catch undesired effects.
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 xorg_testset_save_CFLAGS="$CFLAGS"
5804
5805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"; then :
5817 xorg_cv_cc_flag_unknown_warning_option=yes
5818 else
5819 xorg_cv_cc_flag_unknown_warning_option=no
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5826 CFLAGS="$xorg_testset_save_CFLAGS"
5827 fi
5828
5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5832 fi
5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 int i;
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 xorg_cv_cc_flag_unused_command_line_argument=yes
5845 else
5846 xorg_cv_cc_flag_unused_command_line_argument=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854 fi
5855
5856 found="no"
5857
5858 if test $found = "no" ; then
5859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861 fi
5862
5863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5865 fi
5866
5867 CFLAGS="$CFLAGS -Wunused"
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5870 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5871 cacheid=xorg_cv_cc_flag__Wunused
5872 if eval \${$cacheid+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 int i;
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_c_try_link "$LINENO"; then :
5887 eval $cacheid=yes
5888 else
5889 eval $cacheid=no
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext \
5892 conftest$ac_exeext conftest.$ac_ext
5893 fi
5894
5895
5896 CFLAGS="$xorg_testset_save_CFLAGS"
5897
5898 eval supported=\$$cacheid
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5900 $as_echo "$supported" >&6; }
5901 if test "$supported" = "yes" ; then
5902 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5903 found="yes"
5904 fi
5905 fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 xorg_testset_save_CFLAGS="$CFLAGS"
5922
5923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 int i;
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935 xorg_cv_cc_flag_unknown_warning_option=yes
5936 else
5937 xorg_cv_cc_flag_unknown_warning_option=no
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5944 CFLAGS="$xorg_testset_save_CFLAGS"
5945 fi
5946
5947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950 fi
5951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int i;
5960 _ACEOF
5961 if ac_fn_c_try_compile "$LINENO"; then :
5962 xorg_cv_cc_flag_unused_command_line_argument=yes
5963 else
5964 xorg_cv_cc_flag_unused_command_line_argument=no
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5971 CFLAGS="$xorg_testset_save_CFLAGS"
5972 fi
5973
5974 found="no"
5975
5976 if test $found = "no" ; then
5977 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979 fi
5980
5981 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983 fi
5984
5985 CFLAGS="$CFLAGS -Wuninitialized"
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5988 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5989 cacheid=xorg_cv_cc_flag__Wuninitialized
5990 if eval \${$cacheid+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 int i;
5996 int
5997 main ()
5998 {
5999
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_c_try_link "$LINENO"; then :
6005 eval $cacheid=yes
6006 else
6007 eval $cacheid=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext \
6010 conftest$ac_exeext conftest.$ac_ext
6011 fi
6012
6013
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016 eval supported=\$$cacheid
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018 $as_echo "$supported" >&6; }
6019 if test "$supported" = "yes" ; then
6020 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6021 found="yes"
6022 fi
6023 fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 int i;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 xorg_cv_cc_flag_unknown_warning_option=yes
6054 else
6055 xorg_cv_cc_flag_unknown_warning_option=no
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6062 CFLAGS="$xorg_testset_save_CFLAGS"
6063 fi
6064
6065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068 fi
6069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 int i;
6078 _ACEOF
6079 if ac_fn_c_try_compile "$LINENO"; then :
6080 xorg_cv_cc_flag_unused_command_line_argument=yes
6081 else
6082 xorg_cv_cc_flag_unused_command_line_argument=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6089 CFLAGS="$xorg_testset_save_CFLAGS"
6090 fi
6091
6092 found="no"
6093
6094 if test $found = "no" ; then
6095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097 fi
6098
6099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101 fi
6102
6103 CFLAGS="$CFLAGS -Wshadow"
6104
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6106 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6107 cacheid=xorg_cv_cc_flag__Wshadow
6108 if eval \${$cacheid+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 int i;
6114 int
6115 main ()
6116 {
6117
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_link "$LINENO"; then :
6123 eval $cacheid=yes
6124 else
6125 eval $cacheid=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129 fi
6130
6131
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133
6134 eval supported=\$$cacheid
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6136 $as_echo "$supported" >&6; }
6137 if test "$supported" = "yes" ; then
6138 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6139 found="yes"
6140 fi
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 int i;
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 xorg_cv_cc_flag_unknown_warning_option=yes
6172 else
6173 xorg_cv_cc_flag_unknown_warning_option=no
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6180 CFLAGS="$xorg_testset_save_CFLAGS"
6181 fi
6182
6183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 fi
6187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 int i;
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"; then :
6198 xorg_cv_cc_flag_unused_command_line_argument=yes
6199 else
6200 xorg_cv_cc_flag_unused_command_line_argument=no
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6207 CFLAGS="$xorg_testset_save_CFLAGS"
6208 fi
6209
6210 found="no"
6211
6212 if test $found = "no" ; then
6213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 fi
6216
6217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219 fi
6220
6221 CFLAGS="$CFLAGS -Wcast-qual"
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6224 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6225 cacheid=xorg_cv_cc_flag__Wcast_qual
6226 if eval \${$cacheid+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 int i;
6232 int
6233 main ()
6234 {
6235
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_link "$LINENO"; then :
6241 eval $cacheid=yes
6242 else
6243 eval $cacheid=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6247 fi
6248
6249
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251
6252 eval supported=\$$cacheid
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6254 $as_echo "$supported" >&6; }
6255 if test "$supported" = "yes" ; then
6256 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6257 found="yes"
6258 fi
6259 fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275 xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 int i;
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289 xorg_cv_cc_flag_unknown_warning_option=yes
6290 else
6291 xorg_cv_cc_flag_unknown_warning_option=no
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298 CFLAGS="$xorg_testset_save_CFLAGS"
6299 fi
6300
6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 fi
6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 int i;
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 xorg_cv_cc_flag_unused_command_line_argument=yes
6317 else
6318 xorg_cv_cc_flag_unused_command_line_argument=no
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325 CFLAGS="$xorg_testset_save_CFLAGS"
6326 fi
6327
6328 found="no"
6329
6330 if test $found = "no" ; then
6331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 fi
6334
6335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 fi
6338
6339 CFLAGS="$CFLAGS -Wmissing-noreturn"
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6342 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6343 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6344 if eval \${$cacheid+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 int i;
6350 int
6351 main ()
6352 {
6353
6354 ;
6355 return 0;
6356 }
6357 _ACEOF
6358 if ac_fn_c_try_link "$LINENO"; then :
6359 eval $cacheid=yes
6360 else
6361 eval $cacheid=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 fi
6366
6367
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370 eval supported=\$$cacheid
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372 $as_echo "$supported" >&6; }
6373 if test "$supported" = "yes" ; then
6374 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6375 found="yes"
6376 fi
6377 fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393 xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 int i;
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 xorg_cv_cc_flag_unknown_warning_option=yes
6408 else
6409 xorg_cv_cc_flag_unknown_warning_option=no
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6416 CFLAGS="$xorg_testset_save_CFLAGS"
6417 fi
6418
6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422 fi
6423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 int i;
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 xorg_cv_cc_flag_unused_command_line_argument=yes
6435 else
6436 xorg_cv_cc_flag_unused_command_line_argument=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6443 CFLAGS="$xorg_testset_save_CFLAGS"
6444 fi
6445
6446 found="no"
6447
6448 if test $found = "no" ; then
6449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451 fi
6452
6453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455 fi
6456
6457 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6460 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6461 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6462 if eval \${$cacheid+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 int i;
6468 int
6469 main ()
6470 {
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_link "$LINENO"; then :
6477 eval $cacheid=yes
6478 else
6479 eval $cacheid=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext \
6482 conftest$ac_exeext conftest.$ac_ext
6483 fi
6484
6485
6486 CFLAGS="$xorg_testset_save_CFLAGS"
6487
6488 eval supported=\$$cacheid
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6490 $as_echo "$supported" >&6; }
6491 if test "$supported" = "yes" ; then
6492 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6493 found="yes"
6494 fi
6495 fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 xorg_testset_save_CFLAGS="$CFLAGS"
6512
6513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 int i;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 xorg_cv_cc_flag_unknown_warning_option=yes
6526 else
6527 xorg_cv_cc_flag_unknown_warning_option=no
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 fi
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6534 CFLAGS="$xorg_testset_save_CFLAGS"
6535 fi
6536
6537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 fi
6541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 int i;
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 xorg_cv_cc_flag_unused_command_line_argument=yes
6553 else
6554 xorg_cv_cc_flag_unused_command_line_argument=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6561 CFLAGS="$xorg_testset_save_CFLAGS"
6562 fi
6563
6564 found="no"
6565
6566 if test $found = "no" ; then
6567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569 fi
6570
6571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573 fi
6574
6575 CFLAGS="$CFLAGS -Wredundant-decls"
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6578 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6579 cacheid=xorg_cv_cc_flag__Wredundant_decls
6580 if eval \${$cacheid+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 int i;
6586 int
6587 main ()
6588 {
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 eval $cacheid=yes
6596 else
6597 eval $cacheid=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 fi
6602
6603
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605
6606 eval supported=\$$cacheid
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6608 $as_echo "$supported" >&6; }
6609 if test "$supported" = "yes" ; then
6610 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6611 found="yes"
6612 fi
6613 fi
6614
6615
6616
6617 # These are currently disabled because they are noisy. They will be enabled
6618 # in the future once the codebase is sufficiently modernized to silence
6619 # them. For now, I don't want them to drown out the other warnings.
6620 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6621 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6622 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6623
6624 # Turn some warnings into errors, so we don't accidently get successful builds
6625 # when there are problems that should be fixed.
6626
6627 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641 xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 int i;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 xorg_cv_cc_flag_unknown_warning_option=yes
6656 else
6657 xorg_cv_cc_flag_unknown_warning_option=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6664 CFLAGS="$xorg_testset_save_CFLAGS"
6665 fi
6666
6667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 fi
6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unused_command_line_argument=yes
6683 else
6684 xorg_cv_cc_flag_unused_command_line_argument=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 found="no"
6695
6696 if test $found = "no" ; then
6697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 fi
6700
6701 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 fi
6704
6705 CFLAGS="$CFLAGS -Werror=implicit"
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6708 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6709 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6710 if eval \${$cacheid+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int i;
6716 int
6717 main ()
6718 {
6719
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 eval $cacheid=yes
6726 else
6727 eval $cacheid=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 fi
6732
6733
6734 CFLAGS="$xorg_testset_save_CFLAGS"
6735
6736 eval supported=\$$cacheid
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6738 $as_echo "$supported" >&6; }
6739 if test "$supported" = "yes" ; then
6740 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6741 found="yes"
6742 fi
6743 fi
6744
6745 if test $found = "no" ; then
6746 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 fi
6749
6750 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752 fi
6753
6754 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6757 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6758 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6759 if eval \${$cacheid+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 int i;
6765 int
6766 main ()
6767 {
6768
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_link "$LINENO"; then :
6774 eval $cacheid=yes
6775 else
6776 eval $cacheid=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext \
6779 conftest$ac_exeext conftest.$ac_ext
6780 fi
6781
6782
6783 CFLAGS="$xorg_testset_save_CFLAGS"
6784
6785 eval supported=\$$cacheid
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6787 $as_echo "$supported" >&6; }
6788 if test "$supported" = "yes" ; then
6789 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6790 found="yes"
6791 fi
6792 fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 xorg_testset_save_CFLAGS="$CFLAGS"
6809
6810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6813 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6814 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819 int i;
6820 _ACEOF
6821 if ac_fn_c_try_compile "$LINENO"; then :
6822 xorg_cv_cc_flag_unknown_warning_option=yes
6823 else
6824 xorg_cv_cc_flag_unknown_warning_option=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6829 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6831 CFLAGS="$xorg_testset_save_CFLAGS"
6832 fi
6833
6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837 fi
6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6840 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6841 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"; then :
6849 xorg_cv_cc_flag_unused_command_line_argument=yes
6850 else
6851 xorg_cv_cc_flag_unused_command_line_argument=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6856 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6858 CFLAGS="$xorg_testset_save_CFLAGS"
6859 fi
6860
6861 found="no"
6862
6863 if test $found = "no" ; then
6864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866 fi
6867
6868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870 fi
6871
6872 CFLAGS="$CFLAGS -Werror=nonnull"
6873
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6875 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6876 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6877 if eval \${$cacheid+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 int i;
6883 int
6884 main ()
6885 {
6886
6887 ;
6888 return 0;
6889 }
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 eval $cacheid=yes
6893 else
6894 eval $cacheid=no
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 fi
6899
6900
6901 CFLAGS="$xorg_testset_save_CFLAGS"
6902
6903 eval supported=\$$cacheid
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6905 $as_echo "$supported" >&6; }
6906 if test "$supported" = "yes" ; then
6907 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6908 found="yes"
6909 fi
6910 fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926 xorg_testset_save_CFLAGS="$CFLAGS"
6927
6928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6931 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6932 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 int i;
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 xorg_cv_cc_flag_unknown_warning_option=yes
6941 else
6942 xorg_cv_cc_flag_unknown_warning_option=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950 fi
6951
6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 fi
6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int i;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"; then :
6967 xorg_cv_cc_flag_unused_command_line_argument=yes
6968 else
6969 xorg_cv_cc_flag_unused_command_line_argument=no
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6974 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6976 CFLAGS="$xorg_testset_save_CFLAGS"
6977 fi
6978
6979 found="no"
6980
6981 if test $found = "no" ; then
6982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984 fi
6985
6986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6988 fi
6989
6990 CFLAGS="$CFLAGS -Werror=init-self"
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6993 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6994 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6995 if eval \${$cacheid+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000 int i;
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 eval $cacheid=yes
7011 else
7012 eval $cacheid=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 fi
7017
7018
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020
7021 eval supported=\$$cacheid
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7023 $as_echo "$supported" >&6; }
7024 if test "$supported" = "yes" ; then
7025 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7026 found="yes"
7027 fi
7028 fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 xorg_testset_save_CFLAGS="$CFLAGS"
7045
7046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 int i;
7056 _ACEOF
7057 if ac_fn_c_try_compile "$LINENO"; then :
7058 xorg_cv_cc_flag_unknown_warning_option=yes
7059 else
7060 xorg_cv_cc_flag_unknown_warning_option=no
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067 CFLAGS="$xorg_testset_save_CFLAGS"
7068 fi
7069
7070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073 fi
7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 int i;
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 xorg_cv_cc_flag_unused_command_line_argument=yes
7086 else
7087 xorg_cv_cc_flag_unused_command_line_argument=no
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7094 CFLAGS="$xorg_testset_save_CFLAGS"
7095 fi
7096
7097 found="no"
7098
7099 if test $found = "no" ; then
7100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 fi
7103
7104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106 fi
7107
7108 CFLAGS="$CFLAGS -Werror=main"
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7111 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7112 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7113 if eval \${$cacheid+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 int i;
7119 int
7120 main ()
7121 {
7122
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 eval $cacheid=yes
7129 else
7130 eval $cacheid=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 fi
7135
7136
7137 CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139 eval supported=\$$cacheid
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141 $as_echo "$supported" >&6; }
7142 if test "$supported" = "yes" ; then
7143 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7144 found="yes"
7145 fi
7146 fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 int i;
7174 _ACEOF
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176 xorg_cv_cc_flag_unknown_warning_option=yes
7177 else
7178 xorg_cv_cc_flag_unknown_warning_option=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186 fi
7187
7188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191 fi
7192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 int i;
7201 _ACEOF
7202 if ac_fn_c_try_compile "$LINENO"; then :
7203 xorg_cv_cc_flag_unused_command_line_argument=yes
7204 else
7205 xorg_cv_cc_flag_unused_command_line_argument=no
7206 fi
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7212 CFLAGS="$xorg_testset_save_CFLAGS"
7213 fi
7214
7215 found="no"
7216
7217 if test $found = "no" ; then
7218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220 fi
7221
7222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224 fi
7225
7226 CFLAGS="$CFLAGS -Werror=missing-braces"
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7229 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7230 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7231 if eval \${$cacheid+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 int i;
7237 int
7238 main ()
7239 {
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 eval $cacheid=yes
7247 else
7248 eval $cacheid=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 fi
7253
7254
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257 eval supported=\$$cacheid
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259 $as_echo "$supported" >&6; }
7260 if test "$supported" = "yes" ; then
7261 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7262 found="yes"
7263 fi
7264 fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 xorg_cv_cc_flag_unknown_warning_option=yes
7295 else
7296 xorg_cv_cc_flag_unknown_warning_option=no
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7301 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7303 CFLAGS="$xorg_testset_save_CFLAGS"
7304 fi
7305
7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309 fi
7310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7312 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7313 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 int i;
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"; then :
7321 xorg_cv_cc_flag_unused_command_line_argument=yes
7322 else
7323 xorg_cv_cc_flag_unused_command_line_argument=no
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 fi
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330 CFLAGS="$xorg_testset_save_CFLAGS"
7331 fi
7332
7333 found="no"
7334
7335 if test $found = "no" ; then
7336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 fi
7339
7340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342 fi
7343
7344 CFLAGS="$CFLAGS -Werror=sequence-point"
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7347 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7348 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7349 if eval \${$cacheid+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 int i;
7355 int
7356 main ()
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 eval $cacheid=yes
7365 else
7366 eval $cacheid=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 fi
7371
7372
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375 eval supported=\$$cacheid
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377 $as_echo "$supported" >&6; }
7378 if test "$supported" = "yes" ; then
7379 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7380 found="yes"
7381 fi
7382 fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 int i;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 xorg_cv_cc_flag_unknown_warning_option=yes
7413 else
7414 xorg_cv_cc_flag_unknown_warning_option=no
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421 CFLAGS="$xorg_testset_save_CFLAGS"
7422 fi
7423
7424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 fi
7428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 int i;
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 xorg_cv_cc_flag_unused_command_line_argument=yes
7440 else
7441 xorg_cv_cc_flag_unused_command_line_argument=no
7442 fi
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7448 CFLAGS="$xorg_testset_save_CFLAGS"
7449 fi
7450
7451 found="no"
7452
7453 if test $found = "no" ; then
7454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456 fi
7457
7458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460 fi
7461
7462 CFLAGS="$CFLAGS -Werror=return-type"
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7465 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7466 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7467 if eval \${$cacheid+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 int i;
7473 int
7474 main ()
7475 {
7476
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 if ac_fn_c_try_link "$LINENO"; then :
7482 eval $cacheid=yes
7483 else
7484 eval $cacheid=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7488 fi
7489
7490
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492
7493 eval supported=\$$cacheid
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7495 $as_echo "$supported" >&6; }
7496 if test "$supported" = "yes" ; then
7497 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7498 found="yes"
7499 fi
7500 fi
7501
7502 if test $found = "no" ; then
7503 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505 fi
7506
7507 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7509 fi
7510
7511 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7514 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7515 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7516 if eval \${$cacheid+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 int i;
7522 int
7523 main ()
7524 {
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 eval $cacheid=yes
7532 else
7533 eval $cacheid=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 fi
7538
7539
7540 CFLAGS="$xorg_testset_save_CFLAGS"
7541
7542 eval supported=\$$cacheid
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7544 $as_echo "$supported" >&6; }
7545 if test "$supported" = "yes" ; then
7546 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7547 found="yes"
7548 fi
7549 fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 xorg_testset_save_CFLAGS="$CFLAGS"
7566
7567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 int i;
7577 _ACEOF
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579 xorg_cv_cc_flag_unknown_warning_option=yes
7580 else
7581 xorg_cv_cc_flag_unknown_warning_option=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7588 CFLAGS="$xorg_testset_save_CFLAGS"
7589 fi
7590
7591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594 fi
7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 int i;
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606 xorg_cv_cc_flag_unused_command_line_argument=yes
7607 else
7608 xorg_cv_cc_flag_unused_command_line_argument=no
7609 fi
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615 CFLAGS="$xorg_testset_save_CFLAGS"
7616 fi
7617
7618 found="no"
7619
7620 if test $found = "no" ; then
7621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623 fi
7624
7625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627 fi
7628
7629 CFLAGS="$CFLAGS -Werror=trigraphs"
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7632 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7633 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7634 if eval \${$cacheid+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 int i;
7640 int
7641 main ()
7642 {
7643
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_link "$LINENO"; then :
7649 eval $cacheid=yes
7650 else
7651 eval $cacheid=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 fi
7656
7657
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660 eval supported=\$$cacheid
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662 $as_echo "$supported" >&6; }
7663 if test "$supported" = "yes" ; then
7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7665 found="yes"
7666 fi
7667 fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 int i;
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 xorg_cv_cc_flag_unknown_warning_option=yes
7698 else
7699 xorg_cv_cc_flag_unknown_warning_option=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706 CFLAGS="$xorg_testset_save_CFLAGS"
7707 fi
7708
7709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712 fi
7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 xorg_cv_cc_flag_unused_command_line_argument=yes
7725 else
7726 xorg_cv_cc_flag_unused_command_line_argument=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7733 CFLAGS="$xorg_testset_save_CFLAGS"
7734 fi
7735
7736 found="no"
7737
7738 if test $found = "no" ; then
7739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741 fi
7742
7743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7745 fi
7746
7747 CFLAGS="$CFLAGS -Werror=array-bounds"
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7750 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7751 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7752 if eval \${$cacheid+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 int i;
7758 int
7759 main ()
7760 {
7761
7762 ;
7763 return 0;
7764 }
7765 _ACEOF
7766 if ac_fn_c_try_link "$LINENO"; then :
7767 eval $cacheid=yes
7768 else
7769 eval $cacheid=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7773 fi
7774
7775
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778 eval supported=\$$cacheid
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780 $as_echo "$supported" >&6; }
7781 if test "$supported" = "yes" ; then
7782 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7783 found="yes"
7784 fi
7785 fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 int i;
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815 xorg_cv_cc_flag_unknown_warning_option=yes
7816 else
7817 xorg_cv_cc_flag_unknown_warning_option=no
7818 fi
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824 CFLAGS="$xorg_testset_save_CFLAGS"
7825 fi
7826
7827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 fi
7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 int i;
7840 _ACEOF
7841 if ac_fn_c_try_compile "$LINENO"; then :
7842 xorg_cv_cc_flag_unused_command_line_argument=yes
7843 else
7844 xorg_cv_cc_flag_unused_command_line_argument=no
7845 fi
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847 fi
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7851 CFLAGS="$xorg_testset_save_CFLAGS"
7852 fi
7853
7854 found="no"
7855
7856 if test $found = "no" ; then
7857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859 fi
7860
7861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863 fi
7864
7865 CFLAGS="$CFLAGS -Werror=write-strings"
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7868 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7869 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7870 if eval \${$cacheid+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 int i;
7876 int
7877 main ()
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 eval $cacheid=yes
7886 else
7887 eval $cacheid=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 fi
7892
7893
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896 eval supported=\$$cacheid
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898 $as_echo "$supported" >&6; }
7899 if test "$supported" = "yes" ; then
7900 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7901 found="yes"
7902 fi
7903 fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 int i;
7931 _ACEOF
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933 xorg_cv_cc_flag_unknown_warning_option=yes
7934 else
7935 xorg_cv_cc_flag_unknown_warning_option=no
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942 CFLAGS="$xorg_testset_save_CFLAGS"
7943 fi
7944
7945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948 fi
7949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 int i;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 xorg_cv_cc_flag_unused_command_line_argument=yes
7961 else
7962 xorg_cv_cc_flag_unused_command_line_argument=no
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7969 CFLAGS="$xorg_testset_save_CFLAGS"
7970 fi
7971
7972 found="no"
7973
7974 if test $found = "no" ; then
7975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977 fi
7978
7979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981 fi
7982
7983 CFLAGS="$CFLAGS -Werror=address"
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7986 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7987 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7988 if eval \${$cacheid+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 int i;
7994 int
7995 main ()
7996 {
7997
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 eval $cacheid=yes
8004 else
8005 eval $cacheid=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 fi
8010
8011
8012 CFLAGS="$xorg_testset_save_CFLAGS"
8013
8014 eval supported=\$$cacheid
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016 $as_echo "$supported" >&6; }
8017 if test "$supported" = "yes" ; then
8018 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8019 found="yes"
8020 fi
8021 fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 xorg_testset_save_CFLAGS="$CFLAGS"
8038
8039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 int i;
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 xorg_cv_cc_flag_unknown_warning_option=yes
8052 else
8053 xorg_cv_cc_flag_unknown_warning_option=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8062
8063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 fi
8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 int i;
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078 xorg_cv_cc_flag_unused_command_line_argument=yes
8079 else
8080 xorg_cv_cc_flag_unused_command_line_argument=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087 CFLAGS="$xorg_testset_save_CFLAGS"
8088 fi
8089
8090 found="no"
8091
8092 if test $found = "no" ; then
8093 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 fi
8096
8097 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099 fi
8100
8101 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8102
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8104 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8105 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8106 if eval \${$cacheid+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 int i;
8112 int
8113 main ()
8114 {
8115
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 eval $cacheid=yes
8122 else
8123 eval $cacheid=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 fi
8128
8129
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132 eval supported=\$$cacheid
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134 $as_echo "$supported" >&6; }
8135 if test "$supported" = "yes" ; then
8136 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8137 found="yes"
8138 fi
8139 fi
8140
8141 if test $found = "no" ; then
8142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144 fi
8145
8146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8148 fi
8149
8150 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8153 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8154 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8155 if eval \${$cacheid+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 int i;
8161 int
8162 main ()
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 eval $cacheid=yes
8171 else
8172 eval $cacheid=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 fi
8177
8178
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8180
8181 eval supported=\$$cacheid
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8183 $as_echo "$supported" >&6; }
8184 if test "$supported" = "yes" ; then
8185 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8186 found="yes"
8187 fi
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 int i;
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218 xorg_cv_cc_flag_unknown_warning_option=yes
8219 else
8220 xorg_cv_cc_flag_unknown_warning_option=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8227 CFLAGS="$xorg_testset_save_CFLAGS"
8228 fi
8229
8230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233 fi
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int i;
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245 xorg_cv_cc_flag_unused_command_line_argument=yes
8246 else
8247 xorg_cv_cc_flag_unused_command_line_argument=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254 CFLAGS="$xorg_testset_save_CFLAGS"
8255 fi
8256
8257 found="no"
8258
8259 if test $found = "no" ; then
8260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262 fi
8263
8264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266 fi
8267
8268 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8269
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8271 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8272 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8273 if eval \${$cacheid+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 int i;
8279 int
8280 main ()
8281 {
8282
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 eval $cacheid=yes
8289 else
8290 eval $cacheid=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294 fi
8295
8296
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299 eval supported=\$$cacheid
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301 $as_echo "$supported" >&6; }
8302 if test "$supported" = "yes" ; then
8303 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8304 found="yes"
8305 fi
8306 fi
8307
8308 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8309 else
8310 { $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
8311 $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;}
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 xorg_testset_save_CFLAGS="$CFLAGS"
8326
8327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8331 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8340 else
8341 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349 fi
8350
8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354 fi
8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 int i;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366 xorg_cv_cc_flag_unused_command_line_argument=yes
8367 else
8368 xorg_cv_cc_flag_unused_command_line_argument=no
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8375 CFLAGS="$xorg_testset_save_CFLAGS"
8376 fi
8377
8378 found="no"
8379
8380 if test $found = "no" ; then
8381 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383 fi
8384
8385 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387 fi
8388
8389 CFLAGS="$CFLAGS -Wimplicit"
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8392 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8393 cacheid=xorg_cv_cc_flag__Wimplicit
8394 if eval \${$cacheid+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 int i;
8400 int
8401 main ()
8402 {
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 eval $cacheid=yes
8410 else
8411 eval $cacheid=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 fi
8416
8417
8418 CFLAGS="$xorg_testset_save_CFLAGS"
8419
8420 eval supported=\$$cacheid
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8422 $as_echo "$supported" >&6; }
8423 if test "$supported" = "yes" ; then
8424 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8425 found="yes"
8426 fi
8427 fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 xorg_testset_save_CFLAGS="$CFLAGS"
8444
8445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 int i;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 xorg_cv_cc_flag_unknown_warning_option=yes
8458 else
8459 xorg_cv_cc_flag_unknown_warning_option=no
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8466 CFLAGS="$xorg_testset_save_CFLAGS"
8467 fi
8468
8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472 fi
8473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 xorg_cv_cc_flag_unused_command_line_argument=yes
8485 else
8486 xorg_cv_cc_flag_unused_command_line_argument=no
8487 fi
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8493 CFLAGS="$xorg_testset_save_CFLAGS"
8494 fi
8495
8496 found="no"
8497
8498 if test $found = "no" ; then
8499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8501 fi
8502
8503 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505 fi
8506
8507 CFLAGS="$CFLAGS -Wnonnull"
8508
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8510 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8511 cacheid=xorg_cv_cc_flag__Wnonnull
8512 if eval \${$cacheid+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 int i;
8518 int
8519 main ()
8520 {
8521
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_link "$LINENO"; then :
8527 eval $cacheid=yes
8528 else
8529 eval $cacheid=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 fi
8534
8535
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537
8538 eval supported=\$$cacheid
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8540 $as_echo "$supported" >&6; }
8541 if test "$supported" = "yes" ; then
8542 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8543 found="yes"
8544 fi
8545 fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 xorg_testset_save_CFLAGS="$CFLAGS"
8562
8563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 int i;
8573 _ACEOF
8574 if ac_fn_c_try_compile "$LINENO"; then :
8575 xorg_cv_cc_flag_unknown_warning_option=yes
8576 else
8577 xorg_cv_cc_flag_unknown_warning_option=no
8578 fi
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8584 CFLAGS="$xorg_testset_save_CFLAGS"
8585 fi
8586
8587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 fi
8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 int i;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 xorg_cv_cc_flag_unused_command_line_argument=yes
8603 else
8604 xorg_cv_cc_flag_unused_command_line_argument=no
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8611 CFLAGS="$xorg_testset_save_CFLAGS"
8612 fi
8613
8614 found="no"
8615
8616 if test $found = "no" ; then
8617 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619 fi
8620
8621 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623 fi
8624
8625 CFLAGS="$CFLAGS -Winit-self"
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8628 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8629 cacheid=xorg_cv_cc_flag__Winit_self
8630 if eval \${$cacheid+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 int i;
8636 int
8637 main ()
8638 {
8639
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"; then :
8645 eval $cacheid=yes
8646 else
8647 eval $cacheid=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 fi
8652
8653
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656 eval supported=\$$cacheid
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8658 $as_echo "$supported" >&6; }
8659 if test "$supported" = "yes" ; then
8660 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8661 found="yes"
8662 fi
8663 fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679 xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 int i;
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693 xorg_cv_cc_flag_unknown_warning_option=yes
8694 else
8695 xorg_cv_cc_flag_unknown_warning_option=no
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 fi
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8703 fi
8704
8705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 fi
8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 int i;
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"; then :
8720 xorg_cv_cc_flag_unused_command_line_argument=yes
8721 else
8722 xorg_cv_cc_flag_unused_command_line_argument=no
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729 CFLAGS="$xorg_testset_save_CFLAGS"
8730 fi
8731
8732 found="no"
8733
8734 if test $found = "no" ; then
8735 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737 fi
8738
8739 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741 fi
8742
8743 CFLAGS="$CFLAGS -Wmain"
8744
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8746 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8747 cacheid=xorg_cv_cc_flag__Wmain
8748 if eval \${$cacheid+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 int i;
8754 int
8755 main ()
8756 {
8757
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_link "$LINENO"; then :
8763 eval $cacheid=yes
8764 else
8765 eval $cacheid=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8769 fi
8770
8771
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774 eval supported=\$$cacheid
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776 $as_echo "$supported" >&6; }
8777 if test "$supported" = "yes" ; then
8778 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8779 found="yes"
8780 fi
8781 fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 xorg_testset_save_CFLAGS="$CFLAGS"
8798
8799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 int i;
8809 _ACEOF
8810 if ac_fn_c_try_compile "$LINENO"; then :
8811 xorg_cv_cc_flag_unknown_warning_option=yes
8812 else
8813 xorg_cv_cc_flag_unknown_warning_option=no
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820 CFLAGS="$xorg_testset_save_CFLAGS"
8821 fi
8822
8823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 fi
8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 int i;
8836 _ACEOF
8837 if ac_fn_c_try_compile "$LINENO"; then :
8838 xorg_cv_cc_flag_unused_command_line_argument=yes
8839 else
8840 xorg_cv_cc_flag_unused_command_line_argument=no
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 fi
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8847 CFLAGS="$xorg_testset_save_CFLAGS"
8848 fi
8849
8850 found="no"
8851
8852 if test $found = "no" ; then
8853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 fi
8856
8857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859 fi
8860
8861 CFLAGS="$CFLAGS -Wmissing-braces"
8862
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8864 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8865 cacheid=xorg_cv_cc_flag__Wmissing_braces
8866 if eval \${$cacheid+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 int i;
8872 int
8873 main ()
8874 {
8875
8876 ;
8877 return 0;
8878 }
8879 _ACEOF
8880 if ac_fn_c_try_link "$LINENO"; then :
8881 eval $cacheid=yes
8882 else
8883 eval $cacheid=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 fi
8888
8889
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892 eval supported=\$$cacheid
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894 $as_echo "$supported" >&6; }
8895 if test "$supported" = "yes" ; then
8896 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8897 found="yes"
8898 fi
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 int i;
8927 _ACEOF
8928 if ac_fn_c_try_compile "$LINENO"; then :
8929 xorg_cv_cc_flag_unknown_warning_option=yes
8930 else
8931 xorg_cv_cc_flag_unknown_warning_option=no
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8938 CFLAGS="$xorg_testset_save_CFLAGS"
8939 fi
8940
8941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 fi
8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 int i;
8954 _ACEOF
8955 if ac_fn_c_try_compile "$LINENO"; then :
8956 xorg_cv_cc_flag_unused_command_line_argument=yes
8957 else
8958 xorg_cv_cc_flag_unused_command_line_argument=no
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965 CFLAGS="$xorg_testset_save_CFLAGS"
8966 fi
8967
8968 found="no"
8969
8970 if test $found = "no" ; then
8971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 fi
8974
8975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977 fi
8978
8979 CFLAGS="$CFLAGS -Wsequence-point"
8980
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8982 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8983 cacheid=xorg_cv_cc_flag__Wsequence_point
8984 if eval \${$cacheid+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 int i;
8990 int
8991 main ()
8992 {
8993
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_link "$LINENO"; then :
8999 eval $cacheid=yes
9000 else
9001 eval $cacheid=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 fi
9006
9007
9008 CFLAGS="$xorg_testset_save_CFLAGS"
9009
9010 eval supported=\$$cacheid
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9012 $as_echo "$supported" >&6; }
9013 if test "$supported" = "yes" ; then
9014 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9015 found="yes"
9016 fi
9017 fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033 xorg_testset_save_CFLAGS="$CFLAGS"
9034
9035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 int i;
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"; then :
9047 xorg_cv_cc_flag_unknown_warning_option=yes
9048 else
9049 xorg_cv_cc_flag_unknown_warning_option=no
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9056 CFLAGS="$xorg_testset_save_CFLAGS"
9057 fi
9058
9059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062 fi
9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 int i;
9072 _ACEOF
9073 if ac_fn_c_try_compile "$LINENO"; then :
9074 xorg_cv_cc_flag_unused_command_line_argument=yes
9075 else
9076 xorg_cv_cc_flag_unused_command_line_argument=no
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9083 CFLAGS="$xorg_testset_save_CFLAGS"
9084 fi
9085
9086 found="no"
9087
9088 if test $found = "no" ; then
9089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 fi
9092
9093 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095 fi
9096
9097 CFLAGS="$CFLAGS -Wreturn-type"
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9100 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9101 cacheid=xorg_cv_cc_flag__Wreturn_type
9102 if eval \${$cacheid+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 int i;
9108 int
9109 main ()
9110 {
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 eval $cacheid=yes
9118 else
9119 eval $cacheid=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123 fi
9124
9125
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127
9128 eval supported=\$$cacheid
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9130 $as_echo "$supported" >&6; }
9131 if test "$supported" = "yes" ; then
9132 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9133 found="yes"
9134 fi
9135 fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151 xorg_testset_save_CFLAGS="$CFLAGS"
9152
9153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9157 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 int i;
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"; then :
9165 xorg_cv_cc_flag_unknown_warning_option=yes
9166 else
9167 xorg_cv_cc_flag_unknown_warning_option=no
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174 CFLAGS="$xorg_testset_save_CFLAGS"
9175 fi
9176
9177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 fi
9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 int i;
9190 _ACEOF
9191 if ac_fn_c_try_compile "$LINENO"; then :
9192 xorg_cv_cc_flag_unused_command_line_argument=yes
9193 else
9194 xorg_cv_cc_flag_unused_command_line_argument=no
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202 fi
9203
9204 found="no"
9205
9206 if test $found = "no" ; then
9207 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210
9211 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 fi
9214
9215 CFLAGS="$CFLAGS -Wtrigraphs"
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9218 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9219 cacheid=xorg_cv_cc_flag__Wtrigraphs
9220 if eval \${$cacheid+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 int i;
9226 int
9227 main ()
9228 {
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"; then :
9235 eval $cacheid=yes
9236 else
9237 eval $cacheid=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 fi
9242
9243
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245
9246 eval supported=\$$cacheid
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9248 $as_echo "$supported" >&6; }
9249 if test "$supported" = "yes" ; then
9250 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9251 found="yes"
9252 fi
9253 fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 xorg_testset_save_CFLAGS="$CFLAGS"
9270
9271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 int i;
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283 xorg_cv_cc_flag_unknown_warning_option=yes
9284 else
9285 xorg_cv_cc_flag_unknown_warning_option=no
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9292 CFLAGS="$xorg_testset_save_CFLAGS"
9293 fi
9294
9295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298 fi
9299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 int i;
9308 _ACEOF
9309 if ac_fn_c_try_compile "$LINENO"; then :
9310 xorg_cv_cc_flag_unused_command_line_argument=yes
9311 else
9312 xorg_cv_cc_flag_unused_command_line_argument=no
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9319 CFLAGS="$xorg_testset_save_CFLAGS"
9320 fi
9321
9322 found="no"
9323
9324 if test $found = "no" ; then
9325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327 fi
9328
9329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331 fi
9332
9333 CFLAGS="$CFLAGS -Warray-bounds"
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9336 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9337 cacheid=xorg_cv_cc_flag__Warray_bounds
9338 if eval \${$cacheid+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 int i;
9344 int
9345 main ()
9346 {
9347
9348 ;
9349 return 0;
9350 }
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 eval $cacheid=yes
9354 else
9355 eval $cacheid=no
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 fi
9360
9361
9362 CFLAGS="$xorg_testset_save_CFLAGS"
9363
9364 eval supported=\$$cacheid
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9366 $as_echo "$supported" >&6; }
9367 if test "$supported" = "yes" ; then
9368 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9369 found="yes"
9370 fi
9371 fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 xorg_testset_save_CFLAGS="$CFLAGS"
9388
9389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398 int i;
9399 _ACEOF
9400 if ac_fn_c_try_compile "$LINENO"; then :
9401 xorg_cv_cc_flag_unknown_warning_option=yes
9402 else
9403 xorg_cv_cc_flag_unknown_warning_option=no
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410 CFLAGS="$xorg_testset_save_CFLAGS"
9411 fi
9412
9413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 fi
9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 int i;
9426 _ACEOF
9427 if ac_fn_c_try_compile "$LINENO"; then :
9428 xorg_cv_cc_flag_unused_command_line_argument=yes
9429 else
9430 xorg_cv_cc_flag_unused_command_line_argument=no
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 fi
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9437 CFLAGS="$xorg_testset_save_CFLAGS"
9438 fi
9439
9440 found="no"
9441
9442 if test $found = "no" ; then
9443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 fi
9446
9447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449 fi
9450
9451 CFLAGS="$CFLAGS -Wwrite-strings"
9452
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9454 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9455 cacheid=xorg_cv_cc_flag__Wwrite_strings
9456 if eval \${$cacheid+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 int i;
9462 int
9463 main ()
9464 {
9465
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471 eval $cacheid=yes
9472 else
9473 eval $cacheid=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 fi
9478
9479
9480 CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482 eval supported=\$$cacheid
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484 $as_echo "$supported" >&6; }
9485 if test "$supported" = "yes" ; then
9486 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9487 found="yes"
9488 fi
9489 fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505 xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 int i;
9517 _ACEOF
9518 if ac_fn_c_try_compile "$LINENO"; then :
9519 xorg_cv_cc_flag_unknown_warning_option=yes
9520 else
9521 xorg_cv_cc_flag_unknown_warning_option=no
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528 CFLAGS="$xorg_testset_save_CFLAGS"
9529 fi
9530
9531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 fi
9535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 int i;
9544 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"; then :
9546 xorg_cv_cc_flag_unused_command_line_argument=yes
9547 else
9548 xorg_cv_cc_flag_unused_command_line_argument=no
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555 CFLAGS="$xorg_testset_save_CFLAGS"
9556 fi
9557
9558 found="no"
9559
9560 if test $found = "no" ; then
9561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563 fi
9564
9565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567 fi
9568
9569 CFLAGS="$CFLAGS -Waddress"
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9572 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9573 cacheid=xorg_cv_cc_flag__Waddress
9574 if eval \${$cacheid+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int i;
9580 int
9581 main ()
9582 {
9583
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 if ac_fn_c_try_link "$LINENO"; then :
9589 eval $cacheid=yes
9590 else
9591 eval $cacheid=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 fi
9596
9597
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600 eval supported=\$$cacheid
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602 $as_echo "$supported" >&6; }
9603 if test "$supported" = "yes" ; then
9604 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9605 found="yes"
9606 fi
9607 fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623 xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 int i;
9635 _ACEOF
9636 if ac_fn_c_try_compile "$LINENO"; then :
9637 xorg_cv_cc_flag_unknown_warning_option=yes
9638 else
9639 xorg_cv_cc_flag_unknown_warning_option=no
9640 fi
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 fi
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646 CFLAGS="$xorg_testset_save_CFLAGS"
9647 fi
9648
9649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 fi
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 int i;
9662 _ACEOF
9663 if ac_fn_c_try_compile "$LINENO"; then :
9664 xorg_cv_cc_flag_unused_command_line_argument=yes
9665 else
9666 xorg_cv_cc_flag_unused_command_line_argument=no
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673 CFLAGS="$xorg_testset_save_CFLAGS"
9674 fi
9675
9676 found="no"
9677
9678 if test $found = "no" ; then
9679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 fi
9682
9683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685 fi
9686
9687 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9690 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9691 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9692 if eval \${$cacheid+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9697 int i;
9698 int
9699 main ()
9700 {
9701
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9707 eval $cacheid=yes
9708 else
9709 eval $cacheid=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 fi
9714
9715
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718 eval supported=\$$cacheid
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720 $as_echo "$supported" >&6; }
9721 if test "$supported" = "yes" ; then
9722 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9723 found="yes"
9724 fi
9725 fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741 xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 int i;
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"; then :
9755 xorg_cv_cc_flag_unknown_warning_option=yes
9756 else
9757 xorg_cv_cc_flag_unknown_warning_option=no
9758 fi
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 fi
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764 CFLAGS="$xorg_testset_save_CFLAGS"
9765 fi
9766
9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770 fi
9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int i;
9780 _ACEOF
9781 if ac_fn_c_try_compile "$LINENO"; then :
9782 xorg_cv_cc_flag_unused_command_line_argument=yes
9783 else
9784 xorg_cv_cc_flag_unused_command_line_argument=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9791 CFLAGS="$xorg_testset_save_CFLAGS"
9792 fi
9793
9794 found="no"
9795
9796 if test $found = "no" ; then
9797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799 fi
9800
9801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803 fi
9804
9805 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9808 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9809 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9810 if eval \${$cacheid+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9815 int i;
9816 int
9817 main ()
9818 {
9819
9820 ;
9821 return 0;
9822 }
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825 eval $cacheid=yes
9826 else
9827 eval $cacheid=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 fi
9832
9833
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836 eval supported=\$$cacheid
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838 $as_echo "$supported" >&6; }
9839 if test "$supported" = "yes" ; then
9840 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9841 found="yes"
9842 fi
9843 fi
9844
9845
9846 fi
9847
9848
9849
9850
9851
9852
9853
9854 CWARNFLAGS="$BASE_CFLAGS"
9855 if test "x$GCC" = xyes ; then
9856 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9857 fi
9858
9859
9860
9861
9862
9863
9864
9865
9866 # Check whether --enable-strict-compilation was given.
9867 if test "${enable_strict_compilation+set}" = set; then :
9868 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9869 else
9870 STRICT_COMPILE=no
9871 fi
9872
9873
9874
9875
9876
9877
9878 STRICT_CFLAGS=""
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892 xorg_testset_save_CFLAGS="$CFLAGS"
9893
9894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"; then :
9906 xorg_cv_cc_flag_unknown_warning_option=yes
9907 else
9908 xorg_cv_cc_flag_unknown_warning_option=no
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911 fi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9915 CFLAGS="$xorg_testset_save_CFLAGS"
9916 fi
9917
9918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921 fi
9922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 xorg_cv_cc_flag_unused_command_line_argument=yes
9934 else
9935 xorg_cv_cc_flag_unused_command_line_argument=no
9936 fi
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9942 CFLAGS="$xorg_testset_save_CFLAGS"
9943 fi
9944
9945 found="no"
9946
9947 if test $found = "no" ; then
9948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950 fi
9951
9952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954 fi
9955
9956 CFLAGS="$CFLAGS -pedantic"
9957
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9959 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9960 cacheid=xorg_cv_cc_flag__pedantic
9961 if eval \${$cacheid+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 int i;
9967 int
9968 main ()
9969 {
9970
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976 eval $cacheid=yes
9977 else
9978 eval $cacheid=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 fi
9983
9984
9985 CFLAGS="$xorg_testset_save_CFLAGS"
9986
9987 eval supported=\$$cacheid
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9989 $as_echo "$supported" >&6; }
9990 if test "$supported" = "yes" ; then
9991 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9992 found="yes"
9993 fi
9994 fi
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010 xorg_testset_save_CFLAGS="$CFLAGS"
10011
10012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 int i;
10022 _ACEOF
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024 xorg_cv_cc_flag_unknown_warning_option=yes
10025 else
10026 xorg_cv_cc_flag_unknown_warning_option=no
10027 fi
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10033 CFLAGS="$xorg_testset_save_CFLAGS"
10034 fi
10035
10036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039 fi
10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 int i;
10049 _ACEOF
10050 if ac_fn_c_try_compile "$LINENO"; then :
10051 xorg_cv_cc_flag_unused_command_line_argument=yes
10052 else
10053 xorg_cv_cc_flag_unused_command_line_argument=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060 CFLAGS="$xorg_testset_save_CFLAGS"
10061 fi
10062
10063 found="no"
10064
10065 if test $found = "no" ; then
10066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068 fi
10069
10070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072 fi
10073
10074 CFLAGS="$CFLAGS -Werror"
10075
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10077 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10078 cacheid=xorg_cv_cc_flag__Werror
10079 if eval \${$cacheid+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 int i;
10085 int
10086 main ()
10087 {
10088
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 eval $cacheid=yes
10095 else
10096 eval $cacheid=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 fi
10101
10102
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10104
10105 eval supported=\$$cacheid
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10107 $as_echo "$supported" >&6; }
10108 if test "$supported" = "yes" ; then
10109 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10110 found="yes"
10111 fi
10112 fi
10113
10114 if test $found = "no" ; then
10115 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117 fi
10118
10119 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121 fi
10122
10123 CFLAGS="$CFLAGS -errwarn"
10124
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10126 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10127 cacheid=xorg_cv_cc_flag__errwarn
10128 if eval \${$cacheid+:} false; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 int i;
10134 int
10135 main ()
10136 {
10137
10138 ;
10139 return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143 eval $cacheid=yes
10144 else
10145 eval $cacheid=no
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 fi
10150
10151
10152 CFLAGS="$xorg_testset_save_CFLAGS"
10153
10154 eval supported=\$$cacheid
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10156 $as_echo "$supported" >&6; }
10157 if test "$supported" = "yes" ; then
10158 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10159 found="yes"
10160 fi
10161 fi
10162
10163
10164
10165 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10166 # activate it with -Werror, so we add it here explicitly.
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180 xorg_testset_save_CFLAGS="$CFLAGS"
10181
10182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10186 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10195 else
10196 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204 fi
10205
10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209 fi
10210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 int i;
10219 _ACEOF
10220 if ac_fn_c_try_compile "$LINENO"; then :
10221 xorg_cv_cc_flag_unused_command_line_argument=yes
10222 else
10223 xorg_cv_cc_flag_unused_command_line_argument=no
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10230 CFLAGS="$xorg_testset_save_CFLAGS"
10231 fi
10232
10233 found="no"
10234
10235 if test $found = "no" ; then
10236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238 fi
10239
10240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10242 fi
10243
10244 CFLAGS="$CFLAGS -Werror=attributes"
10245
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10247 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10249 if eval \${$cacheid+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 int i;
10255 int
10256 main ()
10257 {
10258
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 eval $cacheid=yes
10265 else
10266 eval $cacheid=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 fi
10271
10272
10273 CFLAGS="$xorg_testset_save_CFLAGS"
10274
10275 eval supported=\$$cacheid
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10277 $as_echo "$supported" >&6; }
10278 if test "$supported" = "yes" ; then
10279 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10280 found="yes"
10281 fi
10282 fi
10283
10284
10285
10286 if test "x$STRICT_COMPILE" = "xyes"; then
10287 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10288 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10289 fi
10290
10291
10292
10293
10294
10295
10296 cat >>confdefs.h <<_ACEOF
10297 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10298 _ACEOF
10299
10300 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10301 if test "x$PVM" = "x"; then
10302 PVM="0"
10303 fi
10304
10305 cat >>confdefs.h <<_ACEOF
10306 #define PACKAGE_VERSION_MINOR $PVM
10307 _ACEOF
10308
10309 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10310 if test "x$PVP" = "x"; then
10311 PVP="0"
10312 fi
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10316 _ACEOF
10317
10318
10319
10320 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10321 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10322 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10323 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10324
10325
10326
10327
10328 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10329 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10330 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10331 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10332 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10333
10334
10335
10336
10337
10338
10339 if test x$APP_MAN_SUFFIX = x ; then
10340 APP_MAN_SUFFIX=1
10341 fi
10342 if test x$APP_MAN_DIR = x ; then
10343 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10344 fi
10345
10346 if test x$LIB_MAN_SUFFIX = x ; then
10347 LIB_MAN_SUFFIX=3
10348 fi
10349 if test x$LIB_MAN_DIR = x ; then
10350 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10351 fi
10352
10353 if test x$FILE_MAN_SUFFIX = x ; then
10354 case $host_os in
10355 solaris*) FILE_MAN_SUFFIX=4 ;;
10356 *) FILE_MAN_SUFFIX=5 ;;
10357 esac
10358 fi
10359 if test x$FILE_MAN_DIR = x ; then
10360 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10361 fi
10362
10363 if test x$MISC_MAN_SUFFIX = x ; then
10364 case $host_os in
10365 solaris*) MISC_MAN_SUFFIX=5 ;;
10366 *) MISC_MAN_SUFFIX=7 ;;
10367 esac
10368 fi
10369 if test x$MISC_MAN_DIR = x ; then
10370 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10371 fi
10372
10373 if test x$DRIVER_MAN_SUFFIX = x ; then
10374 case $host_os in
10375 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10376 *) DRIVER_MAN_SUFFIX=4 ;;
10377 esac
10378 fi
10379 if test x$DRIVER_MAN_DIR = x ; then
10380 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10381 fi
10382
10383 if test x$ADMIN_MAN_SUFFIX = x ; then
10384 case $host_os in
10385 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10386 *) ADMIN_MAN_SUFFIX=8 ;;
10387 esac
10388 fi
10389 if test x$ADMIN_MAN_DIR = x ; then
10390 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10391 fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407 XORG_MAN_PAGE="X Version 11"
10408
10409 MAN_SUBSTS="\
10410 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10411 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10412 -e 's|__xservername__|Xorg|g' \
10413 -e 's|__xconfigfile__|xorg.conf|g' \
10414 -e 's|__projectroot__|\$(prefix)|g' \
10415 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10416 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10417 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10418 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10419 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10420 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10421 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10422
10423
10424
10425 # Check whether --enable-silent-rules was given.
10426 if test "${enable_silent_rules+set}" = set; then :
10427 enableval=$enable_silent_rules;
10428 fi
10429
10430 case $enable_silent_rules in
10431 yes) AM_DEFAULT_VERBOSITY=0;;
10432 no) AM_DEFAULT_VERBOSITY=1;;
10433 *) AM_DEFAULT_VERBOSITY=0;;
10434 esac
10435 AM_BACKSLASH='\'
10436
10437
10438
10439 ac_config_headers="$ac_config_headers config.h"
10440
10441
10442
10443 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10444 if test "x$ac_cv_func_mkstemp" = xyes; then :
10445
10446 $as_echo "#define HAS_MKSTEMP 1" >>confdefs.h
10447
10448 fi
10449
10450
10451 # Checks for pkg-config packages
10452
10453 pkg_failed=no
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
10455 $as_echo_n "checking for XDITVIEW... " >&6; }
10456
10457 if test -n "$XDITVIEW_CFLAGS"; then
10458 pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
10459 elif test -n "$PKG_CONFIG"; then
10460 if test -n "$PKG_CONFIG" && \
10461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10462 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10463 ac_status=$?
10464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465 test $ac_status = 0; }; then
10466 pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
10467 else
10468 pkg_failed=yes
10469 fi
10470 else
10471 pkg_failed=untried
10472 fi
10473 if test -n "$XDITVIEW_LIBS"; then
10474 pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
10475 elif test -n "$PKG_CONFIG"; then
10476 if test -n "$PKG_CONFIG" && \
10477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10478 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }; then
10482 pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
10483 else
10484 pkg_failed=yes
10485 fi
10486 else
10487 pkg_failed=untried
10488 fi
10489
10490
10491
10492 if test $pkg_failed = yes; then
10493
10494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10495 _pkg_short_errors_supported=yes
10496 else
10497 _pkg_short_errors_supported=no
10498 fi
10499 if test $_pkg_short_errors_supported = yes; then
10500 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
10501 else
10502 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
10503 fi
10504 # Put the nasty error message in config.log where it belongs
10505 echo "$XDITVIEW_PKG_ERRORS" >&5
10506
10507 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
10508
10509 $XDITVIEW_PKG_ERRORS
10510
10511 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10512 installed software in a non-standard prefix.
10513
10514 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10515 and XDITVIEW_LIBS to avoid the need to call pkg-config.
10516 See the pkg-config man page for more details.
10517 " "$LINENO" 5
10518 elif test $pkg_failed = untried; then
10519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10521 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10522 is in your PATH or set the PKG_CONFIG environment variable to the full
10523 path to pkg-config.
10524
10525 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10526 and XDITVIEW_LIBS to avoid the need to call pkg-config.
10527 See the pkg-config man page for more details.
10528
10529 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10530 See \`config.log' for more details" "$LINENO" 5; }
10531 else
10532 XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
10533 XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10536 :
10537 fi
10538
10539
10540 pkg_failed=no
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10542 $as_echo_n "checking for APPDEFS... " >&6; }
10543
10544 if test -n "$APPDEFS_CFLAGS"; then
10545 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10546 elif test -n "$PKG_CONFIG"; then
10547 if test -n "$PKG_CONFIG" && \
10548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10549 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10550 ac_status=$?
10551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552 test $ac_status = 0; }; then
10553 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10554 else
10555 pkg_failed=yes
10556 fi
10557 else
10558 pkg_failed=untried
10559 fi
10560 if test -n "$APPDEFS_LIBS"; then
10561 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10562 elif test -n "$PKG_CONFIG"; then
10563 if test -n "$PKG_CONFIG" && \
10564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10565 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10566 ac_status=$?
10567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10568 test $ac_status = 0; }; then
10569 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10570 else
10571 pkg_failed=yes
10572 fi
10573 else
10574 pkg_failed=untried
10575 fi
10576
10577
10578
10579 if test $pkg_failed = yes; then
10580
10581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10582 _pkg_short_errors_supported=yes
10583 else
10584 _pkg_short_errors_supported=no
10585 fi
10586 if test $_pkg_short_errors_supported = yes; then
10587 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10588 else
10589 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10590 fi
10591 # Put the nasty error message in config.log where it belongs
10592 echo "$APPDEFS_PKG_ERRORS" >&5
10593
10594 as_fn_error $? "Package requirements (xt) were not met:
10595
10596 $APPDEFS_PKG_ERRORS
10597
10598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10599 installed software in a non-standard prefix.
10600
10601 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10602 and APPDEFS_LIBS to avoid the need to call pkg-config.
10603 See the pkg-config man page for more details.
10604 " "$LINENO" 5
10605 elif test $pkg_failed = untried; then
10606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10608 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10609 is in your PATH or set the PKG_CONFIG environment variable to the full
10610 path to pkg-config.
10611
10612 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10613 and APPDEFS_LIBS to avoid the need to call pkg-config.
10614 See the pkg-config man page for more details.
10615
10616 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10617 See \`config.log' for more details" "$LINENO" 5; }
10618 else
10619 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10620 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10622 $as_echo "yes" >&6; }
10623 :
10624 fi
10625 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10626
10627 # Check whether --with-appdefaultdir was given.
10628 if test "${with_appdefaultdir+set}" = set; then :
10629 withval=$with_appdefaultdir; appdefaultdir="$withval"
10630 else
10631 appdefaultdir="${xt_appdefaultdir}"
10632 fi
10633
10634
10635
10636
10637 ac_config_files="$ac_config_files Makefile man/Makefile"
10638
10639 cat >confcache <<\_ACEOF
10640 # This file is a shell script that caches the results of configure
10641 # tests run on this system so they can be shared between configure
10642 # scripts and configure runs, see configure's option --config-cache.
10643 # It is not useful on other systems. If it contains results you don't
10644 # want to keep, you may remove or edit it.
10645 #
10646 # config.status only pays attention to the cache file if you give it
10647 # the --recheck option to rerun configure.
10648 #
10649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10651 # following values.
10652
10653 _ACEOF
10654
10655 # The following way of writing the cache mishandles newlines in values,
10656 # but we know of no workaround that is simple, portable, and efficient.
10657 # So, we kill variables containing newlines.
10658 # Ultrix sh set writes to stderr and can't be redirected directly,
10659 # and sets the high bit in the cache file unless we assign to the vars.
10660 (
10661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10662 eval ac_val=\$$ac_var
10663 case $ac_val in #(
10664 *${as_nl}*)
10665 case $ac_var in #(
10666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10668 esac
10669 case $ac_var in #(
10670 _ | IFS | as_nl) ;; #(
10671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10672 *) { eval $ac_var=; unset $ac_var;} ;;
10673 esac ;;
10674 esac
10675 done
10676
10677 (set) 2>&1 |
10678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10679 *${as_nl}ac_space=\ *)
10680 # `set' does not quote correctly, so add quotes: double-quote
10681 # substitution turns \\\\ into \\, and sed turns \\ into \.
10682 sed -n \
10683 "s/'/'\\\\''/g;
10684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10685 ;; #(
10686 *)
10687 # `set' quotes correctly as required by POSIX, so do not add quotes.
10688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10689 ;;
10690 esac |
10691 sort
10692 ) |
10693 sed '
10694 /^ac_cv_env_/b end
10695 t clear
10696 :clear
10697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10698 t end
10699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10700 :end' >>confcache
10701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10702 if test -w "$cache_file"; then
10703 if test "x$cache_file" != "x/dev/null"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10705 $as_echo "$as_me: updating cache $cache_file" >&6;}
10706 if test ! -f "$cache_file" || test -h "$cache_file"; then
10707 cat confcache >"$cache_file"
10708 else
10709 case $cache_file in #(
10710 */* | ?:*)
10711 mv -f confcache "$cache_file"$$ &&
10712 mv -f "$cache_file"$$ "$cache_file" ;; #(
10713 *)
10714 mv -f confcache "$cache_file" ;;
10715 esac
10716 fi
10717 fi
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10721 fi
10722 fi
10723 rm -f confcache
10724
10725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10726 # Let make expand exec_prefix.
10727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10728
10729 DEFS=-DHAVE_CONFIG_H
10730
10731 ac_libobjs=
10732 ac_ltlibobjs=
10733 U=
10734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10735 # 1. Remove the extension, and $U if already installed.
10736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10739 # will be set to the directory where LIBOBJS objects are built.
10740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10742 done
10743 LIBOBJS=$ac_libobjs
10744
10745 LTLIBOBJS=$ac_ltlibobjs
10746
10747
10748 if test -n "$EXEEXT"; then
10749 am__EXEEXT_TRUE=
10750 am__EXEEXT_FALSE='#'
10751 else
10752 am__EXEEXT_TRUE='#'
10753 am__EXEEXT_FALSE=
10754 fi
10755
10756 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10757 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10759 fi
10760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10761 as_fn_error $? "conditional \"AMDEP\" was never defined.
10762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10763 fi
10764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10765 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10767 fi
10768
10769 : "${CONFIG_STATUS=./config.status}"
10770 ac_write_fail=0
10771 ac_clean_files_save=$ac_clean_files
10772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10774 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10775 as_write_fail=0
10776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10777 #! $SHELL
10778 # Generated by $as_me.
10779 # Run this file to recreate the current configuration.
10780 # Compiler output produced by configure, useful for debugging
10781 # configure, is in config.log if it exists.
10782
10783 debug=false
10784 ac_cs_recheck=false
10785 ac_cs_silent=false
10786
10787 SHELL=\${CONFIG_SHELL-$SHELL}
10788 export SHELL
10789 _ASEOF
10790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10791 ## -------------------- ##
10792 ## M4sh Initialization. ##
10793 ## -------------------- ##
10794
10795 # Be more Bourne compatible
10796 DUALCASE=1; export DUALCASE # for MKS sh
10797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10798 emulate sh
10799 NULLCMD=:
10800 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10801 # is contrary to our usage. Disable this feature.
10802 alias -g '${1+"$@"}'='"$@"'
10803 setopt NO_GLOB_SUBST
10804 else
10805 case `(set -o) 2>/dev/null` in #(
10806 *posix*) :
10807 set -o posix ;; #(
10808 *) :
10809 ;;
10810 esac
10811 fi
10812
10813
10814 as_nl='
10815 '
10816 export as_nl
10817 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10818 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10821 # Prefer a ksh shell builtin over an external printf program on Solaris,
10822 # but without wasting forks for bash or zsh.
10823 if test -z "$BASH_VERSION$ZSH_VERSION" \
10824 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10825 as_echo='print -r --'
10826 as_echo_n='print -rn --'
10827 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10828 as_echo='printf %s\n'
10829 as_echo_n='printf %s'
10830 else
10831 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10832 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10833 as_echo_n='/usr/ucb/echo -n'
10834 else
10835 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10836 as_echo_n_body='eval
10837 arg=$1;
10838 case $arg in #(
10839 *"$as_nl"*)
10840 expr "X$arg" : "X\\(.*\\)$as_nl";
10841 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10842 esac;
10843 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10844 '
10845 export as_echo_n_body
10846 as_echo_n='sh -c $as_echo_n_body as_echo'
10847 fi
10848 export as_echo_body
10849 as_echo='sh -c $as_echo_body as_echo'
10850 fi
10851
10852 # The user is always right.
10853 if test "${PATH_SEPARATOR+set}" != set; then
10854 PATH_SEPARATOR=:
10855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10857 PATH_SEPARATOR=';'
10858 }
10859 fi
10860
10861
10862 # IFS
10863 # We need space, tab and new line, in precisely that order. Quoting is
10864 # there to prevent editors from complaining about space-tab.
10865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10866 # splitting by setting IFS to empty value.)
10867 IFS=" "" $as_nl"
10868
10869 # Find who we are. Look in the path if we contain no directory separator.
10870 as_myself=
10871 case $0 in #((
10872 *[\\/]* ) as_myself=$0 ;;
10873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874 for as_dir in $PATH
10875 do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10879 done
10880 IFS=$as_save_IFS
10881
10882 ;;
10883 esac
10884 # We did not find ourselves, most probably we were run as `sh COMMAND'
10885 # in which case we are not to be found in the path.
10886 if test "x$as_myself" = x; then
10887 as_myself=$0
10888 fi
10889 if test ! -f "$as_myself"; then
10890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10891 exit 1
10892 fi
10893
10894 # Unset variables that we do not need and which cause bugs (e.g. in
10895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10896 # suppresses any "Segmentation fault" message there. '((' could
10897 # trigger a bug in pdksh 5.2.14.
10898 for as_var in BASH_ENV ENV MAIL MAILPATH
10899 do eval test x\${$as_var+set} = xset \
10900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10901 done
10902 PS1='$ '
10903 PS2='> '
10904 PS4='+ '
10905
10906 # NLS nuisances.
10907 LC_ALL=C
10908 export LC_ALL
10909 LANGUAGE=C
10910 export LANGUAGE
10911
10912 # CDPATH.
10913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10914
10915
10916 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10917 # ----------------------------------------
10918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10920 # script with STATUS, using 1 if that was 0.
10921 as_fn_error ()
10922 {
10923 as_status=$1; test $as_status -eq 0 && as_status=1
10924 if test "$4"; then
10925 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10927 fi
10928 $as_echo "$as_me: error: $2" >&2
10929 as_fn_exit $as_status
10930 } # as_fn_error
10931
10932
10933 # as_fn_set_status STATUS
10934 # -----------------------
10935 # Set $? to STATUS, without forking.
10936 as_fn_set_status ()
10937 {
10938 return $1
10939 } # as_fn_set_status
10940
10941 # as_fn_exit STATUS
10942 # -----------------
10943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10944 as_fn_exit ()
10945 {
10946 set +e
10947 as_fn_set_status $1
10948 exit $1
10949 } # as_fn_exit
10950
10951 # as_fn_unset VAR
10952 # ---------------
10953 # Portably unset VAR.
10954 as_fn_unset ()
10955 {
10956 { eval $1=; unset $1;}
10957 }
10958 as_unset=as_fn_unset
10959 # as_fn_append VAR VALUE
10960 # ----------------------
10961 # Append the text in VALUE to the end of the definition contained in VAR. Take
10962 # advantage of any shell optimizations that allow amortized linear growth over
10963 # repeated appends, instead of the typical quadratic growth present in naive
10964 # implementations.
10965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10966 eval 'as_fn_append ()
10967 {
10968 eval $1+=\$2
10969 }'
10970 else
10971 as_fn_append ()
10972 {
10973 eval $1=\$$1\$2
10974 }
10975 fi # as_fn_append
10976
10977 # as_fn_arith ARG...
10978 # ------------------
10979 # Perform arithmetic evaluation on the ARGs, and store the result in the
10980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10981 # must be portable across $(()) and expr.
10982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10983 eval 'as_fn_arith ()
10984 {
10985 as_val=$(( $* ))
10986 }'
10987 else
10988 as_fn_arith ()
10989 {
10990 as_val=`expr "$@" || test $? -eq 1`
10991 }
10992 fi # as_fn_arith
10993
10994
10995 if expr a : '\(a\)' >/dev/null 2>&1 &&
10996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10997 as_expr=expr
10998 else
10999 as_expr=false
11000 fi
11001
11002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11003 as_basename=basename
11004 else
11005 as_basename=false
11006 fi
11007
11008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11009 as_dirname=dirname
11010 else
11011 as_dirname=false
11012 fi
11013
11014 as_me=`$as_basename -- "$0" ||
11015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11016 X"$0" : 'X\(//\)$' \| \
11017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11018 $as_echo X/"$0" |
11019 sed '/^.*\/\([^/][^/]*\)\/*$/{
11020 s//\1/
11021 q
11022 }
11023 /^X\/\(\/\/\)$/{
11024 s//\1/
11025 q
11026 }
11027 /^X\/\(\/\).*/{
11028 s//\1/
11029 q
11030 }
11031 s/.*/./; q'`
11032
11033 # Avoid depending upon Character Ranges.
11034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11037 as_cr_digits='0123456789'
11038 as_cr_alnum=$as_cr_Letters$as_cr_digits
11039
11040 ECHO_C= ECHO_N= ECHO_T=
11041 case `echo -n x` in #(((((
11042 -n*)
11043 case `echo 'xy\c'` in
11044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11045 xy) ECHO_C='\c';;
11046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11047 ECHO_T=' ';;
11048 esac;;
11049 *)
11050 ECHO_N='-n';;
11051 esac
11052
11053 rm -f conf$$ conf$$.exe conf$$.file
11054 if test -d conf$$.dir; then
11055 rm -f conf$$.dir/conf$$.file
11056 else
11057 rm -f conf$$.dir
11058 mkdir conf$$.dir 2>/dev/null
11059 fi
11060 if (echo >conf$$.file) 2>/dev/null; then
11061 if ln -s conf$$.file conf$$ 2>/dev/null; then
11062 as_ln_s='ln -s'
11063 # ... but there are two gotchas:
11064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11066 # In both cases, we have to default to `cp -p'.
11067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11068 as_ln_s='cp -p'
11069 elif ln conf$$.file conf$$ 2>/dev/null; then
11070 as_ln_s=ln
11071 else
11072 as_ln_s='cp -p'
11073 fi
11074 else
11075 as_ln_s='cp -p'
11076 fi
11077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11078 rmdir conf$$.dir 2>/dev/null
11079
11080
11081 # as_fn_mkdir_p
11082 # -------------
11083 # Create "$as_dir" as a directory, including parents if necessary.
11084 as_fn_mkdir_p ()
11085 {
11086
11087 case $as_dir in #(
11088 -*) as_dir=./$as_dir;;
11089 esac
11090 test -d "$as_dir" || eval $as_mkdir_p || {
11091 as_dirs=
11092 while :; do
11093 case $as_dir in #(
11094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11095 *) as_qdir=$as_dir;;
11096 esac
11097 as_dirs="'$as_qdir' $as_dirs"
11098 as_dir=`$as_dirname -- "$as_dir" ||
11099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11100 X"$as_dir" : 'X\(//\)[^/]' \| \
11101 X"$as_dir" : 'X\(//\)$' \| \
11102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11103 $as_echo X"$as_dir" |
11104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11105 s//\1/
11106 q
11107 }
11108 /^X\(\/\/\)[^/].*/{
11109 s//\1/
11110 q
11111 }
11112 /^X\(\/\/\)$/{
11113 s//\1/
11114 q
11115 }
11116 /^X\(\/\).*/{
11117 s//\1/
11118 q
11119 }
11120 s/.*/./; q'`
11121 test -d "$as_dir" && break
11122 done
11123 test -z "$as_dirs" || eval "mkdir $as_dirs"
11124 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11125
11126
11127 } # as_fn_mkdir_p
11128 if mkdir -p . 2>/dev/null; then
11129 as_mkdir_p='mkdir -p "$as_dir"'
11130 else
11131 test -d ./-p && rmdir ./-p
11132 as_mkdir_p=false
11133 fi
11134
11135 if test -x / >/dev/null 2>&1; then
11136 as_test_x='test -x'
11137 else
11138 if ls -dL / >/dev/null 2>&1; then
11139 as_ls_L_option=L
11140 else
11141 as_ls_L_option=
11142 fi
11143 as_test_x='
11144 eval sh -c '\''
11145 if test -d "$1"; then
11146 test -d "$1/.";
11147 else
11148 case $1 in #(
11149 -*)set "./$1";;
11150 esac;
11151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11152 ???[sx]*):;;*)false;;esac;fi
11153 '\'' sh
11154 '
11155 fi
11156 as_executable_p=$as_test_x
11157
11158 # Sed expression to map a string onto a valid CPP name.
11159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11160
11161 # Sed expression to map a string onto a valid variable name.
11162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11163
11164
11165 exec 6>&1
11166 ## ----------------------------------- ##
11167 ## Main body of $CONFIG_STATUS script. ##
11168 ## ----------------------------------- ##
11169 _ASEOF
11170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11171
11172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11173 # Save the log message, to keep $0 and so on meaningful, and to
11174 # report actual input values of CONFIG_FILES etc. instead of their
11175 # values after options handling.
11176 ac_log="
11177 This file was extended by xditview $as_me 1.0.3, which was
11178 generated by GNU Autoconf 2.68. Invocation command line was
11179
11180 CONFIG_FILES = $CONFIG_FILES
11181 CONFIG_HEADERS = $CONFIG_HEADERS
11182 CONFIG_LINKS = $CONFIG_LINKS
11183 CONFIG_COMMANDS = $CONFIG_COMMANDS
11184 $ $0 $@
11185
11186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11187 "
11188
11189 _ACEOF
11190
11191 case $ac_config_files in *"
11192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11193 esac
11194
11195 case $ac_config_headers in *"
11196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11197 esac
11198
11199
11200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11201 # Files that config.status was made for.
11202 config_files="$ac_config_files"
11203 config_headers="$ac_config_headers"
11204 config_commands="$ac_config_commands"
11205
11206 _ACEOF
11207
11208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11209 ac_cs_usage="\
11210 \`$as_me' instantiates files and other configuration actions
11211 from templates according to the current configuration. Unless the files
11212 and actions are specified as TAGs, all are instantiated by default.
11213
11214 Usage: $0 [OPTION]... [TAG]...
11215
11216 -h, --help print this help, then exit
11217 -V, --version print version number and configuration settings, then exit
11218 --config print configuration, then exit
11219 -q, --quiet, --silent
11220 do not print progress messages
11221 -d, --debug don't remove temporary files
11222 --recheck update $as_me by reconfiguring in the same conditions
11223 --file=FILE[:TEMPLATE]
11224 instantiate the configuration file FILE
11225 --header=FILE[:TEMPLATE]
11226 instantiate the configuration header FILE
11227
11228 Configuration files:
11229 $config_files
11230
11231 Configuration headers:
11232 $config_headers
11233
11234 Configuration commands:
11235 $config_commands
11236
11237 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11238
11239 _ACEOF
11240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11242 ac_cs_version="\\
11243 xditview config.status 1.0.3
11244 configured by $0, generated by GNU Autoconf 2.68,
11245 with options \\"\$ac_cs_config\\"
11246
11247 Copyright (C) 2010 Free Software Foundation, Inc.
11248 This config.status script is free software; the Free Software Foundation
11249 gives unlimited permission to copy, distribute and modify it."
11250
11251 ac_pwd='$ac_pwd'
11252 srcdir='$srcdir'
11253 INSTALL='$INSTALL'
11254 MKDIR_P='$MKDIR_P'
11255 AWK='$AWK'
11256 test -n "\$AWK" || AWK=awk
11257 _ACEOF
11258
11259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11260 # The default lists apply if the user does not specify any file.
11261 ac_need_defaults=:
11262 while test $# != 0
11263 do
11264 case $1 in
11265 --*=?*)
11266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11268 ac_shift=:
11269 ;;
11270 --*=)
11271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11272 ac_optarg=
11273 ac_shift=:
11274 ;;
11275 *)
11276 ac_option=$1
11277 ac_optarg=$2
11278 ac_shift=shift
11279 ;;
11280 esac
11281
11282 case $ac_option in
11283 # Handling of the options.
11284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11285 ac_cs_recheck=: ;;
11286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11287 $as_echo "$ac_cs_version"; exit ;;
11288 --config | --confi | --conf | --con | --co | --c )
11289 $as_echo "$ac_cs_config"; exit ;;
11290 --debug | --debu | --deb | --de | --d | -d )
11291 debug=: ;;
11292 --file | --fil | --fi | --f )
11293 $ac_shift
11294 case $ac_optarg in
11295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11296 '') as_fn_error $? "missing file argument" ;;
11297 esac
11298 as_fn_append CONFIG_FILES " '$ac_optarg'"
11299 ac_need_defaults=false;;
11300 --header | --heade | --head | --hea )
11301 $ac_shift
11302 case $ac_optarg in
11303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11304 esac
11305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11306 ac_need_defaults=false;;
11307 --he | --h)
11308 # Conflict between --help and --header
11309 as_fn_error $? "ambiguous option: \`$1'
11310 Try \`$0 --help' for more information.";;
11311 --help | --hel | -h )
11312 $as_echo "$ac_cs_usage"; exit ;;
11313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11315 ac_cs_silent=: ;;
11316
11317 # This is an error.
11318 -*) as_fn_error $? "unrecognized option: \`$1'
11319 Try \`$0 --help' for more information." ;;
11320
11321 *) as_fn_append ac_config_targets " $1"
11322 ac_need_defaults=false ;;
11323
11324 esac
11325 shift
11326 done
11327
11328 ac_configure_extra_args=
11329
11330 if $ac_cs_silent; then
11331 exec 6>/dev/null
11332 ac_configure_extra_args="$ac_configure_extra_args --silent"
11333 fi
11334
11335 _ACEOF
11336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11337 if \$ac_cs_recheck; then
11338 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11339 shift
11340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11341 CONFIG_SHELL='$SHELL'
11342 export CONFIG_SHELL
11343 exec "\$@"
11344 fi
11345
11346 _ACEOF
11347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11348 exec 5>>config.log
11349 {
11350 echo
11351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11352 ## Running $as_me. ##
11353 _ASBOX
11354 $as_echo "$ac_log"
11355 } >&5
11356
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11359 #
11360 # INIT-COMMANDS
11361 #
11362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11363
11364 _ACEOF
11365
11366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11367
11368 # Handling of arguments.
11369 for ac_config_target in $ac_config_targets
11370 do
11371 case $ac_config_target in
11372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11373 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11374 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11375 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11376
11377 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11378 esac
11379 done
11380
11381
11382 # If the user did not use the arguments to specify the items to instantiate,
11383 # then the envvar interface is used. Set only those that are not.
11384 # We use the long form for the default assignment because of an extremely
11385 # bizarre bug on SunOS 4.1.3.
11386 if $ac_need_defaults; then
11387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11390 fi
11391
11392 # Have a temporary directory for convenience. Make it in the build tree
11393 # simply because there is no reason against having it here, and in addition,
11394 # creating and moving files from /tmp can sometimes cause problems.
11395 # Hook for its removal unless debugging.
11396 # Note that there is a small window in which the directory will not be cleaned:
11397 # after its creation but before its name has been assigned to `$tmp'.
11398 $debug ||
11399 {
11400 tmp= ac_tmp=
11401 trap 'exit_status=$?
11402 : "${ac_tmp:=$tmp}"
11403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11404 ' 0
11405 trap 'as_fn_exit 1' 1 2 13 15
11406 }
11407 # Create a (secure) tmp directory for tmp files.
11408
11409 {
11410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11411 test -d "$tmp"
11412 } ||
11413 {
11414 tmp=./conf$$-$RANDOM
11415 (umask 077 && mkdir "$tmp")
11416 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11417 ac_tmp=$tmp
11418
11419 # Set up the scripts for CONFIG_FILES section.
11420 # No need to generate them if there are no CONFIG_FILES.
11421 # This happens for instance with `./config.status config.h'.
11422 if test -n "$CONFIG_FILES"; then
11423
11424
11425 ac_cr=`echo X | tr X '\015'`
11426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11427 # But we know of no other shell where ac_cr would be empty at this
11428 # point, so we can use a bashism as a fallback.
11429 if test "x$ac_cr" = x; then
11430 eval ac_cr=\$\'\\r\'
11431 fi
11432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11434 ac_cs_awk_cr='\\r'
11435 else
11436 ac_cs_awk_cr=$ac_cr
11437 fi
11438
11439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11440 _ACEOF
11441
11442
11443 {
11444 echo "cat >conf$$subs.awk <<_ACEOF" &&
11445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11446 echo "_ACEOF"
11447 } >conf$$subs.sh ||
11448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11450 ac_delim='%!_!# '
11451 for ac_last_try in false false false false false :; do
11452 . ./conf$$subs.sh ||
11453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11454
11455 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11456 if test $ac_delim_n = $ac_delim_num; then
11457 break
11458 elif $ac_last_try; then
11459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11460 else
11461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11462 fi
11463 done
11464 rm -f conf$$subs.sh
11465
11466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11467 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11468 _ACEOF
11469 sed -n '
11470 h
11471 s/^/S["/; s/!.*/"]=/
11472 p
11473 g
11474 s/^[^!]*!//
11475 :repl
11476 t repl
11477 s/'"$ac_delim"'$//
11478 t delim
11479 :nl
11480 h
11481 s/\(.\{148\}\)..*/\1/
11482 t more1
11483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11484 p
11485 n
11486 b repl
11487 :more1
11488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11489 p
11490 g
11491 s/.\{148\}//
11492 t nl
11493 :delim
11494 h
11495 s/\(.\{148\}\)..*/\1/
11496 t more2
11497 s/["\\]/\\&/g; s/^/"/; s/$/"/
11498 p
11499 b
11500 :more2
11501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11502 p
11503 g
11504 s/.\{148\}//
11505 t delim
11506 ' <conf$$subs.awk | sed '
11507 /^[^""]/{
11508 N
11509 s/\n//
11510 }
11511 ' >>$CONFIG_STATUS || ac_write_fail=1
11512 rm -f conf$$subs.awk
11513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514 _ACAWK
11515 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11516 for (key in S) S_is_set[key] = 1
11517 FS = ""
11518
11519 }
11520 {
11521 line = $ 0
11522 nfields = split(line, field, "@")
11523 substed = 0
11524 len = length(field[1])
11525 for (i = 2; i < nfields; i++) {
11526 key = field[i]
11527 keylen = length(key)
11528 if (S_is_set[key]) {
11529 value = S[key]
11530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11531 len += length(value) + length(field[++i])
11532 substed = 1
11533 } else
11534 len += 1 + keylen
11535 }
11536
11537 print line
11538 }
11539
11540 _ACAWK
11541 _ACEOF
11542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11544 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11545 else
11546 cat
11547 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11548 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11549 _ACEOF
11550
11551 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11552 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11553 # trailing colons and then remove the whole line if VPATH becomes empty
11554 # (actually we leave an empty line to preserve line numbers).
11555 if test "x$srcdir" = x.; then
11556 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11557 h
11558 s///
11559 s/^/:/
11560 s/[ ]*$/:/
11561 s/:\$(srcdir):/:/g
11562 s/:\${srcdir}:/:/g
11563 s/:@srcdir@:/:/g
11564 s/^:*//
11565 s/:*$//
11566 x
11567 s/\(=[ ]*\).*/\1/
11568 G
11569 s/\n//
11570 s/^[^=]*=[ ]*$//
11571 }'
11572 fi
11573
11574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575 fi # test -n "$CONFIG_FILES"
11576
11577 # Set up the scripts for CONFIG_HEADERS section.
11578 # No need to generate them if there are no CONFIG_HEADERS.
11579 # This happens for instance with `./config.status Makefile'.
11580 if test -n "$CONFIG_HEADERS"; then
11581 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11582 BEGIN {
11583 _ACEOF
11584
11585 # Transform confdefs.h into an awk script `defines.awk', embedded as
11586 # here-document in config.status, that substitutes the proper values into
11587 # config.h.in to produce config.h.
11588
11589 # Create a delimiter string that does not exist in confdefs.h, to ease
11590 # handling of long lines.
11591 ac_delim='%!_!# '
11592 for ac_last_try in false false :; do
11593 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11594 if test -z "$ac_tt"; then
11595 break
11596 elif $ac_last_try; then
11597 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11598 else
11599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11600 fi
11601 done
11602
11603 # For the awk script, D is an array of macro values keyed by name,
11604 # likewise P contains macro parameters if any. Preserve backslash
11605 # newline sequences.
11606
11607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11608 sed -n '
11609 s/.\{148\}/&'"$ac_delim"'/g
11610 t rset
11611 :rset
11612 s/^[ ]*#[ ]*define[ ][ ]*/ /
11613 t def
11614 d
11615 :def
11616 s/\\$//
11617 t bsnl
11618 s/["\\]/\\&/g
11619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11620 D["\1"]=" \3"/p
11621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11622 d
11623 :bsnl
11624 s/["\\]/\\&/g
11625 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11626 D["\1"]=" \3\\\\\\n"\\/p
11627 t cont
11628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11629 t cont
11630 d
11631 :cont
11632 n
11633 s/.\{148\}/&'"$ac_delim"'/g
11634 t clear
11635 :clear
11636 s/\\$//
11637 t bsnlc
11638 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11639 d
11640 :bsnlc
11641 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11642 b cont
11643 ' <confdefs.h | sed '
11644 s/'"$ac_delim"'/"\\\
11645 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11646
11647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11648 for (key in D) D_is_set[key] = 1
11649 FS = ""
11650 }
11651 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11652 line = \$ 0
11653 split(line, arg, " ")
11654 if (arg[1] == "#") {
11655 defundef = arg[2]
11656 mac1 = arg[3]
11657 } else {
11658 defundef = substr(arg[1], 2)
11659 mac1 = arg[2]
11660 }
11661 split(mac1, mac2, "(") #)
11662 macro = mac2[1]
11663 prefix = substr(line, 1, index(line, defundef) - 1)
11664 if (D_is_set[macro]) {
11665 # Preserve the white space surrounding the "#".
11666 print prefix "define", macro P[macro] D[macro]
11667 next
11668 } else {
11669 # Replace #undef with comments. This is necessary, for example,
11670 # in the case of _POSIX_SOURCE, which is predefined and required
11671 # on some systems where configure will not decide to define it.
11672 if (defundef == "undef") {
11673 print "/*", prefix defundef, macro, "*/"
11674 next
11675 }
11676 }
11677 }
11678 { print }
11679 _ACAWK
11680 _ACEOF
11681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11682 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11683 fi # test -n "$CONFIG_HEADERS"
11684
11685
11686 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11687 shift
11688 for ac_tag
11689 do
11690 case $ac_tag in
11691 :[FHLC]) ac_mode=$ac_tag; continue;;
11692 esac
11693 case $ac_mode$ac_tag in
11694 :[FHL]*:*);;
11695 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11696 :[FH]-) ac_tag=-:-;;
11697 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11698 esac
11699 ac_save_IFS=$IFS
11700 IFS=:
11701 set x $ac_tag
11702 IFS=$ac_save_IFS
11703 shift
11704 ac_file=$1
11705 shift
11706
11707 case $ac_mode in
11708 :L) ac_source=$1;;
11709 :[FH])
11710 ac_file_inputs=
11711 for ac_f
11712 do
11713 case $ac_f in
11714 -) ac_f="$ac_tmp/stdin";;
11715 *) # Look for the file first in the build tree, then in the source tree
11716 # (if the path is not absolute). The absolute path cannot be DOS-style,
11717 # because $ac_f cannot contain `:'.
11718 test -f "$ac_f" ||
11719 case $ac_f in
11720 [\\/$]*) false;;
11721 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11722 esac ||
11723 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11724 esac
11725 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11726 as_fn_append ac_file_inputs " '$ac_f'"
11727 done
11728
11729 # Let's still pretend it is `configure' which instantiates (i.e., don't
11730 # use $as_me), people would be surprised to read:
11731 # /* config.h. Generated by config.status. */
11732 configure_input='Generated from '`
11733 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11734 `' by configure.'
11735 if test x"$ac_file" != x-; then
11736 configure_input="$ac_file. $configure_input"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11738 $as_echo "$as_me: creating $ac_file" >&6;}
11739 fi
11740 # Neutralize special characters interpreted by sed in replacement strings.
11741 case $configure_input in #(
11742 *\&* | *\|* | *\\* )
11743 ac_sed_conf_input=`$as_echo "$configure_input" |
11744 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11745 *) ac_sed_conf_input=$configure_input;;
11746 esac
11747
11748 case $ac_tag in
11749 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11751 esac
11752 ;;
11753 esac
11754
11755 ac_dir=`$as_dirname -- "$ac_file" ||
11756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11757 X"$ac_file" : 'X\(//\)[^/]' \| \
11758 X"$ac_file" : 'X\(//\)$' \| \
11759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11760 $as_echo X"$ac_file" |
11761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11762 s//\1/
11763 q
11764 }
11765 /^X\(\/\/\)[^/].*/{
11766 s//\1/
11767 q
11768 }
11769 /^X\(\/\/\)$/{
11770 s//\1/
11771 q
11772 }
11773 /^X\(\/\).*/{
11774 s//\1/
11775 q
11776 }
11777 s/.*/./; q'`
11778 as_dir="$ac_dir"; as_fn_mkdir_p
11779 ac_builddir=.
11780
11781 case "$ac_dir" in
11782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11783 *)
11784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11785 # A ".." for each directory in $ac_dir_suffix.
11786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11787 case $ac_top_builddir_sub in
11788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11790 esac ;;
11791 esac
11792 ac_abs_top_builddir=$ac_pwd
11793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11794 # for backward compatibility:
11795 ac_top_builddir=$ac_top_build_prefix
11796
11797 case $srcdir in
11798 .) # We are building in place.
11799 ac_srcdir=.
11800 ac_top_srcdir=$ac_top_builddir_sub
11801 ac_abs_top_srcdir=$ac_pwd ;;
11802 [\\/]* | ?:[\\/]* ) # Absolute name.
11803 ac_srcdir=$srcdir$ac_dir_suffix;
11804 ac_top_srcdir=$srcdir
11805 ac_abs_top_srcdir=$srcdir ;;
11806 *) # Relative name.
11807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11808 ac_top_srcdir=$ac_top_build_prefix$srcdir
11809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11810 esac
11811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11812
11813
11814 case $ac_mode in
11815 :F)
11816 #
11817 # CONFIG_FILE
11818 #
11819
11820 case $INSTALL in
11821 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11822 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11823 esac
11824 ac_MKDIR_P=$MKDIR_P
11825 case $MKDIR_P in
11826 [\\/$]* | ?:[\\/]* ) ;;
11827 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11828 esac
11829 _ACEOF
11830
11831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11832 # If the template does not know about datarootdir, expand it.
11833 # FIXME: This hack should be removed a few years after 2.60.
11834 ac_datarootdir_hack=; ac_datarootdir_seen=
11835 ac_sed_dataroot='
11836 /datarootdir/ {
11837 p
11838 q
11839 }
11840 /@datadir@/p
11841 /@docdir@/p
11842 /@infodir@/p
11843 /@localedir@/p
11844 /@mandir@/p'
11845 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11846 *datarootdir*) ac_datarootdir_seen=yes;;
11847 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11849 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11850 _ACEOF
11851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11852 ac_datarootdir_hack='
11853 s&@datadir@&$datadir&g
11854 s&@docdir@&$docdir&g
11855 s&@infodir@&$infodir&g
11856 s&@localedir@&$localedir&g
11857 s&@mandir@&$mandir&g
11858 s&\\\${datarootdir}&$datarootdir&g' ;;
11859 esac
11860 _ACEOF
11861
11862 # Neutralize VPATH when `$srcdir' = `.'.
11863 # Shell code in configure.ac might set extrasub.
11864 # FIXME: do we really want to maintain this feature?
11865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11866 ac_sed_extra="$ac_vpsub
11867 $extrasub
11868 _ACEOF
11869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11870 :t
11871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11872 s|@configure_input@|$ac_sed_conf_input|;t t
11873 s&@top_builddir@&$ac_top_builddir_sub&;t t
11874 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11875 s&@srcdir@&$ac_srcdir&;t t
11876 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11877 s&@top_srcdir@&$ac_top_srcdir&;t t
11878 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11879 s&@builddir@&$ac_builddir&;t t
11880 s&@abs_builddir@&$ac_abs_builddir&;t t
11881 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11882 s&@INSTALL@&$ac_INSTALL&;t t
11883 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11884 $ac_datarootdir_hack
11885 "
11886 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11887 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11888
11889 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11890 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11891 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11892 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11894 which seems to be undefined. Please make sure it is defined" >&5
11895 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11896 which seems to be undefined. Please make sure it is defined" >&2;}
11897
11898 rm -f "$ac_tmp/stdin"
11899 case $ac_file in
11900 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11901 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11902 esac \
11903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11904 ;;
11905 :H)
11906 #
11907 # CONFIG_HEADER
11908 #
11909 if test x"$ac_file" != x-; then
11910 {
11911 $as_echo "/* $configure_input */" \
11912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11913 } >"$ac_tmp/config.h" \
11914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11915 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11917 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11918 else
11919 rm -f "$ac_file"
11920 mv "$ac_tmp/config.h" "$ac_file" \
11921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11922 fi
11923 else
11924 $as_echo "/* $configure_input */" \
11925 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11926 || as_fn_error $? "could not create -" "$LINENO" 5
11927 fi
11928 # Compute "$ac_file"'s index in $config_headers.
11929 _am_arg="$ac_file"
11930 _am_stamp_count=1
11931 for _am_header in $config_headers :; do
11932 case $_am_header in
11933 $_am_arg | $_am_arg:* )
11934 break ;;
11935 * )
11936 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11937 esac
11938 done
11939 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11940 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11941 X"$_am_arg" : 'X\(//\)[^/]' \| \
11942 X"$_am_arg" : 'X\(//\)$' \| \
11943 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11944 $as_echo X"$_am_arg" |
11945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11946 s//\1/
11947 q
11948 }
11949 /^X\(\/\/\)[^/].*/{
11950 s//\1/
11951 q
11952 }
11953 /^X\(\/\/\)$/{
11954 s//\1/
11955 q
11956 }
11957 /^X\(\/\).*/{
11958 s//\1/
11959 q
11960 }
11961 s/.*/./; q'`/stamp-h$_am_stamp_count
11962 ;;
11963
11964 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11965 $as_echo "$as_me: executing $ac_file commands" >&6;}
11966 ;;
11967 esac
11968
11969
11970 case $ac_file$ac_mode in
11971 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11972 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11973 # are listed without --file. Let's play safe and only enable the eval
11974 # if we detect the quoting.
11975 case $CONFIG_FILES in
11976 *\'*) eval set x "$CONFIG_FILES" ;;
11977 *) set x $CONFIG_FILES ;;
11978 esac
11979 shift
11980 for mf
11981 do
11982 # Strip MF so we end up with the name of the file.
11983 mf=`echo "$mf" | sed -e 's/:.*$//'`
11984 # Check whether this is an Automake generated Makefile or not.
11985 # We used to match only the files named `Makefile.in', but
11986 # some people rename them; so instead we look at the file content.
11987 # Grep'ing the first line is not enough: some people post-process
11988 # each Makefile.in and add a new line on top of each file to say so.
11989 # Grep'ing the whole file is not good either: AIX grep has a line
11990 # limit of 2048, but all sed's we know have understand at least 4000.
11991 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11992 dirpart=`$as_dirname -- "$mf" ||
11993 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994 X"$mf" : 'X\(//\)[^/]' \| \
11995 X"$mf" : 'X\(//\)$' \| \
11996 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11997 $as_echo X"$mf" |
11998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999 s//\1/
12000 q
12001 }
12002 /^X\(\/\/\)[^/].*/{
12003 s//\1/
12004 q
12005 }
12006 /^X\(\/\/\)$/{
12007 s//\1/
12008 q
12009 }
12010 /^X\(\/\).*/{
12011 s//\1/
12012 q
12013 }
12014 s/.*/./; q'`
12015 else
12016 continue
12017 fi
12018 # Extract the definition of DEPDIR, am__include, and am__quote
12019 # from the Makefile without running `make'.
12020 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12021 test -z "$DEPDIR" && continue
12022 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12023 test -z "am__include" && continue
12024 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12025 # When using ansi2knr, U may be empty or an underscore; expand it
12026 U=`sed -n 's/^U = //p' < "$mf"`
12027 # Find all dependency output files, they are included files with
12028 # $(DEPDIR) in their names. We invoke sed twice because it is the
12029 # simplest approach to changing $(DEPDIR) to its actual value in the
12030 # expansion.
12031 for file in `sed -n "
12032 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12033 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12034 # Make sure the directory exists.
12035 test -f "$dirpart/$file" && continue
12036 fdir=`$as_dirname -- "$file" ||
12037 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12038 X"$file" : 'X\(//\)[^/]' \| \
12039 X"$file" : 'X\(//\)$' \| \
12040 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12041 $as_echo X"$file" |
12042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12043 s//\1/
12044 q
12045 }
12046 /^X\(\/\/\)[^/].*/{
12047 s//\1/
12048 q
12049 }
12050 /^X\(\/\/\)$/{
12051 s//\1/
12052 q
12053 }
12054 /^X\(\/\).*/{
12055 s//\1/
12056 q
12057 }
12058 s/.*/./; q'`
12059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12060 # echo "creating $dirpart/$file"
12061 echo '# dummy' > "$dirpart/$file"
12062 done
12063 done
12064 }
12065 ;;
12066
12067 esac
12068 done # for ac_tag
12069
12070
12071 as_fn_exit 0
12072 _ACEOF
12073 ac_clean_files=$ac_clean_files_save
12074
12075 test $ac_write_fail = 0 ||
12076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12077
12078
12079 # configure is writing to config.log, and then calls config.status.
12080 # config.status does its own redirection, appending to config.log.
12081 # Unfortunately, on DOS this fails, as config.log is still kept open
12082 # by configure, so config.status won't be able to write to it; its
12083 # output is simply discarded. So we exec the FD to /dev/null,
12084 # effectively closing config.log, so it can be properly (re)opened and
12085 # appended to by config.status. When coming back to configure, we
12086 # need to make the FD available again.
12087 if test "$no_create" != yes; then
12088 ac_cs_success=:
12089 ac_config_status_args=
12090 test "$silent" = yes &&
12091 ac_config_status_args="$ac_config_status_args --quiet"
12092 exec 5>/dev/null
12093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12094 exec 5>>config.log
12095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12096 # would make configure fail if this is the last instruction.
12097 $ac_cs_success || as_fn_exit 1
12098 fi
12099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12101 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12102 fi
12103
12104