configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xman 1.1.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/xman/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xman'
583 PACKAGE_TARNAME='xman'
584 PACKAGE_VERSION='1.1.5'
585 PACKAGE_STRING='xman 1.1.5'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xman/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 XMAN_LIBS
634 XMAN_CFLAGS
635 HELPDIR
636 MANDB
637 GROFF
638 MAN_SUBSTS
639 XORG_MAN_PAGE
640 ADMIN_MAN_DIR
641 DRIVER_MAN_DIR
642 MISC_MAN_DIR
643 FILE_MAN_DIR
644 LIB_MAN_DIR
645 APP_MAN_DIR
646 ADMIN_MAN_SUFFIX
647 DRIVER_MAN_SUFFIX
648 MISC_MAN_SUFFIX
649 FILE_MAN_SUFFIX
650 LIB_MAN_SUFFIX
651 APP_MAN_SUFFIX
652 SED
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 INSTALL_CMD
662 PKG_CONFIG_LIBDIR
663 PKG_CONFIG_PATH
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_selective_werror
760 enable_strict_compilation
761 with_helpdir
762 with_sysmanpath
763 with_localmanpath
764 with_manconfig
765 with_appdefaultdir
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 PKG_CONFIG
777 PKG_CONFIG_PATH
778 PKG_CONFIG_LIBDIR
779 XMAN_CFLAGS
780 XMAN_LIBS
781 APPDEFS_CFLAGS
782 APPDEFS_LIBS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures xman 1.1.5 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/xman]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of xman 1.1.5:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --disable-selective-werror
1408 Turn off selective compiler errors. (default:
1409 enabled)
1410 --enable-strict-compilation
1411 Enable all warnings from compiler and make them
1412 errors (default: disabled)
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-helpdir=<path> Set default directory for xman.help (default:
1418 ${datadir}/X11)
1419 --with-sysmanpath=<path>
1420 Set default system man page search path
1421 --with-localmanpath=<path>
1422 Set default local man page search path
1423 --with-manconfig=<filename>
1424 Set default system man configuration file
1425 --with-appdefaultdir=<pathname>
1426 specify directory for app-defaults files (default is
1427 autodetected)
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
1444 XMAN_LIBS linker flags for XMAN, overriding pkg-config
1445 APPDEFS_CFLAGS
1446 C compiler flags for APPDEFS, overriding pkg-config
1447 APPDEFS_LIBS
1448 linker flags for APPDEFS, overriding pkg-config
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 xman configure 1.1.5
1517 generated by GNU Autoconf 2.69
1518
1519 Copyright (C) 2012 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1569 # ---------------------------------------------
1570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1571 # accordingly.
1572 ac_fn_c_check_decl ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 as_decl_name=`echo $2|sed 's/ *(.*//'`
1576 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1578 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1579 if eval \${$3+:} false; then :
1580 $as_echo_n "(cached) " >&6
1581 else
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1584 $4
1585 int
1586 main ()
1587 {
1588 #ifndef $as_decl_name
1589 #ifdef __cplusplus
1590 (void) $as_decl_use;
1591 #else
1592 (void) $as_decl_name;
1593 #endif
1594 #endif
1595
1596 ;
1597 return 0;
1598 }
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 eval "$3=yes"
1602 else
1603 eval "$3=no"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612 } # ac_fn_c_check_decl
1613
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_cpp
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 test -x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_func
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1839
1840 It was created by xman $as_me 1.1.5, which was
1841 generated by GNU Autoconf 2.69. Invocation command line was
1842
1843 $ $0 $@
1844
1845 _ACEOF
1846 exec 5>>config.log
1847 {
1848 cat <<_ASUNAME
1849 ## --------- ##
1850 ## Platform. ##
1851 ## --------- ##
1852
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1861
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869
1870 _ASUNAME
1871
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 $as_echo "PATH: $as_dir"
1878 done
1879 IFS=$as_save_IFS
1880
1881 } >&5
1882
1883 cat >&5 <<_ACEOF
1884
1885
1886 ## ----------- ##
1887 ## Core tests. ##
1888 ## ----------- ##
1889
1890 _ACEOF
1891
1892
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_configure_args=
1899 ac_configure_args0=
1900 ac_configure_args1=
1901 ac_must_keep_next=false
1902 for ac_pass in 1 2
1903 do
1904 for ac_arg
1905 do
1906 case $ac_arg in
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1910 continue ;;
1911 *\'*)
1912 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 esac
1914 case $ac_pass in
1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916 2)
1917 as_fn_append ac_configure_args1 " '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1920 else
1921 case $ac_arg in
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928 esac
1929 ;;
1930 -* ) ac_must_keep_next=true ;;
1931 esac
1932 fi
1933 as_fn_append ac_configure_args " '$ac_arg'"
1934 ;;
1935 esac
1936 done
1937 done
1938 { ac_configure_args0=; unset ac_configure_args0;}
1939 { ac_configure_args1=; unset ac_configure_args1;}
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1948 {
1949 echo
1950
1951 $as_echo "## ---------------- ##
1952 ## Cache variables. ##
1953 ## ---------------- ##"
1954 echo
1955 # The following way of writing the cache mishandles newlines in values,
1956 (
1957 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958 eval ac_val=\$$ac_var
1959 case $ac_val in #(
1960 *${as_nl}*)
1961 case $ac_var in #(
1962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1963 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1964 esac
1965 case $ac_var in #(
1966 _ | IFS | as_nl) ;; #(
1967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1968 *) { eval $ac_var=; unset $ac_var;} ;;
1969 esac ;;
1970 esac
1971 done
1972 (set) 2>&1 |
1973 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974 *${as_nl}ac_space=\ *)
1975 sed -n \
1976 "s/'\''/'\''\\\\'\'''\''/g;
1977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978 ;; #(
1979 *)
1980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1981 ;;
1982 esac |
1983 sort
1984 )
1985 echo
1986
1987 $as_echo "## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##"
1990 echo
1991 for ac_var in $ac_subst_vars
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 $as_echo "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2000
2001 if test -n "$ac_subst_files"; then
2002 $as_echo "## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##"
2005 echo
2006 for ac_var in $ac_subst_files
2007 do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2015 fi
2016
2017 if test -s confdefs.h; then
2018 $as_echo "## ----------- ##
2019 ## confdefs.h. ##
2020 ## ----------- ##"
2021 echo
2022 cat confdefs.h
2023 echo
2024 fi
2025 test "$ac_signal" != 0 &&
2026 $as_echo "$as_me: caught signal $ac_signal"
2027 $as_echo "$as_me: exit $exit_status"
2028 } >&5
2029 rm -f core *.core core.conftest.* &&
2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031 exit $exit_status
2032 ' 0
2033 for ac_signal in 1 2 13 15; do
2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 done
2036 ac_signal=0
2037
2038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2039 rm -f -r conftest* confdefs.h
2040
2041 $as_echo "/* confdefs.h */" > confdefs.h
2042
2043 # Predefined preprocessor variables.
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_NAME "$PACKAGE_NAME"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_STRING "$PACKAGE_STRING"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063 _ACEOF
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_URL "$PACKAGE_URL"
2067 _ACEOF
2068
2069
2070 # Let the site file select an alternate cache file if it wants to.
2071 # Prefer an explicitly selected file to automatically selected ones.
2072 ac_site_file1=NONE
2073 ac_site_file2=NONE
2074 if test -n "$CONFIG_SITE"; then
2075 # We do not want a PATH search for config.site.
2076 case $CONFIG_SITE in #((
2077 -*) ac_site_file1=./$CONFIG_SITE;;
2078 */*) ac_site_file1=$CONFIG_SITE;;
2079 *) ac_site_file1=./$CONFIG_SITE;;
2080 esac
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_file1=$prefix/share/config.site
2083 ac_site_file2=$prefix/etc/config.site
2084 else
2085 ac_site_file1=$ac_default_prefix/share/config.site
2086 ac_site_file2=$ac_default_prefix/etc/config.site
2087 fi
2088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2089 do
2090 test "x$ac_site_file" = xNONE && continue
2091 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2094 sed 's/^/| /' "$ac_site_file" >&5
2095 . "$ac_site_file" \
2096 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098 as_fn_error $? "failed to load site script $ac_site_file
2099 See \`config.log' for more details" "$LINENO" 5; }
2100 fi
2101 done
2102
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special files
2105 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2106 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2108 $as_echo "$as_me: loading cache $cache_file" >&6;}
2109 case $cache_file in
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2112 esac
2113 fi
2114 else
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2116 $as_echo "$as_me: creating cache $cache_file" >&6;}
2117 >$cache_file
2118 fi
2119
2120 # Check that the precious variables saved in the cache have kept the same
2121 # value.
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2129 set,)
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2133 ,set)
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2137 ,);;
2138 *)
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w=`echo x $ac_old_val`
2142 ac_new_val_w=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted=:
2147 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\$ac_old_val
2151 fi
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156 fi;;
2157 esac
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2160 case $ac_new_val in
2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg=$ac_var=$ac_new_val ;;
2163 esac
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2166 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2167 esac
2168 fi
2169 done
2170 if $ac_cache_corrupted; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2176 fi
2177 ## -------------------- ##
2178 ## Main body of script. ##
2179 ## -------------------- ##
2180
2181 ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
2187
2188
2189 ac_config_headers="$ac_config_headers config.h"
2190
2191
2192 # Initialize Automake
2193 am__api_version='1.15'
2194
2195 ac_aux_dir=
2196 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 if test -f "$ac_dir/install-sh"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/install-sh -c"
2200 break
2201 elif test -f "$ac_dir/install.sh"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/install.sh -c"
2204 break
2205 elif test -f "$ac_dir/shtool"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/shtool install -c"
2208 break
2209 fi
2210 done
2211 if test -z "$ac_aux_dir"; then
2212 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213 fi
2214
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222
2223
2224 # Find a good install program. We prefer a C program (faster),
2225 # so one script is as good as another. But avoid the broken or
2226 # incompatible versions:
2227 # SysV /etc/install, /usr/sbin/install
2228 # SunOS /usr/etc/install
2229 # IRIX /sbin/install
2230 # AIX /bin/install
2231 # AmigaOS /C/install, which installs bootblocks on floppy discs
2232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2235 # OS/2's system install, which has a completely different semantic
2236 # ./install, which can be erroneously created by make from ./install.sh.
2237 # Reject install programs that cannot install multiple files.
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2239 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2240 if test -z "$INSTALL"; then
2241 if ${ac_cv_path_install+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 # Account for people who put trailing slashes in PATH elements.
2250 case $as_dir/ in #((
2251 ./ | .// | /[cC]/* | \
2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254 /usr/ucb/* ) ;;
2255 *)
2256 # OSF1 and SCO ODT 3.0 have their own names for install.
2257 # Don't use installbsd from OSF since it installs stuff as root
2258 # by default.
2259 for ac_prog in ginstall scoinst install; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2262 if test $ac_prog = install &&
2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # AIX install. It has an incompatible calling convention.
2265 :
2266 elif test $ac_prog = install &&
2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # program-specific install script used by HP pwplus--don't use.
2269 :
2270 else
2271 rm -rf conftest.one conftest.two conftest.dir
2272 echo one > conftest.one
2273 echo two > conftest.two
2274 mkdir conftest.dir
2275 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2276 test -s conftest.one && test -s conftest.two &&
2277 test -s conftest.dir/conftest.one &&
2278 test -s conftest.dir/conftest.two
2279 then
2280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281 break 3
2282 fi
2283 fi
2284 fi
2285 done
2286 done
2287 ;;
2288 esac
2289
2290 done
2291 IFS=$as_save_IFS
2292
2293 rm -rf conftest.one conftest.two conftest.dir
2294
2295 fi
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2298 else
2299 # As a last resort, use the slow shell script. Don't cache a
2300 # value for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the value is a relative name.
2303 INSTALL=$ac_install_sh
2304 fi
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2307 $as_echo "$INSTALL" >&6; }
2308
2309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310 # It thinks the first close brace ends the variable substitution.
2311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2318 $as_echo_n "checking whether build environment is sane... " >&6; }
2319 # Reject unsafe characters in $srcdir or the absolute working directory
2320 # name. Accept space and tab only in the latter.
2321 am_lf='
2322 '
2323 case `pwd` in
2324 *[\\\"\#\$\&\'\`$am_lf]*)
2325 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2326 esac
2327 case $srcdir in
2328 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2329 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2330 esac
2331
2332 # Do 'set' in a subshell so we don't clobber the current shell's
2333 # arguments. Must try -L first in case configure is actually a
2334 # symlink; some systems play weird games with the mod time of symlinks
2335 # (eg FreeBSD returns the mod time of the symlink's containing
2336 # directory).
2337 if (
2338 am_has_slept=no
2339 for am_try in 1 2; do
2340 echo "timestamp, slept: $am_has_slept" > conftest.file
2341 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2342 if test "$*" = "X"; then
2343 # -L didn't work.
2344 set X `ls -t "$srcdir/configure" conftest.file`
2345 fi
2346 if test "$*" != "X $srcdir/configure conftest.file" \
2347 && test "$*" != "X conftest.file $srcdir/configure"; then
2348
2349 # If neither matched, then we have a broken ls. This can happen
2350 # if, for instance, CONFIG_SHELL is bash and it inherits a
2351 # broken ls alias from the environment. This has actually
2352 # happened. Such a system could not be considered "sane".
2353 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2354 alias in your environment" "$LINENO" 5
2355 fi
2356 if test "$2" = conftest.file || test $am_try -eq 2; then
2357 break
2358 fi
2359 # Just in case.
2360 sleep 1
2361 am_has_slept=yes
2362 done
2363 test "$2" = conftest.file
2364 )
2365 then
2366 # Ok.
2367 :
2368 else
2369 as_fn_error $? "newly created file is older than distributed files!
2370 Check your system clock" "$LINENO" 5
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2373 $as_echo "yes" >&6; }
2374 # If we didn't sleep, we still need to ensure time stamps of config.status and
2375 # generated files are strictly newer.
2376 am_sleep_pid=
2377 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2378 ( sleep 1 ) &
2379 am_sleep_pid=$!
2380 fi
2381
2382 rm -f conftest.file
2383
2384 test "$program_prefix" != NONE &&
2385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386 # Use a double $ so make ignores it.
2387 test "$program_suffix" != NONE &&
2388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389 # Double any \ or $.
2390 # By default was `s,x,x', remove it if useless.
2391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393
2394 # Expand $ac_aux_dir to an absolute path.
2395 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2396
2397 if test x"${MISSING+set}" != xset; then
2398 case $am_aux_dir in
2399 *\ * | *\ *)
2400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401 *)
2402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2403 esac
2404 fi
2405 # Use eval to expand $SHELL
2406 if eval "$MISSING --is-lightweight"; then
2407 am_missing_run="$MISSING "
2408 else
2409 am_missing_run=
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2411 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2412 fi
2413
2414 if test x"${install_sh+set}" != xset; then
2415 case $am_aux_dir in
2416 *\ * | *\ *)
2417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418 *)
2419 install_sh="\${SHELL} $am_aux_dir/install-sh"
2420 esac
2421 fi
2422
2423 # Installed binaries are usually stripped using 'strip' when the user
2424 # run "make install-strip". However 'strip' might not be the right
2425 # tool to use in cross-compilation environments, therefore Automake
2426 # will honor the 'STRIP' environment variable to overrule this program.
2427 if test "$cross_compiling" != no; then
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}strip; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_prog_STRIP+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$STRIP"; then
2437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 STRIP=$ac_cv_prog_STRIP
2457 if test -n "$STRIP"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2459 $as_echo "$STRIP" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 fi
2467 if test -z "$ac_cv_prog_STRIP"; then
2468 ac_ct_STRIP=$STRIP
2469 # Extract the first word of "strip", so it can be a program name with args.
2470 set dummy strip; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$ac_ct_STRIP"; then
2477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_ac_ct_STRIP="strip"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2497 if test -n "$ac_ct_STRIP"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2499 $as_echo "$ac_ct_STRIP" >&6; }
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2503 fi
2504
2505 if test "x$ac_ct_STRIP" = x; then
2506 STRIP=":"
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512 ac_tool_warned=yes ;;
2513 esac
2514 STRIP=$ac_ct_STRIP
2515 fi
2516 else
2517 STRIP="$ac_cv_prog_STRIP"
2518 fi
2519
2520 fi
2521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525 if test -z "$MKDIR_P"; then
2526 if ${ac_cv_path_mkdir+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_prog in mkdir gmkdir; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2538 'mkdir (GNU coreutils) '* | \
2539 'mkdir (coreutils) '* | \
2540 'mkdir (fileutils) '4.1*)
2541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2542 break 3;;
2543 esac
2544 done
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550
2551 test -d ./--version && rmdir ./--version
2552 if test "${ac_cv_path_mkdir+set}" = set; then
2553 MKDIR_P="$ac_cv_path_mkdir -p"
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for MKDIR_P within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 MKDIR_P="$ac_install_sh -d"
2560 fi
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2563 $as_echo "$MKDIR_P" >&6; }
2564
2565 for ac_prog in gawk mawk nawk awk
2566 do
2567 # Extract the first word of "$ac_prog", so it can be a program name with args.
2568 set dummy $ac_prog; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_AWK+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$AWK"; then
2575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_AWK="$ac_prog"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 AWK=$ac_cv_prog_AWK
2595 if test -n "$AWK"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2597 $as_echo "$AWK" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603
2604 test -n "$AWK" && break
2605 done
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2608 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2609 set x ${MAKE-make}
2610 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2611 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 cat >conftest.make <<\_ACEOF
2615 SHELL = /bin/sh
2616 all:
2617 @echo '@@@%%%=$(MAKE)=@@@%%%'
2618 _ACEOF
2619 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2621 *@@@%%%=?*=@@@%%%*)
2622 eval ac_cv_prog_make_${ac_make}_set=yes;;
2623 *)
2624 eval ac_cv_prog_make_${ac_make}_set=no;;
2625 esac
2626 rm -f conftest.make
2627 fi
2628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2631 SET_MAKE=
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 SET_MAKE="MAKE=${MAKE-make}"
2636 fi
2637
2638 rm -rf .tst 2>/dev/null
2639 mkdir .tst 2>/dev/null
2640 if test -d .tst; then
2641 am__leading_dot=.
2642 else
2643 am__leading_dot=_
2644 fi
2645 rmdir .tst 2>/dev/null
2646
2647 # Check whether --enable-silent-rules was given.
2648 if test "${enable_silent_rules+set}" = set; then :
2649 enableval=$enable_silent_rules;
2650 fi
2651
2652 case $enable_silent_rules in # (((
2653 yes) AM_DEFAULT_VERBOSITY=0;;
2654 no) AM_DEFAULT_VERBOSITY=1;;
2655 *) AM_DEFAULT_VERBOSITY=1;;
2656 esac
2657 am_make=${MAKE-make}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2659 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2660 if ${am_cv_make_support_nested_variables+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if $as_echo 'TRUE=$(BAR$(V))
2664 BAR0=false
2665 BAR1=true
2666 V=1
2667 am__doit:
2668 @$(TRUE)
2669 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2670 am_cv_make_support_nested_variables=yes
2671 else
2672 am_cv_make_support_nested_variables=no
2673 fi
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2676 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2677 if test $am_cv_make_support_nested_variables = yes; then
2678 AM_V='$(V)'
2679 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2680 else
2681 AM_V=$AM_DEFAULT_VERBOSITY
2682 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2683 fi
2684 AM_BACKSLASH='\'
2685
2686 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688 # is not polluted with repeated "-I."
2689 am__isrc=' -I$(srcdir)'
2690 # test to see if srcdir already configured
2691 if test -f $srcdir/config.status; then
2692 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693 fi
2694 fi
2695
2696 # test whether we have cygpath
2697 if test -z "$CYGPATH_W"; then
2698 if (cygpath --version) >/dev/null 2>/dev/null; then
2699 CYGPATH_W='cygpath -w'
2700 else
2701 CYGPATH_W=echo
2702 fi
2703 fi
2704
2705
2706 # Define the identity of the package.
2707 PACKAGE='xman'
2708 VERSION='1.1.5'
2709
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE "$PACKAGE"
2713 _ACEOF
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define VERSION "$VERSION"
2718 _ACEOF
2719
2720 # Some tools Automake needs.
2721
2722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723
2724
2725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726
2727
2728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729
2730
2731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732
2733
2734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736 # For better backward compatibility. To be removed once Automake 1.9.x
2737 # dies out for good. For more background, see:
2738 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740 mkdir_p='$(MKDIR_P)'
2741
2742 # We need awk for the "check" target (and possibly the TAP driver). The
2743 # system "awk" is bad on some platforms.
2744 # Always define AMTAR for backward compatibility. Yes, it's still used
2745 # in the wild :-( We should find a proper way to deprecate it ...
2746 AMTAR='$${TAR-tar}'
2747
2748
2749 # We'll loop over all known methods to create a tar archive until one works.
2750 _am_tools='gnutar pax cpio none'
2751
2752 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2753
2754
2755
2756
2757
2758
2759 # POSIX will say in a future version that running "rm -f" with no argument
2760 # is OK; and we want to be able to make that assumption in our Makefile
2761 # recipes. So use an aggressive probe to check that the usage we want is
2762 # actually supported "in the wild" to an acceptable degree.
2763 # See automake bug#10828.
2764 # To make any issue more visible, cause the running configure to be aborted
2765 # by default if the 'rm' program in use doesn't match our expectations; the
2766 # user can still override this though.
2767 if rm -f && rm -fr && rm -rf; then : OK; else
2768 cat >&2 <<'END'
2769 Oops!
2770
2771 Your 'rm' program seems unable to run without file operands specified
2772 on the command line, even when the '-f' option is present. This is contrary
2773 to the behaviour of most rm programs out there, and not conforming with
2774 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2775
2776 Please tell bug-automake@gnu.org about your system, including the value
2777 of your $PATH and any error possibly output before this message. This
2778 can help us improve future automake versions.
2779
2780 END
2781 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2782 echo 'Configuration will proceed anyway, since you have set the' >&2
2783 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2784 echo >&2
2785 else
2786 cat >&2 <<'END'
2787 Aborting the configuration process, to ensure you take notice of the issue.
2788
2789 You can download and install GNU coreutils to get an 'rm' implementation
2790 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2791
2792 If you want to complete the configuration process using your problematic
2793 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2794 to "yes", and re-run configure.
2795
2796 END
2797 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2798 fi
2799 fi
2800
2801
2802 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814 DEPDIR="${am__leading_dot}deps"
2815
2816 ac_config_commands="$ac_config_commands depfiles"
2817
2818
2819 am_make=${MAKE-make}
2820 cat > confinc << 'END'
2821 am__doit:
2822 @echo this is the am__doit target
2823 .PHONY: am__doit
2824 END
2825 # If we don't find an include directive, just comment out the code.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2828 am__include="#"
2829 am__quote=
2830 _am_result=none
2831 # First try GNU make style include.
2832 echo "include confinc" > confmf
2833 # Ignore all kinds of additional output from 'make'.
2834 case `$am_make -s -f confmf 2> /dev/null` in #(
2835 *the\ am__doit\ target*)
2836 am__include=include
2837 am__quote=
2838 _am_result=GNU
2839 ;;
2840 esac
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846 am__include=.include
2847 am__quote="\""
2848 _am_result=BSD
2849 ;;
2850 esac
2851 fi
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855 $as_echo "$_am_result" >&6; }
2856 rm -f confinc confmf
2857
2858 # Check whether --enable-dependency-tracking was given.
2859 if test "${enable_dependency_tracking+set}" = set; then :
2860 enableval=$enable_dependency_tracking;
2861 fi
2862
2863 if test "x$enable_dependency_tracking" != xno; then
2864 am_depcomp="$ac_aux_dir/depcomp"
2865 AMDEPBACKSLASH='\'
2866 am__nodep='_no'
2867 fi
2868 if test "x$enable_dependency_tracking" != xno; then
2869 AMDEP_TRUE=
2870 AMDEP_FALSE='#'
2871 else
2872 AMDEP_TRUE='#'
2873 AMDEP_FALSE=
2874 fi
2875
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919
2920 fi
2921 if test -z "$ac_cv_prog_CC"; then
2922 ac_ct_CC=$CC
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 else
2971 CC="$ac_cv_prog_CC"
2972 fi
2973
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 fi
3014 fi
3015 if test -z "$CC"; then
3016 # Extract the first word of "cc", so it can be a program name with args.
3017 set dummy cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 ac_prog_rejected=no
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035 ac_prog_rejected=yes
3036 continue
3037 fi
3038 ac_cv_prog_CC="cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 if test $ac_prog_rejected = yes; then
3047 # We found a bogon in the path, so make sure we never use it.
3048 set dummy $ac_cv_prog_CC
3049 shift
3050 if test $# != 0; then
3051 # We chose a different compiler from the bogus one.
3052 # However, it has the same basename, so the bogon will be chosen
3053 # first if we set CC to just the basename; use the full file name.
3054 shift
3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3056 fi
3057 fi
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 fi
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 for ac_prog in cl.exe
3074 do
3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$CC" && break
3113 done
3114 fi
3115 if test -z "$CC"; then
3116 ac_ct_CC=$CC
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$ac_ct_CC" && break
3157 done
3158
3159 if test "x$ac_ct_CC" = x; then
3160 CC=""
3161 else
3162 case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168 CC=$ac_ct_CC
3169 fi
3170 fi
3171
3172 fi
3173
3174
3175 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "no acceptable C compiler found in \$PATH
3178 See \`config.log' for more details" "$LINENO" 5; }
3179
3180 # Provide some information about the compiler.
3181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 set X $ac_compile
3183 ac_compiler=$2
3184 for ac_option in --version -v -V -qversion; do
3185 { { ac_try="$ac_compiler $ac_option >&5"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193 ac_status=$?
3194 if test -s conftest.err; then
3195 sed '10a\
3196 ... rest of stderr output deleted ...
3197 10q' conftest.err >conftest.er1
3198 cat conftest.er1 >&5
3199 fi
3200 rm -f conftest.er1 conftest.err
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 done
3204
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 ac_clean_files_save=$ac_clean_files
3217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3220 # of exeext.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224
3225 # The possible output files:
3226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227
3228 ac_rmfiles=
3229 for ac_file in $ac_files
3230 do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234 esac
3235 done
3236 rm -f $ac_rmfiles
3237
3238 if { { ac_try="$ac_link_default"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link_default") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3252 # so that the user can short-circuit this test for compilers unknown to
3253 # Autoconf.
3254 for ac_file in $ac_files ''
3255 do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 ;;
3260 [ab].out )
3261 # We found the default executable, but exeext='' is most
3262 # certainly right.
3263 break;;
3264 *.* )
3265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266 then :; else
3267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 fi
3269 # We set ac_cv_exeext here because the later test for it is not
3270 # safe: cross compilers may not add the suffix if given an `-o'
3271 # argument, so we may need to know it at that point already.
3272 # Even if this section looks crufty: it has the advantage of
3273 # actually working.
3274 break;;
3275 * )
3276 break;;
3277 esac
3278 done
3279 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280
3281 else
3282 ac_file=''
3283 fi
3284 if test -z "$ac_file"; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error 77 "C compiler cannot create executables
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301 $as_echo "$ac_file" >&6; }
3302 ac_exeext=$ac_cv_exeext
3303
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 # `rm'.
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 break;;
3329 * ) break;;
3330 esac
3331 done
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 fi
3338 rm -f conftest conftest$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3341
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3344 ac_exeext=$EXEEXT
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdio.h>
3348 int
3349 main ()
3350 {
3351 FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 ac_clean_files="$ac_clean_files conftest.out"
3359 # Check that the compiler produces executables we can run. If not, either
3360 # the compiler is broken, or we cross compile.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362 $as_echo_n "checking whether we are cross compiling... " >&6; }
3363 if test "$cross_compiling" != yes; then
3364 { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 if { ac_try='./conftest$ac_cv_exeext'
3376 { { case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; }; then
3386 cross_compiling=no
3387 else
3388 if test "$cross_compiling" = maybe; then
3389 cross_compiling=yes
3390 else
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot run C compiled programs.
3394 If you meant to cross compile, use \`--host'.
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 fi
3397 fi
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400 $as_echo "$cross_compiling" >&6; }
3401
3402 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405 $as_echo_n "checking for suffix of object files... " >&6; }
3406 if ${ac_cv_objext+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 rm -f conftest.o conftest.obj
3421 if { { ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compile") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 break;;
3438 esac
3439 done
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot compute suffix of object files: cannot compile
3447 See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452 $as_echo "$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457 if ${ac_cv_c_compiler_gnu+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466 #ifndef __GNUC__
3467 choke me
3468 #endif
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_compiler_gnu=yes
3476 else
3477 ac_compiler_gnu=no
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3486 GCC=yes
3487 else
3488 GCC=
3489 fi
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3494 if ${ac_cv_prog_cc_g+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_g=yes
3514 else
3515 CFLAGS=""
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528
3529 else
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3531 CFLAGS="-g"
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534
3535 int
3536 main ()
3537 {
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_g=yes
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3559 CFLAGS="-g -O2"
3560 else
3561 CFLAGS="-g"
3562 fi
3563 else
3564 if test "$GCC" = yes; then
3565 CFLAGS="-O2"
3566 else
3567 CFLAGS=
3568 fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if ${ac_cv_prog_cc_c89+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <stdarg.h>
3580 #include <stdio.h>
3581 struct stat;
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3588 {
3589 return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3621 int
3622 main ()
3623 {
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 do
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3641
3642 fi
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3645 x)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648 xno)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3651 *)
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3672 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3673 if ${am_cv_prog_cc_c_o+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 # Make sure it works both with $CC and with simple cc.
3688 # Following AC_PROG_CC_C_O, we do the test twice because some
3689 # compilers refuse to overwrite an existing .o file with -o,
3690 # though they will create one.
3691 am_cv_prog_cc_c_o=yes
3692 for am_i in 1 2; do
3693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } \
3698 && test -f conftest2.$ac_objext; then
3699 : OK
3700 else
3701 am_cv_prog_cc_c_o=no
3702 break
3703 fi
3704 done
3705 rm -f core conftest*
3706 unset am_i
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3709 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3710 if test "$am_cv_prog_cc_c_o" != yes; then
3711 # Losing compiler, so override with the script.
3712 # FIXME: It is wrong to rewrite CC.
3713 # But if we don't then we get into trouble of one sort or another.
3714 # A longer-term fix would be to have automake use am__CC in this case,
3715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3716 CC="$am_aux_dir/compile $CC"
3717 fi
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724
3725 depcc="$CC" am_compiler_list=
3726
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3728 $as_echo_n "checking dependency style of $depcc... " >&6; }
3729 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3733 # We make a subdir and do the tests there. Otherwise we can end up
3734 # making bogus files that we don't know about and never remove. For
3735 # instance it was reported that on HP-UX the gcc test will end up
3736 # making a dummy file named 'D' -- because '-MD' means "put the output
3737 # in D".
3738 rm -rf conftest.dir
3739 mkdir conftest.dir
3740 # Copy depcomp to subdir because otherwise we won't find it if we're
3741 # using a relative directory.
3742 cp "$am_depcomp" conftest.dir
3743 cd conftest.dir
3744 # We will build objects and dependencies in a subdirectory because
3745 # it helps to detect inapplicable dependency modes. For instance
3746 # both Tru64's cc and ICC support -MD to output dependencies as a
3747 # side effect of compilation, but ICC will put the dependencies in
3748 # the current directory while Tru64 will put them in the object
3749 # directory.
3750 mkdir sub
3751
3752 am_cv_CC_dependencies_compiler_type=none
3753 if test "$am_compiler_list" = ""; then
3754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3755 fi
3756 am__universal=false
3757 case " $depcc " in #(
3758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3759 esac
3760
3761 for depmode in $am_compiler_list; do
3762 # Setup a source with many dependencies, because some compilers
3763 # like to wrap large dependency lists on column 80 (with \), and
3764 # we should not choose a depcomp mode which is confused by this.
3765 #
3766 # We need to recreate these files for each test, as the compiler may
3767 # overwrite some of them when testing with obscure command lines.
3768 # This happens at least with the AIX C compiler.
3769 : > sub/conftest.c
3770 for i in 1 2 3 4 5 6; do
3771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3772 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3773 # Solaris 10 /bin/sh.
3774 echo '/* dummy */' > sub/conftst$i.h
3775 done
3776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3777
3778 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3779 # mode. It turns out that the SunPro C++ compiler does not properly
3780 # handle '-M -o', and we need to detect this. Also, some Intel
3781 # versions had trouble with output in subdirs.
3782 am__obj=sub/conftest.${OBJEXT-o}
3783 am__minus_obj="-o $am__obj"
3784 case $depmode in
3785 gcc)
3786 # This depmode causes a compiler race in universal mode.
3787 test "$am__universal" = false || continue
3788 ;;
3789 nosideeffect)
3790 # After this tag, mechanisms are not by side-effect, so they'll
3791 # only be used when explicitly requested.
3792 if test "x$enable_dependency_tracking" = xyes; then
3793 continue
3794 else
3795 break
3796 fi
3797 ;;
3798 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3799 # This compiler won't grok '-c -o', but also, the minuso test has
3800 # not run yet. These depmodes are late enough in the game, and
3801 # so weak that their functioning should not be impacted.
3802 am__obj=conftest.${OBJEXT-o}
3803 am__minus_obj=
3804 ;;
3805 none) break ;;
3806 esac
3807 if depmode=$depmode \
3808 source=sub/conftest.c object=$am__obj \
3809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3811 >/dev/null 2>conftest.err &&
3812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3816 # icc doesn't choke on unknown options, it will just issue warnings
3817 # or remarks (even with -Werror). So we grep stderr for any message
3818 # that says an option was ignored or not supported.
3819 # When given -MP, icc 7.0 and 7.1 complain thusly:
3820 # icc: Command line warning: ignoring option '-M'; no argument required
3821 # The diagnosis changed in icc 8.0:
3822 # icc: Command line remark: option '-MP' not supported
3823 if (grep 'ignoring option' conftest.err ||
3824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3825 am_cv_CC_dependencies_compiler_type=$depmode
3826 break
3827 fi
3828 fi
3829 done
3830
3831 cd ..
3832 rm -rf conftest.dir
3833 else
3834 am_cv_CC_dependencies_compiler_type=none
3835 fi
3836
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
3842 if
3843 test "x$enable_dependency_tracking" != xno \
3844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3845 am__fastdepCC_TRUE=
3846 am__fastdepCC_FALSE='#'
3847 else
3848 am__fastdepCC_TRUE='#'
3849 am__fastdepCC_FALSE=
3850 fi
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3854 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3855 if ${ac_cv_prog_cc_c99+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_cv_prog_cc_c99=no
3859 ac_save_CC=$CC
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <stdarg.h>
3863 #include <stdbool.h>
3864 #include <stdlib.h>
3865 #include <wchar.h>
3866 #include <stdio.h>
3867
3868 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3869 #define debug(...) fprintf (stderr, __VA_ARGS__)
3870 #define showlist(...) puts (#__VA_ARGS__)
3871 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3872 static void
3873 test_varargs_macros (void)
3874 {
3875 int x = 1234;
3876 int y = 5678;
3877 debug ("Flag");
3878 debug ("X = %d\n", x);
3879 showlist (The first, second, and third items.);
3880 report (x>y, "x is %d but y is %d", x, y);
3881 }
3882
3883 // Check long long types.
3884 #define BIG64 18446744073709551615ull
3885 #define BIG32 4294967295ul
3886 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3887 #if !BIG_OK
3888 your preprocessor is broken;
3889 #endif
3890 #if BIG_OK
3891 #else
3892 your preprocessor is broken;
3893 #endif
3894 static long long int bignum = -9223372036854775807LL;
3895 static unsigned long long int ubignum = BIG64;
3896
3897 struct incomplete_array
3898 {
3899 int datasize;
3900 double data[];
3901 };
3902
3903 struct named_init {
3904 int number;
3905 const wchar_t *name;
3906 double average;
3907 };
3908
3909 typedef const char *ccp;
3910
3911 static inline int
3912 test_restrict (ccp restrict text)
3913 {
3914 // See if C++-style comments work.
3915 // Iterate through items via the restricted pointer.
3916 // Also check for declarations in for loops.
3917 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3918 continue;
3919 return 0;
3920 }
3921
3922 // Check varargs and va_copy.
3923 static void
3924 test_varargs (const char *format, ...)
3925 {
3926 va_list args;
3927 va_start (args, format);
3928 va_list args_copy;
3929 va_copy (args_copy, args);
3930
3931 const char *str;
3932 int number;
3933 float fnumber;
3934
3935 while (*format)
3936 {
3937 switch (*format++)
3938 {
3939 case 's': // string
3940 str = va_arg (args_copy, const char *);
3941 break;
3942 case 'd': // int
3943 number = va_arg (args_copy, int);
3944 break;
3945 case 'f': // float
3946 fnumber = va_arg (args_copy, double);
3947 break;
3948 default:
3949 break;
3950 }
3951 }
3952 va_end (args_copy);
3953 va_end (args);
3954 }
3955
3956 int
3957 main ()
3958 {
3959
3960 // Check bool.
3961 _Bool success = false;
3962
3963 // Check restrict.
3964 if (test_restrict ("String literal") == 0)
3965 success = true;
3966 char *restrict newvar = "Another string";
3967
3968 // Check varargs.
3969 test_varargs ("s, d' f .", "string", 65, 34.234);
3970 test_varargs_macros ();
3971
3972 // Check flexible array members.
3973 struct incomplete_array *ia =
3974 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3975 ia->datasize = 10;
3976 for (int i = 0; i < ia->datasize; ++i)
3977 ia->data[i] = i * 1.234;
3978
3979 // Check named initializers.
3980 struct named_init ni = {
3981 .number = 34,
3982 .name = L"Test wide string",
3983 .average = 543.34343,
3984 };
3985
3986 ni.number = 58;
3987
3988 int dynamic_array[ni.number];
3989 dynamic_array[ni.number - 1] = 543;
3990
3991 // work around unused variable warnings
3992 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3993 || dynamic_array[ni.number - 1] != 543);
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4000 do
4001 CC="$ac_save_CC $ac_arg"
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003 ac_cv_prog_cc_c99=$ac_arg
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext
4006 test "x$ac_cv_prog_cc_c99" != "xno" && break
4007 done
4008 rm -f conftest.$ac_ext
4009 CC=$ac_save_CC
4010
4011 fi
4012 # AC_CACHE_VAL
4013 case "x$ac_cv_prog_cc_c99" in
4014 x)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4016 $as_echo "none needed" >&6; } ;;
4017 xno)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4019 $as_echo "unsupported" >&6; } ;;
4020 *)
4021 CC="$CC $ac_cv_prog_cc_c99"
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4023 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4024 esac
4025 if test "x$ac_cv_prog_cc_c99" != xno; then :
4026
4027 fi
4028
4029
4030
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4038 # On Suns, sometimes $CPP names a directory.
4039 if test -n "$CPP" && test -d "$CPP"; then
4040 CPP=
4041 fi
4042 if test -z "$CPP"; then
4043 if ${ac_cv_prog_CPP+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 # Double quotes because CPP needs to be expanded
4047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4048 do
4049 ac_preproc_ok=false
4050 for ac_c_preproc_warn_flag in '' yes
4051 do
4052 # Use a header file that comes with gcc, so configuring glibc
4053 # with a fresh cross-compiler works.
4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 # <limits.h> exists even on freestanding compilers.
4056 # On the NeXT, cc -E runs the code through the compiler's parser,
4057 # not just through cpp. "Syntax error" is here to catch this case.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #ifdef __STDC__
4061 # include <limits.h>
4062 #else
4063 # include <assert.h>
4064 #endif
4065 Syntax error
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068
4069 else
4070 # Broken: fails on valid input.
4071 continue
4072 fi
4073 rm -f conftest.err conftest.i conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if ac_fn_c_try_cpp "$LINENO"; then :
4082 # Broken: success on invalid input.
4083 continue
4084 else
4085 # Passes both tests.
4086 ac_preproc_ok=:
4087 break
4088 fi
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4090
4091 done
4092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093 rm -f conftest.i conftest.err conftest.$ac_ext
4094 if $ac_preproc_ok; then :
4095 break
4096 fi
4097
4098 done
4099 ac_cv_prog_CPP=$CPP
4100
4101 fi
4102 CPP=$ac_cv_prog_CPP
4103 else
4104 ac_cv_prog_CPP=$CPP
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4107 $as_echo "$CPP" >&6; }
4108 ac_preproc_ok=false
4109 for ac_c_preproc_warn_flag in '' yes
4110 do
4111 # Use a header file that comes with gcc, so configuring glibc
4112 # with a fresh cross-compiler works.
4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114 # <limits.h> exists even on freestanding compilers.
4115 # On the NeXT, cc -E runs the code through the compiler's parser,
4116 # not just through cpp. "Syntax error" is here to catch this case.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #ifdef __STDC__
4120 # include <limits.h>
4121 #else
4122 # include <assert.h>
4123 #endif
4124 Syntax error
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127
4128 else
4129 # Broken: fails on valid input.
4130 continue
4131 fi
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if ac_fn_c_try_cpp "$LINENO"; then :
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 # Passes both tests.
4145 ac_preproc_ok=:
4146 break
4147 fi
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4149
4150 done
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.i conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then :
4154
4155 else
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 fi
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4170 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4171 if ${ac_cv_path_GREP+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -z "$GREP"; then
4175 ac_path_GREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in grep ggrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4185 as_fn_executable_p "$ac_path_GREP" || continue
4186 # Check for GNU ac_path_GREP and select it if it is found.
4187 # Check for GNU $ac_path_GREP
4188 case `"$ac_path_GREP" --version 2>&1` in
4189 *GNU*)
4190 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4191 *)
4192 ac_count=0
4193 $as_echo_n 0123456789 >"conftest.in"
4194 while :
4195 do
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'GREP' >> "conftest.nl"
4200 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 as_fn_arith $ac_count + 1 && ac_count=$as_val
4203 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_GREP="$ac_path_GREP"
4206 ac_path_GREP_max=$ac_count
4207 fi
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4210 done
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212 esac
4213
4214 $ac_path_GREP_found && break 3
4215 done
4216 done
4217 done
4218 IFS=$as_save_IFS
4219 if test -z "$ac_cv_path_GREP"; then
4220 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221 fi
4222 else
4223 ac_cv_path_GREP=$GREP
4224 fi
4225
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4228 $as_echo "$ac_cv_path_GREP" >&6; }
4229 GREP="$ac_cv_path_GREP"
4230
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4233 $as_echo_n "checking for egrep... " >&6; }
4234 if ${ac_cv_path_EGREP+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4238 then ac_cv_path_EGREP="$GREP -E"
4239 else
4240 if test -z "$EGREP"; then
4241 ac_path_EGREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in egrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4251 as_fn_executable_p "$ac_path_EGREP" || continue
4252 # Check for GNU ac_path_EGREP and select it if it is found.
4253 # Check for GNU $ac_path_EGREP
4254 case `"$ac_path_EGREP" --version 2>&1` in
4255 *GNU*)
4256 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4257 *)
4258 ac_count=0
4259 $as_echo_n 0123456789 >"conftest.in"
4260 while :
4261 do
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo 'EGREP' >> "conftest.nl"
4266 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 as_fn_arith $ac_count + 1 && ac_count=$as_val
4269 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_EGREP="$ac_path_EGREP"
4272 ac_path_EGREP_max=$ac_count
4273 fi
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4276 done
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4279
4280 $ac_path_EGREP_found && break 3
4281 done
4282 done
4283 done
4284 IFS=$as_save_IFS
4285 if test -z "$ac_cv_path_EGREP"; then
4286 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 fi
4288 else
4289 ac_cv_path_EGREP=$EGREP
4290 fi
4291
4292 fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4295 $as_echo "$ac_cv_path_EGREP" >&6; }
4296 EGREP="$ac_cv_path_EGREP"
4297
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4300 $as_echo_n "checking for ANSI C header files... " >&6; }
4301 if ${ac_cv_header_stdc+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <stdlib.h>
4307 #include <stdarg.h>
4308 #include <string.h>
4309 #include <float.h>
4310
4311 int
4312 main ()
4313 {
4314
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_compile "$LINENO"; then :
4320 ac_cv_header_stdc=yes
4321 else
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325
4326 if test $ac_cv_header_stdc = yes; then
4327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 #include <string.h>
4331
4332 _ACEOF
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 $EGREP "memchr" >/dev/null 2>&1; then :
4335
4336 else
4337 ac_cv_header_stdc=no
4338 fi
4339 rm -f conftest*
4340
4341 fi
4342
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348
4349 _ACEOF
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 $EGREP "free" >/dev/null 2>&1; then :
4352
4353 else
4354 ac_cv_header_stdc=no
4355 fi
4356 rm -f conftest*
4357
4358 fi
4359
4360 if test $ac_cv_header_stdc = yes; then
4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362 if test "$cross_compiling" = yes; then :
4363 :
4364 else
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #include <ctype.h>
4368 #include <stdlib.h>
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #else
4373 # define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378 #endif
4379
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 int
4382 main ()
4383 {
4384 int i;
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4388 return 2;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_run "$LINENO"; then :
4393
4394 else
4395 ac_cv_header_stdc=no
4396 fi
4397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4398 conftest.$ac_objext conftest.beam conftest.$ac_ext
4399 fi
4400
4401 fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4404 $as_echo "$ac_cv_header_stdc" >&6; }
4405 if test $ac_cv_header_stdc = yes; then
4406
4407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4408
4409 fi
4410
4411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4412 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4413 inttypes.h stdint.h unistd.h
4414 do :
4415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4417 "
4418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4419 cat >>confdefs.h <<_ACEOF
4420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 _ACEOF
4422
4423 fi
4424
4425 done
4426
4427
4428
4429
4430
4431
4432 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4433 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4434 CLANGCC="yes"
4435 else
4436 CLANGCC="no"
4437 fi
4438
4439 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4440 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4441 INTELCC="yes"
4442 else
4443 INTELCC="no"
4444 fi
4445
4446 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4447 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4448 SUNCC="yes"
4449 else
4450 SUNCC="no"
4451 fi
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4464 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 case $PKG_CONFIG in
4471 [\\/]* | ?:[\\/]*)
4472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4473 ;;
4474 *)
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 ;;
4491 esac
4492 fi
4493 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4494 if test -n "$PKG_CONFIG"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4496 $as_echo "$PKG_CONFIG" >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 fi
4501
4502
4503 fi
4504 if test -z "$ac_cv_path_PKG_CONFIG"; then
4505 ac_pt_PKG_CONFIG=$PKG_CONFIG
4506 # Extract the first word of "pkg-config", so it can be a program name with args.
4507 set dummy pkg-config; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 case $ac_pt_PKG_CONFIG in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 ;;
4534 esac
4535 fi
4536 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4537 if test -n "$ac_pt_PKG_CONFIG"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4539 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545 if test "x$ac_pt_PKG_CONFIG" = x; then
4546 PKG_CONFIG=""
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 PKG_CONFIG=$ac_pt_PKG_CONFIG
4555 fi
4556 else
4557 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4558 fi
4559
4560 fi
4561 if test -n "$PKG_CONFIG"; then
4562 _pkg_min_version=0.9.0
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4564 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4565 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567 $as_echo "yes" >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4571 PKG_CONFIG=""
4572 fi
4573 fi
4574 # Make sure we can run config.sub.
4575 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4576 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4579 $as_echo_n "checking build system type... " >&6; }
4580 if ${ac_cv_build+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 ac_build_alias=$build_alias
4584 test "x$ac_build_alias" = x &&
4585 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4586 test "x$ac_build_alias" = x &&
4587 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4588 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4593 $as_echo "$ac_cv_build" >&6; }
4594 case $ac_cv_build in
4595 *-*-*) ;;
4596 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4597 esac
4598 build=$ac_cv_build
4599 ac_save_IFS=$IFS; IFS='-'
4600 set x $ac_cv_build
4601 shift
4602 build_cpu=$1
4603 build_vendor=$2
4604 shift; shift
4605 # Remember, the first character of IFS is used to create $*,
4606 # except with old shells:
4607 build_os=$*
4608 IFS=$ac_save_IFS
4609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4610
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4613 $as_echo_n "checking host system type... " >&6; }
4614 if ${ac_cv_host+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test "x$host_alias" = x; then
4618 ac_cv_host=$ac_cv_build
4619 else
4620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4626 $as_echo "$ac_cv_host" >&6; }
4627 case $ac_cv_host in
4628 *-*-*) ;;
4629 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4630 esac
4631 host=$ac_cv_host
4632 ac_save_IFS=$IFS; IFS='-'
4633 set x $ac_cv_host
4634 shift
4635 host_cpu=$1
4636 host_vendor=$2
4637 shift; shift
4638 # Remember, the first character of IFS is used to create $*,
4639 # except with old shells:
4640 host_os=$*
4641 IFS=$ac_save_IFS
4642 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4646 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4647 if ${ac_cv_path_SED+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4651 for ac_i in 1 2 3 4 5 6 7; do
4652 ac_script="$ac_script$as_nl$ac_script"
4653 done
4654 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4655 { ac_script=; unset ac_script;}
4656 if test -z "$SED"; then
4657 ac_path_SED_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in sed gsed; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_SED" || continue
4668 # Check for GNU ac_path_SED and select it if it is found.
4669 # Check for GNU $ac_path_SED
4670 case `"$ac_path_SED" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4673 *)
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4677 do
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo '' >> "conftest.nl"
4682 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_SED_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_SED="$ac_path_SED"
4688 ac_path_SED_max=$ac_count
4689 fi
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4695
4696 $ac_path_SED_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_SED"; then
4702 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4703 fi
4704 else
4705 ac_cv_path_SED=$SED
4706 fi
4707
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4710 $as_echo "$ac_cv_path_SED" >&6; }
4711 SED="$ac_cv_path_SED"
4712 rm -f conftest.sed
4713
4714
4715
4716
4717
4718
4719 # Check whether --enable-selective-werror was given.
4720 if test "${enable_selective_werror+set}" = set; then :
4721 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4722 else
4723 SELECTIVE_WERROR=yes
4724 fi
4725
4726
4727
4728
4729
4730 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4731 if test "x$SUNCC" = "xyes"; then
4732 BASE_CFLAGS="-v"
4733 else
4734 BASE_CFLAGS=""
4735 fi
4736
4737 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751 xorg_testset_save_CFLAGS="$CFLAGS"
4752
4753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4756 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4757 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 int i;
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 xorg_cv_cc_flag_unknown_warning_option=yes
4766 else
4767 xorg_cv_cc_flag_unknown_warning_option=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4772 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4774 CFLAGS="$xorg_testset_save_CFLAGS"
4775 fi
4776
4777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4780 fi
4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4783 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4784 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 int i;
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 xorg_cv_cc_flag_unused_command_line_argument=yes
4793 else
4794 xorg_cv_cc_flag_unused_command_line_argument=no
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4799 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4801 CFLAGS="$xorg_testset_save_CFLAGS"
4802 fi
4803
4804 found="no"
4805
4806 if test $found = "no" ; then
4807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4809 fi
4810
4811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4813 fi
4814
4815 CFLAGS="$CFLAGS -Wall"
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4818 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4819 cacheid=xorg_cv_cc_flag__Wall
4820 if eval \${$cacheid+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 int i;
4826 int
4827 main ()
4828 {
4829
4830 ;
4831 return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_link "$LINENO"; then :
4835 eval $cacheid=yes
4836 else
4837 eval $cacheid=no
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext \
4840 conftest$ac_exeext conftest.$ac_ext
4841 fi
4842
4843
4844 CFLAGS="$xorg_testset_save_CFLAGS"
4845
4846 eval supported=\$$cacheid
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4848 $as_echo "$supported" >&6; }
4849 if test "$supported" = "yes" ; then
4850 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4851 found="yes"
4852 fi
4853 fi
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869 xorg_testset_save_CFLAGS="$CFLAGS"
4870
4871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 int i;
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 xorg_cv_cc_flag_unknown_warning_option=yes
4884 else
4885 xorg_cv_cc_flag_unknown_warning_option=no
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4892 CFLAGS="$xorg_testset_save_CFLAGS"
4893 fi
4894
4895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4898 fi
4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 int i;
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910 xorg_cv_cc_flag_unused_command_line_argument=yes
4911 else
4912 xorg_cv_cc_flag_unused_command_line_argument=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4919 CFLAGS="$xorg_testset_save_CFLAGS"
4920 fi
4921
4922 found="no"
4923
4924 if test $found = "no" ; then
4925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927 fi
4928
4929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4931 fi
4932
4933 CFLAGS="$CFLAGS -Wpointer-arith"
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4936 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4937 cacheid=xorg_cv_cc_flag__Wpointer_arith
4938 if eval \${$cacheid+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 int i;
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_link "$LINENO"; then :
4953 eval $cacheid=yes
4954 else
4955 eval $cacheid=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 fi
4960
4961
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963
4964 eval supported=\$$cacheid
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4966 $as_echo "$supported" >&6; }
4967 if test "$supported" = "yes" ; then
4968 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4969 found="yes"
4970 fi
4971 fi
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 xorg_testset_save_CFLAGS="$CFLAGS"
4988
4989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 int i;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 xorg_cv_cc_flag_unknown_warning_option=yes
5002 else
5003 xorg_cv_cc_flag_unknown_warning_option=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5010 CFLAGS="$xorg_testset_save_CFLAGS"
5011 fi
5012
5013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016 fi
5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 xorg_cv_cc_flag_unused_command_line_argument=yes
5029 else
5030 xorg_cv_cc_flag_unused_command_line_argument=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5038 fi
5039
5040 found="no"
5041
5042 if test $found = "no" ; then
5043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045 fi
5046
5047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5049 fi
5050
5051 CFLAGS="$CFLAGS -Wmissing-declarations"
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5054 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5055 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5056 if eval \${$cacheid+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 int i;
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_link "$LINENO"; then :
5071 eval $cacheid=yes
5072 else
5073 eval $cacheid=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext \
5076 conftest$ac_exeext conftest.$ac_ext
5077 fi
5078
5079
5080 CFLAGS="$xorg_testset_save_CFLAGS"
5081
5082 eval supported=\$$cacheid
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5084 $as_echo "$supported" >&6; }
5085 if test "$supported" = "yes" ; then
5086 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5087 found="yes"
5088 fi
5089 fi
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105 xorg_testset_save_CFLAGS="$CFLAGS"
5106
5107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5110 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5111 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 int i;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"; then :
5119 xorg_cv_cc_flag_unknown_warning_option=yes
5120 else
5121 xorg_cv_cc_flag_unknown_warning_option=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5126 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5128 CFLAGS="$xorg_testset_save_CFLAGS"
5129 fi
5130
5131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134 fi
5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5137 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5138 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 int i;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 xorg_cv_cc_flag_unused_command_line_argument=yes
5147 else
5148 xorg_cv_cc_flag_unused_command_line_argument=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5153 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5155 CFLAGS="$xorg_testset_save_CFLAGS"
5156 fi
5157
5158 found="no"
5159
5160 if test $found = "no" ; then
5161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163 fi
5164
5165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5167 fi
5168
5169 CFLAGS="$CFLAGS -Wformat=2"
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5172 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5173 cacheid=xorg_cv_cc_flag__Wformat_2
5174 if eval \${$cacheid+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 int i;
5180 int
5181 main ()
5182 {
5183
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_link "$LINENO"; then :
5189 eval $cacheid=yes
5190 else
5191 eval $cacheid=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195 fi
5196
5197
5198 CFLAGS="$xorg_testset_save_CFLAGS"
5199
5200 eval supported=\$$cacheid
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5202 $as_echo "$supported" >&6; }
5203 if test "$supported" = "yes" ; then
5204 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5205 found="yes"
5206 fi
5207 fi
5208
5209 if test $found = "no" ; then
5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212 fi
5213
5214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5216 fi
5217
5218 CFLAGS="$CFLAGS -Wformat"
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5221 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5222 cacheid=xorg_cv_cc_flag__Wformat
5223 if eval \${$cacheid+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 int i;
5229 int
5230 main ()
5231 {
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_link "$LINENO"; then :
5238 eval $cacheid=yes
5239 else
5240 eval $cacheid=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244 fi
5245
5246
5247 CFLAGS="$xorg_testset_save_CFLAGS"
5248
5249 eval supported=\$$cacheid
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5251 $as_echo "$supported" >&6; }
5252 if test "$supported" = "yes" ; then
5253 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5254 found="yes"
5255 fi
5256 fi
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 xorg_testset_save_CFLAGS="$CFLAGS"
5275
5276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 int i;
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 xorg_cv_cc_flag_unknown_warning_option=yes
5289 else
5290 xorg_cv_cc_flag_unknown_warning_option=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5297 CFLAGS="$xorg_testset_save_CFLAGS"
5298 fi
5299
5300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303 fi
5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 int i;
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 xorg_cv_cc_flag_unused_command_line_argument=yes
5316 else
5317 xorg_cv_cc_flag_unused_command_line_argument=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5324 CFLAGS="$xorg_testset_save_CFLAGS"
5325 fi
5326
5327 found="no"
5328
5329 if test $found = "no" ; then
5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332 fi
5333
5334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5336 fi
5337
5338 CFLAGS="$CFLAGS -Wstrict-prototypes"
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5341 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5342 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5343 if eval \${$cacheid+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 int i;
5349 int
5350 main ()
5351 {
5352
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_link "$LINENO"; then :
5358 eval $cacheid=yes
5359 else
5360 eval $cacheid=no
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364 fi
5365
5366
5367 CFLAGS="$xorg_testset_save_CFLAGS"
5368
5369 eval supported=\$$cacheid
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5371 $as_echo "$supported" >&6; }
5372 if test "$supported" = "yes" ; then
5373 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5374 found="yes"
5375 fi
5376 fi
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 xorg_testset_save_CFLAGS="$CFLAGS"
5393
5394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 int i;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 xorg_cv_cc_flag_unknown_warning_option=yes
5407 else
5408 xorg_cv_cc_flag_unknown_warning_option=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416 fi
5417
5418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421 fi
5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 xorg_cv_cc_flag_unused_command_line_argument=yes
5434 else
5435 xorg_cv_cc_flag_unused_command_line_argument=no
5436 fi
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5442 CFLAGS="$xorg_testset_save_CFLAGS"
5443 fi
5444
5445 found="no"
5446
5447 if test $found = "no" ; then
5448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450 fi
5451
5452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5454 fi
5455
5456 CFLAGS="$CFLAGS -Wmissing-prototypes"
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5459 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5460 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5461 if eval \${$cacheid+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 int i;
5467 int
5468 main ()
5469 {
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 if ac_fn_c_try_link "$LINENO"; then :
5476 eval $cacheid=yes
5477 else
5478 eval $cacheid=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 fi
5483
5484
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486
5487 eval supported=\$$cacheid
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5489 $as_echo "$supported" >&6; }
5490 if test "$supported" = "yes" ; then
5491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5492 found="yes"
5493 fi
5494 fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 xorg_testset_save_CFLAGS="$CFLAGS"
5511
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 xorg_cv_cc_flag_unknown_warning_option=yes
5525 else
5526 xorg_cv_cc_flag_unknown_warning_option=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534 fi
5535
5536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539 fi
5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 int i;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 xorg_cv_cc_flag_unused_command_line_argument=yes
5552 else
5553 xorg_cv_cc_flag_unused_command_line_argument=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 found="no"
5564
5565 if test $found = "no" ; then
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 fi
5569
5570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5572 fi
5573
5574 CFLAGS="$CFLAGS -Wnested-externs"
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5577 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5578 cacheid=xorg_cv_cc_flag__Wnested_externs
5579 if eval \${$cacheid+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 int
5586 main ()
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_link "$LINENO"; then :
5594 eval $cacheid=yes
5595 else
5596 eval $cacheid=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext \
5599 conftest$ac_exeext conftest.$ac_ext
5600 fi
5601
5602
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604
5605 eval supported=\$$cacheid
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5607 $as_echo "$supported" >&6; }
5608 if test "$supported" = "yes" ; then
5609 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5610 found="yes"
5611 fi
5612 fi
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 xorg_testset_save_CFLAGS="$CFLAGS"
5629
5630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 xorg_cv_cc_flag_unknown_warning_option=yes
5643 else
5644 xorg_cv_cc_flag_unknown_warning_option=no
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5651 CFLAGS="$xorg_testset_save_CFLAGS"
5652 fi
5653
5654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5657 fi
5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 int i;
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 xorg_cv_cc_flag_unused_command_line_argument=yes
5670 else
5671 xorg_cv_cc_flag_unused_command_line_argument=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678 CFLAGS="$xorg_testset_save_CFLAGS"
5679 fi
5680
5681 found="no"
5682
5683 if test $found = "no" ; then
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 fi
5687
5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690 fi
5691
5692 CFLAGS="$CFLAGS -Wbad-function-cast"
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5695 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5696 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5697 if eval \${$cacheid+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 int i;
5703 int
5704 main ()
5705 {
5706
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_link "$LINENO"; then :
5712 eval $cacheid=yes
5713 else
5714 eval $cacheid=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 fi
5719
5720
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722
5723 eval supported=\$$cacheid
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5725 $as_echo "$supported" >&6; }
5726 if test "$supported" = "yes" ; then
5727 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5728 found="yes"
5729 fi
5730 fi
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 xorg_testset_save_CFLAGS="$CFLAGS"
5747
5748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 int i;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 xorg_cv_cc_flag_unknown_warning_option=yes
5761 else
5762 xorg_cv_cc_flag_unknown_warning_option=no
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5769 CFLAGS="$xorg_testset_save_CFLAGS"
5770 fi
5771
5772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775 fi
5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 xorg_cv_cc_flag_unused_command_line_argument=yes
5788 else
5789 xorg_cv_cc_flag_unused_command_line_argument=no
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5796 CFLAGS="$xorg_testset_save_CFLAGS"
5797 fi
5798
5799 found="no"
5800
5801 if test $found = "no" ; then
5802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804 fi
5805
5806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5808 fi
5809
5810 CFLAGS="$CFLAGS -Wold-style-definition"
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5813 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5814 cacheid=xorg_cv_cc_flag__Wold_style_definition
5815 if eval \${$cacheid+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 int i;
5821 int
5822 main ()
5823 {
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_c_try_link "$LINENO"; then :
5830 eval $cacheid=yes
5831 else
5832 eval $cacheid=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext
5836 fi
5837
5838
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840
5841 eval supported=\$$cacheid
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5843 $as_echo "$supported" >&6; }
5844 if test "$supported" = "yes" ; then
5845 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5846 found="yes"
5847 fi
5848 fi
5849
5850 if test $found = "no" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 fi
5858
5859 CFLAGS="$CFLAGS -fd"
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5862 $as_echo_n "checking if $CC supports -fd... " >&6; }
5863 cacheid=xorg_cv_cc_flag__fd
5864 if eval \${$cacheid+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 int
5871 main ()
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"; then :
5879 eval $cacheid=yes
5880 else
5881 eval $cacheid=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 fi
5886
5887
5888 CFLAGS="$xorg_testset_save_CFLAGS"
5889
5890 eval supported=\$$cacheid
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5892 $as_echo "$supported" >&6; }
5893 if test "$supported" = "yes" ; then
5894 BASE_CFLAGS="$BASE_CFLAGS -fd"
5895 found="yes"
5896 fi
5897 fi
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 xorg_testset_save_CFLAGS="$CFLAGS"
5914
5915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"; then :
5927 xorg_cv_cc_flag_unknown_warning_option=yes
5928 else
5929 xorg_cv_cc_flag_unknown_warning_option=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 fi
5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 xorg_cv_cc_flag_unused_command_line_argument=yes
5955 else
5956 xorg_cv_cc_flag_unused_command_line_argument=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 found="no"
5967
5968 if test $found = "no" ; then
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972
5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5975 fi
5976
5977 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5980 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5981 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5982 if eval \${$cacheid+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 int i;
5988 int
5989 main ()
5990 {
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_link "$LINENO"; then :
5997 eval $cacheid=yes
5998 else
5999 eval $cacheid=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003 fi
6004
6005
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008 eval supported=\$$cacheid
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010 $as_echo "$supported" >&6; }
6011 if test "$supported" = "yes" ; then
6012 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6013 found="yes"
6014 fi
6015 fi
6016
6017
6018
6019
6020
6021 # This chunk adds additional warnings that could catch undesired effects.
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035 xorg_testset_save_CFLAGS="$CFLAGS"
6036
6037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 xorg_cv_cc_flag_unknown_warning_option=yes
6050 else
6051 xorg_cv_cc_flag_unknown_warning_option=no
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058 CFLAGS="$xorg_testset_save_CFLAGS"
6059 fi
6060
6061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064 fi
6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 int i;
6074 _ACEOF
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076 xorg_cv_cc_flag_unused_command_line_argument=yes
6077 else
6078 xorg_cv_cc_flag_unused_command_line_argument=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085 CFLAGS="$xorg_testset_save_CFLAGS"
6086 fi
6087
6088 found="no"
6089
6090 if test $found = "no" ; then
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 fi
6094
6095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097 fi
6098
6099 CFLAGS="$CFLAGS -Wunused"
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6102 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6103 cacheid=xorg_cv_cc_flag__Wunused
6104 if eval \${$cacheid+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 int
6111 main ()
6112 {
6113
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_link "$LINENO"; then :
6119 eval $cacheid=yes
6120 else
6121 eval $cacheid=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 fi
6126
6127
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130 eval supported=\$$cacheid
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132 $as_echo "$supported" >&6; }
6133 if test "$supported" = "yes" ; then
6134 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6135 found="yes"
6136 fi
6137 fi
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153 xorg_testset_save_CFLAGS="$CFLAGS"
6154
6155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 int i;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 xorg_cv_cc_flag_unknown_warning_option=yes
6168 else
6169 xorg_cv_cc_flag_unknown_warning_option=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6176 CFLAGS="$xorg_testset_save_CFLAGS"
6177 fi
6178
6179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6182 fi
6183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 int i;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 xorg_cv_cc_flag_unused_command_line_argument=yes
6195 else
6196 xorg_cv_cc_flag_unused_command_line_argument=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6203 CFLAGS="$xorg_testset_save_CFLAGS"
6204 fi
6205
6206 found="no"
6207
6208 if test $found = "no" ; then
6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211 fi
6212
6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6215 fi
6216
6217 CFLAGS="$CFLAGS -Wuninitialized"
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6220 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6221 cacheid=xorg_cv_cc_flag__Wuninitialized
6222 if eval \${$cacheid+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 int
6229 main ()
6230 {
6231
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 if ac_fn_c_try_link "$LINENO"; then :
6237 eval $cacheid=yes
6238 else
6239 eval $cacheid=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6243 fi
6244
6245
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247
6248 eval supported=\$$cacheid
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6250 $as_echo "$supported" >&6; }
6251 if test "$supported" = "yes" ; then
6252 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6253 found="yes"
6254 fi
6255 fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 xorg_testset_save_CFLAGS="$CFLAGS"
6272
6273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 int i;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 xorg_cv_cc_flag_unknown_warning_option=yes
6286 else
6287 xorg_cv_cc_flag_unknown_warning_option=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6295 fi
6296
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300 fi
6301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 int i;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 xorg_cv_cc_flag_unused_command_line_argument=yes
6313 else
6314 xorg_cv_cc_flag_unused_command_line_argument=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6321 CFLAGS="$xorg_testset_save_CFLAGS"
6322 fi
6323
6324 found="no"
6325
6326 if test $found = "no" ; then
6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 fi
6330
6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333 fi
6334
6335 CFLAGS="$CFLAGS -Wshadow"
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6338 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6339 cacheid=xorg_cv_cc_flag__Wshadow
6340 if eval \${$cacheid+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 int
6347 main ()
6348 {
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"; then :
6355 eval $cacheid=yes
6356 else
6357 eval $cacheid=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6361 fi
6362
6363
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6365
6366 eval supported=\$$cacheid
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6368 $as_echo "$supported" >&6; }
6369 if test "$supported" = "yes" ; then
6370 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6371 found="yes"
6372 fi
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 xorg_testset_save_CFLAGS="$CFLAGS"
6390
6391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 int i;
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 xorg_cv_cc_flag_unknown_warning_option=yes
6404 else
6405 xorg_cv_cc_flag_unknown_warning_option=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6412 CFLAGS="$xorg_testset_save_CFLAGS"
6413 fi
6414
6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418 fi
6419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 int i;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 xorg_cv_cc_flag_unused_command_line_argument=yes
6431 else
6432 xorg_cv_cc_flag_unused_command_line_argument=no
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6439 CFLAGS="$xorg_testset_save_CFLAGS"
6440 fi
6441
6442 found="no"
6443
6444 if test $found = "no" ; then
6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447 fi
6448
6449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6451 fi
6452
6453 CFLAGS="$CFLAGS -Wmissing-noreturn"
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6456 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6457 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6458 if eval \${$cacheid+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 int i;
6464 int
6465 main ()
6466 {
6467
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_link "$LINENO"; then :
6473 eval $cacheid=yes
6474 else
6475 eval $cacheid=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6479 fi
6480
6481
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483
6484 eval supported=\$$cacheid
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6486 $as_echo "$supported" >&6; }
6487 if test "$supported" = "yes" ; then
6488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6489 found="yes"
6490 fi
6491 fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507 xorg_testset_save_CFLAGS="$CFLAGS"
6508
6509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 int i;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 xorg_cv_cc_flag_unknown_warning_option=yes
6522 else
6523 xorg_cv_cc_flag_unknown_warning_option=no
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6530 CFLAGS="$xorg_testset_save_CFLAGS"
6531 fi
6532
6533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6536 fi
6537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 xorg_cv_cc_flag_unused_command_line_argument=yes
6549 else
6550 xorg_cv_cc_flag_unused_command_line_argument=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6558 fi
6559
6560 found="no"
6561
6562 if test $found = "no" ; then
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 fi
6566
6567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6569 fi
6570
6571 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6572
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6574 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6575 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6576 if eval \${$cacheid+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 int
6583 main ()
6584 {
6585
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_link "$LINENO"; then :
6591 eval $cacheid=yes
6592 else
6593 eval $cacheid=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597 fi
6598
6599
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601
6602 eval supported=\$$cacheid
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6604 $as_echo "$supported" >&6; }
6605 if test "$supported" = "yes" ; then
6606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6607 found="yes"
6608 fi
6609 fi
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 xorg_testset_save_CFLAGS="$CFLAGS"
6626
6627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 int i;
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 xorg_cv_cc_flag_unknown_warning_option=yes
6640 else
6641 xorg_cv_cc_flag_unknown_warning_option=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6649 fi
6650
6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654 fi
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 int i;
6664 _ACEOF
6665 if ac_fn_c_try_compile "$LINENO"; then :
6666 xorg_cv_cc_flag_unused_command_line_argument=yes
6667 else
6668 xorg_cv_cc_flag_unused_command_line_argument=no
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6675 CFLAGS="$xorg_testset_save_CFLAGS"
6676 fi
6677
6678 found="no"
6679
6680 if test $found = "no" ; then
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 fi
6684
6685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6687 fi
6688
6689 CFLAGS="$CFLAGS -Wredundant-decls"
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6692 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6693 cacheid=xorg_cv_cc_flag__Wredundant_decls
6694 if eval \${$cacheid+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 eval $cacheid=yes
6710 else
6711 eval $cacheid=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715 fi
6716
6717
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719
6720 eval supported=\$$cacheid
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6722 $as_echo "$supported" >&6; }
6723 if test "$supported" = "yes" ; then
6724 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6725 found="yes"
6726 fi
6727 fi
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 xorg_testset_save_CFLAGS="$CFLAGS"
6744
6745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 int i;
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 xorg_cv_cc_flag_unknown_warning_option=yes
6758 else
6759 xorg_cv_cc_flag_unknown_warning_option=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767 fi
6768
6769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 fi
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 int i;
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784 xorg_cv_cc_flag_unused_command_line_argument=yes
6785 else
6786 xorg_cv_cc_flag_unused_command_line_argument=no
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6793 CFLAGS="$xorg_testset_save_CFLAGS"
6794 fi
6795
6796 found="no"
6797
6798 if test $found = "no" ; then
6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801 fi
6802
6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6805 fi
6806
6807 CFLAGS="$CFLAGS -Wlogical-op"
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6810 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6811 cacheid=xorg_cv_cc_flag__Wlogical_op
6812 if eval \${$cacheid+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 int i;
6818 int
6819 main ()
6820 {
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 eval $cacheid=yes
6828 else
6829 eval $cacheid=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 fi
6834
6835
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837
6838 eval supported=\$$cacheid
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6840 $as_echo "$supported" >&6; }
6841 if test "$supported" = "yes" ; then
6842 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6843 found="yes"
6844 fi
6845 fi
6846
6847
6848
6849 # These are currently disabled because they are noisy. They will be enabled
6850 # in the future once the codebase is sufficiently modernized to silence
6851 # them. For now, I don't want them to drown out the other warnings.
6852 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6853 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6854 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6855
6856 # Turn some warnings into errors, so we don't accidently get successful builds
6857 # when there are problems that should be fixed.
6858
6859 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 xorg_testset_save_CFLAGS="$CFLAGS"
6874
6875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6878 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6879 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int i;
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 xorg_cv_cc_flag_unknown_warning_option=yes
6888 else
6889 xorg_cv_cc_flag_unknown_warning_option=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902 fi
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 int i;
6912 _ACEOF
6913 if ac_fn_c_try_compile "$LINENO"; then :
6914 xorg_cv_cc_flag_unused_command_line_argument=yes
6915 else
6916 xorg_cv_cc_flag_unused_command_line_argument=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6921 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6923 CFLAGS="$xorg_testset_save_CFLAGS"
6924 fi
6925
6926 found="no"
6927
6928 if test $found = "no" ; then
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 fi
6932
6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6935 fi
6936
6937 CFLAGS="$CFLAGS -Werror=implicit"
6938
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6940 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6941 cacheid=xorg_cv_cc_flag__Werror_implicit
6942 if eval \${$cacheid+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 int i;
6948 int
6949 main ()
6950 {
6951
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 eval $cacheid=yes
6958 else
6959 eval $cacheid=no
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 fi
6964
6965
6966 CFLAGS="$xorg_testset_save_CFLAGS"
6967
6968 eval supported=\$$cacheid
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6970 $as_echo "$supported" >&6; }
6971 if test "$supported" = "yes" ; then
6972 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6973 found="yes"
6974 fi
6975 fi
6976
6977 if test $found = "no" ; then
6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980 fi
6981
6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984 fi
6985
6986 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6989 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6990 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6991 if eval \${$cacheid+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int i;
6997 int
6998 main ()
6999 {
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 eval $cacheid=yes
7007 else
7008 eval $cacheid=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 fi
7013
7014
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7016
7017 eval supported=\$$cacheid
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020 if test "$supported" = "yes" ; then
7021 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7022 found="yes"
7023 fi
7024 fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 xorg_testset_save_CFLAGS="$CFLAGS"
7041
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 xorg_cv_cc_flag_unknown_warning_option=yes
7055 else
7056 xorg_cv_cc_flag_unknown_warning_option=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 fi
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 int i;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 xorg_cv_cc_flag_unused_command_line_argument=yes
7082 else
7083 xorg_cv_cc_flag_unused_command_line_argument=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7091 fi
7092
7093 found="no"
7094
7095 if test $found = "no" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099
7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7102 fi
7103
7104 CFLAGS="$CFLAGS -Werror=nonnull"
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7107 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7108 cacheid=xorg_cv_cc_flag__Werror_nonnull
7109 if eval \${$cacheid+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 int
7116 main ()
7117 {
7118
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_link "$LINENO"; then :
7124 eval $cacheid=yes
7125 else
7126 eval $cacheid=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 fi
7131
7132
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134
7135 eval supported=\$$cacheid
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138 if test "$supported" = "yes" ; then
7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7140 found="yes"
7141 fi
7142 fi
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 xorg_testset_save_CFLAGS="$CFLAGS"
7159
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 int i;
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 xorg_cv_cc_flag_unknown_warning_option=yes
7173 else
7174 xorg_cv_cc_flag_unknown_warning_option=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7181 CFLAGS="$xorg_testset_save_CFLAGS"
7182 fi
7183
7184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187 fi
7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 xorg_cv_cc_flag_unused_command_line_argument=yes
7200 else
7201 xorg_cv_cc_flag_unused_command_line_argument=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 found="no"
7212
7213 if test $found = "no" ; then
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 fi
7217
7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7220 fi
7221
7222 CFLAGS="$CFLAGS -Werror=init-self"
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7225 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7226 cacheid=xorg_cv_cc_flag__Werror_init_self
7227 if eval \${$cacheid+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"; then :
7242 eval $cacheid=yes
7243 else
7244 eval $cacheid=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248 fi
7249
7250
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252
7253 eval supported=\$$cacheid
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7255 $as_echo "$supported" >&6; }
7256 if test "$supported" = "yes" ; then
7257 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7258 found="yes"
7259 fi
7260 fi
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 xorg_testset_save_CFLAGS="$CFLAGS"
7277
7278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 int i;
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 xorg_cv_cc_flag_unknown_warning_option=yes
7291 else
7292 xorg_cv_cc_flag_unknown_warning_option=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7299 CFLAGS="$xorg_testset_save_CFLAGS"
7300 fi
7301
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305 fi
7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 int i;
7315 _ACEOF
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317 xorg_cv_cc_flag_unused_command_line_argument=yes
7318 else
7319 xorg_cv_cc_flag_unused_command_line_argument=no
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7326 CFLAGS="$xorg_testset_save_CFLAGS"
7327 fi
7328
7329 found="no"
7330
7331 if test $found = "no" ; then
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 fi
7335
7336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338 fi
7339
7340 CFLAGS="$CFLAGS -Werror=main"
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7343 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7344 cacheid=xorg_cv_cc_flag__Werror_main
7345 if eval \${$cacheid+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 int i;
7351 int
7352 main ()
7353 {
7354
7355 ;
7356 return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 eval $cacheid=yes
7361 else
7362 eval $cacheid=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 fi
7367
7368
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7370
7371 eval supported=\$$cacheid
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7373 $as_echo "$supported" >&6; }
7374 if test "$supported" = "yes" ; then
7375 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7376 found="yes"
7377 fi
7378 fi
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 xorg_testset_save_CFLAGS="$CFLAGS"
7395
7396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 int i;
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408 xorg_cv_cc_flag_unknown_warning_option=yes
7409 else
7410 xorg_cv_cc_flag_unknown_warning_option=no
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7417 CFLAGS="$xorg_testset_save_CFLAGS"
7418 fi
7419
7420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7423 fi
7424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 int i;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 xorg_cv_cc_flag_unused_command_line_argument=yes
7436 else
7437 xorg_cv_cc_flag_unused_command_line_argument=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7444 CFLAGS="$xorg_testset_save_CFLAGS"
7445 fi
7446
7447 found="no"
7448
7449 if test $found = "no" ; then
7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452 fi
7453
7454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7456 fi
7457
7458 CFLAGS="$CFLAGS -Werror=missing-braces"
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7461 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7462 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7463 if eval \${$cacheid+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 int i;
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 eval $cacheid=yes
7479 else
7480 eval $cacheid=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 fi
7485
7486
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488
7489 eval supported=\$$cacheid
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7491 $as_echo "$supported" >&6; }
7492 if test "$supported" = "yes" ; then
7493 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7494 found="yes"
7495 fi
7496 fi
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 xorg_testset_save_CFLAGS="$CFLAGS"
7513
7514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 int i;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 xorg_cv_cc_flag_unknown_warning_option=yes
7527 else
7528 xorg_cv_cc_flag_unknown_warning_option=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 fi
7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 int i;
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 xorg_cv_cc_flag_unused_command_line_argument=yes
7554 else
7555 xorg_cv_cc_flag_unused_command_line_argument=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7562 CFLAGS="$xorg_testset_save_CFLAGS"
7563 fi
7564
7565 found="no"
7566
7567 if test $found = "no" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571
7572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7574 fi
7575
7576 CFLAGS="$CFLAGS -Werror=sequence-point"
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7579 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7580 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7581 if eval \${$cacheid+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 int i;
7587 int
7588 main ()
7589 {
7590
7591 ;
7592 return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596 eval $cacheid=yes
7597 else
7598 eval $cacheid=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602 fi
7603
7604
7605 CFLAGS="$xorg_testset_save_CFLAGS"
7606
7607 eval supported=\$$cacheid
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7609 $as_echo "$supported" >&6; }
7610 if test "$supported" = "yes" ; then
7611 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7612 found="yes"
7613 fi
7614 fi
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630 xorg_testset_save_CFLAGS="$CFLAGS"
7631
7632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7636 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 int i;
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 xorg_cv_cc_flag_unknown_warning_option=yes
7645 else
7646 xorg_cv_cc_flag_unknown_warning_option=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7651 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654 fi
7655
7656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7659 fi
7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7663 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 int i;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671 xorg_cv_cc_flag_unused_command_line_argument=yes
7672 else
7673 xorg_cv_cc_flag_unused_command_line_argument=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7678 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7680 CFLAGS="$xorg_testset_save_CFLAGS"
7681 fi
7682
7683 found="no"
7684
7685 if test $found = "no" ; then
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 fi
7689
7690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7692 fi
7693
7694 CFLAGS="$CFLAGS -Werror=return-type"
7695
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7697 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7698 cacheid=xorg_cv_cc_flag__Werror_return_type
7699 if eval \${$cacheid+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 int i;
7705 int
7706 main ()
7707 {
7708
7709 ;
7710 return 0;
7711 }
7712 _ACEOF
7713 if ac_fn_c_try_link "$LINENO"; then :
7714 eval $cacheid=yes
7715 else
7716 eval $cacheid=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720 fi
7721
7722
7723 CFLAGS="$xorg_testset_save_CFLAGS"
7724
7725 eval supported=\$$cacheid
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7727 $as_echo "$supported" >&6; }
7728 if test "$supported" = "yes" ; then
7729 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7730 found="yes"
7731 fi
7732 fi
7733
7734 if test $found = "no" ; then
7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737 fi
7738
7739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7741 fi
7742
7743 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7746 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7747 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7748 if eval \${$cacheid+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 int
7755 main ()
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 eval $cacheid=yes
7764 else
7765 eval $cacheid=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 fi
7770
7771
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774 eval supported=\$$cacheid
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776 $as_echo "$supported" >&6; }
7777 if test "$supported" = "yes" ; then
7778 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7779 found="yes"
7780 fi
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 int i;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 xorg_cv_cc_flag_unknown_warning_option=yes
7812 else
7813 xorg_cv_cc_flag_unknown_warning_option=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7820 CFLAGS="$xorg_testset_save_CFLAGS"
7821 fi
7822
7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826 fi
7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 int i;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 xorg_cv_cc_flag_unused_command_line_argument=yes
7839 else
7840 xorg_cv_cc_flag_unused_command_line_argument=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7848 fi
7849
7850 found="no"
7851
7852 if test $found = "no" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856
7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7859 fi
7860
7861 CFLAGS="$CFLAGS -Werror=trigraphs"
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7864 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7865 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7866 if eval \${$cacheid+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 int
7873 main ()
7874 {
7875
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881 eval $cacheid=yes
7882 else
7883 eval $cacheid=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 fi
7888
7889
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891
7892 eval supported=\$$cacheid
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894 $as_echo "$supported" >&6; }
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7897 found="yes"
7898 fi
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 xorg_testset_save_CFLAGS="$CFLAGS"
7916
7917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 int i;
7927 _ACEOF
7928 if ac_fn_c_try_compile "$LINENO"; then :
7929 xorg_cv_cc_flag_unknown_warning_option=yes
7930 else
7931 xorg_cv_cc_flag_unknown_warning_option=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7938 CFLAGS="$xorg_testset_save_CFLAGS"
7939 fi
7940
7941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944 fi
7945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 xorg_cv_cc_flag_unused_command_line_argument=yes
7957 else
7958 xorg_cv_cc_flag_unused_command_line_argument=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966 fi
7967
7968 found="no"
7969
7970 if test $found = "no" ; then
7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973 fi
7974
7975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977 fi
7978
7979 CFLAGS="$CFLAGS -Werror=array-bounds"
7980
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7982 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7983 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7984 if eval \${$cacheid+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 int i;
7990 int
7991 main ()
7992 {
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_link "$LINENO"; then :
7999 eval $cacheid=yes
8000 else
8001 eval $cacheid=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005 fi
8006
8007
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010 eval supported=\$$cacheid
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 $as_echo "$supported" >&6; }
8013 if test "$supported" = "yes" ; then
8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8015 found="yes"
8016 fi
8017 fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 int i;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 xorg_cv_cc_flag_unknown_warning_option=yes
8048 else
8049 xorg_cv_cc_flag_unknown_warning_option=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057 fi
8058
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062 fi
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 int i;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 xorg_cv_cc_flag_unused_command_line_argument=yes
8075 else
8076 xorg_cv_cc_flag_unused_command_line_argument=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8084 fi
8085
8086 found="no"
8087
8088 if test $found = "no" ; then
8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 fi
8092
8093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8095 fi
8096
8097 CFLAGS="$CFLAGS -Werror=write-strings"
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8100 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8101 cacheid=xorg_cv_cc_flag__Werror_write_strings
8102 if eval \${$cacheid+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 int
8109 main ()
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 eval $cacheid=yes
8118 else
8119 eval $cacheid=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 fi
8124
8125
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127
8128 eval supported=\$$cacheid
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8130 $as_echo "$supported" >&6; }
8131 if test "$supported" = "yes" ; then
8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8133 found="yes"
8134 fi
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 xorg_testset_save_CFLAGS="$CFLAGS"
8152
8153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8157 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 xorg_cv_cc_flag_unknown_warning_option=yes
8166 else
8167 xorg_cv_cc_flag_unknown_warning_option=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8172 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8174 CFLAGS="$xorg_testset_save_CFLAGS"
8175 fi
8176
8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180 fi
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8183 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8184 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 int i;
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 xorg_cv_cc_flag_unused_command_line_argument=yes
8193 else
8194 xorg_cv_cc_flag_unused_command_line_argument=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8199 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8201 CFLAGS="$xorg_testset_save_CFLAGS"
8202 fi
8203
8204 found="no"
8205
8206 if test $found = "no" ; then
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 fi
8210
8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8213 fi
8214
8215 CFLAGS="$CFLAGS -Werror=address"
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8218 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8219 cacheid=xorg_cv_cc_flag__Werror_address
8220 if eval \${$cacheid+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 int
8227 main ()
8228 {
8229
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 eval $cacheid=yes
8236 else
8237 eval $cacheid=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 fi
8242
8243
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245
8246 eval supported=\$$cacheid
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8248 $as_echo "$supported" >&6; }
8249 if test "$supported" = "yes" ; then
8250 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8251 found="yes"
8252 fi
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 xorg_testset_save_CFLAGS="$CFLAGS"
8270
8271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 int i;
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 xorg_cv_cc_flag_unknown_warning_option=yes
8284 else
8285 xorg_cv_cc_flag_unknown_warning_option=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293 fi
8294
8295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8298 fi
8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 int i;
8308 _ACEOF
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310 xorg_cv_cc_flag_unused_command_line_argument=yes
8311 else
8312 xorg_cv_cc_flag_unused_command_line_argument=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8320 fi
8321
8322 found="no"
8323
8324 if test $found = "no" ; then
8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327 fi
8328
8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8331 fi
8332
8333 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8336 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8337 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8338 if eval \${$cacheid+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 int
8345 main ()
8346 {
8347
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 eval $cacheid=yes
8354 else
8355 eval $cacheid=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 fi
8360
8361
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363
8364 eval supported=\$$cacheid
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8366 $as_echo "$supported" >&6; }
8367 if test "$supported" = "yes" ; then
8368 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8369 found="yes"
8370 fi
8371 fi
8372
8373 if test $found = "no" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377
8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8380 fi
8381
8382 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8385 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8386 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8387 if eval \${$cacheid+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 int
8394 main ()
8395 {
8396
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402 eval $cacheid=yes
8403 else
8404 eval $cacheid=no
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408 fi
8409
8410
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412
8413 eval supported=\$$cacheid
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8415 $as_echo "$supported" >&6; }
8416 if test "$supported" = "yes" ; then
8417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8418 found="yes"
8419 fi
8420 fi
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 xorg_testset_save_CFLAGS="$CFLAGS"
8437
8438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 xorg_cv_cc_flag_unknown_warning_option=yes
8451 else
8452 xorg_cv_cc_flag_unknown_warning_option=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460 fi
8461
8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465 fi
8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 int i;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 xorg_cv_cc_flag_unused_command_line_argument=yes
8478 else
8479 xorg_cv_cc_flag_unused_command_line_argument=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487 fi
8488
8489 found="no"
8490
8491 if test $found = "no" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495
8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8498 fi
8499
8500 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8503 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8504 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8505 if eval \${$cacheid+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 int i;
8511 int
8512 main ()
8513 {
8514
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_link "$LINENO"; then :
8520 eval $cacheid=yes
8521 else
8522 eval $cacheid=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8526 fi
8527
8528
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530
8531 eval supported=\$$cacheid
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8533 $as_echo "$supported" >&6; }
8534 if test "$supported" = "yes" ; then
8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8536 found="yes"
8537 fi
8538 fi
8539
8540 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8541 else
8542 { $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
8543 $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;}
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557 xorg_testset_save_CFLAGS="$CFLAGS"
8558
8559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 xorg_cv_cc_flag_unknown_warning_option=yes
8572 else
8573 xorg_cv_cc_flag_unknown_warning_option=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8580 CFLAGS="$xorg_testset_save_CFLAGS"
8581 fi
8582
8583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586 fi
8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 int i;
8596 _ACEOF
8597 if ac_fn_c_try_compile "$LINENO"; then :
8598 xorg_cv_cc_flag_unused_command_line_argument=yes
8599 else
8600 xorg_cv_cc_flag_unused_command_line_argument=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8608 fi
8609
8610 found="no"
8611
8612 if test $found = "no" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616
8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619 fi
8620
8621 CFLAGS="$CFLAGS -Wimplicit"
8622
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8624 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8625 cacheid=xorg_cv_cc_flag__Wimplicit
8626 if eval \${$cacheid+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 int i;
8632 int
8633 main ()
8634 {
8635
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 if ac_fn_c_try_link "$LINENO"; then :
8641 eval $cacheid=yes
8642 else
8643 eval $cacheid=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647 fi
8648
8649
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8651
8652 eval supported=\$$cacheid
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8654 $as_echo "$supported" >&6; }
8655 if test "$supported" = "yes" ; then
8656 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8657 found="yes"
8658 fi
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675 xorg_testset_save_CFLAGS="$CFLAGS"
8676
8677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 int i;
8687 _ACEOF
8688 if ac_fn_c_try_compile "$LINENO"; then :
8689 xorg_cv_cc_flag_unknown_warning_option=yes
8690 else
8691 xorg_cv_cc_flag_unknown_warning_option=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8698 CFLAGS="$xorg_testset_save_CFLAGS"
8699 fi
8700
8701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8704 fi
8705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 int i;
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"; then :
8716 xorg_cv_cc_flag_unused_command_line_argument=yes
8717 else
8718 xorg_cv_cc_flag_unused_command_line_argument=no
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8725 CFLAGS="$xorg_testset_save_CFLAGS"
8726 fi
8727
8728 found="no"
8729
8730 if test $found = "no" ; then
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 fi
8734
8735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8737 fi
8738
8739 CFLAGS="$CFLAGS -Wnonnull"
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8742 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8743 cacheid=xorg_cv_cc_flag__Wnonnull
8744 if eval \${$cacheid+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 int i;
8750 int
8751 main ()
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 eval $cacheid=yes
8760 else
8761 eval $cacheid=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8765 fi
8766
8767
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8769
8770 eval supported=\$$cacheid
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8772 $as_echo "$supported" >&6; }
8773 if test "$supported" = "yes" ; then
8774 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8775 found="yes"
8776 fi
8777 fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 xorg_testset_save_CFLAGS="$CFLAGS"
8794
8795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 int i;
8805 _ACEOF
8806 if ac_fn_c_try_compile "$LINENO"; then :
8807 xorg_cv_cc_flag_unknown_warning_option=yes
8808 else
8809 xorg_cv_cc_flag_unknown_warning_option=no
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8817 fi
8818
8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8822 fi
8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 int i;
8832 _ACEOF
8833 if ac_fn_c_try_compile "$LINENO"; then :
8834 xorg_cv_cc_flag_unused_command_line_argument=yes
8835 else
8836 xorg_cv_cc_flag_unused_command_line_argument=no
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8844 fi
8845
8846 found="no"
8847
8848 if test $found = "no" ; then
8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851 fi
8852
8853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8855 fi
8856
8857 CFLAGS="$CFLAGS -Winit-self"
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8860 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8861 cacheid=xorg_cv_cc_flag__Winit_self
8862 if eval \${$cacheid+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 int i;
8868 int
8869 main ()
8870 {
8871
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_link "$LINENO"; then :
8877 eval $cacheid=yes
8878 else
8879 eval $cacheid=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 fi
8884
8885
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887
8888 eval supported=\$$cacheid
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8890 $as_echo "$supported" >&6; }
8891 if test "$supported" = "yes" ; then
8892 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8893 found="yes"
8894 fi
8895 fi
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 xorg_testset_save_CFLAGS="$CFLAGS"
8912
8913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 int i;
8923 _ACEOF
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925 xorg_cv_cc_flag_unknown_warning_option=yes
8926 else
8927 xorg_cv_cc_flag_unknown_warning_option=no
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8935 fi
8936
8937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940 fi
8941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 int i;
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952 xorg_cv_cc_flag_unused_command_line_argument=yes
8953 else
8954 xorg_cv_cc_flag_unused_command_line_argument=no
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8961 CFLAGS="$xorg_testset_save_CFLAGS"
8962 fi
8963
8964 found="no"
8965
8966 if test $found = "no" ; then
8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 fi
8970
8971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8973 fi
8974
8975 CFLAGS="$CFLAGS -Wmain"
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8978 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8979 cacheid=xorg_cv_cc_flag__Wmain
8980 if eval \${$cacheid+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 int
8987 main ()
8988 {
8989
8990 ;
8991 return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995 eval $cacheid=yes
8996 else
8997 eval $cacheid=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001 fi
9002
9003
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005
9006 eval supported=\$$cacheid
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9008 $as_echo "$supported" >&6; }
9009 if test "$supported" = "yes" ; then
9010 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9011 found="yes"
9012 fi
9013 fi
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 xorg_testset_save_CFLAGS="$CFLAGS"
9030
9031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 int i;
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 xorg_cv_cc_flag_unknown_warning_option=yes
9044 else
9045 xorg_cv_cc_flag_unknown_warning_option=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9052 CFLAGS="$xorg_testset_save_CFLAGS"
9053 fi
9054
9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058 fi
9059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067 int i;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 xorg_cv_cc_flag_unused_command_line_argument=yes
9071 else
9072 xorg_cv_cc_flag_unused_command_line_argument=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9080 fi
9081
9082 found="no"
9083
9084 if test $found = "no" ; then
9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087 fi
9088
9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9091 fi
9092
9093 CFLAGS="$CFLAGS -Wmissing-braces"
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9096 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9097 cacheid=xorg_cv_cc_flag__Wmissing_braces
9098 if eval \${$cacheid+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 int
9105 main ()
9106 {
9107
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 eval $cacheid=yes
9114 else
9115 eval $cacheid=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 fi
9120
9121
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124 eval supported=\$$cacheid
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126 $as_echo "$supported" >&6; }
9127 if test "$supported" = "yes" ; then
9128 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9129 found="yes"
9130 fi
9131 fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int i;
9159 _ACEOF
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161 xorg_cv_cc_flag_unknown_warning_option=yes
9162 else
9163 xorg_cv_cc_flag_unknown_warning_option=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171 fi
9172
9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 fi
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 int i;
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"; then :
9188 xorg_cv_cc_flag_unused_command_line_argument=yes
9189 else
9190 xorg_cv_cc_flag_unused_command_line_argument=no
9191 fi
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9198 fi
9199
9200 found="no"
9201
9202 if test $found = "no" ; then
9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205 fi
9206
9207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9209 fi
9210
9211 CFLAGS="$CFLAGS -Wsequence-point"
9212
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9214 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9215 cacheid=xorg_cv_cc_flag__Wsequence_point
9216 if eval \${$cacheid+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 int i;
9222 int
9223 main ()
9224 {
9225
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 eval $cacheid=yes
9232 else
9233 eval $cacheid=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 fi
9238
9239
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9241
9242 eval supported=\$$cacheid
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9244 $as_echo "$supported" >&6; }
9245 if test "$supported" = "yes" ; then
9246 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9247 found="yes"
9248 fi
9249 fi
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 xorg_testset_save_CFLAGS="$CFLAGS"
9266
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 int i;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 xorg_cv_cc_flag_unknown_warning_option=yes
9280 else
9281 xorg_cv_cc_flag_unknown_warning_option=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9288 CFLAGS="$xorg_testset_save_CFLAGS"
9289 fi
9290
9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 fi
9295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 int i;
9304 _ACEOF
9305 if ac_fn_c_try_compile "$LINENO"; then :
9306 xorg_cv_cc_flag_unused_command_line_argument=yes
9307 else
9308 xorg_cv_cc_flag_unused_command_line_argument=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 found="no"
9319
9320 if test $found = "no" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324
9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9327 fi
9328
9329 CFLAGS="$CFLAGS -Wreturn-type"
9330
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9332 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9333 cacheid=xorg_cv_cc_flag__Wreturn_type
9334 if eval \${$cacheid+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 int i;
9340 int
9341 main ()
9342 {
9343
9344 ;
9345 return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349 eval $cacheid=yes
9350 else
9351 eval $cacheid=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 fi
9356
9357
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9359
9360 eval supported=\$$cacheid
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9362 $as_echo "$supported" >&6; }
9363 if test "$supported" = "yes" ; then
9364 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9365 found="yes"
9366 fi
9367 fi
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 xorg_testset_save_CFLAGS="$CFLAGS"
9384
9385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 _ACEOF
9396 if ac_fn_c_try_compile "$LINENO"; then :
9397 xorg_cv_cc_flag_unknown_warning_option=yes
9398 else
9399 xorg_cv_cc_flag_unknown_warning_option=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 fi
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9406 CFLAGS="$xorg_testset_save_CFLAGS"
9407 fi
9408
9409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412 fi
9413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 int i;
9422 _ACEOF
9423 if ac_fn_c_try_compile "$LINENO"; then :
9424 xorg_cv_cc_flag_unused_command_line_argument=yes
9425 else
9426 xorg_cv_cc_flag_unused_command_line_argument=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9434 fi
9435
9436 found="no"
9437
9438 if test $found = "no" ; then
9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441 fi
9442
9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9445 fi
9446
9447 CFLAGS="$CFLAGS -Wtrigraphs"
9448
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9450 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9451 cacheid=xorg_cv_cc_flag__Wtrigraphs
9452 if eval \${$cacheid+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 int
9459 main ()
9460 {
9461
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467 eval $cacheid=yes
9468 else
9469 eval $cacheid=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473 fi
9474
9475
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477
9478 eval supported=\$$cacheid
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9480 $as_echo "$supported" >&6; }
9481 if test "$supported" = "yes" ; then
9482 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9483 found="yes"
9484 fi
9485 fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501 xorg_testset_save_CFLAGS="$CFLAGS"
9502
9503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 int i;
9513 _ACEOF
9514 if ac_fn_c_try_compile "$LINENO"; then :
9515 xorg_cv_cc_flag_unknown_warning_option=yes
9516 else
9517 xorg_cv_cc_flag_unknown_warning_option=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9524 CFLAGS="$xorg_testset_save_CFLAGS"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530 fi
9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539 int i;
9540 _ACEOF
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542 xorg_cv_cc_flag_unused_command_line_argument=yes
9543 else
9544 xorg_cv_cc_flag_unused_command_line_argument=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9552 fi
9553
9554 found="no"
9555
9556 if test $found = "no" ; then
9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559 fi
9560
9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9563 fi
9564
9565 CFLAGS="$CFLAGS -Warray-bounds"
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9568 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9569 cacheid=xorg_cv_cc_flag__Warray_bounds
9570 if eval \${$cacheid+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 int
9577 main ()
9578 {
9579
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585 eval $cacheid=yes
9586 else
9587 eval $cacheid=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 fi
9592
9593
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595
9596 eval supported=\$$cacheid
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598 $as_echo "$supported" >&6; }
9599 if test "$supported" = "yes" ; then
9600 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9601 found="yes"
9602 fi
9603 fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619 xorg_testset_save_CFLAGS="$CFLAGS"
9620
9621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int i;
9631 _ACEOF
9632 if ac_fn_c_try_compile "$LINENO"; then :
9633 xorg_cv_cc_flag_unknown_warning_option=yes
9634 else
9635 xorg_cv_cc_flag_unknown_warning_option=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9643 fi
9644
9645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648 fi
9649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 int i;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660 xorg_cv_cc_flag_unused_command_line_argument=yes
9661 else
9662 xorg_cv_cc_flag_unused_command_line_argument=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9670 fi
9671
9672 found="no"
9673
9674 if test $found = "no" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678
9679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681 fi
9682
9683 CFLAGS="$CFLAGS -Wwrite-strings"
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9686 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9687 cacheid=xorg_cv_cc_flag__Wwrite_strings
9688 if eval \${$cacheid+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 int
9695 main ()
9696 {
9697
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 eval $cacheid=yes
9704 else
9705 eval $cacheid=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 fi
9710
9711
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713
9714 eval supported=\$$cacheid
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9716 $as_echo "$supported" >&6; }
9717 if test "$supported" = "yes" ; then
9718 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9719 found="yes"
9720 fi
9721 fi
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 xorg_testset_save_CFLAGS="$CFLAGS"
9738
9739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 int i;
9749 _ACEOF
9750 if ac_fn_c_try_compile "$LINENO"; then :
9751 xorg_cv_cc_flag_unknown_warning_option=yes
9752 else
9753 xorg_cv_cc_flag_unknown_warning_option=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9761 fi
9762
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9766 fi
9767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 xorg_cv_cc_flag_unused_command_line_argument=yes
9779 else
9780 xorg_cv_cc_flag_unused_command_line_argument=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9787 CFLAGS="$xorg_testset_save_CFLAGS"
9788 fi
9789
9790 found="no"
9791
9792 if test $found = "no" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796
9797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799 fi
9800
9801 CFLAGS="$CFLAGS -Waddress"
9802
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9804 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9805 cacheid=xorg_cv_cc_flag__Waddress
9806 if eval \${$cacheid+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 int i;
9812 int
9813 main ()
9814 {
9815
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 eval $cacheid=yes
9822 else
9823 eval $cacheid=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 fi
9828
9829
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9831
9832 eval supported=\$$cacheid
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9834 $as_echo "$supported" >&6; }
9835 if test "$supported" = "yes" ; then
9836 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9837 found="yes"
9838 fi
9839 fi
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 xorg_testset_save_CFLAGS="$CFLAGS"
9856
9857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9866 int i;
9867 _ACEOF
9868 if ac_fn_c_try_compile "$LINENO"; then :
9869 xorg_cv_cc_flag_unknown_warning_option=yes
9870 else
9871 xorg_cv_cc_flag_unknown_warning_option=no
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9878 CFLAGS="$xorg_testset_save_CFLAGS"
9879 fi
9880
9881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9884 fi
9885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 int i;
9894 _ACEOF
9895 if ac_fn_c_try_compile "$LINENO"; then :
9896 xorg_cv_cc_flag_unused_command_line_argument=yes
9897 else
9898 xorg_cv_cc_flag_unused_command_line_argument=no
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9905 CFLAGS="$xorg_testset_save_CFLAGS"
9906 fi
9907
9908 found="no"
9909
9910 if test $found = "no" ; then
9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913 fi
9914
9915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9917 fi
9918
9919 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9922 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9923 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9924 if eval \${$cacheid+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 int
9931 main ()
9932 {
9933
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"; then :
9939 eval $cacheid=yes
9940 else
9941 eval $cacheid=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 fi
9946
9947
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9949
9950 eval supported=\$$cacheid
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9952 $as_echo "$supported" >&6; }
9953 if test "$supported" = "yes" ; then
9954 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9955 found="yes"
9956 fi
9957 fi
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973 xorg_testset_save_CFLAGS="$CFLAGS"
9974
9975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 int i;
9985 _ACEOF
9986 if ac_fn_c_try_compile "$LINENO"; then :
9987 xorg_cv_cc_flag_unknown_warning_option=yes
9988 else
9989 xorg_cv_cc_flag_unknown_warning_option=no
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 fi
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9996 CFLAGS="$xorg_testset_save_CFLAGS"
9997 fi
9998
9999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002 fi
10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 int i;
10012 _ACEOF
10013 if ac_fn_c_try_compile "$LINENO"; then :
10014 xorg_cv_cc_flag_unused_command_line_argument=yes
10015 else
10016 xorg_cv_cc_flag_unused_command_line_argument=no
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024 fi
10025
10026 found="no"
10027
10028 if test $found = "no" ; then
10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031 fi
10032
10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10035 fi
10036
10037 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10040 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10041 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10042 if eval \${$cacheid+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 int i;
10048 int
10049 main ()
10050 {
10051
10052 ;
10053 return 0;
10054 }
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"; then :
10057 eval $cacheid=yes
10058 else
10059 eval $cacheid=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 fi
10064
10065
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067
10068 eval supported=\$$cacheid
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10070 $as_echo "$supported" >&6; }
10071 if test "$supported" = "yes" ; then
10072 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10073 found="yes"
10074 fi
10075 fi
10076
10077
10078 fi
10079
10080
10081
10082
10083
10084
10085
10086 CWARNFLAGS="$BASE_CFLAGS"
10087 if test "x$GCC" = xyes ; then
10088 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10089 fi
10090
10091
10092
10093
10094
10095
10096
10097
10098 # Check whether --enable-strict-compilation was given.
10099 if test "${enable_strict_compilation+set}" = set; then :
10100 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10101 else
10102 STRICT_COMPILE=no
10103 fi
10104
10105
10106
10107
10108
10109
10110 STRICT_CFLAGS=""
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124 xorg_testset_save_CFLAGS="$CFLAGS"
10125
10126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 int i;
10136 _ACEOF
10137 if ac_fn_c_try_compile "$LINENO"; then :
10138 xorg_cv_cc_flag_unknown_warning_option=yes
10139 else
10140 xorg_cv_cc_flag_unknown_warning_option=no
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143 fi
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10147 CFLAGS="$xorg_testset_save_CFLAGS"
10148 fi
10149
10150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153 fi
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 int i;
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"; then :
10165 xorg_cv_cc_flag_unused_command_line_argument=yes
10166 else
10167 xorg_cv_cc_flag_unused_command_line_argument=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10170 fi
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10174 CFLAGS="$xorg_testset_save_CFLAGS"
10175 fi
10176
10177 found="no"
10178
10179 if test $found = "no" ; then
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 fi
10183
10184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10186 fi
10187
10188 CFLAGS="$CFLAGS -pedantic"
10189
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10191 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10192 cacheid=xorg_cv_cc_flag__pedantic
10193 if eval \${$cacheid+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 int
10200 main ()
10201 {
10202
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 eval $cacheid=yes
10209 else
10210 eval $cacheid=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 fi
10215
10216
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218
10219 eval supported=\$$cacheid
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10221 $as_echo "$supported" >&6; }
10222 if test "$supported" = "yes" ; then
10223 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10224 found="yes"
10225 fi
10226 fi
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242 xorg_testset_save_CFLAGS="$CFLAGS"
10243
10244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10248 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int i;
10254 _ACEOF
10255 if ac_fn_c_try_compile "$LINENO"; then :
10256 xorg_cv_cc_flag_unknown_warning_option=yes
10257 else
10258 xorg_cv_cc_flag_unknown_warning_option=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10263 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10265 CFLAGS="$xorg_testset_save_CFLAGS"
10266 fi
10267
10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10271 fi
10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10274 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10275 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int i;
10281 _ACEOF
10282 if ac_fn_c_try_compile "$LINENO"; then :
10283 xorg_cv_cc_flag_unused_command_line_argument=yes
10284 else
10285 xorg_cv_cc_flag_unused_command_line_argument=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10290 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10292 CFLAGS="$xorg_testset_save_CFLAGS"
10293 fi
10294
10295 found="no"
10296
10297 if test $found = "no" ; then
10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300 fi
10301
10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304 fi
10305
10306 CFLAGS="$CFLAGS -Werror"
10307
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10309 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10310 cacheid=xorg_cv_cc_flag__Werror
10311 if eval \${$cacheid+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10316 int i;
10317 int
10318 main ()
10319 {
10320
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 if ac_fn_c_try_link "$LINENO"; then :
10326 eval $cacheid=yes
10327 else
10328 eval $cacheid=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 fi
10333
10334
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336
10337 eval supported=\$$cacheid
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10339 $as_echo "$supported" >&6; }
10340 if test "$supported" = "yes" ; then
10341 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10342 found="yes"
10343 fi
10344 fi
10345
10346 if test $found = "no" ; then
10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349 fi
10350
10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10353 fi
10354
10355 CFLAGS="$CFLAGS -errwarn"
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10358 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10359 cacheid=xorg_cv_cc_flag__errwarn
10360 if eval \${$cacheid+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 int i;
10366 int
10367 main ()
10368 {
10369
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 eval $cacheid=yes
10376 else
10377 eval $cacheid=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 fi
10382
10383
10384 CFLAGS="$xorg_testset_save_CFLAGS"
10385
10386 eval supported=\$$cacheid
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10388 $as_echo "$supported" >&6; }
10389 if test "$supported" = "yes" ; then
10390 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10391 found="yes"
10392 fi
10393 fi
10394
10395
10396
10397 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10398 # activate it with -Werror, so we add it here explicitly.
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 int i;
10424 _ACEOF
10425 if ac_fn_c_try_compile "$LINENO"; then :
10426 xorg_cv_cc_flag_unknown_warning_option=yes
10427 else
10428 xorg_cv_cc_flag_unknown_warning_option=no
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10435 CFLAGS="$xorg_testset_save_CFLAGS"
10436 fi
10437
10438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441 fi
10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 int i;
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 xorg_cv_cc_flag_unused_command_line_argument=yes
10454 else
10455 xorg_cv_cc_flag_unused_command_line_argument=no
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462 CFLAGS="$xorg_testset_save_CFLAGS"
10463 fi
10464
10465 found="no"
10466
10467 if test $found = "no" ; then
10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470 fi
10471
10472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474 fi
10475
10476 CFLAGS="$CFLAGS -Werror=attributes"
10477
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10479 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10480 cacheid=xorg_cv_cc_flag__Werror_attributes
10481 if eval \${$cacheid+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486 int i;
10487 int
10488 main ()
10489 {
10490
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"; then :
10496 eval $cacheid=yes
10497 else
10498 eval $cacheid=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 fi
10503
10504
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507 eval supported=\$$cacheid
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509 $as_echo "$supported" >&6; }
10510 if test "$supported" = "yes" ; then
10511 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10512 found="yes"
10513 fi
10514 fi
10515
10516
10517
10518 if test "x$STRICT_COMPILE" = "xyes"; then
10519 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10520 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10521 fi
10522
10523
10524
10525
10526
10527
10528 cat >>confdefs.h <<_ACEOF
10529 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10530 _ACEOF
10531
10532 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10533 if test "x$PVM" = "x"; then
10534 PVM="0"
10535 fi
10536
10537 cat >>confdefs.h <<_ACEOF
10538 #define PACKAGE_VERSION_MINOR $PVM
10539 _ACEOF
10540
10541 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10542 if test "x$PVP" = "x"; then
10543 PVP="0"
10544 fi
10545
10546 cat >>confdefs.h <<_ACEOF
10547 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10548 _ACEOF
10549
10550
10551
10552 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10553 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10554 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10555 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10556
10557
10558
10559
10560 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10561 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10562 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10563 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10564 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10565
10566
10567
10568
10569
10570
10571 if test x$APP_MAN_SUFFIX = x ; then
10572 APP_MAN_SUFFIX=1
10573 fi
10574 if test x$APP_MAN_DIR = x ; then
10575 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10576 fi
10577
10578 if test x$LIB_MAN_SUFFIX = x ; then
10579 LIB_MAN_SUFFIX=3
10580 fi
10581 if test x$LIB_MAN_DIR = x ; then
10582 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10583 fi
10584
10585 if test x$FILE_MAN_SUFFIX = x ; then
10586 case $host_os in
10587 # Solaris 2.0 - 11 use SysV man page sections
10588 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10589 *) FILE_MAN_SUFFIX=5 ;;
10590 esac
10591 fi
10592 if test x$FILE_MAN_DIR = x ; then
10593 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10594 fi
10595
10596 if test x$MISC_MAN_SUFFIX = x ; then
10597 case $host_os in
10598 # Solaris 2.0 - 11 use SysV man page sections
10599 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10600 *) MISC_MAN_SUFFIX=7 ;;
10601 esac
10602 fi
10603 if test x$MISC_MAN_DIR = x ; then
10604 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10605 fi
10606
10607 if test x$DRIVER_MAN_SUFFIX = x ; then
10608 case $host_os in
10609 # Solaris 2.0 - 11 use SysV man page sections
10610 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10611 *) DRIVER_MAN_SUFFIX=4 ;;
10612 esac
10613 fi
10614 if test x$DRIVER_MAN_DIR = x ; then
10615 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10616 fi
10617
10618 if test x$ADMIN_MAN_SUFFIX = x ; then
10619 case $host_os in
10620 # Solaris 2.0 - 11 use SysV man page sections
10621 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10622 *) ADMIN_MAN_SUFFIX=8 ;;
10623 esac
10624 fi
10625 if test x$ADMIN_MAN_DIR = x ; then
10626 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10627 fi
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643 XORG_MAN_PAGE="X Version 11"
10644
10645 MAN_SUBSTS="\
10646 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10647 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10648 -e 's|__xservername__|Xorg|g' \
10649 -e 's|__xconfigfile__|xorg.conf|g' \
10650 -e 's|__projectroot__|\$(prefix)|g' \
10651 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10652 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10653 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10654 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10655 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10656 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10657 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10658
10659
10660
10661 # Check whether --enable-silent-rules was given.
10662 if test "${enable_silent_rules+set}" = set; then :
10663 enableval=$enable_silent_rules;
10664 fi
10665
10666 case $enable_silent_rules in # (((
10667 yes) AM_DEFAULT_VERBOSITY=0;;
10668 no) AM_DEFAULT_VERBOSITY=1;;
10669 *) AM_DEFAULT_VERBOSITY=0;;
10670 esac
10671 am_make=${MAKE-make}
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10673 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10674 if ${am_cv_make_support_nested_variables+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 if $as_echo 'TRUE=$(BAR$(V))
10678 BAR0=false
10679 BAR1=true
10680 V=1
10681 am__doit:
10682 @$(TRUE)
10683 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10684 am_cv_make_support_nested_variables=yes
10685 else
10686 am_cv_make_support_nested_variables=no
10687 fi
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10690 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10691 if test $am_cv_make_support_nested_variables = yes; then
10692 AM_V='$(V)'
10693 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10694 else
10695 AM_V=$AM_DEFAULT_VERBOSITY
10696 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10697 fi
10698 AM_BACKSLASH='\'
10699
10700
10701
10702
10703
10704 # Extract the first word of "groff", so it can be a program name with args.
10705 set dummy groff; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707 $as_echo_n "checking for $ac_word... " >&6; }
10708 if ${ac_cv_prog_GROFF+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 if test -n "$GROFF"; then
10712 ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
10713 else
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10716 do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_GROFF="found"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725 done
10726 done
10727 IFS=$as_save_IFS
10728
10729 test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing"
10730 fi
10731 fi
10732 GROFF=$ac_cv_prog_GROFF
10733 if test -n "$GROFF"; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
10735 $as_echo "$GROFF" >&6; }
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
10739 fi
10740
10741
10742 if test "x$GROFF" = "xfound" ; then
10743
10744 $as_echo "#define HAS_GROFF 1" >>confdefs.h
10745
10746 fi
10747
10748 # Extract the first word of "mandb", so it can be a program name with args.
10749 set dummy mandb; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_prog_MANDB+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test -n "$MANDB"; then
10756 ac_cv_prog_MANDB="$MANDB" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_MANDB="yes"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769 done
10770 done
10771 IFS=$as_save_IFS
10772
10773 test -z "$ac_cv_prog_MANDB" && ac_cv_prog_MANDB="no"
10774 fi
10775 fi
10776 MANDB=$ac_cv_prog_MANDB
10777 if test -n "$MANDB"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDB" >&5
10779 $as_echo "$MANDB" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10783 fi
10784
10785
10786 if test x"$MANDB" = xyes; then
10787
10788 $as_echo "#define HAVE_MANDB 1" >>confdefs.h
10789
10790 fi
10791
10792 for ac_func in mkstemp
10793 do :
10794 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10795 if test "x$ac_cv_func_mkstemp" = xyes; then :
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_MKSTEMP 1
10798 _ACEOF
10799
10800 fi
10801 done
10802
10803
10804
10805 # Check whether --with-helpdir was given.
10806 if test "${with_helpdir+set}" = set; then :
10807 withval=$with_helpdir; HELPDIR="$withval"
10808 else
10809 HELPDIR=${datadir}/X11
10810 fi
10811
10812
10813
10814
10815 # Check whether --with-sysmanpath was given.
10816 if test "${with_sysmanpath+set}" = set; then :
10817 withval=$with_sysmanpath; SYSMANPATH="$withval"
10818 fi
10819
10820 if test x$SYSMANPATH != x; then
10821
10822 cat >>confdefs.h <<_ACEOF
10823 #define SYSMANPATH "$SYSMANPATH"
10824 _ACEOF
10825
10826 fi
10827
10828
10829 # Check whether --with-localmanpath was given.
10830 if test "${with_localmanpath+set}" = set; then :
10831 withval=$with_localmanpath; LOCALMANPATH="$withval"
10832 fi
10833
10834 if test x$LOCALMANPATH != x; then
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define LOCALMANPATH "$LOCALMANPATH"
10838 _ACEOF
10839
10840 fi
10841
10842 # Obtain compiler/linker options from depedencies
10843
10844 pkg_failed=no
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5
10846 $as_echo_n "checking for XMAN... " >&6; }
10847
10848 if test -n "$XMAN_CFLAGS"; then
10849 pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
10850 elif test -n "$PKG_CONFIG"; then
10851 if test -n "$PKG_CONFIG" && \
10852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10853 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10854 ac_status=$?
10855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10856 test $ac_status = 0; }; then
10857 pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10858 test "x$?" != "x0" && pkg_failed=yes
10859 else
10860 pkg_failed=yes
10861 fi
10862 else
10863 pkg_failed=untried
10864 fi
10865 if test -n "$XMAN_LIBS"; then
10866 pkg_cv_XMAN_LIBS="$XMAN_LIBS"
10867 elif test -n "$PKG_CONFIG"; then
10868 if test -n "$PKG_CONFIG" && \
10869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10870 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10871 ac_status=$?
10872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10873 test $ac_status = 0; }; then
10874 pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10875 test "x$?" != "x0" && pkg_failed=yes
10876 else
10877 pkg_failed=yes
10878 fi
10879 else
10880 pkg_failed=untried
10881 fi
10882
10883
10884
10885 if test $pkg_failed = yes; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10888
10889 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10890 _pkg_short_errors_supported=yes
10891 else
10892 _pkg_short_errors_supported=no
10893 fi
10894 if test $_pkg_short_errors_supported = yes; then
10895 XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
10896 else
10897 XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
10898 fi
10899 # Put the nasty error message in config.log where it belongs
10900 echo "$XMAN_PKG_ERRORS" >&5
10901
10902 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met:
10903
10904 $XMAN_PKG_ERRORS
10905
10906 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10907 installed software in a non-standard prefix.
10908
10909 Alternatively, you may set the environment variables XMAN_CFLAGS
10910 and XMAN_LIBS to avoid the need to call pkg-config.
10911 See the pkg-config man page for more details." "$LINENO" 5
10912 elif test $pkg_failed = untried; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10917 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10918 is in your PATH or set the PKG_CONFIG environment variable to the full
10919 path to pkg-config.
10920
10921 Alternatively, you may set the environment variables XMAN_CFLAGS
10922 and XMAN_LIBS to avoid the need to call pkg-config.
10923 See the pkg-config man page for more details.
10924
10925 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10926 See \`config.log' for more details" "$LINENO" 5; }
10927 else
10928 XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
10929 XMAN_LIBS=$pkg_cv_XMAN_LIBS
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10931 $as_echo "yes" >&6; }
10932
10933 fi
10934
10935
10936 # Check whether --with-manconfig was given.
10937 if test "${with_manconfig+set}" = set; then :
10938 withval=$with_manconfig; MANCONF="$withval"
10939 fi
10940
10941 if test x$MANCONF = x; then
10942 # Check for man page config files
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5
10944 $as_echo_n "checking for /etc/man.conf... " >&6; }
10945 if ${ac_cv_file__etc_man_conf+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 test "$cross_compiling" = yes &&
10949 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10950 if test -r "/etc/man.conf"; then
10951 ac_cv_file__etc_man_conf=yes
10952 else
10953 ac_cv_file__etc_man_conf=no
10954 fi
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5
10957 $as_echo "$ac_cv_file__etc_man_conf" >&6; }
10958 if test "x$ac_cv_file__etc_man_conf" = xyes; then :
10959 MANCONF="/etc/man.conf"
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5
10962 $as_echo_n "checking for /etc/man.config... " >&6; }
10963 if ${ac_cv_file__etc_man_config+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 test "$cross_compiling" = yes &&
10967 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10968 if test -r "/etc/man.config"; then
10969 ac_cv_file__etc_man_config=yes
10970 else
10971 ac_cv_file__etc_man_config=no
10972 fi
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5
10975 $as_echo "$ac_cv_file__etc_man_config" >&6; }
10976 if test "x$ac_cv_file__etc_man_config" = xyes; then :
10977 MANCONF="/etc/man.config"
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5
10980 $as_echo_n "checking for /etc/manpath.config... " >&6; }
10981 if ${ac_cv_file__etc_manpath_config+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 test "$cross_compiling" = yes &&
10985 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10986 if test -r "/etc/manpath.config"; then
10987 ac_cv_file__etc_manpath_config=yes
10988 else
10989 ac_cv_file__etc_manpath_config=no
10990 fi
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5
10993 $as_echo "$ac_cv_file__etc_manpath_config" >&6; }
10994 if test "x$ac_cv_file__etc_manpath_config" = xyes; then :
10995 MANCONF="/etc/manpath.config"
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5
10998 $as_echo_n "checking for /usr/share/misc/man.conf... " >&6; }
10999 if ${ac_cv_file__usr_share_misc_man_conf+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 test "$cross_compiling" = yes &&
11003 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11004 if test -r "/usr/share/misc/man.conf"; then
11005 ac_cv_file__usr_share_misc_man_conf=yes
11006 else
11007 ac_cv_file__usr_share_misc_man_conf=no
11008 fi
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5
11011 $as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; }
11012 if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes; then :
11013 MANCONF="/usr/share/misc/man.conf"
11014 fi
11015
11016 fi
11017
11018 fi
11019
11020 fi
11021
11022 fi
11023
11024 if test x$MANCONF != x ; then
11025
11026 cat >>confdefs.h <<_ACEOF
11027 #define MANCONF "$MANCONF"
11028 _ACEOF
11029
11030
11031 # Try to determine format of config file
11032 # would be better to somehow determine from the files themselves, but
11033 # we'll guess based on pathname and OS for now (mirrors old Imake tests)
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5
11035 $as_echo_n "checking man config file format... " >&6; }
11036 if test x$MANCONF = x/etc/manpath.config ; then
11037 MAN_CONFIG_STYLE="FreeBSD"
11038 else
11039 case $host_os in
11040 *darwin* | *openbsd* | *netbsd* )
11041 MAN_CONFIG_STYLE="OpenBSD"
11042 ;;
11043 *linux* | cygwin* )
11044 MAN_CONFIG_STYLE="Linux"
11045 ;;
11046 *bsd* )
11047 MAN_CONFIG_STYLE="BSD"
11048 ;;
11049 *)
11050 ;;
11051 esac
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5
11054 $as_echo "$MAN_CONFIG_STYLE" >&6; }
11055
11056 case $MAN_CONFIG_STYLE in
11057 FreeBSD)
11058
11059 $as_echo "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h
11060
11061 ;;
11062 OpenBSD)
11063
11064 $as_echo "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h
11065
11066 ;;
11067 BSD)
11068
11069 $as_echo "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h
11070
11071 ;;
11072 Linux)
11073
11074 $as_echo "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h
11075
11076 ;;
11077 *)
11078 as_fn_error $? "Could not determine man page file config format." "$LINENO" 5
11079 esac
11080 fi
11081
11082
11083 pkg_failed=no
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11085 $as_echo_n "checking for APPDEFS... " >&6; }
11086
11087 if test -n "$APPDEFS_CFLAGS"; then
11088 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11089 elif test -n "$PKG_CONFIG"; then
11090 if test -n "$PKG_CONFIG" && \
11091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11092 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11093 ac_status=$?
11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095 test $ac_status = 0; }; then
11096 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11097 test "x$?" != "x0" && pkg_failed=yes
11098 else
11099 pkg_failed=yes
11100 fi
11101 else
11102 pkg_failed=untried
11103 fi
11104 if test -n "$APPDEFS_LIBS"; then
11105 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11106 elif test -n "$PKG_CONFIG"; then
11107 if test -n "$PKG_CONFIG" && \
11108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11109 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11110 ac_status=$?
11111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112 test $ac_status = 0; }; then
11113 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11114 test "x$?" != "x0" && pkg_failed=yes
11115 else
11116 pkg_failed=yes
11117 fi
11118 else
11119 pkg_failed=untried
11120 fi
11121
11122
11123
11124 if test $pkg_failed = yes; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127
11128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129 _pkg_short_errors_supported=yes
11130 else
11131 _pkg_short_errors_supported=no
11132 fi
11133 if test $_pkg_short_errors_supported = yes; then
11134 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11135 else
11136 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11137 fi
11138 # Put the nasty error message in config.log where it belongs
11139 echo "$APPDEFS_PKG_ERRORS" >&5
11140
11141 as_fn_error $? "Package requirements (xt) were not met:
11142
11143 $APPDEFS_PKG_ERRORS
11144
11145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11146 installed software in a non-standard prefix.
11147
11148 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11149 and APPDEFS_LIBS to avoid the need to call pkg-config.
11150 See the pkg-config man page for more details." "$LINENO" 5
11151 elif test $pkg_failed = untried; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11156 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11157 is in your PATH or set the PKG_CONFIG environment variable to the full
11158 path to pkg-config.
11159
11160 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11161 and APPDEFS_LIBS to avoid the need to call pkg-config.
11162 See the pkg-config man page for more details.
11163
11164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11165 See \`config.log' for more details" "$LINENO" 5; }
11166 else
11167 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11168 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170 $as_echo "yes" >&6; }
11171
11172 fi
11173 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11174
11175 # Check whether --with-appdefaultdir was given.
11176 if test "${with_appdefaultdir+set}" = set; then :
11177 withval=$with_appdefaultdir; appdefaultdir="$withval"
11178 else
11179 appdefaultdir="${xt_appdefaultdir}"
11180 fi
11181
11182
11183
11184 if test "x$RELEASE_VERSION" != "x"; then
11185
11186 cat >>confdefs.h <<_ACEOF
11187 #define RELEASE_VERSION "$RELEASE_VERSION"
11188 _ACEOF
11189
11190 fi
11191
11192 ac_config_files="$ac_config_files Makefile man/Makefile"
11193
11194 cat >confcache <<\_ACEOF
11195 # This file is a shell script that caches the results of configure
11196 # tests run on this system so they can be shared between configure
11197 # scripts and configure runs, see configure's option --config-cache.
11198 # It is not useful on other systems. If it contains results you don't
11199 # want to keep, you may remove or edit it.
11200 #
11201 # config.status only pays attention to the cache file if you give it
11202 # the --recheck option to rerun configure.
11203 #
11204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11206 # following values.
11207
11208 _ACEOF
11209
11210 # The following way of writing the cache mishandles newlines in values,
11211 # but we know of no workaround that is simple, portable, and efficient.
11212 # So, we kill variables containing newlines.
11213 # Ultrix sh set writes to stderr and can't be redirected directly,
11214 # and sets the high bit in the cache file unless we assign to the vars.
11215 (
11216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11217 eval ac_val=\$$ac_var
11218 case $ac_val in #(
11219 *${as_nl}*)
11220 case $ac_var in #(
11221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11223 esac
11224 case $ac_var in #(
11225 _ | IFS | as_nl) ;; #(
11226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11227 *) { eval $ac_var=; unset $ac_var;} ;;
11228 esac ;;
11229 esac
11230 done
11231
11232 (set) 2>&1 |
11233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11234 *${as_nl}ac_space=\ *)
11235 # `set' does not quote correctly, so add quotes: double-quote
11236 # substitution turns \\\\ into \\, and sed turns \\ into \.
11237 sed -n \
11238 "s/'/'\\\\''/g;
11239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11240 ;; #(
11241 *)
11242 # `set' quotes correctly as required by POSIX, so do not add quotes.
11243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11244 ;;
11245 esac |
11246 sort
11247 ) |
11248 sed '
11249 /^ac_cv_env_/b end
11250 t clear
11251 :clear
11252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11253 t end
11254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11255 :end' >>confcache
11256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11257 if test -w "$cache_file"; then
11258 if test "x$cache_file" != "x/dev/null"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11260 $as_echo "$as_me: updating cache $cache_file" >&6;}
11261 if test ! -f "$cache_file" || test -h "$cache_file"; then
11262 cat confcache >"$cache_file"
11263 else
11264 case $cache_file in #(
11265 */* | ?:*)
11266 mv -f confcache "$cache_file"$$ &&
11267 mv -f "$cache_file"$$ "$cache_file" ;; #(
11268 *)
11269 mv -f confcache "$cache_file" ;;
11270 esac
11271 fi
11272 fi
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11276 fi
11277 fi
11278 rm -f confcache
11279
11280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11281 # Let make expand exec_prefix.
11282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11283
11284 DEFS=-DHAVE_CONFIG_H
11285
11286 ac_libobjs=
11287 ac_ltlibobjs=
11288 U=
11289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11290 # 1. Remove the extension, and $U if already installed.
11291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11294 # will be set to the directory where LIBOBJS objects are built.
11295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11297 done
11298 LIBOBJS=$ac_libobjs
11299
11300 LTLIBOBJS=$ac_ltlibobjs
11301
11302
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11304 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11305 if test -n "$am_sleep_pid"; then
11306 # Hide warnings about reused PIDs.
11307 wait $am_sleep_pid 2>/dev/null
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11310 $as_echo "done" >&6; }
11311 if test -n "$EXEEXT"; then
11312 am__EXEEXT_TRUE=
11313 am__EXEEXT_FALSE='#'
11314 else
11315 am__EXEEXT_TRUE='#'
11316 am__EXEEXT_FALSE=
11317 fi
11318
11319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11320 as_fn_error $? "conditional \"AMDEP\" was never defined.
11321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11322 fi
11323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11326 fi
11327
11328 : "${CONFIG_STATUS=./config.status}"
11329 ac_write_fail=0
11330 ac_clean_files_save=$ac_clean_files
11331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11334 as_write_fail=0
11335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11336 #! $SHELL
11337 # Generated by $as_me.
11338 # Run this file to recreate the current configuration.
11339 # Compiler output produced by configure, useful for debugging
11340 # configure, is in config.log if it exists.
11341
11342 debug=false
11343 ac_cs_recheck=false
11344 ac_cs_silent=false
11345
11346 SHELL=\${CONFIG_SHELL-$SHELL}
11347 export SHELL
11348 _ASEOF
11349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11350 ## -------------------- ##
11351 ## M4sh Initialization. ##
11352 ## -------------------- ##
11353
11354 # Be more Bourne compatible
11355 DUALCASE=1; export DUALCASE # for MKS sh
11356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11357 emulate sh
11358 NULLCMD=:
11359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11360 # is contrary to our usage. Disable this feature.
11361 alias -g '${1+"$@"}'='"$@"'
11362 setopt NO_GLOB_SUBST
11363 else
11364 case `(set -o) 2>/dev/null` in #(
11365 *posix*) :
11366 set -o posix ;; #(
11367 *) :
11368 ;;
11369 esac
11370 fi
11371
11372
11373 as_nl='
11374 '
11375 export as_nl
11376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11380 # Prefer a ksh shell builtin over an external printf program on Solaris,
11381 # but without wasting forks for bash or zsh.
11382 if test -z "$BASH_VERSION$ZSH_VERSION" \
11383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11384 as_echo='print -r --'
11385 as_echo_n='print -rn --'
11386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11387 as_echo='printf %s\n'
11388 as_echo_n='printf %s'
11389 else
11390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11392 as_echo_n='/usr/ucb/echo -n'
11393 else
11394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11395 as_echo_n_body='eval
11396 arg=$1;
11397 case $arg in #(
11398 *"$as_nl"*)
11399 expr "X$arg" : "X\\(.*\\)$as_nl";
11400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11401 esac;
11402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11403 '
11404 export as_echo_n_body
11405 as_echo_n='sh -c $as_echo_n_body as_echo'
11406 fi
11407 export as_echo_body
11408 as_echo='sh -c $as_echo_body as_echo'
11409 fi
11410
11411 # The user is always right.
11412 if test "${PATH_SEPARATOR+set}" != set; then
11413 PATH_SEPARATOR=:
11414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11416 PATH_SEPARATOR=';'
11417 }
11418 fi
11419
11420
11421 # IFS
11422 # We need space, tab and new line, in precisely that order. Quoting is
11423 # there to prevent editors from complaining about space-tab.
11424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11425 # splitting by setting IFS to empty value.)
11426 IFS=" "" $as_nl"
11427
11428 # Find who we are. Look in the path if we contain no directory separator.
11429 as_myself=
11430 case $0 in #((
11431 *[\\/]* ) as_myself=$0 ;;
11432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11438 done
11439 IFS=$as_save_IFS
11440
11441 ;;
11442 esac
11443 # We did not find ourselves, most probably we were run as `sh COMMAND'
11444 # in which case we are not to be found in the path.
11445 if test "x$as_myself" = x; then
11446 as_myself=$0
11447 fi
11448 if test ! -f "$as_myself"; then
11449 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11450 exit 1
11451 fi
11452
11453 # Unset variables that we do not need and which cause bugs (e.g. in
11454 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11455 # suppresses any "Segmentation fault" message there. '((' could
11456 # trigger a bug in pdksh 5.2.14.
11457 for as_var in BASH_ENV ENV MAIL MAILPATH
11458 do eval test x\${$as_var+set} = xset \
11459 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11460 done
11461 PS1='$ '
11462 PS2='> '
11463 PS4='+ '
11464
11465 # NLS nuisances.
11466 LC_ALL=C
11467 export LC_ALL
11468 LANGUAGE=C
11469 export LANGUAGE
11470
11471 # CDPATH.
11472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11473
11474
11475 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11476 # ----------------------------------------
11477 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11478 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11479 # script with STATUS, using 1 if that was 0.
11480 as_fn_error ()
11481 {
11482 as_status=$1; test $as_status -eq 0 && as_status=1
11483 if test "$4"; then
11484 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11485 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11486 fi
11487 $as_echo "$as_me: error: $2" >&2
11488 as_fn_exit $as_status
11489 } # as_fn_error
11490
11491
11492 # as_fn_set_status STATUS
11493 # -----------------------
11494 # Set $? to STATUS, without forking.
11495 as_fn_set_status ()
11496 {
11497 return $1
11498 } # as_fn_set_status
11499
11500 # as_fn_exit STATUS
11501 # -----------------
11502 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11503 as_fn_exit ()
11504 {
11505 set +e
11506 as_fn_set_status $1
11507 exit $1
11508 } # as_fn_exit
11509
11510 # as_fn_unset VAR
11511 # ---------------
11512 # Portably unset VAR.
11513 as_fn_unset ()
11514 {
11515 { eval $1=; unset $1;}
11516 }
11517 as_unset=as_fn_unset
11518 # as_fn_append VAR VALUE
11519 # ----------------------
11520 # Append the text in VALUE to the end of the definition contained in VAR. Take
11521 # advantage of any shell optimizations that allow amortized linear growth over
11522 # repeated appends, instead of the typical quadratic growth present in naive
11523 # implementations.
11524 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11525 eval 'as_fn_append ()
11526 {
11527 eval $1+=\$2
11528 }'
11529 else
11530 as_fn_append ()
11531 {
11532 eval $1=\$$1\$2
11533 }
11534 fi # as_fn_append
11535
11536 # as_fn_arith ARG...
11537 # ------------------
11538 # Perform arithmetic evaluation on the ARGs, and store the result in the
11539 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11540 # must be portable across $(()) and expr.
11541 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11542 eval 'as_fn_arith ()
11543 {
11544 as_val=$(( $* ))
11545 }'
11546 else
11547 as_fn_arith ()
11548 {
11549 as_val=`expr "$@" || test $? -eq 1`
11550 }
11551 fi # as_fn_arith
11552
11553
11554 if expr a : '\(a\)' >/dev/null 2>&1 &&
11555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11556 as_expr=expr
11557 else
11558 as_expr=false
11559 fi
11560
11561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11562 as_basename=basename
11563 else
11564 as_basename=false
11565 fi
11566
11567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11568 as_dirname=dirname
11569 else
11570 as_dirname=false
11571 fi
11572
11573 as_me=`$as_basename -- "$0" ||
11574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11575 X"$0" : 'X\(//\)$' \| \
11576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11577 $as_echo X/"$0" |
11578 sed '/^.*\/\([^/][^/]*\)\/*$/{
11579 s//\1/
11580 q
11581 }
11582 /^X\/\(\/\/\)$/{
11583 s//\1/
11584 q
11585 }
11586 /^X\/\(\/\).*/{
11587 s//\1/
11588 q
11589 }
11590 s/.*/./; q'`
11591
11592 # Avoid depending upon Character Ranges.
11593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11596 as_cr_digits='0123456789'
11597 as_cr_alnum=$as_cr_Letters$as_cr_digits
11598
11599 ECHO_C= ECHO_N= ECHO_T=
11600 case `echo -n x` in #(((((
11601 -n*)
11602 case `echo 'xy\c'` in
11603 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11604 xy) ECHO_C='\c';;
11605 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11606 ECHO_T=' ';;
11607 esac;;
11608 *)
11609 ECHO_N='-n';;
11610 esac
11611
11612 rm -f conf$$ conf$$.exe conf$$.file
11613 if test -d conf$$.dir; then
11614 rm -f conf$$.dir/conf$$.file
11615 else
11616 rm -f conf$$.dir
11617 mkdir conf$$.dir 2>/dev/null
11618 fi
11619 if (echo >conf$$.file) 2>/dev/null; then
11620 if ln -s conf$$.file conf$$ 2>/dev/null; then
11621 as_ln_s='ln -s'
11622 # ... but there are two gotchas:
11623 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11624 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11625 # In both cases, we have to default to `cp -pR'.
11626 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11627 as_ln_s='cp -pR'
11628 elif ln conf$$.file conf$$ 2>/dev/null; then
11629 as_ln_s=ln
11630 else
11631 as_ln_s='cp -pR'
11632 fi
11633 else
11634 as_ln_s='cp -pR'
11635 fi
11636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11637 rmdir conf$$.dir 2>/dev/null
11638
11639
11640 # as_fn_mkdir_p
11641 # -------------
11642 # Create "$as_dir" as a directory, including parents if necessary.
11643 as_fn_mkdir_p ()
11644 {
11645
11646 case $as_dir in #(
11647 -*) as_dir=./$as_dir;;
11648 esac
11649 test -d "$as_dir" || eval $as_mkdir_p || {
11650 as_dirs=
11651 while :; do
11652 case $as_dir in #(
11653 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11654 *) as_qdir=$as_dir;;
11655 esac
11656 as_dirs="'$as_qdir' $as_dirs"
11657 as_dir=`$as_dirname -- "$as_dir" ||
11658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11659 X"$as_dir" : 'X\(//\)[^/]' \| \
11660 X"$as_dir" : 'X\(//\)$' \| \
11661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11662 $as_echo X"$as_dir" |
11663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11664 s//\1/
11665 q
11666 }
11667 /^X\(\/\/\)[^/].*/{
11668 s//\1/
11669 q
11670 }
11671 /^X\(\/\/\)$/{
11672 s//\1/
11673 q
11674 }
11675 /^X\(\/\).*/{
11676 s//\1/
11677 q
11678 }
11679 s/.*/./; q'`
11680 test -d "$as_dir" && break
11681 done
11682 test -z "$as_dirs" || eval "mkdir $as_dirs"
11683 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11684
11685
11686 } # as_fn_mkdir_p
11687 if mkdir -p . 2>/dev/null; then
11688 as_mkdir_p='mkdir -p "$as_dir"'
11689 else
11690 test -d ./-p && rmdir ./-p
11691 as_mkdir_p=false
11692 fi
11693
11694
11695 # as_fn_executable_p FILE
11696 # -----------------------
11697 # Test if FILE is an executable regular file.
11698 as_fn_executable_p ()
11699 {
11700 test -f "$1" && test -x "$1"
11701 } # as_fn_executable_p
11702 as_test_x='test -x'
11703 as_executable_p=as_fn_executable_p
11704
11705 # Sed expression to map a string onto a valid CPP name.
11706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11707
11708 # Sed expression to map a string onto a valid variable name.
11709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11710
11711
11712 exec 6>&1
11713 ## ----------------------------------- ##
11714 ## Main body of $CONFIG_STATUS script. ##
11715 ## ----------------------------------- ##
11716 _ASEOF
11717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11718
11719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720 # Save the log message, to keep $0 and so on meaningful, and to
11721 # report actual input values of CONFIG_FILES etc. instead of their
11722 # values after options handling.
11723 ac_log="
11724 This file was extended by xman $as_me 1.1.5, which was
11725 generated by GNU Autoconf 2.69. Invocation command line was
11726
11727 CONFIG_FILES = $CONFIG_FILES
11728 CONFIG_HEADERS = $CONFIG_HEADERS
11729 CONFIG_LINKS = $CONFIG_LINKS
11730 CONFIG_COMMANDS = $CONFIG_COMMANDS
11731 $ $0 $@
11732
11733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11734 "
11735
11736 _ACEOF
11737
11738 case $ac_config_files in *"
11739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11740 esac
11741
11742 case $ac_config_headers in *"
11743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11744 esac
11745
11746
11747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11748 # Files that config.status was made for.
11749 config_files="$ac_config_files"
11750 config_headers="$ac_config_headers"
11751 config_commands="$ac_config_commands"
11752
11753 _ACEOF
11754
11755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11756 ac_cs_usage="\
11757 \`$as_me' instantiates files and other configuration actions
11758 from templates according to the current configuration. Unless the files
11759 and actions are specified as TAGs, all are instantiated by default.
11760
11761 Usage: $0 [OPTION]... [TAG]...
11762
11763 -h, --help print this help, then exit
11764 -V, --version print version number and configuration settings, then exit
11765 --config print configuration, then exit
11766 -q, --quiet, --silent
11767 do not print progress messages
11768 -d, --debug don't remove temporary files
11769 --recheck update $as_me by reconfiguring in the same conditions
11770 --file=FILE[:TEMPLATE]
11771 instantiate the configuration file FILE
11772 --header=FILE[:TEMPLATE]
11773 instantiate the configuration header FILE
11774
11775 Configuration files:
11776 $config_files
11777
11778 Configuration headers:
11779 $config_headers
11780
11781 Configuration commands:
11782 $config_commands
11783
11784 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>."
11785
11786 _ACEOF
11787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11789 ac_cs_version="\\
11790 xman config.status 1.1.5
11791 configured by $0, generated by GNU Autoconf 2.69,
11792 with options \\"\$ac_cs_config\\"
11793
11794 Copyright (C) 2012 Free Software Foundation, Inc.
11795 This config.status script is free software; the Free Software Foundation
11796 gives unlimited permission to copy, distribute and modify it."
11797
11798 ac_pwd='$ac_pwd'
11799 srcdir='$srcdir'
11800 INSTALL='$INSTALL'
11801 MKDIR_P='$MKDIR_P'
11802 AWK='$AWK'
11803 test -n "\$AWK" || AWK=awk
11804 _ACEOF
11805
11806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807 # The default lists apply if the user does not specify any file.
11808 ac_need_defaults=:
11809 while test $# != 0
11810 do
11811 case $1 in
11812 --*=?*)
11813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11815 ac_shift=:
11816 ;;
11817 --*=)
11818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11819 ac_optarg=
11820 ac_shift=:
11821 ;;
11822 *)
11823 ac_option=$1
11824 ac_optarg=$2
11825 ac_shift=shift
11826 ;;
11827 esac
11828
11829 case $ac_option in
11830 # Handling of the options.
11831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11832 ac_cs_recheck=: ;;
11833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11834 $as_echo "$ac_cs_version"; exit ;;
11835 --config | --confi | --conf | --con | --co | --c )
11836 $as_echo "$ac_cs_config"; exit ;;
11837 --debug | --debu | --deb | --de | --d | -d )
11838 debug=: ;;
11839 --file | --fil | --fi | --f )
11840 $ac_shift
11841 case $ac_optarg in
11842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11843 '') as_fn_error $? "missing file argument" ;;
11844 esac
11845 as_fn_append CONFIG_FILES " '$ac_optarg'"
11846 ac_need_defaults=false;;
11847 --header | --heade | --head | --hea )
11848 $ac_shift
11849 case $ac_optarg in
11850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11851 esac
11852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11853 ac_need_defaults=false;;
11854 --he | --h)
11855 # Conflict between --help and --header
11856 as_fn_error $? "ambiguous option: \`$1'
11857 Try \`$0 --help' for more information.";;
11858 --help | --hel | -h )
11859 $as_echo "$ac_cs_usage"; exit ;;
11860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11862 ac_cs_silent=: ;;
11863
11864 # This is an error.
11865 -*) as_fn_error $? "unrecognized option: \`$1'
11866 Try \`$0 --help' for more information." ;;
11867
11868 *) as_fn_append ac_config_targets " $1"
11869 ac_need_defaults=false ;;
11870
11871 esac
11872 shift
11873 done
11874
11875 ac_configure_extra_args=
11876
11877 if $ac_cs_silent; then
11878 exec 6>/dev/null
11879 ac_configure_extra_args="$ac_configure_extra_args --silent"
11880 fi
11881
11882 _ACEOF
11883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11884 if \$ac_cs_recheck; then
11885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11886 shift
11887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11888 CONFIG_SHELL='$SHELL'
11889 export CONFIG_SHELL
11890 exec "\$@"
11891 fi
11892
11893 _ACEOF
11894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11895 exec 5>>config.log
11896 {
11897 echo
11898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11899 ## Running $as_me. ##
11900 _ASBOX
11901 $as_echo "$ac_log"
11902 } >&5
11903
11904 _ACEOF
11905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11906 #
11907 # INIT-COMMANDS
11908 #
11909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11910
11911 _ACEOF
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11914
11915 # Handling of arguments.
11916 for ac_config_target in $ac_config_targets
11917 do
11918 case $ac_config_target in
11919 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11921 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11922 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11923
11924 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11925 esac
11926 done
11927
11928
11929 # If the user did not use the arguments to specify the items to instantiate,
11930 # then the envvar interface is used. Set only those that are not.
11931 # We use the long form for the default assignment because of an extremely
11932 # bizarre bug on SunOS 4.1.3.
11933 if $ac_need_defaults; then
11934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11937 fi
11938
11939 # Have a temporary directory for convenience. Make it in the build tree
11940 # simply because there is no reason against having it here, and in addition,
11941 # creating and moving files from /tmp can sometimes cause problems.
11942 # Hook for its removal unless debugging.
11943 # Note that there is a small window in which the directory will not be cleaned:
11944 # after its creation but before its name has been assigned to `$tmp'.
11945 $debug ||
11946 {
11947 tmp= ac_tmp=
11948 trap 'exit_status=$?
11949 : "${ac_tmp:=$tmp}"
11950 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11951 ' 0
11952 trap 'as_fn_exit 1' 1 2 13 15
11953 }
11954 # Create a (secure) tmp directory for tmp files.
11955
11956 {
11957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11958 test -d "$tmp"
11959 } ||
11960 {
11961 tmp=./conf$$-$RANDOM
11962 (umask 077 && mkdir "$tmp")
11963 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11964 ac_tmp=$tmp
11965
11966 # Set up the scripts for CONFIG_FILES section.
11967 # No need to generate them if there are no CONFIG_FILES.
11968 # This happens for instance with `./config.status config.h'.
11969 if test -n "$CONFIG_FILES"; then
11970
11971
11972 ac_cr=`echo X | tr X '\015'`
11973 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11974 # But we know of no other shell where ac_cr would be empty at this
11975 # point, so we can use a bashism as a fallback.
11976 if test "x$ac_cr" = x; then
11977 eval ac_cr=\$\'\\r\'
11978 fi
11979 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11980 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11981 ac_cs_awk_cr='\\r'
11982 else
11983 ac_cs_awk_cr=$ac_cr
11984 fi
11985
11986 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11987 _ACEOF
11988
11989
11990 {
11991 echo "cat >conf$$subs.awk <<_ACEOF" &&
11992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11993 echo "_ACEOF"
11994 } >conf$$subs.sh ||
11995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11997 ac_delim='%!_!# '
11998 for ac_last_try in false false false false false :; do
11999 . ./conf$$subs.sh ||
12000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12001
12002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12003 if test $ac_delim_n = $ac_delim_num; then
12004 break
12005 elif $ac_last_try; then
12006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12007 else
12008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12009 fi
12010 done
12011 rm -f conf$$subs.sh
12012
12013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12015 _ACEOF
12016 sed -n '
12017 h
12018 s/^/S["/; s/!.*/"]=/
12019 p
12020 g
12021 s/^[^!]*!//
12022 :repl
12023 t repl
12024 s/'"$ac_delim"'$//
12025 t delim
12026 :nl
12027 h
12028 s/\(.\{148\}\)..*/\1/
12029 t more1
12030 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12031 p
12032 n
12033 b repl
12034 :more1
12035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12036 p
12037 g
12038 s/.\{148\}//
12039 t nl
12040 :delim
12041 h
12042 s/\(.\{148\}\)..*/\1/
12043 t more2
12044 s/["\\]/\\&/g; s/^/"/; s/$/"/
12045 p
12046 b
12047 :more2
12048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12049 p
12050 g
12051 s/.\{148\}//
12052 t delim
12053 ' <conf$$subs.awk | sed '
12054 /^[^""]/{
12055 N
12056 s/\n//
12057 }
12058 ' >>$CONFIG_STATUS || ac_write_fail=1
12059 rm -f conf$$subs.awk
12060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061 _ACAWK
12062 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12063 for (key in S) S_is_set[key] = 1
12064 FS = ""
12065
12066 }
12067 {
12068 line = $ 0
12069 nfields = split(line, field, "@")
12070 substed = 0
12071 len = length(field[1])
12072 for (i = 2; i < nfields; i++) {
12073 key = field[i]
12074 keylen = length(key)
12075 if (S_is_set[key]) {
12076 value = S[key]
12077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12078 len += length(value) + length(field[++i])
12079 substed = 1
12080 } else
12081 len += 1 + keylen
12082 }
12083
12084 print line
12085 }
12086
12087 _ACAWK
12088 _ACEOF
12089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12090 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12091 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12092 else
12093 cat
12094 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12096 _ACEOF
12097
12098 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12099 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12100 # trailing colons and then remove the whole line if VPATH becomes empty
12101 # (actually we leave an empty line to preserve line numbers).
12102 if test "x$srcdir" = x.; then
12103 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12104 h
12105 s///
12106 s/^/:/
12107 s/[ ]*$/:/
12108 s/:\$(srcdir):/:/g
12109 s/:\${srcdir}:/:/g
12110 s/:@srcdir@:/:/g
12111 s/^:*//
12112 s/:*$//
12113 x
12114 s/\(=[ ]*\).*/\1/
12115 G
12116 s/\n//
12117 s/^[^=]*=[ ]*$//
12118 }'
12119 fi
12120
12121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12122 fi # test -n "$CONFIG_FILES"
12123
12124 # Set up the scripts for CONFIG_HEADERS section.
12125 # No need to generate them if there are no CONFIG_HEADERS.
12126 # This happens for instance with `./config.status Makefile'.
12127 if test -n "$CONFIG_HEADERS"; then
12128 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12129 BEGIN {
12130 _ACEOF
12131
12132 # Transform confdefs.h into an awk script `defines.awk', embedded as
12133 # here-document in config.status, that substitutes the proper values into
12134 # config.h.in to produce config.h.
12135
12136 # Create a delimiter string that does not exist in confdefs.h, to ease
12137 # handling of long lines.
12138 ac_delim='%!_!# '
12139 for ac_last_try in false false :; do
12140 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12141 if test -z "$ac_tt"; then
12142 break
12143 elif $ac_last_try; then
12144 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12145 else
12146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12147 fi
12148 done
12149
12150 # For the awk script, D is an array of macro values keyed by name,
12151 # likewise P contains macro parameters if any. Preserve backslash
12152 # newline sequences.
12153
12154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12155 sed -n '
12156 s/.\{148\}/&'"$ac_delim"'/g
12157 t rset
12158 :rset
12159 s/^[ ]*#[ ]*define[ ][ ]*/ /
12160 t def
12161 d
12162 :def
12163 s/\\$//
12164 t bsnl
12165 s/["\\]/\\&/g
12166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12167 D["\1"]=" \3"/p
12168 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12169 d
12170 :bsnl
12171 s/["\\]/\\&/g
12172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12173 D["\1"]=" \3\\\\\\n"\\/p
12174 t cont
12175 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12176 t cont
12177 d
12178 :cont
12179 n
12180 s/.\{148\}/&'"$ac_delim"'/g
12181 t clear
12182 :clear
12183 s/\\$//
12184 t bsnlc
12185 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12186 d
12187 :bsnlc
12188 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12189 b cont
12190 ' <confdefs.h | sed '
12191 s/'"$ac_delim"'/"\\\
12192 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12193
12194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195 for (key in D) D_is_set[key] = 1
12196 FS = ""
12197 }
12198 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12199 line = \$ 0
12200 split(line, arg, " ")
12201 if (arg[1] == "#") {
12202 defundef = arg[2]
12203 mac1 = arg[3]
12204 } else {
12205 defundef = substr(arg[1], 2)
12206 mac1 = arg[2]
12207 }
12208 split(mac1, mac2, "(") #)
12209 macro = mac2[1]
12210 prefix = substr(line, 1, index(line, defundef) - 1)
12211 if (D_is_set[macro]) {
12212 # Preserve the white space surrounding the "#".
12213 print prefix "define", macro P[macro] D[macro]
12214 next
12215 } else {
12216 # Replace #undef with comments. This is necessary, for example,
12217 # in the case of _POSIX_SOURCE, which is predefined and required
12218 # on some systems where configure will not decide to define it.
12219 if (defundef == "undef") {
12220 print "/*", prefix defundef, macro, "*/"
12221 next
12222 }
12223 }
12224 }
12225 { print }
12226 _ACAWK
12227 _ACEOF
12228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12229 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12230 fi # test -n "$CONFIG_HEADERS"
12231
12232
12233 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12234 shift
12235 for ac_tag
12236 do
12237 case $ac_tag in
12238 :[FHLC]) ac_mode=$ac_tag; continue;;
12239 esac
12240 case $ac_mode$ac_tag in
12241 :[FHL]*:*);;
12242 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12243 :[FH]-) ac_tag=-:-;;
12244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12245 esac
12246 ac_save_IFS=$IFS
12247 IFS=:
12248 set x $ac_tag
12249 IFS=$ac_save_IFS
12250 shift
12251 ac_file=$1
12252 shift
12253
12254 case $ac_mode in
12255 :L) ac_source=$1;;
12256 :[FH])
12257 ac_file_inputs=
12258 for ac_f
12259 do
12260 case $ac_f in
12261 -) ac_f="$ac_tmp/stdin";;
12262 *) # Look for the file first in the build tree, then in the source tree
12263 # (if the path is not absolute). The absolute path cannot be DOS-style,
12264 # because $ac_f cannot contain `:'.
12265 test -f "$ac_f" ||
12266 case $ac_f in
12267 [\\/$]*) false;;
12268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12269 esac ||
12270 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12271 esac
12272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12273 as_fn_append ac_file_inputs " '$ac_f'"
12274 done
12275
12276 # Let's still pretend it is `configure' which instantiates (i.e., don't
12277 # use $as_me), people would be surprised to read:
12278 # /* config.h. Generated by config.status. */
12279 configure_input='Generated from '`
12280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12281 `' by configure.'
12282 if test x"$ac_file" != x-; then
12283 configure_input="$ac_file. $configure_input"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12285 $as_echo "$as_me: creating $ac_file" >&6;}
12286 fi
12287 # Neutralize special characters interpreted by sed in replacement strings.
12288 case $configure_input in #(
12289 *\&* | *\|* | *\\* )
12290 ac_sed_conf_input=`$as_echo "$configure_input" |
12291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12292 *) ac_sed_conf_input=$configure_input;;
12293 esac
12294
12295 case $ac_tag in
12296 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12298 esac
12299 ;;
12300 esac
12301
12302 ac_dir=`$as_dirname -- "$ac_file" ||
12303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12304 X"$ac_file" : 'X\(//\)[^/]' \| \
12305 X"$ac_file" : 'X\(//\)$' \| \
12306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12307 $as_echo X"$ac_file" |
12308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12309 s//\1/
12310 q
12311 }
12312 /^X\(\/\/\)[^/].*/{
12313 s//\1/
12314 q
12315 }
12316 /^X\(\/\/\)$/{
12317 s//\1/
12318 q
12319 }
12320 /^X\(\/\).*/{
12321 s//\1/
12322 q
12323 }
12324 s/.*/./; q'`
12325 as_dir="$ac_dir"; as_fn_mkdir_p
12326 ac_builddir=.
12327
12328 case "$ac_dir" in
12329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12330 *)
12331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12332 # A ".." for each directory in $ac_dir_suffix.
12333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12334 case $ac_top_builddir_sub in
12335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12337 esac ;;
12338 esac
12339 ac_abs_top_builddir=$ac_pwd
12340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12341 # for backward compatibility:
12342 ac_top_builddir=$ac_top_build_prefix
12343
12344 case $srcdir in
12345 .) # We are building in place.
12346 ac_srcdir=.
12347 ac_top_srcdir=$ac_top_builddir_sub
12348 ac_abs_top_srcdir=$ac_pwd ;;
12349 [\\/]* | ?:[\\/]* ) # Absolute name.
12350 ac_srcdir=$srcdir$ac_dir_suffix;
12351 ac_top_srcdir=$srcdir
12352 ac_abs_top_srcdir=$srcdir ;;
12353 *) # Relative name.
12354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12355 ac_top_srcdir=$ac_top_build_prefix$srcdir
12356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12357 esac
12358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12359
12360
12361 case $ac_mode in
12362 :F)
12363 #
12364 # CONFIG_FILE
12365 #
12366
12367 case $INSTALL in
12368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12370 esac
12371 ac_MKDIR_P=$MKDIR_P
12372 case $MKDIR_P in
12373 [\\/$]* | ?:[\\/]* ) ;;
12374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12375 esac
12376 _ACEOF
12377
12378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12379 # If the template does not know about datarootdir, expand it.
12380 # FIXME: This hack should be removed a few years after 2.60.
12381 ac_datarootdir_hack=; ac_datarootdir_seen=
12382 ac_sed_dataroot='
12383 /datarootdir/ {
12384 p
12385 q
12386 }
12387 /@datadir@/p
12388 /@docdir@/p
12389 /@infodir@/p
12390 /@localedir@/p
12391 /@mandir@/p'
12392 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12393 *datarootdir*) ac_datarootdir_seen=yes;;
12394 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12396 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12397 _ACEOF
12398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12399 ac_datarootdir_hack='
12400 s&@datadir@&$datadir&g
12401 s&@docdir@&$docdir&g
12402 s&@infodir@&$infodir&g
12403 s&@localedir@&$localedir&g
12404 s&@mandir@&$mandir&g
12405 s&\\\${datarootdir}&$datarootdir&g' ;;
12406 esac
12407 _ACEOF
12408
12409 # Neutralize VPATH when `$srcdir' = `.'.
12410 # Shell code in configure.ac might set extrasub.
12411 # FIXME: do we really want to maintain this feature?
12412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12413 ac_sed_extra="$ac_vpsub
12414 $extrasub
12415 _ACEOF
12416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417 :t
12418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12419 s|@configure_input@|$ac_sed_conf_input|;t t
12420 s&@top_builddir@&$ac_top_builddir_sub&;t t
12421 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12422 s&@srcdir@&$ac_srcdir&;t t
12423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12424 s&@top_srcdir@&$ac_top_srcdir&;t t
12425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12426 s&@builddir@&$ac_builddir&;t t
12427 s&@abs_builddir@&$ac_abs_builddir&;t t
12428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12429 s&@INSTALL@&$ac_INSTALL&;t t
12430 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12431 $ac_datarootdir_hack
12432 "
12433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12434 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12435
12436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12437 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12439 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12441 which seems to be undefined. Please make sure it is defined" >&5
12442 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12443 which seems to be undefined. Please make sure it is defined" >&2;}
12444
12445 rm -f "$ac_tmp/stdin"
12446 case $ac_file in
12447 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12448 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12449 esac \
12450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12451 ;;
12452 :H)
12453 #
12454 # CONFIG_HEADER
12455 #
12456 if test x"$ac_file" != x-; then
12457 {
12458 $as_echo "/* $configure_input */" \
12459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12460 } >"$ac_tmp/config.h" \
12461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12462 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12464 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12465 else
12466 rm -f "$ac_file"
12467 mv "$ac_tmp/config.h" "$ac_file" \
12468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12469 fi
12470 else
12471 $as_echo "/* $configure_input */" \
12472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12473 || as_fn_error $? "could not create -" "$LINENO" 5
12474 fi
12475 # Compute "$ac_file"'s index in $config_headers.
12476 _am_arg="$ac_file"
12477 _am_stamp_count=1
12478 for _am_header in $config_headers :; do
12479 case $_am_header in
12480 $_am_arg | $_am_arg:* )
12481 break ;;
12482 * )
12483 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12484 esac
12485 done
12486 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12487 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$_am_arg" : 'X\(//\)[^/]' \| \
12489 X"$_am_arg" : 'X\(//\)$' \| \
12490 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12491 $as_echo X"$_am_arg" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`/stamp-h$_am_stamp_count
12509 ;;
12510
12511 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12512 $as_echo "$as_me: executing $ac_file commands" >&6;}
12513 ;;
12514 esac
12515
12516
12517 case $ac_file$ac_mode in
12518 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12519 # Older Autoconf quotes --file arguments for eval, but not when files
12520 # are listed without --file. Let's play safe and only enable the eval
12521 # if we detect the quoting.
12522 case $CONFIG_FILES in
12523 *\'*) eval set x "$CONFIG_FILES" ;;
12524 *) set x $CONFIG_FILES ;;
12525 esac
12526 shift
12527 for mf
12528 do
12529 # Strip MF so we end up with the name of the file.
12530 mf=`echo "$mf" | sed -e 's/:.*$//'`
12531 # Check whether this is an Automake generated Makefile or not.
12532 # We used to match only the files named 'Makefile.in', but
12533 # some people rename them; so instead we look at the file content.
12534 # Grep'ing the first line is not enough: some people post-process
12535 # each Makefile.in and add a new line on top of each file to say so.
12536 # Grep'ing the whole file is not good either: AIX grep has a line
12537 # limit of 2048, but all sed's we know have understand at least 4000.
12538 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12539 dirpart=`$as_dirname -- "$mf" ||
12540 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12541 X"$mf" : 'X\(//\)[^/]' \| \
12542 X"$mf" : 'X\(//\)$' \| \
12543 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12544 $as_echo X"$mf" |
12545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12546 s//\1/
12547 q
12548 }
12549 /^X\(\/\/\)[^/].*/{
12550 s//\1/
12551 q
12552 }
12553 /^X\(\/\/\)$/{
12554 s//\1/
12555 q
12556 }
12557 /^X\(\/\).*/{
12558 s//\1/
12559 q
12560 }
12561 s/.*/./; q'`
12562 else
12563 continue
12564 fi
12565 # Extract the definition of DEPDIR, am__include, and am__quote
12566 # from the Makefile without running 'make'.
12567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12568 test -z "$DEPDIR" && continue
12569 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12570 test -z "$am__include" && continue
12571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12572 # Find all dependency output files, they are included files with
12573 # $(DEPDIR) in their names. We invoke sed twice because it is the
12574 # simplest approach to changing $(DEPDIR) to its actual value in the
12575 # expansion.
12576 for file in `sed -n "
12577 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12578 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12579 # Make sure the directory exists.
12580 test -f "$dirpart/$file" && continue
12581 fdir=`$as_dirname -- "$file" ||
12582 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583 X"$file" : 'X\(//\)[^/]' \| \
12584 X"$file" : 'X\(//\)$' \| \
12585 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12586 $as_echo X"$file" |
12587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12588 s//\1/
12589 q
12590 }
12591 /^X\(\/\/\)[^/].*/{
12592 s//\1/
12593 q
12594 }
12595 /^X\(\/\/\)$/{
12596 s//\1/
12597 q
12598 }
12599 /^X\(\/\).*/{
12600 s//\1/
12601 q
12602 }
12603 s/.*/./; q'`
12604 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12605 # echo "creating $dirpart/$file"
12606 echo '# dummy' > "$dirpart/$file"
12607 done
12608 done
12609 }
12610 ;;
12611
12612 esac
12613 done # for ac_tag
12614
12615
12616 as_fn_exit 0
12617 _ACEOF
12618 ac_clean_files=$ac_clean_files_save
12619
12620 test $ac_write_fail = 0 ||
12621 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12622
12623
12624 # configure is writing to config.log, and then calls config.status.
12625 # config.status does its own redirection, appending to config.log.
12626 # Unfortunately, on DOS this fails, as config.log is still kept open
12627 # by configure, so config.status won't be able to write to it; its
12628 # output is simply discarded. So we exec the FD to /dev/null,
12629 # effectively closing config.log, so it can be properly (re)opened and
12630 # appended to by config.status. When coming back to configure, we
12631 # need to make the FD available again.
12632 if test "$no_create" != yes; then
12633 ac_cs_success=:
12634 ac_config_status_args=
12635 test "$silent" = yes &&
12636 ac_config_status_args="$ac_config_status_args --quiet"
12637 exec 5>/dev/null
12638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12639 exec 5>>config.log
12640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12641 # would make configure fail if this is the last instruction.
12642 $ac_cs_success || as_fn_exit 1
12643 fi
12644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12647 fi
12648
12649