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 twm 1.0.10.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='twm'
583 PACKAGE_TARNAME='twm'
584 PACKAGE_VERSION='1.0.10'
585 PACKAGE_STRING='twm 1.0.10'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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 TWM_LIBS
631 TWM_CFLAGS
632 LEXLIB
633 LEX_OUTPUT_ROOT
634 LEX
635 YACC_INST
636 YFLAGS
637 YACC
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 AM_BACKSLASH
670 AM_DEFAULT_VERBOSITY
671 AM_DEFAULT_V
672 AM_V
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 EGREP
707 GREP
708 CPP
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
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_dependency_tracking
758 enable_silent_rules
759 enable_selective_werror
760 enable_strict_compilation
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 YACC
775 YFLAGS
776 TWM_CFLAGS
777 TWM_LIBS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures twm 1.0.10 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/twm]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of twm 1.0.10:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-dependency-tracking
1397 do not reject slow dependency extractors
1398 --disable-dependency-tracking
1399 speeds up one-time build
1400 --enable-silent-rules less verbose build output (undo: "make V=1")
1401 --disable-silent-rules verbose build output (undo: "make V=0")
1402 --disable-selective-werror
1403 Turn off selective compiler errors. (default:
1404 enabled)
1405 --enable-strict-compilation
1406 Enable all warnings from compiler and make them
1407 errors (default: disabled)
1408
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CPP C preprocessor
1418 PKG_CONFIG path to pkg-config utility
1419 PKG_CONFIG_PATH
1420 directories to add to pkg-config's search path
1421 PKG_CONFIG_LIBDIR
1422 path overriding pkg-config's built-in search path
1423 YACC The `Yet Another Compiler Compiler' implementation to use.
1424 Defaults to the first program found out of: `bison -y', `byacc',
1425 `yacc'.
1426 YFLAGS The list of arguments that will be passed by default to $YACC.
1427 This script will default YFLAGS to the empty string to avoid a
1428 default value of `-d' given by some make applications.
1429 TWM_CFLAGS C compiler flags for TWM, overriding pkg-config
1430 TWM_LIBS linker flags for TWM, overriding pkg-config
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 twm configure 1.0.10
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_cpp LINENO
1551 # ----------------------
1552 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_cpp ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if { { ac_try="$ac_cpp conftest.$ac_ext"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } > conftest.i && {
1572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581 fi
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 as_fn_set_status $ac_retval
1584
1585 } # ac_fn_c_try_cpp
1586
1587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1588 # -------------------------------------------------------
1589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1590 # the include files in INCLUDES and setting the cache variable VAR
1591 # accordingly.
1592 ac_fn_c_check_header_mongrel ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if eval \${$3+:} false; then :
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if eval \${$3+:} false; then :
1599 $as_echo_n "(cached) " >&6
1600 fi
1601 eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 else
1605 # Is the header compilable?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1607 $as_echo_n "checking $2 usability... " >&6; }
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 ac_header_compiler=yes
1615 else
1616 ac_header_compiler=no
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1620 $as_echo "$ac_header_compiler" >&6; }
1621
1622 # Is the header present?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1624 $as_echo_n "checking $2 presence... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_cpp "$LINENO"; then :
1630 ac_header_preproc=yes
1631 else
1632 ac_header_preproc=no
1633 fi
1634 rm -f conftest.err conftest.i conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1636 $as_echo "$ac_header_preproc" >&6; }
1637
1638 # So? What about this header?
1639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1640 yes:no: )
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 ;;
1646 no:yes:* )
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1650 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1654 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 ( $as_echo "## ---------------------------------------------------------------------- ##
1658 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1659 ## ---------------------------------------------------------------------- ##"
1660 ) | sed "s/^/$as_me: WARNING: /" >&2
1661 ;;
1662 esac
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 eval "$3=\$ac_header_compiler"
1669 fi
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_mongrel
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 eval "$3=yes"
1739 else
1740 eval "$3=no"
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1752 # ---------------------------------------------
1753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_decl ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 as_decl_name=`echo $2|sed 's/ *(.*//'`
1759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 int
1769 main ()
1770 {
1771 #ifndef $as_decl_name
1772 #ifdef __cplusplus
1773 (void) $as_decl_use;
1774 #else
1775 (void) $as_decl_name;
1776 #endif
1777 #endif
1778
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_decl
1796
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_link ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_link
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1859
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1864
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1870
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main ()
1889 {
1890 return $2 ();
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_func
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1912
1913 It was created by twm $as_me 1.0.10, which was
1914 generated by GNU Autoconf 2.69. Invocation command line was
1915
1916 $ $0 $@
1917
1918 _ACEOF
1919 exec 5>>config.log
1920 {
1921 cat <<_ASUNAME
1922 ## --------- ##
1923 ## Platform. ##
1924 ## --------- ##
1925
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942
1943 _ASUNAME
1944
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 $as_echo "PATH: $as_dir"
1951 done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977 for ac_arg
1978 do
1979 case $ac_arg in
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1983 continue ;;
1984 *\'*)
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 case $ac_pass in
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 2)
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1993 else
1994 case $ac_arg in
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 esac
2002 ;;
2003 -* ) ac_must_keep_next=true ;;
2004 esac
2005 fi
2006 as_fn_append ac_configure_args " '$ac_arg'"
2007 ;;
2008 esac
2009 done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Save into config.log some information that might help in debugging.
2021 {
2022 echo
2023
2024 $as_echo "## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##"
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
2029 (
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
2045 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2048 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
2052 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;;
2055 esac |
2056 sort
2057 )
2058 echo
2059
2060 $as_echo "## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##"
2063 echo
2064 for ac_var in $ac_subst_vars
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 $as_echo "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073
2074 if test -n "$ac_subst_files"; then
2075 $as_echo "## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##"
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 $as_echo "## ----------- ##
2092 ## confdefs.h. ##
2093 ## ----------- ##"
2094 echo
2095 cat confdefs.h
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2101 } >&5
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 exit $exit_status
2105 ' 0
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108 done
2109 ac_signal=0
2110
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2113
2114 $as_echo "/* confdefs.h */" > confdefs.h
2115
2116 # Predefined preprocessor variables.
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2140 _ACEOF
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 ac_site_file1=NONE
2146 ac_site_file2=NONE
2147 if test -n "$CONFIG_SITE"; then
2148 # We do not want a PATH search for config.site.
2149 case $CONFIG_SITE in #((
2150 -*) ac_site_file1=./$CONFIG_SITE;;
2151 */*) ac_site_file1=$CONFIG_SITE;;
2152 *) ac_site_file1=./$CONFIG_SITE;;
2153 esac
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2160 fi
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 do
2163 test "x$ac_site_file" = xNONE && continue
2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file" \
2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173 fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191 fi
2192
2193 # Check that the precious variables saved in the cache have kept the same
2194 # value.
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2211 *)
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2241 fi
2242 done
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 fi
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2253
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262 ac_config_headers="$ac_config_headers config.h"
2263
2264 ac_aux_dir=
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 if test -f "$ac_dir/install-sh"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/install-sh -c"
2269 break
2270 elif test -f "$ac_dir/install.sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install.sh -c"
2273 break
2274 elif test -f "$ac_dir/shtool"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/shtool install -c"
2277 break
2278 fi
2279 done
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
2292
2293 # Expand $ac_aux_dir to an absolute path.
2294 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305 $as_echo_n "checking for $ac_word... " >&6; }
2306 if ${ac_cv_prog_CC+:} false; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2332 $as_echo "$CC" >&6; }
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335 $as_echo "no" >&6; }
2336 fi
2337
2338
2339 fi
2340 if test -z "$ac_cv_prog_CC"; then
2341 ac_ct_CC=$CC
2342 # Extract the first word of "gcc", so it can be a program name with args.
2343 set dummy gcc; ac_word=$2
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345 $as_echo_n "checking for $ac_word... " >&6; }
2346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test -n "$ac_ct_CC"; then
2350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359 ac_cv_prog_ac_ct_CC="gcc"
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370 if test -n "$ac_ct_CC"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2372 $as_echo "$ac_ct_CC" >&6; }
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375 $as_echo "no" >&6; }
2376 fi
2377
2378 if test "x$ac_ct_CC" = x; then
2379 CC=""
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382 yes:)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 CC=$ac_ct_CC
2388 fi
2389 else
2390 CC="$ac_cv_prog_CC"
2391 fi
2392
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}cc; ac_word=$2
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398 $as_echo_n "checking for $ac_word... " >&6; }
2399 if ${ac_cv_prog_CC+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CC="${ac_tool_prefix}cc"
2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2425 $as_echo "$CC" >&6; }
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428 $as_echo "no" >&6; }
2429 fi
2430
2431
2432 fi
2433 fi
2434 if test -z "$CC"; then
2435 # Extract the first word of "cc", so it can be a program name with args.
2436 set dummy cc; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_CC+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 ac_prog_rejected=no
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2454 ac_prog_rejected=yes
2455 continue
2456 fi
2457 ac_cv_prog_CC="cc"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 if test $ac_prog_rejected = yes; then
2466 # We found a bogon in the path, so make sure we never use it.
2467 set dummy $ac_cv_prog_CC
2468 shift
2469 if test $# != 0; then
2470 # We chose a different compiler from the bogus one.
2471 # However, it has the same basename, so the bogon will be chosen
2472 # first if we set CC to just the basename; use the full file name.
2473 shift
2474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2475 fi
2476 fi
2477 fi
2478 fi
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2482 $as_echo "$CC" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 for ac_prog in cl.exe
2493 do
2494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if ${ac_cv_prog_CC+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2524 $as_echo "$CC" >&6; }
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530
2531 test -n "$CC" && break
2532 done
2533 fi
2534 if test -z "$CC"; then
2535 ac_ct_CC=$CC
2536 for ac_prog in cl.exe
2537 do
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_CC="$ac_prog"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2568 $as_echo "$ac_ct_CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 test -n "$ac_ct_CC" && break
2576 done
2577
2578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582 yes:)
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2585 ac_tool_warned=yes ;;
2586 esac
2587 CC=$ac_ct_CC
2588 fi
2589 fi
2590
2591 fi
2592
2593
2594 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "no acceptable C compiler found in \$PATH
2597 See \`config.log' for more details" "$LINENO" 5; }
2598
2599 # Provide some information about the compiler.
2600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2601 set X $ac_compile
2602 ac_compiler=$2
2603 for ac_option in --version -v -V -qversion; do
2604 { { ac_try="$ac_compiler $ac_option >&5"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 sed '10a\
2615 ... rest of stderr output deleted ...
2616 10q' conftest.err >conftest.er1
2617 cat conftest.er1 >&5
2618 fi
2619 rm -f conftest.er1 conftest.err
2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; }
2622 done
2623
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2626
2627 int
2628 main ()
2629 {
2630
2631 ;
2632 return 0;
2633 }
2634 _ACEOF
2635 ac_clean_files_save=$ac_clean_files
2636 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2637 # Try to create an executable without -o first, disregard a.out.
2638 # It will help us diagnose broken compilers, and finding out an intuition
2639 # of exeext.
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2641 $as_echo_n "checking whether the C compiler works... " >&6; }
2642 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2643
2644 # The possible output files:
2645 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2646
2647 ac_rmfiles=
2648 for ac_file in $ac_files
2649 do
2650 case $ac_file in
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2653 esac
2654 done
2655 rm -f $ac_rmfiles
2656
2657 if { { ac_try="$ac_link_default"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_link_default") 2>&5
2665 ac_status=$?
2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; }; then :
2668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2669 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2670 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2671 # so that the user can short-circuit this test for compilers unknown to
2672 # Autoconf.
2673 for ac_file in $ac_files ''
2674 do
2675 test -f "$ac_file" || continue
2676 case $ac_file in
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2678 ;;
2679 [ab].out )
2680 # We found the default executable, but exeext='' is most
2681 # certainly right.
2682 break;;
2683 *.* )
2684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2685 then :; else
2686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2687 fi
2688 # We set ac_cv_exeext here because the later test for it is not
2689 # safe: cross compilers may not add the suffix if given an `-o'
2690 # argument, so we may need to know it at that point already.
2691 # Even if this section looks crufty: it has the advantage of
2692 # actually working.
2693 break;;
2694 * )
2695 break;;
2696 esac
2697 done
2698 test "$ac_cv_exeext" = no && ac_cv_exeext=
2699
2700 else
2701 ac_file=''
2702 fi
2703 if test -z "$ac_file"; then :
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 as_fn_error 77 "C compiler cannot create executables
2712 See \`config.log' for more details" "$LINENO" 5; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2718 $as_echo_n "checking for C compiler default output file name... " >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2720 $as_echo "$ac_file" >&6; }
2721 ac_exeext=$ac_cv_exeext
2722
2723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2724 ac_clean_files=$ac_clean_files_save
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2726 $as_echo_n "checking for suffix of executables... " >&6; }
2727 if { { ac_try="$ac_link"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734 (eval "$ac_link") 2>&5
2735 ac_status=$?
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; }; then :
2738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2740 # work properly (i.e., refer to `conftest.exe'), while it won't with
2741 # `rm'.
2742 for ac_file in conftest.exe conftest conftest.*; do
2743 test -f "$ac_file" || continue
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 break;;
2748 * ) break;;
2749 esac
2750 done
2751 else
2752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2755 See \`config.log' for more details" "$LINENO" 5; }
2756 fi
2757 rm -f conftest conftest$ac_cv_exeext
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2759 $as_echo "$ac_cv_exeext" >&6; }
2760
2761 rm -f conftest.$ac_ext
2762 EXEEXT=$ac_cv_exeext
2763 ac_exeext=$EXEEXT
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 #include <stdio.h>
2767 int
2768 main ()
2769 {
2770 FILE *f = fopen ("conftest.out", "w");
2771 return ferror (f) || fclose (f) != 0;
2772
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 ac_clean_files="$ac_clean_files conftest.out"
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2781 $as_echo_n "checking whether we are cross compiling... " >&6; }
2782 if test "$cross_compiling" != yes; then
2783 { { ac_try="$ac_link"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_link") 2>&5
2791 ac_status=$?
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; }
2794 if { ac_try='./conftest$ac_cv_exeext'
2795 { { case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_try") 2>&5
2802 ac_status=$?
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; }; then
2805 cross_compiling=no
2806 else
2807 if test "$cross_compiling" = maybe; then
2808 cross_compiling=yes
2809 else
2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error $? "cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details" "$LINENO" 5; }
2815 fi
2816 fi
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2819 $as_echo "$cross_compiling" >&6; }
2820
2821 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2822 ac_clean_files=$ac_clean_files_save
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2824 $as_echo_n "checking for suffix of object files... " >&6; }
2825 if ${ac_cv_objext+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2830
2831 int
2832 main ()
2833 {
2834
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.o conftest.obj
2840 if { { ac_try="$ac_compile"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compile") 2>&5
2848 ac_status=$?
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }; then :
2851 for ac_file in conftest.o conftest.obj conftest.*; do
2852 test -f "$ac_file" || continue;
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 break;;
2857 esac
2858 done
2859 else
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error $? "cannot compute suffix of object files: cannot compile
2866 See \`config.log' for more details" "$LINENO" 5; }
2867 fi
2868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2871 $as_echo "$ac_cv_objext" >&6; }
2872 OBJEXT=$ac_cv_objext
2873 ac_objext=$OBJEXT
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2876 if ${ac_cv_c_compiler_gnu+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2881
2882 int
2883 main ()
2884 {
2885 #ifndef __GNUC__
2886 choke me
2887 #endif
2888
2889 ;
2890 return 0;
2891 }
2892 _ACEOF
2893 if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_compiler_gnu=yes
2895 else
2896 ac_compiler_gnu=no
2897 fi
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2900
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2904 if test $ac_compiler_gnu = yes; then
2905 GCC=yes
2906 else
2907 GCC=
2908 fi
2909 ac_test_CFLAGS=${CFLAGS+set}
2910 ac_save_CFLAGS=$CFLAGS
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2913 if ${ac_cv_prog_cc_g+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 ac_save_c_werror_flag=$ac_c_werror_flag
2917 ac_c_werror_flag=yes
2918 ac_cv_prog_cc_g=no
2919 CFLAGS="-g"
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922
2923 int
2924 main ()
2925 {
2926
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 if ac_fn_c_try_compile "$LINENO"; then :
2932 ac_cv_prog_cc_g=yes
2933 else
2934 CFLAGS=""
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 if ac_fn_c_try_compile "$LINENO"; then :
2947
2948 else
2949 ac_c_werror_flag=$ac_save_c_werror_flag
2950 CFLAGS="-g"
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 if ac_fn_c_try_compile "$LINENO"; then :
2963 ac_cv_prog_cc_g=yes
2964 fi
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 fi
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 fi
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_c_werror_flag=$ac_save_c_werror_flag
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2973 $as_echo "$ac_cv_prog_cc_g" >&6; }
2974 if test "$ac_test_CFLAGS" = set; then
2975 CFLAGS=$ac_save_CFLAGS
2976 elif test $ac_cv_prog_cc_g = yes; then
2977 if test "$GCC" = yes; then
2978 CFLAGS="-g -O2"
2979 else
2980 CFLAGS="-g"
2981 fi
2982 else
2983 if test "$GCC" = yes; then
2984 CFLAGS="-O2"
2985 else
2986 CFLAGS=
2987 fi
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2991 if ${ac_cv_prog_cc_c89+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 ac_cv_prog_cc_c89=no
2995 ac_save_CC=$CC
2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
2998 #include <stdarg.h>
2999 #include <stdio.h>
3000 struct stat;
3001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3002 struct buf { int x; };
3003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004 static char *e (p, i)
3005 char **p;
3006 int i;
3007 {
3008 return p[i];
3009 }
3010 static char *f (char * (*g) (char **, int), char **p, ...)
3011 {
3012 char *s;
3013 va_list v;
3014 va_start (v,p);
3015 s = g (p, va_arg (v,int));
3016 va_end (v);
3017 return s;
3018 }
3019
3020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3021 function prototypes and stuff, but not '\xHH' hex character constants.
3022 These don't provoke an error unfortunately, instead are silently treated
3023 as 'x'. The following induces an error, until -std is added to get
3024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3025 array size at least. It's necessary to write '\x00'==0 to get something
3026 that's true only with -std. */
3027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3028
3029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3030 inside strings and character constants. */
3031 #define FOO(x) 'x'
3032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3033
3034 int test (int i, double x);
3035 struct s1 {int (*f) (int a);};
3036 struct s2 {int (*f) (double a);};
3037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3038 int argc;
3039 char **argv;
3040 int
3041 main ()
3042 {
3043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 do
3051 CC="$ac_save_CC $ac_arg"
3052 if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_cv_prog_cc_c89=$ac_arg
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext
3056 test "x$ac_cv_prog_cc_c89" != "xno" && break
3057 done
3058 rm -f conftest.$ac_ext
3059 CC=$ac_save_CC
3060
3061 fi
3062 # AC_CACHE_VAL
3063 case "x$ac_cv_prog_cc_c89" in
3064 x)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3066 $as_echo "none needed" >&6; } ;;
3067 xno)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3069 $as_echo "unsupported" >&6; } ;;
3070 *)
3071 CC="$CC $ac_cv_prog_cc_c89"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3074 esac
3075 if test "x$ac_cv_prog_cc_c89" != xno; then :
3076
3077 fi
3078
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3091 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3092 if ${am_cv_prog_cc_c_o+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3097
3098 int
3099 main ()
3100 {
3101
3102 ;
3103 return 0;
3104 }
3105 _ACEOF
3106 # Make sure it works both with $CC and with simple cc.
3107 # Following AC_PROG_CC_C_O, we do the test twice because some
3108 # compilers refuse to overwrite an existing .o file with -o,
3109 # though they will create one.
3110 am_cv_prog_cc_c_o=yes
3111 for am_i in 1 2; do
3112 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3113 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } \
3117 && test -f conftest2.$ac_objext; then
3118 : OK
3119 else
3120 am_cv_prog_cc_c_o=no
3121 break
3122 fi
3123 done
3124 rm -f core conftest*
3125 unset am_i
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3128 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3129 if test "$am_cv_prog_cc_c_o" != yes; then
3130 # Losing compiler, so override with the script.
3131 # FIXME: It is wrong to rewrite CC.
3132 # But if we don't then we get into trouble of one sort or another.
3133 # A longer-term fix would be to have automake use am__CC in this case,
3134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3135 CC="$am_aux_dir/compile $CC"
3136 fi
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3151 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3152 # On Suns, sometimes $CPP names a directory.
3153 if test -n "$CPP" && test -d "$CPP"; then
3154 CPP=
3155 fi
3156 if test -z "$CPP"; then
3157 if ${ac_cv_prog_CPP+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 # Double quotes because CPP needs to be expanded
3161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162 do
3163 ac_preproc_ok=false
3164 for ac_c_preproc_warn_flag in '' yes
3165 do
3166 # Use a header file that comes with gcc, so configuring glibc
3167 # with a fresh cross-compiler works.
3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169 # <limits.h> exists even on freestanding compilers.
3170 # On the NeXT, cc -E runs the code through the compiler's parser,
3171 # not just through cpp. "Syntax error" is here to catch this case.
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174 #ifdef __STDC__
3175 # include <limits.h>
3176 #else
3177 # include <assert.h>
3178 #endif
3179 Syntax error
3180 _ACEOF
3181 if ac_fn_c_try_cpp "$LINENO"; then :
3182
3183 else
3184 # Broken: fails on valid input.
3185 continue
3186 fi
3187 rm -f conftest.err conftest.i conftest.$ac_ext
3188
3189 # OK, works on sane cases. Now check whether nonexistent headers
3190 # can be detected and how.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193 #include <ac_nonexistent.h>
3194 _ACEOF
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3196 # Broken: success on invalid input.
3197 continue
3198 else
3199 # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.i conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.i conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then :
3209 break
3210 fi
3211
3212 done
3213 ac_cv_prog_CPP=$CPP
3214
3215 fi
3216 CPP=$ac_cv_prog_CPP
3217 else
3218 ac_cv_prog_CPP=$CPP
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3221 $as_echo "$CPP" >&6; }
3222 ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3224 do
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #ifdef __STDC__
3234 # include <limits.h>
3235 #else
3236 # include <assert.h>
3237 #endif
3238 Syntax error
3239 _ACEOF
3240 if ac_fn_c_try_cpp "$LINENO"; then :
3241
3242 else
3243 # Broken: fails on valid input.
3244 continue
3245 fi
3246 rm -f conftest.err conftest.i conftest.$ac_ext
3247
3248 # OK, works on sane cases. Now check whether nonexistent headers
3249 # can be detected and how.
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <ac_nonexistent.h>
3253 _ACEOF
3254 if ac_fn_c_try_cpp "$LINENO"; then :
3255 # Broken: success on invalid input.
3256 continue
3257 else
3258 # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3261 fi
3262 rm -f conftest.err conftest.i conftest.$ac_ext
3263
3264 done
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.i conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then :
3268
3269 else
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 fi
3275
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3284 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3285 if ${ac_cv_path_GREP+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -z "$GREP"; then
3289 ac_path_GREP_found=false
3290 # Loop through the user's path and test for each of PROGNAME-LIST
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_prog in grep ggrep; do
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3299 as_fn_executable_p "$ac_path_GREP" || continue
3300 # Check for GNU ac_path_GREP and select it if it is found.
3301 # Check for GNU $ac_path_GREP
3302 case `"$ac_path_GREP" --version 2>&1` in
3303 *GNU*)
3304 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3305 *)
3306 ac_count=0
3307 $as_echo_n 0123456789 >"conftest.in"
3308 while :
3309 do
3310 cat "conftest.in" "conftest.in" >"conftest.tmp"
3311 mv "conftest.tmp" "conftest.in"
3312 cp "conftest.in" "conftest.nl"
3313 $as_echo 'GREP' >> "conftest.nl"
3314 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3316 as_fn_arith $ac_count + 1 && ac_count=$as_val
3317 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3318 # Best one so far, save it but keep looking for a better one
3319 ac_cv_path_GREP="$ac_path_GREP"
3320 ac_path_GREP_max=$ac_count
3321 fi
3322 # 10*(2^10) chars as input seems more than enough
3323 test $ac_count -gt 10 && break
3324 done
3325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3326 esac
3327
3328 $ac_path_GREP_found && break 3
3329 done
3330 done
3331 done
3332 IFS=$as_save_IFS
3333 if test -z "$ac_cv_path_GREP"; then
3334 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3335 fi
3336 else
3337 ac_cv_path_GREP=$GREP
3338 fi
3339
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3342 $as_echo "$ac_cv_path_GREP" >&6; }
3343 GREP="$ac_cv_path_GREP"
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3347 $as_echo_n "checking for egrep... " >&6; }
3348 if ${ac_cv_path_EGREP+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3352 then ac_cv_path_EGREP="$GREP -E"
3353 else
3354 if test -z "$EGREP"; then
3355 ac_path_EGREP_found=false
3356 # Loop through the user's path and test for each of PROGNAME-LIST
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_prog in egrep; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3365 as_fn_executable_p "$ac_path_EGREP" || continue
3366 # Check for GNU ac_path_EGREP and select it if it is found.
3367 # Check for GNU $ac_path_EGREP
3368 case `"$ac_path_EGREP" --version 2>&1` in
3369 *GNU*)
3370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3371 *)
3372 ac_count=0
3373 $as_echo_n 0123456789 >"conftest.in"
3374 while :
3375 do
3376 cat "conftest.in" "conftest.in" >"conftest.tmp"
3377 mv "conftest.tmp" "conftest.in"
3378 cp "conftest.in" "conftest.nl"
3379 $as_echo 'EGREP' >> "conftest.nl"
3380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382 as_fn_arith $ac_count + 1 && ac_count=$as_val
3383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3384 # Best one so far, save it but keep looking for a better one
3385 ac_cv_path_EGREP="$ac_path_EGREP"
3386 ac_path_EGREP_max=$ac_count
3387 fi
3388 # 10*(2^10) chars as input seems more than enough
3389 test $ac_count -gt 10 && break
3390 done
3391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3392 esac
3393
3394 $ac_path_EGREP_found && break 3
3395 done
3396 done
3397 done
3398 IFS=$as_save_IFS
3399 if test -z "$ac_cv_path_EGREP"; then
3400 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3401 fi
3402 else
3403 ac_cv_path_EGREP=$EGREP
3404 fi
3405
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3409 $as_echo "$ac_cv_path_EGREP" >&6; }
3410 EGREP="$ac_cv_path_EGREP"
3411
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3414 $as_echo_n "checking for ANSI C header files... " >&6; }
3415 if ${ac_cv_header_stdc+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <stdlib.h>
3421 #include <stdarg.h>
3422 #include <string.h>
3423 #include <float.h>
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_header_stdc=yes
3435 else
3436 ac_cv_header_stdc=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439
3440 if test $ac_cv_header_stdc = yes; then
3441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #include <string.h>
3445
3446 _ACEOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 $EGREP "memchr" >/dev/null 2>&1; then :
3449
3450 else
3451 ac_cv_header_stdc=no
3452 fi
3453 rm -f conftest*
3454
3455 fi
3456
3457 if test $ac_cv_header_stdc = yes; then
3458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <stdlib.h>
3462
3463 _ACEOF
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 $EGREP "free" >/dev/null 2>&1; then :
3466
3467 else
3468 ac_cv_header_stdc=no
3469 fi
3470 rm -f conftest*
3471
3472 fi
3473
3474 if test $ac_cv_header_stdc = yes; then
3475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3476 if test "$cross_compiling" = yes; then :
3477 :
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <ctype.h>
3482 #include <stdlib.h>
3483 #if ((' ' & 0x0FF) == 0x020)
3484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3486 #else
3487 # define ISLOWER(c) \
3488 (('a' <= (c) && (c) <= 'i') \
3489 || ('j' <= (c) && (c) <= 'r') \
3490 || ('s' <= (c) && (c) <= 'z'))
3491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3492 #endif
3493
3494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3495 int
3496 main ()
3497 {
3498 int i;
3499 for (i = 0; i < 256; i++)
3500 if (XOR (islower (i), ISLOWER (i))
3501 || toupper (i) != TOUPPER (i))
3502 return 2;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_run "$LINENO"; then :
3507
3508 else
3509 ac_cv_header_stdc=no
3510 fi
3511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3512 conftest.$ac_objext conftest.beam conftest.$ac_ext
3513 fi
3514
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3518 $as_echo "$ac_cv_header_stdc" >&6; }
3519 if test $ac_cv_header_stdc = yes; then
3520
3521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3522
3523 fi
3524
3525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3527 inttypes.h stdint.h unistd.h
3528 do :
3529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3531 "
3532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3533 cat >>confdefs.h <<_ACEOF
3534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3535 _ACEOF
3536
3537 fi
3538
3539 done
3540
3541
3542
3543 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3544 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3545 MINIX=yes
3546 else
3547 MINIX=
3548 fi
3549
3550
3551 if test "$MINIX" = yes; then
3552
3553 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3554
3555
3556 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3557
3558
3559 $as_echo "#define _MINIX 1" >>confdefs.h
3560
3561 fi
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3565 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3566 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571
3572 # define __EXTENSIONS__ 1
3573 $ac_includes_default
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_safe_to_define___extensions__=yes
3584 else
3585 ac_cv_safe_to_define___extensions__=no
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3590 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3591 test $ac_cv_safe_to_define___extensions__ = yes &&
3592 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3593
3594 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3595
3596 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3597
3598 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3599
3600 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3601
3602
3603
3604 # Initialize Automake
3605 am__api_version='1.15'
3606
3607 # Find a good install program. We prefer a C program (faster),
3608 # so one script is as good as another. But avoid the broken or
3609 # incompatible versions:
3610 # SysV /etc/install, /usr/sbin/install
3611 # SunOS /usr/etc/install
3612 # IRIX /sbin/install
3613 # AIX /bin/install
3614 # AmigaOS /C/install, which installs bootblocks on floppy discs
3615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3618 # OS/2's system install, which has a completely different semantic
3619 # ./install, which can be erroneously created by make from ./install.sh.
3620 # Reject install programs that cannot install multiple files.
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3622 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3623 if test -z "$INSTALL"; then
3624 if ${ac_cv_path_install+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 # Account for people who put trailing slashes in PATH elements.
3633 case $as_dir/ in #((
3634 ./ | .// | /[cC]/* | \
3635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3637 /usr/ucb/* ) ;;
3638 *)
3639 # OSF1 and SCO ODT 3.0 have their own names for install.
3640 # Don't use installbsd from OSF since it installs stuff as root
3641 # by default.
3642 for ac_prog in ginstall scoinst install; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3645 if test $ac_prog = install &&
3646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3647 # AIX install. It has an incompatible calling convention.
3648 :
3649 elif test $ac_prog = install &&
3650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # program-specific install script used by HP pwplus--don't use.
3652 :
3653 else
3654 rm -rf conftest.one conftest.two conftest.dir
3655 echo one > conftest.one
3656 echo two > conftest.two
3657 mkdir conftest.dir
3658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3659 test -s conftest.one && test -s conftest.two &&
3660 test -s conftest.dir/conftest.one &&
3661 test -s conftest.dir/conftest.two
3662 then
3663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3664 break 3
3665 fi
3666 fi
3667 fi
3668 done
3669 done
3670 ;;
3671 esac
3672
3673 done
3674 IFS=$as_save_IFS
3675
3676 rm -rf conftest.one conftest.two conftest.dir
3677
3678 fi
3679 if test "${ac_cv_path_install+set}" = set; then
3680 INSTALL=$ac_cv_path_install
3681 else
3682 # As a last resort, use the slow shell script. Don't cache a
3683 # value for INSTALL within a source directory, because that will
3684 # break other packages using the cache if that directory is
3685 # removed, or if the value is a relative name.
3686 INSTALL=$ac_install_sh
3687 fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3690 $as_echo "$INSTALL" >&6; }
3691
3692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3693 # It thinks the first close brace ends the variable substitution.
3694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3695
3696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3697
3698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3701 $as_echo_n "checking whether build environment is sane... " >&6; }
3702 # Reject unsafe characters in $srcdir or the absolute working directory
3703 # name. Accept space and tab only in the latter.
3704 am_lf='
3705 '
3706 case `pwd` in
3707 *[\\\"\#\$\&\'\`$am_lf]*)
3708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3709 esac
3710 case $srcdir in
3711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3713 esac
3714
3715 # Do 'set' in a subshell so we don't clobber the current shell's
3716 # arguments. Must try -L first in case configure is actually a
3717 # symlink; some systems play weird games with the mod time of symlinks
3718 # (eg FreeBSD returns the mod time of the symlink's containing
3719 # directory).
3720 if (
3721 am_has_slept=no
3722 for am_try in 1 2; do
3723 echo "timestamp, slept: $am_has_slept" > conftest.file
3724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3725 if test "$*" = "X"; then
3726 # -L didn't work.
3727 set X `ls -t "$srcdir/configure" conftest.file`
3728 fi
3729 if test "$*" != "X $srcdir/configure conftest.file" \
3730 && test "$*" != "X conftest.file $srcdir/configure"; then
3731
3732 # If neither matched, then we have a broken ls. This can happen
3733 # if, for instance, CONFIG_SHELL is bash and it inherits a
3734 # broken ls alias from the environment. This has actually
3735 # happened. Such a system could not be considered "sane".
3736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3737 alias in your environment" "$LINENO" 5
3738 fi
3739 if test "$2" = conftest.file || test $am_try -eq 2; then
3740 break
3741 fi
3742 # Just in case.
3743 sleep 1
3744 am_has_slept=yes
3745 done
3746 test "$2" = conftest.file
3747 )
3748 then
3749 # Ok.
3750 :
3751 else
3752 as_fn_error $? "newly created file is older than distributed files!
3753 Check your system clock" "$LINENO" 5
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756 $as_echo "yes" >&6; }
3757 # If we didn't sleep, we still need to ensure time stamps of config.status and
3758 # generated files are strictly newer.
3759 am_sleep_pid=
3760 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3761 ( sleep 1 ) &
3762 am_sleep_pid=$!
3763 fi
3764
3765 rm -f conftest.file
3766
3767 test "$program_prefix" != NONE &&
3768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3769 # Use a double $ so make ignores it.
3770 test "$program_suffix" != NONE &&
3771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3772 # Double any \ or $.
3773 # By default was `s,x,x', remove it if useless.
3774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3775 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3776
3777 if test x"${MISSING+set}" != xset; then
3778 case $am_aux_dir in
3779 *\ * | *\ *)
3780 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3781 *)
3782 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3783 esac
3784 fi
3785 # Use eval to expand $SHELL
3786 if eval "$MISSING --is-lightweight"; then
3787 am_missing_run="$MISSING "
3788 else
3789 am_missing_run=
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3791 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3792 fi
3793
3794 if test x"${install_sh+set}" != xset; then
3795 case $am_aux_dir in
3796 *\ * | *\ *)
3797 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3798 *)
3799 install_sh="\${SHELL} $am_aux_dir/install-sh"
3800 esac
3801 fi
3802
3803 # Installed binaries are usually stripped using 'strip' when the user
3804 # run "make install-strip". However 'strip' might not be the right
3805 # tool to use in cross-compilation environments, therefore Automake
3806 # will honor the 'STRIP' environment variable to overrule this program.
3807 if test "$cross_compiling" != no; then
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}strip; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_STRIP+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 if test -n "$STRIP"; then
3817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830 done
3831 done
3832 IFS=$as_save_IFS
3833
3834 fi
3835 fi
3836 STRIP=$ac_cv_prog_STRIP
3837 if test -n "$STRIP"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3839 $as_echo "$STRIP" >&6; }
3840 else
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 fi
3844
3845
3846 fi
3847 if test -z "$ac_cv_prog_STRIP"; then
3848 ac_ct_STRIP=$STRIP
3849 # Extract the first word of "strip", so it can be a program name with args.
3850 set dummy strip; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$ac_ct_STRIP"; then
3857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_ac_ct_STRIP="strip"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3877 if test -n "$ac_ct_STRIP"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3879 $as_echo "$ac_ct_STRIP" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3883 fi
3884
3885 if test "x$ac_ct_STRIP" = x; then
3886 STRIP=":"
3887 else
3888 case $cross_compiling:$ac_tool_warned in
3889 yes:)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3892 ac_tool_warned=yes ;;
3893 esac
3894 STRIP=$ac_ct_STRIP
3895 fi
3896 else
3897 STRIP="$ac_cv_prog_STRIP"
3898 fi
3899
3900 fi
3901 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3904 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3905 if test -z "$MKDIR_P"; then
3906 if ${ac_cv_path_mkdir+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in mkdir gmkdir; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3917 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3918 'mkdir (GNU coreutils) '* | \
3919 'mkdir (coreutils) '* | \
3920 'mkdir (fileutils) '4.1*)
3921 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3922 break 3;;
3923 esac
3924 done
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930
3931 test -d ./--version && rmdir ./--version
3932 if test "${ac_cv_path_mkdir+set}" = set; then
3933 MKDIR_P="$ac_cv_path_mkdir -p"
3934 else
3935 # As a last resort, use the slow shell script. Don't cache a
3936 # value for MKDIR_P within a source directory, because that will
3937 # break other packages using the cache if that directory is
3938 # removed, or if the value is a relative name.
3939 MKDIR_P="$ac_install_sh -d"
3940 fi
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3943 $as_echo "$MKDIR_P" >&6; }
3944
3945 for ac_prog in gawk mawk nawk awk
3946 do
3947 # Extract the first word of "$ac_prog", so it can be a program name with args.
3948 set dummy $ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if ${ac_cv_prog_AWK+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$AWK"; then
3955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_AWK="$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 AWK=$ac_cv_prog_AWK
3975 if test -n "$AWK"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3977 $as_echo "$AWK" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984 test -n "$AWK" && break
3985 done
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3988 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3989 set x ${MAKE-make}
3990 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3991 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat >conftest.make <<\_ACEOF
3995 SHELL = /bin/sh
3996 all:
3997 @echo '@@@%%%=$(MAKE)=@@@%%%'
3998 _ACEOF
3999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4001 *@@@%%%=?*=@@@%%%*)
4002 eval ac_cv_prog_make_${ac_make}_set=yes;;
4003 *)
4004 eval ac_cv_prog_make_${ac_make}_set=no;;
4005 esac
4006 rm -f conftest.make
4007 fi
4008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4011 SET_MAKE=
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 SET_MAKE="MAKE=${MAKE-make}"
4016 fi
4017
4018 rm -rf .tst 2>/dev/null
4019 mkdir .tst 2>/dev/null
4020 if test -d .tst; then
4021 am__leading_dot=.
4022 else
4023 am__leading_dot=_
4024 fi
4025 rmdir .tst 2>/dev/null
4026
4027 DEPDIR="${am__leading_dot}deps"
4028
4029 ac_config_commands="$ac_config_commands depfiles"
4030
4031
4032 am_make=${MAKE-make}
4033 cat > confinc << 'END'
4034 am__doit:
4035 @echo this is the am__doit target
4036 .PHONY: am__doit
4037 END
4038 # If we don't find an include directive, just comment out the code.
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4040 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4041 am__include="#"
4042 am__quote=
4043 _am_result=none
4044 # First try GNU make style include.
4045 echo "include confinc" > confmf
4046 # Ignore all kinds of additional output from 'make'.
4047 case `$am_make -s -f confmf 2> /dev/null` in #(
4048 *the\ am__doit\ target*)
4049 am__include=include
4050 am__quote=
4051 _am_result=GNU
4052 ;;
4053 esac
4054 # Now try BSD make style include.
4055 if test "$am__include" = "#"; then
4056 echo '.include "confinc"' > confmf
4057 case `$am_make -s -f confmf 2> /dev/null` in #(
4058 *the\ am__doit\ target*)
4059 am__include=.include
4060 am__quote="\""
4061 _am_result=BSD
4062 ;;
4063 esac
4064 fi
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4068 $as_echo "$_am_result" >&6; }
4069 rm -f confinc confmf
4070
4071 # Check whether --enable-dependency-tracking was given.
4072 if test "${enable_dependency_tracking+set}" = set; then :
4073 enableval=$enable_dependency_tracking;
4074 fi
4075
4076 if test "x$enable_dependency_tracking" != xno; then
4077 am_depcomp="$ac_aux_dir/depcomp"
4078 AMDEPBACKSLASH='\'
4079 am__nodep='_no'
4080 fi
4081 if test "x$enable_dependency_tracking" != xno; then
4082 AMDEP_TRUE=
4083 AMDEP_FALSE='#'
4084 else
4085 AMDEP_TRUE='#'
4086 AMDEP_FALSE=
4087 fi
4088
4089
4090 # Check whether --enable-silent-rules was given.
4091 if test "${enable_silent_rules+set}" = set; then :
4092 enableval=$enable_silent_rules;
4093 fi
4094
4095 case $enable_silent_rules in # (((
4096 yes) AM_DEFAULT_VERBOSITY=0;;
4097 no) AM_DEFAULT_VERBOSITY=1;;
4098 *) AM_DEFAULT_VERBOSITY=1;;
4099 esac
4100 am_make=${MAKE-make}
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4102 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4103 if ${am_cv_make_support_nested_variables+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if $as_echo 'TRUE=$(BAR$(V))
4107 BAR0=false
4108 BAR1=true
4109 V=1
4110 am__doit:
4111 @$(TRUE)
4112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4113 am_cv_make_support_nested_variables=yes
4114 else
4115 am_cv_make_support_nested_variables=no
4116 fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4119 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4120 if test $am_cv_make_support_nested_variables = yes; then
4121 AM_V='$(V)'
4122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4123 else
4124 AM_V=$AM_DEFAULT_VERBOSITY
4125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4126 fi
4127 AM_BACKSLASH='\'
4128
4129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4131 # is not polluted with repeated "-I."
4132 am__isrc=' -I$(srcdir)'
4133 # test to see if srcdir already configured
4134 if test -f $srcdir/config.status; then
4135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4136 fi
4137 fi
4138
4139 # test whether we have cygpath
4140 if test -z "$CYGPATH_W"; then
4141 if (cygpath --version) >/dev/null 2>/dev/null; then
4142 CYGPATH_W='cygpath -w'
4143 else
4144 CYGPATH_W=echo
4145 fi
4146 fi
4147
4148
4149 # Define the identity of the package.
4150 PACKAGE='twm'
4151 VERSION='1.0.10'
4152
4153
4154 cat >>confdefs.h <<_ACEOF
4155 #define PACKAGE "$PACKAGE"
4156 _ACEOF
4157
4158
4159 cat >>confdefs.h <<_ACEOF
4160 #define VERSION "$VERSION"
4161 _ACEOF
4162
4163 # Some tools Automake needs.
4164
4165 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4166
4167
4168 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4169
4170
4171 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4172
4173
4174 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4175
4176
4177 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4178
4179 # For better backward compatibility. To be removed once Automake 1.9.x
4180 # dies out for good. For more background, see:
4181 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4182 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4183 mkdir_p='$(MKDIR_P)'
4184
4185 # We need awk for the "check" target (and possibly the TAP driver). The
4186 # system "awk" is bad on some platforms.
4187 # Always define AMTAR for backward compatibility. Yes, it's still used
4188 # in the wild :-( We should find a proper way to deprecate it ...
4189 AMTAR='$${TAR-tar}'
4190
4191
4192 # We'll loop over all known methods to create a tar archive until one works.
4193 _am_tools='gnutar pax cpio none'
4194
4195 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4196
4197
4198
4199
4200
4201 depcc="$CC" am_compiler_list=
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4204 $as_echo_n "checking dependency style of $depcc... " >&6; }
4205 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4209 # We make a subdir and do the tests there. Otherwise we can end up
4210 # making bogus files that we don't know about and never remove. For
4211 # instance it was reported that on HP-UX the gcc test will end up
4212 # making a dummy file named 'D' -- because '-MD' means "put the output
4213 # in D".
4214 rm -rf conftest.dir
4215 mkdir conftest.dir
4216 # Copy depcomp to subdir because otherwise we won't find it if we're
4217 # using a relative directory.
4218 cp "$am_depcomp" conftest.dir
4219 cd conftest.dir
4220 # We will build objects and dependencies in a subdirectory because
4221 # it helps to detect inapplicable dependency modes. For instance
4222 # both Tru64's cc and ICC support -MD to output dependencies as a
4223 # side effect of compilation, but ICC will put the dependencies in
4224 # the current directory while Tru64 will put them in the object
4225 # directory.
4226 mkdir sub
4227
4228 am_cv_CC_dependencies_compiler_type=none
4229 if test "$am_compiler_list" = ""; then
4230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4231 fi
4232 am__universal=false
4233 case " $depcc " in #(
4234 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4235 esac
4236
4237 for depmode in $am_compiler_list; do
4238 # Setup a source with many dependencies, because some compilers
4239 # like to wrap large dependency lists on column 80 (with \), and
4240 # we should not choose a depcomp mode which is confused by this.
4241 #
4242 # We need to recreate these files for each test, as the compiler may
4243 # overwrite some of them when testing with obscure command lines.
4244 # This happens at least with the AIX C compiler.
4245 : > sub/conftest.c
4246 for i in 1 2 3 4 5 6; do
4247 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4248 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4249 # Solaris 10 /bin/sh.
4250 echo '/* dummy */' > sub/conftst$i.h
4251 done
4252 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4253
4254 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4255 # mode. It turns out that the SunPro C++ compiler does not properly
4256 # handle '-M -o', and we need to detect this. Also, some Intel
4257 # versions had trouble with output in subdirs.
4258 am__obj=sub/conftest.${OBJEXT-o}
4259 am__minus_obj="-o $am__obj"
4260 case $depmode in
4261 gcc)
4262 # This depmode causes a compiler race in universal mode.
4263 test "$am__universal" = false || continue
4264 ;;
4265 nosideeffect)
4266 # After this tag, mechanisms are not by side-effect, so they'll
4267 # only be used when explicitly requested.
4268 if test "x$enable_dependency_tracking" = xyes; then
4269 continue
4270 else
4271 break
4272 fi
4273 ;;
4274 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4275 # This compiler won't grok '-c -o', but also, the minuso test has
4276 # not run yet. These depmodes are late enough in the game, and
4277 # so weak that their functioning should not be impacted.
4278 am__obj=conftest.${OBJEXT-o}
4279 am__minus_obj=
4280 ;;
4281 none) break ;;
4282 esac
4283 if depmode=$depmode \
4284 source=sub/conftest.c object=$am__obj \
4285 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4286 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4287 >/dev/null 2>conftest.err &&
4288 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292 # icc doesn't choke on unknown options, it will just issue warnings
4293 # or remarks (even with -Werror). So we grep stderr for any message
4294 # that says an option was ignored or not supported.
4295 # When given -MP, icc 7.0 and 7.1 complain thusly:
4296 # icc: Command line warning: ignoring option '-M'; no argument required
4297 # The diagnosis changed in icc 8.0:
4298 # icc: Command line remark: option '-MP' not supported
4299 if (grep 'ignoring option' conftest.err ||
4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301 am_cv_CC_dependencies_compiler_type=$depmode
4302 break
4303 fi
4304 fi
4305 done
4306
4307 cd ..
4308 rm -rf conftest.dir
4309 else
4310 am_cv_CC_dependencies_compiler_type=none
4311 fi
4312
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4315 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4316 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318 if
4319 test "x$enable_dependency_tracking" != xno \
4320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4321 am__fastdepCC_TRUE=
4322 am__fastdepCC_FALSE='#'
4323 else
4324 am__fastdepCC_TRUE='#'
4325 am__fastdepCC_FALSE=
4326 fi
4327
4328
4329
4330 # POSIX will say in a future version that running "rm -f" with no argument
4331 # is OK; and we want to be able to make that assumption in our Makefile
4332 # recipes. So use an aggressive probe to check that the usage we want is
4333 # actually supported "in the wild" to an acceptable degree.
4334 # See automake bug#10828.
4335 # To make any issue more visible, cause the running configure to be aborted
4336 # by default if the 'rm' program in use doesn't match our expectations; the
4337 # user can still override this though.
4338 if rm -f && rm -fr && rm -rf; then : OK; else
4339 cat >&2 <<'END'
4340 Oops!
4341
4342 Your 'rm' program seems unable to run without file operands specified
4343 on the command line, even when the '-f' option is present. This is contrary
4344 to the behaviour of most rm programs out there, and not conforming with
4345 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4346
4347 Please tell bug-automake@gnu.org about your system, including the value
4348 of your $PATH and any error possibly output before this message. This
4349 can help us improve future automake versions.
4350
4351 END
4352 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4353 echo 'Configuration will proceed anyway, since you have set the' >&2
4354 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4355 echo >&2
4356 else
4357 cat >&2 <<'END'
4358 Aborting the configuration process, to ensure you take notice of the issue.
4359
4360 You can download and install GNU coreutils to get an 'rm' implementation
4361 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4362
4363 If you want to complete the configuration process using your problematic
4364 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4365 to "yes", and re-run configure.
4366
4367 END
4368 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4369 fi
4370 fi
4371
4372
4373 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4386 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4387 if ${ac_cv_prog_cc_c99+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 ac_cv_prog_cc_c99=no
4391 ac_save_CC=$CC
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <stdarg.h>
4395 #include <stdbool.h>
4396 #include <stdlib.h>
4397 #include <wchar.h>
4398 #include <stdio.h>
4399
4400 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4401 #define debug(...) fprintf (stderr, __VA_ARGS__)
4402 #define showlist(...) puts (#__VA_ARGS__)
4403 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4404 static void
4405 test_varargs_macros (void)
4406 {
4407 int x = 1234;
4408 int y = 5678;
4409 debug ("Flag");
4410 debug ("X = %d\n", x);
4411 showlist (The first, second, and third items.);
4412 report (x>y, "x is %d but y is %d", x, y);
4413 }
4414
4415 // Check long long types.
4416 #define BIG64 18446744073709551615ull
4417 #define BIG32 4294967295ul
4418 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4419 #if !BIG_OK
4420 your preprocessor is broken;
4421 #endif
4422 #if BIG_OK
4423 #else
4424 your preprocessor is broken;
4425 #endif
4426 static long long int bignum = -9223372036854775807LL;
4427 static unsigned long long int ubignum = BIG64;
4428
4429 struct incomplete_array
4430 {
4431 int datasize;
4432 double data[];
4433 };
4434
4435 struct named_init {
4436 int number;
4437 const wchar_t *name;
4438 double average;
4439 };
4440
4441 typedef const char *ccp;
4442
4443 static inline int
4444 test_restrict (ccp restrict text)
4445 {
4446 // See if C++-style comments work.
4447 // Iterate through items via the restricted pointer.
4448 // Also check for declarations in for loops.
4449 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4450 continue;
4451 return 0;
4452 }
4453
4454 // Check varargs and va_copy.
4455 static void
4456 test_varargs (const char *format, ...)
4457 {
4458 va_list args;
4459 va_start (args, format);
4460 va_list args_copy;
4461 va_copy (args_copy, args);
4462
4463 const char *str;
4464 int number;
4465 float fnumber;
4466
4467 while (*format)
4468 {
4469 switch (*format++)
4470 {
4471 case 's': // string
4472 str = va_arg (args_copy, const char *);
4473 break;
4474 case 'd': // int
4475 number = va_arg (args_copy, int);
4476 break;
4477 case 'f': // float
4478 fnumber = va_arg (args_copy, double);
4479 break;
4480 default:
4481 break;
4482 }
4483 }
4484 va_end (args_copy);
4485 va_end (args);
4486 }
4487
4488 int
4489 main ()
4490 {
4491
4492 // Check bool.
4493 _Bool success = false;
4494
4495 // Check restrict.
4496 if (test_restrict ("String literal") == 0)
4497 success = true;
4498 char *restrict newvar = "Another string";
4499
4500 // Check varargs.
4501 test_varargs ("s, d' f .", "string", 65, 34.234);
4502 test_varargs_macros ();
4503
4504 // Check flexible array members.
4505 struct incomplete_array *ia =
4506 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4507 ia->datasize = 10;
4508 for (int i = 0; i < ia->datasize; ++i)
4509 ia->data[i] = i * 1.234;
4510
4511 // Check named initializers.
4512 struct named_init ni = {
4513 .number = 34,
4514 .name = L"Test wide string",
4515 .average = 543.34343,
4516 };
4517
4518 ni.number = 58;
4519
4520 int dynamic_array[ni.number];
4521 dynamic_array[ni.number - 1] = 543;
4522
4523 // work around unused variable warnings
4524 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4525 || dynamic_array[ni.number - 1] != 543);
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4532 do
4533 CC="$ac_save_CC $ac_arg"
4534 if ac_fn_c_try_compile "$LINENO"; then :
4535 ac_cv_prog_cc_c99=$ac_arg
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext
4538 test "x$ac_cv_prog_cc_c99" != "xno" && break
4539 done
4540 rm -f conftest.$ac_ext
4541 CC=$ac_save_CC
4542
4543 fi
4544 # AC_CACHE_VAL
4545 case "x$ac_cv_prog_cc_c99" in
4546 x)
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4548 $as_echo "none needed" >&6; } ;;
4549 xno)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4551 $as_echo "unsupported" >&6; } ;;
4552 *)
4553 CC="$CC $ac_cv_prog_cc_c99"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4555 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4556 esac
4557 if test "x$ac_cv_prog_cc_c99" != xno; then :
4558
4559 fi
4560
4561
4562
4563
4564
4565
4566 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4567 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4568 CLANGCC="yes"
4569 else
4570 CLANGCC="no"
4571 fi
4572
4573 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4574 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4575 INTELCC="yes"
4576 else
4577 INTELCC="no"
4578 fi
4579
4580 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4581 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4582 SUNCC="yes"
4583 else
4584 SUNCC="no"
4585 fi
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 case $PKG_CONFIG in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4607 ;;
4608 *)
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 ;;
4625 esac
4626 fi
4627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4628 if test -n "$PKG_CONFIG"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4630 $as_echo "$PKG_CONFIG" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_path_PKG_CONFIG"; then
4639 ac_pt_PKG_CONFIG=$PKG_CONFIG
4640 # Extract the first word of "pkg-config", so it can be a program name with args.
4641 set dummy pkg-config; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 case $ac_pt_PKG_CONFIG in
4648 [\\/]* | ?:[\\/]*)
4649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4650 ;;
4651 *)
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 ;;
4668 esac
4669 fi
4670 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4671 if test -n "$ac_pt_PKG_CONFIG"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4673 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679 if test "x$ac_pt_PKG_CONFIG" = x; then
4680 PKG_CONFIG=""
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 PKG_CONFIG=$ac_pt_PKG_CONFIG
4689 fi
4690 else
4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4692 fi
4693
4694 fi
4695 if test -n "$PKG_CONFIG"; then
4696 _pkg_min_version=0.9.0
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4698 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701 $as_echo "yes" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 PKG_CONFIG=""
4706 fi
4707 fi
4708 # Make sure we can run config.sub.
4709 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4710 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4713 $as_echo_n "checking build system type... " >&6; }
4714 if ${ac_cv_build+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_build_alias=$build_alias
4718 test "x$ac_build_alias" = x &&
4719 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4720 test "x$ac_build_alias" = x &&
4721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4724
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4727 $as_echo "$ac_cv_build" >&6; }
4728 case $ac_cv_build in
4729 *-*-*) ;;
4730 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4731 esac
4732 build=$ac_cv_build
4733 ac_save_IFS=$IFS; IFS='-'
4734 set x $ac_cv_build
4735 shift
4736 build_cpu=$1
4737 build_vendor=$2
4738 shift; shift
4739 # Remember, the first character of IFS is used to create $*,
4740 # except with old shells:
4741 build_os=$*
4742 IFS=$ac_save_IFS
4743 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4747 $as_echo_n "checking host system type... " >&6; }
4748 if ${ac_cv_host+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test "x$host_alias" = x; then
4752 ac_cv_host=$ac_cv_build
4753 else
4754 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4756 fi
4757
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4760 $as_echo "$ac_cv_host" >&6; }
4761 case $ac_cv_host in
4762 *-*-*) ;;
4763 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4764 esac
4765 host=$ac_cv_host
4766 ac_save_IFS=$IFS; IFS='-'
4767 set x $ac_cv_host
4768 shift
4769 host_cpu=$1
4770 host_vendor=$2
4771 shift; shift
4772 # Remember, the first character of IFS is used to create $*,
4773 # except with old shells:
4774 host_os=$*
4775 IFS=$ac_save_IFS
4776 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4780 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4781 if ${ac_cv_path_SED+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4785 for ac_i in 1 2 3 4 5 6 7; do
4786 ac_script="$ac_script$as_nl$ac_script"
4787 done
4788 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4789 { ac_script=; unset ac_script;}
4790 if test -z "$SED"; then
4791 ac_path_SED_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in sed gsed; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4801 as_fn_executable_p "$ac_path_SED" || continue
4802 # Check for GNU ac_path_SED and select it if it is found.
4803 # Check for GNU $ac_path_SED
4804 case `"$ac_path_SED" --version 2>&1` in
4805 *GNU*)
4806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4807 *)
4808 ac_count=0
4809 $as_echo_n 0123456789 >"conftest.in"
4810 while :
4811 do
4812 cat "conftest.in" "conftest.in" >"conftest.tmp"
4813 mv "conftest.tmp" "conftest.in"
4814 cp "conftest.in" "conftest.nl"
4815 $as_echo '' >> "conftest.nl"
4816 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818 as_fn_arith $ac_count + 1 && ac_count=$as_val
4819 if test $ac_count -gt ${ac_path_SED_max-0}; then
4820 # Best one so far, save it but keep looking for a better one
4821 ac_cv_path_SED="$ac_path_SED"
4822 ac_path_SED_max=$ac_count
4823 fi
4824 # 10*(2^10) chars as input seems more than enough
4825 test $ac_count -gt 10 && break
4826 done
4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828 esac
4829
4830 $ac_path_SED_found && break 3
4831 done
4832 done
4833 done
4834 IFS=$as_save_IFS
4835 if test -z "$ac_cv_path_SED"; then
4836 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4837 fi
4838 else
4839 ac_cv_path_SED=$SED
4840 fi
4841
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4844 $as_echo "$ac_cv_path_SED" >&6; }
4845 SED="$ac_cv_path_SED"
4846 rm -f conftest.sed
4847
4848
4849
4850
4851
4852
4853 # Check whether --enable-selective-werror was given.
4854 if test "${enable_selective_werror+set}" = set; then :
4855 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4856 else
4857 SELECTIVE_WERROR=yes
4858 fi
4859
4860
4861
4862
4863
4864 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4865 if test "x$SUNCC" = "xyes"; then
4866 BASE_CFLAGS="-v"
4867 else
4868 BASE_CFLAGS=""
4869 fi
4870
4871 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885 xorg_testset_save_CFLAGS="$CFLAGS"
4886
4887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4890 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4891 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896 int i;
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 xorg_cv_cc_flag_unknown_warning_option=yes
4900 else
4901 xorg_cv_cc_flag_unknown_warning_option=no
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4906 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4908 CFLAGS="$xorg_testset_save_CFLAGS"
4909 fi
4910
4911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 fi
4915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4917 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4918 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 int i;
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 xorg_cv_cc_flag_unused_command_line_argument=yes
4927 else
4928 xorg_cv_cc_flag_unused_command_line_argument=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4933 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936 fi
4937
4938 found="no"
4939
4940 if test $found = "no" ; then
4941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943 fi
4944
4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4947 fi
4948
4949 CFLAGS="$CFLAGS -Wall"
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4952 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4953 cacheid=xorg_cv_cc_flag__Wall
4954 if eval \${$cacheid+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 int i;
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 eval $cacheid=yes
4970 else
4971 eval $cacheid=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 fi
4976
4977
4978 CFLAGS="$xorg_testset_save_CFLAGS"
4979
4980 eval supported=\$$cacheid
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4982 $as_echo "$supported" >&6; }
4983 if test "$supported" = "yes" ; then
4984 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4985 found="yes"
4986 fi
4987 fi
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 xorg_testset_save_CFLAGS="$CFLAGS"
5004
5005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 int i;
5015 _ACEOF
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 xorg_cv_cc_flag_unknown_warning_option=yes
5018 else
5019 xorg_cv_cc_flag_unknown_warning_option=no
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5026 CFLAGS="$xorg_testset_save_CFLAGS"
5027 fi
5028
5029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 fi
5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 xorg_cv_cc_flag_unused_command_line_argument=yes
5045 else
5046 xorg_cv_cc_flag_unused_command_line_argument=no
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5053 CFLAGS="$xorg_testset_save_CFLAGS"
5054 fi
5055
5056 found="no"
5057
5058 if test $found = "no" ; then
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 fi
5062
5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065 fi
5066
5067 CFLAGS="$CFLAGS -Wpointer-arith"
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5070 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5071 cacheid=xorg_cv_cc_flag__Wpointer_arith
5072 if eval \${$cacheid+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 int i;
5078 int
5079 main ()
5080 {
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_c_try_link "$LINENO"; then :
5087 eval $cacheid=yes
5088 else
5089 eval $cacheid=no
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5093 fi
5094
5095
5096 CFLAGS="$xorg_testset_save_CFLAGS"
5097
5098 eval supported=\$$cacheid
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5100 $as_echo "$supported" >&6; }
5101 if test "$supported" = "yes" ; then
5102 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5103 found="yes"
5104 fi
5105 fi
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121 xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 int i;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 xorg_cv_cc_flag_unknown_warning_option=yes
5136 else
5137 xorg_cv_cc_flag_unknown_warning_option=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5144 CFLAGS="$xorg_testset_save_CFLAGS"
5145 fi
5146
5147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 fi
5151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 xorg_cv_cc_flag_unused_command_line_argument=yes
5163 else
5164 xorg_cv_cc_flag_unused_command_line_argument=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172 fi
5173
5174 found="no"
5175
5176 if test $found = "no" ; then
5177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179 fi
5180
5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183 fi
5184
5185 CFLAGS="$CFLAGS -Wmissing-declarations"
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5188 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5189 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5190 if eval \${$cacheid+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 int i;
5196 int
5197 main ()
5198 {
5199
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_c_try_link "$LINENO"; then :
5205 eval $cacheid=yes
5206 else
5207 eval $cacheid=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
5211 fi
5212
5213
5214 CFLAGS="$xorg_testset_save_CFLAGS"
5215
5216 eval supported=\$$cacheid
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5218 $as_echo "$supported" >&6; }
5219 if test "$supported" = "yes" ; then
5220 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5221 found="yes"
5222 fi
5223 fi
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 xorg_testset_save_CFLAGS="$CFLAGS"
5240
5241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 xorg_cv_cc_flag_unknown_warning_option=yes
5254 else
5255 xorg_cv_cc_flag_unknown_warning_option=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5262 CFLAGS="$xorg_testset_save_CFLAGS"
5263 fi
5264
5265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 fi
5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 xorg_cv_cc_flag_unused_command_line_argument=yes
5281 else
5282 xorg_cv_cc_flag_unused_command_line_argument=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289 CFLAGS="$xorg_testset_save_CFLAGS"
5290 fi
5291
5292 found="no"
5293
5294 if test $found = "no" ; then
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301 fi
5302
5303 CFLAGS="$CFLAGS -Wformat=2"
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5306 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5307 cacheid=xorg_cv_cc_flag__Wformat_2
5308 if eval \${$cacheid+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int i;
5314 int
5315 main ()
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_link "$LINENO"; then :
5323 eval $cacheid=yes
5324 else
5325 eval $cacheid=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 fi
5330
5331
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333
5334 eval supported=\$$cacheid
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5336 $as_echo "$supported" >&6; }
5337 if test "$supported" = "yes" ; then
5338 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5339 found="yes"
5340 fi
5341 fi
5342
5343 if test $found = "no" ; then
5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346 fi
5347
5348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350 fi
5351
5352 CFLAGS="$CFLAGS -Wformat"
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5355 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5356 cacheid=xorg_cv_cc_flag__Wformat
5357 if eval \${$cacheid+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 int i;
5363 int
5364 main ()
5365 {
5366
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 if ac_fn_c_try_link "$LINENO"; then :
5372 eval $cacheid=yes
5373 else
5374 eval $cacheid=no
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 fi
5379
5380
5381 CFLAGS="$xorg_testset_save_CFLAGS"
5382
5383 eval supported=\$$cacheid
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385 $as_echo "$supported" >&6; }
5386 if test "$supported" = "yes" ; then
5387 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5388 found="yes"
5389 fi
5390 fi
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 xorg_testset_save_CFLAGS="$CFLAGS"
5409
5410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 int i;
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 xorg_cv_cc_flag_unknown_warning_option=yes
5423 else
5424 xorg_cv_cc_flag_unknown_warning_option=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5431 CFLAGS="$xorg_testset_save_CFLAGS"
5432 fi
5433
5434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437 fi
5438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 xorg_cv_cc_flag_unused_command_line_argument=yes
5450 else
5451 xorg_cv_cc_flag_unused_command_line_argument=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459 fi
5460
5461 found="no"
5462
5463 if test $found = "no" ; then
5464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466 fi
5467
5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5470 fi
5471
5472 CFLAGS="$CFLAGS -Wstrict-prototypes"
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5475 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5476 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5477 if eval \${$cacheid+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 int i;
5483 int
5484 main ()
5485 {
5486
5487 ;
5488 return 0;
5489 }
5490 _ACEOF
5491 if ac_fn_c_try_link "$LINENO"; then :
5492 eval $cacheid=yes
5493 else
5494 eval $cacheid=no
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
5498 fi
5499
5500
5501 CFLAGS="$xorg_testset_save_CFLAGS"
5502
5503 eval supported=\$$cacheid
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5505 $as_echo "$supported" >&6; }
5506 if test "$supported" = "yes" ; then
5507 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5508 found="yes"
5509 fi
5510 fi
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 xorg_testset_save_CFLAGS="$CFLAGS"
5527
5528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 int i;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"; then :
5540 xorg_cv_cc_flag_unknown_warning_option=yes
5541 else
5542 xorg_cv_cc_flag_unknown_warning_option=no
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5549 CFLAGS="$xorg_testset_save_CFLAGS"
5550 fi
5551
5552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555 fi
5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 int i;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 xorg_cv_cc_flag_unused_command_line_argument=yes
5568 else
5569 xorg_cv_cc_flag_unused_command_line_argument=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577 fi
5578
5579 found="no"
5580
5581 if test $found = "no" ; then
5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584 fi
5585
5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588 fi
5589
5590 CFLAGS="$CFLAGS -Wmissing-prototypes"
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5593 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5594 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5595 if eval \${$cacheid+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 int i;
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_link "$LINENO"; then :
5610 eval $cacheid=yes
5611 else
5612 eval $cacheid=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext conftest.$ac_ext
5616 fi
5617
5618
5619 CFLAGS="$xorg_testset_save_CFLAGS"
5620
5621 eval supported=\$$cacheid
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5623 $as_echo "$supported" >&6; }
5624 if test "$supported" = "yes" ; then
5625 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5626 found="yes"
5627 fi
5628 fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 xorg_testset_save_CFLAGS="$CFLAGS"
5645
5646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 int i;
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 xorg_cv_cc_flag_unknown_warning_option=yes
5659 else
5660 xorg_cv_cc_flag_unknown_warning_option=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5667 CFLAGS="$xorg_testset_save_CFLAGS"
5668 fi
5669
5670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 xorg_cv_cc_flag_unused_command_line_argument=yes
5686 else
5687 xorg_cv_cc_flag_unused_command_line_argument=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695 fi
5696
5697 found="no"
5698
5699 if test $found = "no" ; then
5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702 fi
5703
5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706 fi
5707
5708 CFLAGS="$CFLAGS -Wnested-externs"
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5711 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5712 cacheid=xorg_cv_cc_flag__Wnested_externs
5713 if eval \${$cacheid+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 int i;
5719 int
5720 main ()
5721 {
5722
5723 ;
5724 return 0;
5725 }
5726 _ACEOF
5727 if ac_fn_c_try_link "$LINENO"; then :
5728 eval $cacheid=yes
5729 else
5730 eval $cacheid=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 fi
5735
5736
5737 CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739 eval supported=\$$cacheid
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741 $as_echo "$supported" >&6; }
5742 if test "$supported" = "yes" ; then
5743 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5744 found="yes"
5745 fi
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 int i;
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 xorg_cv_cc_flag_unknown_warning_option=yes
5777 else
5778 xorg_cv_cc_flag_unknown_warning_option=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785 CFLAGS="$xorg_testset_save_CFLAGS"
5786 fi
5787
5788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791 fi
5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 xorg_cv_cc_flag_unused_command_line_argument=yes
5804 else
5805 xorg_cv_cc_flag_unused_command_line_argument=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813 fi
5814
5815 found="no"
5816
5817 if test $found = "no" ; then
5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 fi
5825
5826 CFLAGS="$CFLAGS -Wbad-function-cast"
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5829 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5830 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5831 if eval \${$cacheid+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 int
5838 main ()
5839 {
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 eval $cacheid=yes
5847 else
5848 eval $cacheid=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi
5853
5854
5855 CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857 eval supported=\$$cacheid
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859 $as_echo "$supported" >&6; }
5860 if test "$supported" = "yes" ; then
5861 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5862 found="yes"
5863 fi
5864 fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 int i;
5892 _ACEOF
5893 if ac_fn_c_try_compile "$LINENO"; then :
5894 xorg_cv_cc_flag_unknown_warning_option=yes
5895 else
5896 xorg_cv_cc_flag_unknown_warning_option=no
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903 CFLAGS="$xorg_testset_save_CFLAGS"
5904 fi
5905
5906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909 fi
5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 int i;
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921 xorg_cv_cc_flag_unused_command_line_argument=yes
5922 else
5923 xorg_cv_cc_flag_unused_command_line_argument=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931 fi
5932
5933 found="no"
5934
5935 if test $found = "no" ; then
5936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938 fi
5939
5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942 fi
5943
5944 CFLAGS="$CFLAGS -Wold-style-definition"
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5947 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5948 cacheid=xorg_cv_cc_flag__Wold_style_definition
5949 if eval \${$cacheid+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 int i;
5955 int
5956 main ()
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_link "$LINENO"; then :
5964 eval $cacheid=yes
5965 else
5966 eval $cacheid=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5970 fi
5971
5972
5973 CFLAGS="$xorg_testset_save_CFLAGS"
5974
5975 eval supported=\$$cacheid
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5977 $as_echo "$supported" >&6; }
5978 if test "$supported" = "yes" ; then
5979 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5980 found="yes"
5981 fi
5982 fi
5983
5984 if test $found = "no" ; then
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 fi
5988
5989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991 fi
5992
5993 CFLAGS="$CFLAGS -fd"
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5996 $as_echo_n "checking if $CC supports -fd... " >&6; }
5997 cacheid=xorg_cv_cc_flag__fd
5998 if eval \${$cacheid+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 int i;
6004 int
6005 main ()
6006 {
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_c_try_link "$LINENO"; then :
6013 eval $cacheid=yes
6014 else
6015 eval $cacheid=no
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext \
6018 conftest$ac_exeext conftest.$ac_ext
6019 fi
6020
6021
6022 CFLAGS="$xorg_testset_save_CFLAGS"
6023
6024 eval supported=\$$cacheid
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6026 $as_echo "$supported" >&6; }
6027 if test "$supported" = "yes" ; then
6028 BASE_CFLAGS="$BASE_CFLAGS -fd"
6029 found="yes"
6030 fi
6031 fi
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047 xorg_testset_save_CFLAGS="$CFLAGS"
6048
6049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 int i;
6059 _ACEOF
6060 if ac_fn_c_try_compile "$LINENO"; then :
6061 xorg_cv_cc_flag_unknown_warning_option=yes
6062 else
6063 xorg_cv_cc_flag_unknown_warning_option=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6070 CFLAGS="$xorg_testset_save_CFLAGS"
6071 fi
6072
6073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076 fi
6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 int i;
6086 _ACEOF
6087 if ac_fn_c_try_compile "$LINENO"; then :
6088 xorg_cv_cc_flag_unused_command_line_argument=yes
6089 else
6090 xorg_cv_cc_flag_unused_command_line_argument=no
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6097 CFLAGS="$xorg_testset_save_CFLAGS"
6098 fi
6099
6100 found="no"
6101
6102 if test $found = "no" ; then
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 fi
6106
6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 fi
6110
6111 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6114 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6115 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6116 if eval \${$cacheid+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 int i;
6122 int
6123 main ()
6124 {
6125
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_link "$LINENO"; then :
6131 eval $cacheid=yes
6132 else
6133 eval $cacheid=no
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext \
6136 conftest$ac_exeext conftest.$ac_ext
6137 fi
6138
6139
6140 CFLAGS="$xorg_testset_save_CFLAGS"
6141
6142 eval supported=\$$cacheid
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6144 $as_echo "$supported" >&6; }
6145 if test "$supported" = "yes" ; then
6146 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6147 found="yes"
6148 fi
6149 fi
6150
6151
6152
6153
6154
6155 # This chunk adds additional warnings that could catch undesired effects.
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 xorg_testset_save_CFLAGS="$CFLAGS"
6170
6171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 xorg_cv_cc_flag_unknown_warning_option=yes
6184 else
6185 xorg_cv_cc_flag_unknown_warning_option=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193 fi
6194
6195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 fi
6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unused_command_line_argument=yes
6211 else
6212 xorg_cv_cc_flag_unused_command_line_argument=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 found="no"
6223
6224 if test $found = "no" ; then
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228
6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 fi
6232
6233 CFLAGS="$CFLAGS -Wunused"
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6236 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6237 cacheid=xorg_cv_cc_flag__Wunused
6238 if eval \${$cacheid+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 int i;
6244 int
6245 main ()
6246 {
6247
6248 ;
6249 return 0;
6250 }
6251 _ACEOF
6252 if ac_fn_c_try_link "$LINENO"; then :
6253 eval $cacheid=yes
6254 else
6255 eval $cacheid=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259 fi
6260
6261
6262 CFLAGS="$xorg_testset_save_CFLAGS"
6263
6264 eval supported=\$$cacheid
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6266 $as_echo "$supported" >&6; }
6267 if test "$supported" = "yes" ; then
6268 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6269 found="yes"
6270 fi
6271 fi
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 xorg_testset_save_CFLAGS="$CFLAGS"
6288
6289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 int i;
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 xorg_cv_cc_flag_unknown_warning_option=yes
6302 else
6303 xorg_cv_cc_flag_unknown_warning_option=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311 fi
6312
6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 fi
6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unused_command_line_argument=yes
6329 else
6330 xorg_cv_cc_flag_unused_command_line_argument=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 found="no"
6341
6342 if test $found = "no" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349 fi
6350
6351 CFLAGS="$CFLAGS -Wuninitialized"
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6354 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6355 cacheid=xorg_cv_cc_flag__Wuninitialized
6356 if eval \${$cacheid+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 int i;
6362 int
6363 main ()
6364 {
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 eval $cacheid=yes
6372 else
6373 eval $cacheid=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 fi
6378
6379
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381
6382 eval supported=\$$cacheid
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6384 $as_echo "$supported" >&6; }
6385 if test "$supported" = "yes" ; then
6386 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6387 found="yes"
6388 fi
6389 fi
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405 xorg_testset_save_CFLAGS="$CFLAGS"
6406
6407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 xorg_cv_cc_flag_unknown_warning_option=yes
6420 else
6421 xorg_cv_cc_flag_unknown_warning_option=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429 fi
6430
6431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unused_command_line_argument=yes
6447 else
6448 xorg_cv_cc_flag_unused_command_line_argument=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 found="no"
6459
6460 if test $found = "no" ; then
6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463 fi
6464
6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 fi
6468
6469 CFLAGS="$CFLAGS -Wshadow"
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6472 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6473 cacheid=xorg_cv_cc_flag__Wshadow
6474 if eval \${$cacheid+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 int i;
6480 int
6481 main ()
6482 {
6483
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 eval $cacheid=yes
6490 else
6491 eval $cacheid=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 fi
6496
6497
6498 CFLAGS="$xorg_testset_save_CFLAGS"
6499
6500 eval supported=\$$cacheid
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6502 $as_echo "$supported" >&6; }
6503 if test "$supported" = "yes" ; then
6504 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6505 found="yes"
6506 fi
6507 fi
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 xorg_testset_save_CFLAGS="$CFLAGS"
6524
6525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 int i;
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 xorg_cv_cc_flag_unknown_warning_option=yes
6538 else
6539 xorg_cv_cc_flag_unknown_warning_option=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547 fi
6548
6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 fi
6553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 xorg_cv_cc_flag_unused_command_line_argument=yes
6565 else
6566 xorg_cv_cc_flag_unused_command_line_argument=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 found="no"
6577
6578 if test $found = "no" ; then
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 fi
6582
6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 fi
6586
6587 CFLAGS="$CFLAGS -Wmissing-noreturn"
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6590 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6591 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6592 if eval \${$cacheid+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 int i;
6598 int
6599 main ()
6600 {
6601
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 eval $cacheid=yes
6608 else
6609 eval $cacheid=no
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 fi
6614
6615
6616 CFLAGS="$xorg_testset_save_CFLAGS"
6617
6618 eval supported=\$$cacheid
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6620 $as_echo "$supported" >&6; }
6621 if test "$supported" = "yes" ; then
6622 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6623 found="yes"
6624 fi
6625 fi
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641 xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 int i;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 xorg_cv_cc_flag_unknown_warning_option=yes
6656 else
6657 xorg_cv_cc_flag_unknown_warning_option=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6664 CFLAGS="$xorg_testset_save_CFLAGS"
6665 fi
6666
6667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 fi
6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unused_command_line_argument=yes
6683 else
6684 xorg_cv_cc_flag_unused_command_line_argument=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 found="no"
6695
6696 if test $found = "no" ; then
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 fi
6704
6705 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6708 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6709 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6710 if eval \${$cacheid+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int i;
6716 int
6717 main ()
6718 {
6719
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 eval $cacheid=yes
6726 else
6727 eval $cacheid=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 fi
6732
6733
6734 CFLAGS="$xorg_testset_save_CFLAGS"
6735
6736 eval supported=\$$cacheid
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6738 $as_echo "$supported" >&6; }
6739 if test "$supported" = "yes" ; then
6740 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6741 found="yes"
6742 fi
6743 fi
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 xorg_testset_save_CFLAGS="$CFLAGS"
6760
6761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int i;
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 xorg_cv_cc_flag_unknown_warning_option=yes
6774 else
6775 xorg_cv_cc_flag_unknown_warning_option=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6782 CFLAGS="$xorg_testset_save_CFLAGS"
6783 fi
6784
6785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788 fi
6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 xorg_cv_cc_flag_unused_command_line_argument=yes
6801 else
6802 xorg_cv_cc_flag_unused_command_line_argument=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6809 CFLAGS="$xorg_testset_save_CFLAGS"
6810 fi
6811
6812 found="no"
6813
6814 if test $found = "no" ; then
6815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821 fi
6822
6823 CFLAGS="$CFLAGS -Wredundant-decls"
6824
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6826 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6827 cacheid=xorg_cv_cc_flag__Wredundant_decls
6828 if eval \${$cacheid+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 int
6835 main ()
6836 {
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 eval $cacheid=yes
6844 else
6845 eval $cacheid=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 fi
6850
6851
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853
6854 eval supported=\$$cacheid
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6856 $as_echo "$supported" >&6; }
6857 if test "$supported" = "yes" ; then
6858 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6859 found="yes"
6860 fi
6861 fi
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 xorg_testset_save_CFLAGS="$CFLAGS"
6878
6879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int i;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 xorg_cv_cc_flag_unknown_warning_option=yes
6892 else
6893 xorg_cv_cc_flag_unknown_warning_option=no
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6900 CFLAGS="$xorg_testset_save_CFLAGS"
6901 fi
6902
6903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906 fi
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 int i;
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 xorg_cv_cc_flag_unused_command_line_argument=yes
6919 else
6920 xorg_cv_cc_flag_unused_command_line_argument=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928 fi
6929
6930 found="no"
6931
6932 if test $found = "no" ; then
6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935 fi
6936
6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 fi
6940
6941 CFLAGS="$CFLAGS -Wlogical-op"
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6944 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6945 cacheid=xorg_cv_cc_flag__Wlogical_op
6946 if eval \${$cacheid+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 int i;
6952 int
6953 main ()
6954 {
6955
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 eval $cacheid=yes
6962 else
6963 eval $cacheid=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968
6969
6970 CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972 eval supported=\$$cacheid
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974 $as_echo "$supported" >&6; }
6975 if test "$supported" = "yes" ; then
6976 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6977 found="yes"
6978 fi
6979 fi
6980
6981
6982
6983 # These are currently disabled because they are noisy. They will be enabled
6984 # in the future once the codebase is sufficiently modernized to silence
6985 # them. For now, I don't want them to drown out the other warnings.
6986 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6987 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6988 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6989
6990 # Turn some warnings into errors, so we don't accidently get successful builds
6991 # when there are problems that should be fixed.
6992
6993 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007 xorg_testset_save_CFLAGS="$CFLAGS"
7008
7009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"; then :
7021 xorg_cv_cc_flag_unknown_warning_option=yes
7022 else
7023 xorg_cv_cc_flag_unknown_warning_option=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7030 CFLAGS="$xorg_testset_save_CFLAGS"
7031 fi
7032
7033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036 fi
7037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 int i;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 xorg_cv_cc_flag_unused_command_line_argument=yes
7049 else
7050 xorg_cv_cc_flag_unused_command_line_argument=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7058 fi
7059
7060 found="no"
7061
7062 if test $found = "no" ; then
7063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065 fi
7066
7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7069 fi
7070
7071 CFLAGS="$CFLAGS -Werror=implicit"
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7074 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7075 cacheid=xorg_cv_cc_flag__Werror_implicit
7076 if eval \${$cacheid+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 int i;
7082 int
7083 main ()
7084 {
7085
7086 ;
7087 return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 eval $cacheid=yes
7092 else
7093 eval $cacheid=no
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097 fi
7098
7099
7100 CFLAGS="$xorg_testset_save_CFLAGS"
7101
7102 eval supported=\$$cacheid
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7104 $as_echo "$supported" >&6; }
7105 if test "$supported" = "yes" ; then
7106 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7107 found="yes"
7108 fi
7109 fi
7110
7111 if test $found = "no" ; then
7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114 fi
7115
7116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118 fi
7119
7120 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7123 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7124 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7125 if eval \${$cacheid+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 int i;
7131 int
7132 main ()
7133 {
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_link "$LINENO"; then :
7140 eval $cacheid=yes
7141 else
7142 eval $cacheid=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 fi
7147
7148
7149 CFLAGS="$xorg_testset_save_CFLAGS"
7150
7151 eval supported=\$$cacheid
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7153 $as_echo "$supported" >&6; }
7154 if test "$supported" = "yes" ; then
7155 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7156 found="yes"
7157 fi
7158 fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 xorg_testset_save_CFLAGS="$CFLAGS"
7175
7176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 int i;
7186 _ACEOF
7187 if ac_fn_c_try_compile "$LINENO"; then :
7188 xorg_cv_cc_flag_unknown_warning_option=yes
7189 else
7190 xorg_cv_cc_flag_unknown_warning_option=no
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7197 CFLAGS="$xorg_testset_save_CFLAGS"
7198 fi
7199
7200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7203 fi
7204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 xorg_cv_cc_flag_unused_command_line_argument=yes
7216 else
7217 xorg_cv_cc_flag_unused_command_line_argument=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 found="no"
7228
7229 if test $found = "no" ; then
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 fi
7237
7238 CFLAGS="$CFLAGS -Werror=nonnull"
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7241 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7242 cacheid=xorg_cv_cc_flag__Werror_nonnull
7243 if eval \${$cacheid+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 int i;
7249 int
7250 main ()
7251 {
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 eval $cacheid=yes
7259 else
7260 eval $cacheid=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 fi
7265
7266
7267 CFLAGS="$xorg_testset_save_CFLAGS"
7268
7269 eval supported=\$$cacheid
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7271 $as_echo "$supported" >&6; }
7272 if test "$supported" = "yes" ; then
7273 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7274 found="yes"
7275 fi
7276 fi
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292 xorg_testset_save_CFLAGS="$CFLAGS"
7293
7294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unknown_warning_option=yes
7307 else
7308 xorg_cv_cc_flag_unknown_warning_option=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321 fi
7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unused_command_line_argument=yes
7334 else
7335 xorg_cv_cc_flag_unused_command_line_argument=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 found="no"
7346
7347 if test $found = "no" ; then
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 fi
7351
7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 fi
7355
7356 CFLAGS="$CFLAGS -Werror=init-self"
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7359 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7360 cacheid=xorg_cv_cc_flag__Werror_init_self
7361 if eval \${$cacheid+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 int i;
7367 int
7368 main ()
7369 {
7370
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 eval $cacheid=yes
7377 else
7378 eval $cacheid=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 fi
7383
7384
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7386
7387 eval supported=\$$cacheid
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7389 $as_echo "$supported" >&6; }
7390 if test "$supported" = "yes" ; then
7391 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7392 found="yes"
7393 fi
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 xorg_testset_save_CFLAGS="$CFLAGS"
7411
7412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 xorg_cv_cc_flag_unknown_warning_option=yes
7425 else
7426 xorg_cv_cc_flag_unknown_warning_option=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 fi
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 xorg_cv_cc_flag_unused_command_line_argument=yes
7452 else
7453 xorg_cv_cc_flag_unused_command_line_argument=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 found="no"
7464
7465 if test $found = "no" ; then
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 fi
7469
7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 fi
7473
7474 CFLAGS="$CFLAGS -Werror=main"
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7477 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7478 cacheid=xorg_cv_cc_flag__Werror_main
7479 if eval \${$cacheid+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 int i;
7485 int
7486 main ()
7487 {
7488
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7494 eval $cacheid=yes
7495 else
7496 eval $cacheid=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 fi
7501
7502
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505 eval supported=\$$cacheid
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507 $as_echo "$supported" >&6; }
7508 if test "$supported" = "yes" ; then
7509 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7510 found="yes"
7511 fi
7512 fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 xorg_testset_save_CFLAGS="$CFLAGS"
7529
7530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 int i;
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 xorg_cv_cc_flag_unknown_warning_option=yes
7543 else
7544 xorg_cv_cc_flag_unknown_warning_option=no
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7551 CFLAGS="$xorg_testset_save_CFLAGS"
7552 fi
7553
7554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 fi
7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 xorg_cv_cc_flag_unused_command_line_argument=yes
7570 else
7571 xorg_cv_cc_flag_unused_command_line_argument=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 found="no"
7582
7583 if test $found = "no" ; then
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 fi
7587
7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 fi
7591
7592 CFLAGS="$CFLAGS -Werror=missing-braces"
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7595 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7596 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7597 if eval \${$cacheid+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 int i;
7603 int
7604 main ()
7605 {
7606
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612 eval $cacheid=yes
7613 else
7614 eval $cacheid=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 fi
7619
7620
7621 CFLAGS="$xorg_testset_save_CFLAGS"
7622
7623 eval supported=\$$cacheid
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7625 $as_echo "$supported" >&6; }
7626 if test "$supported" = "yes" ; then
7627 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7628 found="yes"
7629 fi
7630 fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646 xorg_testset_save_CFLAGS="$CFLAGS"
7647
7648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7651 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7652 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 xorg_cv_cc_flag_unknown_warning_option=yes
7661 else
7662 xorg_cv_cc_flag_unknown_warning_option=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7667 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7669 CFLAGS="$xorg_testset_save_CFLAGS"
7670 fi
7671
7672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675 fi
7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7679 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 int i;
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 xorg_cv_cc_flag_unused_command_line_argument=yes
7688 else
7689 xorg_cv_cc_flag_unused_command_line_argument=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 found="no"
7700
7701 if test $found = "no" ; then
7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708 fi
7709
7710 CFLAGS="$CFLAGS -Werror=sequence-point"
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7713 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7714 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7715 if eval \${$cacheid+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 int i;
7721 int
7722 main ()
7723 {
7724
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"; then :
7730 eval $cacheid=yes
7731 else
7732 eval $cacheid=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 fi
7737
7738
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740
7741 eval supported=\$$cacheid
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7743 $as_echo "$supported" >&6; }
7744 if test "$supported" = "yes" ; then
7745 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7746 found="yes"
7747 fi
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 xorg_testset_save_CFLAGS="$CFLAGS"
7765
7766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 xorg_cv_cc_flag_unknown_warning_option=yes
7779 else
7780 xorg_cv_cc_flag_unknown_warning_option=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7787 CFLAGS="$xorg_testset_save_CFLAGS"
7788 fi
7789
7790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793 fi
7794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805 xorg_cv_cc_flag_unused_command_line_argument=yes
7806 else
7807 xorg_cv_cc_flag_unused_command_line_argument=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7814 CFLAGS="$xorg_testset_save_CFLAGS"
7815 fi
7816
7817 found="no"
7818
7819 if test $found = "no" ; then
7820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822 fi
7823
7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826 fi
7827
7828 CFLAGS="$CFLAGS -Werror=return-type"
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7831 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7832 cacheid=xorg_cv_cc_flag__Werror_return_type
7833 if eval \${$cacheid+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 int i;
7839 int
7840 main ()
7841 {
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"; then :
7848 eval $cacheid=yes
7849 else
7850 eval $cacheid=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 fi
7855
7856
7857 CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859 eval supported=\$$cacheid
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861 $as_echo "$supported" >&6; }
7862 if test "$supported" = "yes" ; then
7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7864 found="yes"
7865 fi
7866 fi
7867
7868 if test $found = "no" ; then
7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871 fi
7872
7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875 fi
7876
7877 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7880 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7881 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7882 if eval \${$cacheid+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 int i;
7888 int
7889 main ()
7890 {
7891
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_link "$LINENO"; then :
7897 eval $cacheid=yes
7898 else
7899 eval $cacheid=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 fi
7904
7905
7906 CFLAGS="$xorg_testset_save_CFLAGS"
7907
7908 eval supported=\$$cacheid
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7910 $as_echo "$supported" >&6; }
7911 if test "$supported" = "yes" ; then
7912 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7913 found="yes"
7914 fi
7915 fi
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 xorg_testset_save_CFLAGS="$CFLAGS"
7932
7933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 int i;
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 xorg_cv_cc_flag_unknown_warning_option=yes
7946 else
7947 xorg_cv_cc_flag_unknown_warning_option=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 fi
7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 xorg_cv_cc_flag_unused_command_line_argument=yes
7973 else
7974 xorg_cv_cc_flag_unused_command_line_argument=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7982 fi
7983
7984 found="no"
7985
7986 if test $found = "no" ; then
7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989 fi
7990
7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 fi
7994
7995 CFLAGS="$CFLAGS -Werror=trigraphs"
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7998 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7999 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8000 if eval \${$cacheid+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 int i;
8006 int
8007 main ()
8008 {
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_link "$LINENO"; then :
8015 eval $cacheid=yes
8016 else
8017 eval $cacheid=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021 fi
8022
8023
8024 CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026 eval supported=\$$cacheid
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028 $as_echo "$supported" >&6; }
8029 if test "$supported" = "yes" ; then
8030 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8031 found="yes"
8032 fi
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 int i;
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 xorg_cv_cc_flag_unknown_warning_option=yes
8064 else
8065 xorg_cv_cc_flag_unknown_warning_option=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073 fi
8074
8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078 fi
8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 xorg_cv_cc_flag_unused_command_line_argument=yes
8091 else
8092 xorg_cv_cc_flag_unused_command_line_argument=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 found="no"
8103
8104 if test $found = "no" ; then
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 fi
8112
8113 CFLAGS="$CFLAGS -Werror=array-bounds"
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8116 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8117 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8118 if eval \${$cacheid+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 int i;
8124 int
8125 main ()
8126 {
8127
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_link "$LINENO"; then :
8133 eval $cacheid=yes
8134 else
8135 eval $cacheid=no
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8139 fi
8140
8141
8142 CFLAGS="$xorg_testset_save_CFLAGS"
8143
8144 eval supported=\$$cacheid
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8146 $as_echo "$supported" >&6; }
8147 if test "$supported" = "yes" ; then
8148 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8149 found="yes"
8150 fi
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167 xorg_testset_save_CFLAGS="$CFLAGS"
8168
8169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 int i;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 xorg_cv_cc_flag_unknown_warning_option=yes
8182 else
8183 xorg_cv_cc_flag_unknown_warning_option=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191 fi
8192
8193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 xorg_cv_cc_flag_unused_command_line_argument=yes
8209 else
8210 xorg_cv_cc_flag_unused_command_line_argument=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 found="no"
8221
8222 if test $found = "no" ; then
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 fi
8230
8231 CFLAGS="$CFLAGS -Werror=write-strings"
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8234 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8235 cacheid=xorg_cv_cc_flag__Werror_write_strings
8236 if eval \${$cacheid+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 int i;
8242 int
8243 main ()
8244 {
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 eval $cacheid=yes
8252 else
8253 eval $cacheid=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 fi
8258
8259
8260 CFLAGS="$xorg_testset_save_CFLAGS"
8261
8262 eval supported=\$$cacheid
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264 $as_echo "$supported" >&6; }
8265 if test "$supported" = "yes" ; then
8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8267 found="yes"
8268 fi
8269 fi
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 xorg_testset_save_CFLAGS="$CFLAGS"
8286
8287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 xorg_cv_cc_flag_unknown_warning_option=yes
8300 else
8301 xorg_cv_cc_flag_unknown_warning_option=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8308 CFLAGS="$xorg_testset_save_CFLAGS"
8309 fi
8310
8311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 fi
8315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 xorg_cv_cc_flag_unused_command_line_argument=yes
8327 else
8328 xorg_cv_cc_flag_unused_command_line_argument=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336 fi
8337
8338 found="no"
8339
8340 if test $found = "no" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344
8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347 fi
8348
8349 CFLAGS="$CFLAGS -Werror=address"
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8352 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8353 cacheid=xorg_cv_cc_flag__Werror_address
8354 if eval \${$cacheid+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 int i;
8360 int
8361 main ()
8362 {
8363
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 eval $cacheid=yes
8370 else
8371 eval $cacheid=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376
8377
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380 eval supported=\$$cacheid
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382 $as_echo "$supported" >&6; }
8383 if test "$supported" = "yes" ; then
8384 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8385 found="yes"
8386 fi
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 _ACEOF
8416 if ac_fn_c_try_compile "$LINENO"; then :
8417 xorg_cv_cc_flag_unknown_warning_option=yes
8418 else
8419 xorg_cv_cc_flag_unknown_warning_option=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8426 CFLAGS="$xorg_testset_save_CFLAGS"
8427 fi
8428
8429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 fi
8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 int i;
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444 xorg_cv_cc_flag_unused_command_line_argument=yes
8445 else
8446 xorg_cv_cc_flag_unused_command_line_argument=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8453 CFLAGS="$xorg_testset_save_CFLAGS"
8454 fi
8455
8456 found="no"
8457
8458 if test $found = "no" ; then
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 fi
8462
8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465 fi
8466
8467 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8470 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8471 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8472 if eval \${$cacheid+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 int i;
8478 int
8479 main ()
8480 {
8481
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"; then :
8487 eval $cacheid=yes
8488 else
8489 eval $cacheid=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 fi
8494
8495
8496 CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498 eval supported=\$$cacheid
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500 $as_echo "$supported" >&6; }
8501 if test "$supported" = "yes" ; then
8502 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8503 found="yes"
8504 fi
8505 fi
8506
8507 if test $found = "no" ; then
8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 fi
8511
8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8514 fi
8515
8516 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8519 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8520 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8521 if eval \${$cacheid+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 int i;
8527 int
8528 main ()
8529 {
8530
8531 ;
8532 return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_link "$LINENO"; then :
8536 eval $cacheid=yes
8537 else
8538 eval $cacheid=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542 fi
8543
8544
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546
8547 eval supported=\$$cacheid
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549 $as_echo "$supported" >&6; }
8550 if test "$supported" = "yes" ; then
8551 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8552 found="yes"
8553 fi
8554 fi
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570 xorg_testset_save_CFLAGS="$CFLAGS"
8571
8572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 int i;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 xorg_cv_cc_flag_unknown_warning_option=yes
8585 else
8586 xorg_cv_cc_flag_unknown_warning_option=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8593 CFLAGS="$xorg_testset_save_CFLAGS"
8594 fi
8595
8596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 fi
8600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 int i;
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611 xorg_cv_cc_flag_unused_command_line_argument=yes
8612 else
8613 xorg_cv_cc_flag_unused_command_line_argument=no
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8620 CFLAGS="$xorg_testset_save_CFLAGS"
8621 fi
8622
8623 found="no"
8624
8625 if test $found = "no" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 fi
8633
8634 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8637 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8638 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8639 if eval \${$cacheid+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 int i;
8645 int
8646 main ()
8647 {
8648
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 eval $cacheid=yes
8655 else
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 $as_echo "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8670 found="yes"
8671 fi
8672 fi
8673
8674 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8675 else
8676 { $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
8677 $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;}
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 xorg_testset_save_CFLAGS="$CFLAGS"
8692
8693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 int i;
8703 _ACEOF
8704 if ac_fn_c_try_compile "$LINENO"; then :
8705 xorg_cv_cc_flag_unknown_warning_option=yes
8706 else
8707 xorg_cv_cc_flag_unknown_warning_option=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8714 CFLAGS="$xorg_testset_save_CFLAGS"
8715 fi
8716
8717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720 fi
8721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 xorg_cv_cc_flag_unused_command_line_argument=yes
8733 else
8734 xorg_cv_cc_flag_unused_command_line_argument=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 found="no"
8745
8746 if test $found = "no" ; then
8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749 fi
8750
8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753 fi
8754
8755 CFLAGS="$CFLAGS -Wimplicit"
8756
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8758 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8759 cacheid=xorg_cv_cc_flag__Wimplicit
8760 if eval \${$cacheid+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 int i;
8766 int
8767 main ()
8768 {
8769
8770 ;
8771 return 0;
8772 }
8773 _ACEOF
8774 if ac_fn_c_try_link "$LINENO"; then :
8775 eval $cacheid=yes
8776 else
8777 eval $cacheid=no
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781 fi
8782
8783
8784 CFLAGS="$xorg_testset_save_CFLAGS"
8785
8786 eval supported=\$$cacheid
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8788 $as_echo "$supported" >&6; }
8789 if test "$supported" = "yes" ; then
8790 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8791 found="yes"
8792 fi
8793 fi
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809 xorg_testset_save_CFLAGS="$CFLAGS"
8810
8811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 int i;
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 xorg_cv_cc_flag_unknown_warning_option=yes
8824 else
8825 xorg_cv_cc_flag_unknown_warning_option=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833 fi
8834
8835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838 fi
8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unused_command_line_argument=yes
8851 else
8852 xorg_cv_cc_flag_unused_command_line_argument=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 found="no"
8863
8864 if test $found = "no" ; then
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 fi
8868
8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871 fi
8872
8873 CFLAGS="$CFLAGS -Wnonnull"
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8876 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8877 cacheid=xorg_cv_cc_flag__Wnonnull
8878 if eval \${$cacheid+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 int i;
8884 int
8885 main ()
8886 {
8887
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 eval $cacheid=yes
8894 else
8895 eval $cacheid=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 fi
8900
8901
8902 CFLAGS="$xorg_testset_save_CFLAGS"
8903
8904 eval supported=\$$cacheid
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8906 $as_echo "$supported" >&6; }
8907 if test "$supported" = "yes" ; then
8908 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8909 found="yes"
8910 fi
8911 fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 xorg_testset_save_CFLAGS="$CFLAGS"
8928
8929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 _ACEOF
8940 if ac_fn_c_try_compile "$LINENO"; then :
8941 xorg_cv_cc_flag_unknown_warning_option=yes
8942 else
8943 xorg_cv_cc_flag_unknown_warning_option=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951 fi
8952
8953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 fi
8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unused_command_line_argument=yes
8969 else
8970 xorg_cv_cc_flag_unused_command_line_argument=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 found="no"
8981
8982 if test $found = "no" ; then
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 fi
8990
8991 CFLAGS="$CFLAGS -Winit-self"
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8994 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8995 cacheid=xorg_cv_cc_flag__Winit_self
8996 if eval \${$cacheid+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 int i;
9002 int
9003 main ()
9004 {
9005
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_link "$LINENO"; then :
9011 eval $cacheid=yes
9012 else
9013 eval $cacheid=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017 fi
9018
9019
9020 CFLAGS="$xorg_testset_save_CFLAGS"
9021
9022 eval supported=\$$cacheid
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9024 $as_echo "$supported" >&6; }
9025 if test "$supported" = "yes" ; then
9026 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9027 found="yes"
9028 fi
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 xorg_testset_save_CFLAGS="$CFLAGS"
9046
9047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 xorg_cv_cc_flag_unknown_warning_option=yes
9060 else
9061 xorg_cv_cc_flag_unknown_warning_option=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069 fi
9070
9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074 fi
9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unused_command_line_argument=yes
9087 else
9088 xorg_cv_cc_flag_unused_command_line_argument=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 found="no"
9099
9100 if test $found = "no" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 fi
9108
9109 CFLAGS="$CFLAGS -Wmain"
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9112 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9113 cacheid=xorg_cv_cc_flag__Wmain
9114 if eval \${$cacheid+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 int i;
9120 int
9121 main ()
9122 {
9123
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 eval $cacheid=yes
9130 else
9131 eval $cacheid=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 fi
9136
9137
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140 eval supported=\$$cacheid
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142 $as_echo "$supported" >&6; }
9143 if test "$supported" = "yes" ; then
9144 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9145 found="yes"
9146 fi
9147 fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163 xorg_testset_save_CFLAGS="$CFLAGS"
9164
9165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 xorg_cv_cc_flag_unknown_warning_option=yes
9178 else
9179 xorg_cv_cc_flag_unknown_warning_option=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187 fi
9188
9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 fi
9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unused_command_line_argument=yes
9205 else
9206 xorg_cv_cc_flag_unused_command_line_argument=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 found="no"
9217
9218 if test $found = "no" ; then
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 fi
9226
9227 CFLAGS="$CFLAGS -Wmissing-braces"
9228
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9230 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9231 cacheid=xorg_cv_cc_flag__Wmissing_braces
9232 if eval \${$cacheid+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 int i;
9238 int
9239 main ()
9240 {
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 eval $cacheid=yes
9248 else
9249 eval $cacheid=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 fi
9254
9255
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9257
9258 eval supported=\$$cacheid
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9260 $as_echo "$supported" >&6; }
9261 if test "$supported" = "yes" ; then
9262 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9263 found="yes"
9264 fi
9265 fi
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 xorg_testset_save_CFLAGS="$CFLAGS"
9282
9283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int i;
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 xorg_cv_cc_flag_unknown_warning_option=yes
9296 else
9297 xorg_cv_cc_flag_unknown_warning_option=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305 fi
9306
9307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 fi
9311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unused_command_line_argument=yes
9323 else
9324 xorg_cv_cc_flag_unused_command_line_argument=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 found="no"
9335
9336 if test $found = "no" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 fi
9344
9345 CFLAGS="$CFLAGS -Wsequence-point"
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9348 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9349 cacheid=xorg_cv_cc_flag__Wsequence_point
9350 if eval \${$cacheid+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 int i;
9356 int
9357 main ()
9358 {
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365 eval $cacheid=yes
9366 else
9367 eval $cacheid=no
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 fi
9372
9373
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375
9376 eval supported=\$$cacheid
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9378 $as_echo "$supported" >&6; }
9379 if test "$supported" = "yes" ; then
9380 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9381 found="yes"
9382 fi
9383 fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399 xorg_testset_save_CFLAGS="$CFLAGS"
9400
9401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 int i;
9411 _ACEOF
9412 if ac_fn_c_try_compile "$LINENO"; then :
9413 xorg_cv_cc_flag_unknown_warning_option=yes
9414 else
9415 xorg_cv_cc_flag_unknown_warning_option=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423 fi
9424
9425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428 fi
9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unused_command_line_argument=yes
9441 else
9442 xorg_cv_cc_flag_unused_command_line_argument=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 found="no"
9453
9454 if test $found = "no" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 fi
9462
9463 CFLAGS="$CFLAGS -Wreturn-type"
9464
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9466 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9467 cacheid=xorg_cv_cc_flag__Wreturn_type
9468 if eval \${$cacheid+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 int i;
9474 int
9475 main ()
9476 {
9477
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 eval $cacheid=yes
9484 else
9485 eval $cacheid=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 fi
9490
9491
9492 CFLAGS="$xorg_testset_save_CFLAGS"
9493
9494 eval supported=\$$cacheid
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9496 $as_echo "$supported" >&6; }
9497 if test "$supported" = "yes" ; then
9498 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9499 found="yes"
9500 fi
9501 fi
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517 xorg_testset_save_CFLAGS="$CFLAGS"
9518
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 int i;
9529 _ACEOF
9530 if ac_fn_c_try_compile "$LINENO"; then :
9531 xorg_cv_cc_flag_unknown_warning_option=yes
9532 else
9533 xorg_cv_cc_flag_unknown_warning_option=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546 fi
9547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unused_command_line_argument=yes
9559 else
9560 xorg_cv_cc_flag_unused_command_line_argument=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 found="no"
9571
9572 if test $found = "no" ; then
9573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575 fi
9576
9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579 fi
9580
9581 CFLAGS="$CFLAGS -Wtrigraphs"
9582
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9584 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9585 cacheid=xorg_cv_cc_flag__Wtrigraphs
9586 if eval \${$cacheid+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 int i;
9592 int
9593 main ()
9594 {
9595
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 eval $cacheid=yes
9602 else
9603 eval $cacheid=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 fi
9608
9609
9610 CFLAGS="$xorg_testset_save_CFLAGS"
9611
9612 eval supported=\$$cacheid
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9614 $as_echo "$supported" >&6; }
9615 if test "$supported" = "yes" ; then
9616 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9617 found="yes"
9618 fi
9619 fi
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635 xorg_testset_save_CFLAGS="$CFLAGS"
9636
9637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 _ACEOF
9648 if ac_fn_c_try_compile "$LINENO"; then :
9649 xorg_cv_cc_flag_unknown_warning_option=yes
9650 else
9651 xorg_cv_cc_flag_unknown_warning_option=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659 fi
9660
9661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 fi
9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unused_command_line_argument=yes
9677 else
9678 xorg_cv_cc_flag_unused_command_line_argument=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 found="no"
9689
9690 if test $found = "no" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694
9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 fi
9698
9699 CFLAGS="$CFLAGS -Warray-bounds"
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9702 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9703 cacheid=xorg_cv_cc_flag__Warray_bounds
9704 if eval \${$cacheid+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 int i;
9710 int
9711 main ()
9712 {
9713
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 eval $cacheid=yes
9720 else
9721 eval $cacheid=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 fi
9726
9727
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9729
9730 eval supported=\$$cacheid
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9732 $as_echo "$supported" >&6; }
9733 if test "$supported" = "yes" ; then
9734 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9735 found="yes"
9736 fi
9737 fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 xorg_testset_save_CFLAGS="$CFLAGS"
9754
9755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 int i;
9765 _ACEOF
9766 if ac_fn_c_try_compile "$LINENO"; then :
9767 xorg_cv_cc_flag_unknown_warning_option=yes
9768 else
9769 xorg_cv_cc_flag_unknown_warning_option=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 fi
9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 xorg_cv_cc_flag_unused_command_line_argument=yes
9795 else
9796 xorg_cv_cc_flag_unused_command_line_argument=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 found="no"
9807
9808 if test $found = "no" ; then
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 fi
9812
9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 fi
9816
9817 CFLAGS="$CFLAGS -Wwrite-strings"
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9820 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9821 cacheid=xorg_cv_cc_flag__Wwrite_strings
9822 if eval \${$cacheid+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int i;
9828 int
9829 main ()
9830 {
9831
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"; then :
9837 eval $cacheid=yes
9838 else
9839 eval $cacheid=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843 fi
9844
9845
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848 eval supported=\$$cacheid
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850 $as_echo "$supported" >&6; }
9851 if test "$supported" = "yes" ; then
9852 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9853 found="yes"
9854 fi
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 xorg_testset_save_CFLAGS="$CFLAGS"
9872
9873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int i;
9883 _ACEOF
9884 if ac_fn_c_try_compile "$LINENO"; then :
9885 xorg_cv_cc_flag_unknown_warning_option=yes
9886 else
9887 xorg_cv_cc_flag_unknown_warning_option=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9894 CFLAGS="$xorg_testset_save_CFLAGS"
9895 fi
9896
9897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 xorg_cv_cc_flag_unused_command_line_argument=yes
9913 else
9914 xorg_cv_cc_flag_unused_command_line_argument=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 found="no"
9925
9926 if test $found = "no" ; then
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 fi
9930
9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933 fi
9934
9935 CFLAGS="$CFLAGS -Waddress"
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9938 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9939 cacheid=xorg_cv_cc_flag__Waddress
9940 if eval \${$cacheid+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 int i;
9946 int
9947 main ()
9948 {
9949
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955 eval $cacheid=yes
9956 else
9957 eval $cacheid=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 fi
9962
9963
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965
9966 eval supported=\$$cacheid
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9968 $as_echo "$supported" >&6; }
9969 if test "$supported" = "yes" ; then
9970 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9971 found="yes"
9972 fi
9973 fi
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989 xorg_testset_save_CFLAGS="$CFLAGS"
9990
9991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int i;
10001 _ACEOF
10002 if ac_fn_c_try_compile "$LINENO"; then :
10003 xorg_cv_cc_flag_unknown_warning_option=yes
10004 else
10005 xorg_cv_cc_flag_unknown_warning_option=no
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10012 CFLAGS="$xorg_testset_save_CFLAGS"
10013 fi
10014
10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 fi
10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 xorg_cv_cc_flag_unused_command_line_argument=yes
10031 else
10032 xorg_cv_cc_flag_unused_command_line_argument=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040 fi
10041
10042 found="no"
10043
10044 if test $found = "no" ; then
10045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10047 fi
10048
10049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051 fi
10052
10053 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10054
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10056 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10057 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10058 if eval \${$cacheid+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 int i;
10064 int
10065 main ()
10066 {
10067
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 eval $cacheid=yes
10074 else
10075 eval $cacheid=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 fi
10080
10081
10082 CFLAGS="$xorg_testset_save_CFLAGS"
10083
10084 eval supported=\$$cacheid
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10086 $as_echo "$supported" >&6; }
10087 if test "$supported" = "yes" ; then
10088 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10089 found="yes"
10090 fi
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"; then :
10121 xorg_cv_cc_flag_unknown_warning_option=yes
10122 else
10123 xorg_cv_cc_flag_unknown_warning_option=no
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130 CFLAGS="$xorg_testset_save_CFLAGS"
10131 fi
10132
10133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 fi
10137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 int i;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148 xorg_cv_cc_flag_unused_command_line_argument=yes
10149 else
10150 xorg_cv_cc_flag_unused_command_line_argument=no
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10157 CFLAGS="$xorg_testset_save_CFLAGS"
10158 fi
10159
10160 found="no"
10161
10162 if test $found = "no" ; then
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169 fi
10170
10171 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10172
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10174 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10175 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10176 if eval \${$cacheid+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int i;
10182 int
10183 main ()
10184 {
10185
10186 ;
10187 return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10191 eval $cacheid=yes
10192 else
10193 eval $cacheid=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 fi
10198
10199
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201
10202 eval supported=\$$cacheid
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10204 $as_echo "$supported" >&6; }
10205 if test "$supported" = "yes" ; then
10206 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10207 found="yes"
10208 fi
10209 fi
10210
10211
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220 CWARNFLAGS="$BASE_CFLAGS"
10221 if test "x$GCC" = xyes ; then
10222 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10223 fi
10224
10225
10226
10227
10228
10229
10230
10231
10232 # Check whether --enable-strict-compilation was given.
10233 if test "${enable_strict_compilation+set}" = set; then :
10234 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10235 else
10236 STRICT_COMPILE=no
10237 fi
10238
10239
10240
10241
10242
10243
10244 STRICT_CFLAGS=""
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258 xorg_testset_save_CFLAGS="$CFLAGS"
10259
10260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10263 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10264 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 int i;
10270 _ACEOF
10271 if ac_fn_c_try_compile "$LINENO"; then :
10272 xorg_cv_cc_flag_unknown_warning_option=yes
10273 else
10274 xorg_cv_cc_flag_unknown_warning_option=no
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10279 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10281 CFLAGS="$xorg_testset_save_CFLAGS"
10282 fi
10283
10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10287 fi
10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10290 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10291 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 xorg_cv_cc_flag_unused_command_line_argument=yes
10300 else
10301 xorg_cv_cc_flag_unused_command_line_argument=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10306 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10308 CFLAGS="$xorg_testset_save_CFLAGS"
10309 fi
10310
10311 found="no"
10312
10313 if test $found = "no" ; then
10314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316 fi
10317
10318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10320 fi
10321
10322 CFLAGS="$CFLAGS -pedantic"
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10325 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10326 cacheid=xorg_cv_cc_flag__pedantic
10327 if eval \${$cacheid+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 int i;
10333 int
10334 main ()
10335 {
10336
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 eval $cacheid=yes
10343 else
10344 eval $cacheid=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 fi
10349
10350
10351 CFLAGS="$xorg_testset_save_CFLAGS"
10352
10353 eval supported=\$$cacheid
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10355 $as_echo "$supported" >&6; }
10356 if test "$supported" = "yes" ; then
10357 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10358 found="yes"
10359 fi
10360 fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376 xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 xorg_cv_cc_flag_unknown_warning_option=yes
10391 else
10392 xorg_cv_cc_flag_unknown_warning_option=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10399 CFLAGS="$xorg_testset_save_CFLAGS"
10400 fi
10401
10402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405 fi
10406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 int i;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417 xorg_cv_cc_flag_unused_command_line_argument=yes
10418 else
10419 xorg_cv_cc_flag_unused_command_line_argument=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10426 CFLAGS="$xorg_testset_save_CFLAGS"
10427 fi
10428
10429 found="no"
10430
10431 if test $found = "no" ; then
10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434 fi
10435
10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438 fi
10439
10440 CFLAGS="$CFLAGS -Werror"
10441
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10443 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10444 cacheid=xorg_cv_cc_flag__Werror
10445 if eval \${$cacheid+:} 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 int
10452 main ()
10453 {
10454
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 eval $cacheid=yes
10461 else
10462 eval $cacheid=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 fi
10467
10468
10469 CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471 eval supported=\$$cacheid
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473 $as_echo "$supported" >&6; }
10474 if test "$supported" = "yes" ; then
10475 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10476 found="yes"
10477 fi
10478 fi
10479
10480 if test $found = "no" ; then
10481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483 fi
10484
10485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10487 fi
10488
10489 CFLAGS="$CFLAGS -errwarn"
10490
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10492 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10493 cacheid=xorg_cv_cc_flag__errwarn
10494 if eval \${$cacheid+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499 int i;
10500 int
10501 main ()
10502 {
10503
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 eval $cacheid=yes
10510 else
10511 eval $cacheid=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 fi
10516
10517
10518 CFLAGS="$xorg_testset_save_CFLAGS"
10519
10520 eval supported=\$$cacheid
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10522 $as_echo "$supported" >&6; }
10523 if test "$supported" = "yes" ; then
10524 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10525 found="yes"
10526 fi
10527 fi
10528
10529
10530
10531 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10532 # activate it with -Werror, so we add it here explicitly.
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546 xorg_testset_save_CFLAGS="$CFLAGS"
10547
10548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 _ACEOF
10559 if ac_fn_c_try_compile "$LINENO"; then :
10560 xorg_cv_cc_flag_unknown_warning_option=yes
10561 else
10562 xorg_cv_cc_flag_unknown_warning_option=no
10563 fi
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10569 CFLAGS="$xorg_testset_save_CFLAGS"
10570 fi
10571
10572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575 fi
10576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584 int i;
10585 _ACEOF
10586 if ac_fn_c_try_compile "$LINENO"; then :
10587 xorg_cv_cc_flag_unused_command_line_argument=yes
10588 else
10589 xorg_cv_cc_flag_unused_command_line_argument=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10596 CFLAGS="$xorg_testset_save_CFLAGS"
10597 fi
10598
10599 found="no"
10600
10601 if test $found = "no" ; then
10602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10604 fi
10605
10606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10608 fi
10609
10610 CFLAGS="$CFLAGS -Werror=attributes"
10611
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10613 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10614 cacheid=xorg_cv_cc_flag__Werror_attributes
10615 if eval \${$cacheid+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 int i;
10621 int
10622 main ()
10623 {
10624
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_link "$LINENO"; then :
10630 eval $cacheid=yes
10631 else
10632 eval $cacheid=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 fi
10637
10638
10639 CFLAGS="$xorg_testset_save_CFLAGS"
10640
10641 eval supported=\$$cacheid
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10643 $as_echo "$supported" >&6; }
10644 if test "$supported" = "yes" ; then
10645 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10646 found="yes"
10647 fi
10648 fi
10649
10650
10651
10652 if test "x$STRICT_COMPILE" = "xyes"; then
10653 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10654 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10655 fi
10656
10657
10658
10659
10660
10661
10662 cat >>confdefs.h <<_ACEOF
10663 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10664 _ACEOF
10665
10666 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10667 if test "x$PVM" = "x"; then
10668 PVM="0"
10669 fi
10670
10671 cat >>confdefs.h <<_ACEOF
10672 #define PACKAGE_VERSION_MINOR $PVM
10673 _ACEOF
10674
10675 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10676 if test "x$PVP" = "x"; then
10677 PVP="0"
10678 fi
10679
10680 cat >>confdefs.h <<_ACEOF
10681 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10682 _ACEOF
10683
10684
10685
10686 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10687 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10688 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10689 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10690
10691
10692
10693
10694 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10695 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10696 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10697 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10698 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10699
10700
10701
10702
10703
10704
10705 if test x$APP_MAN_SUFFIX = x ; then
10706 APP_MAN_SUFFIX=1
10707 fi
10708 if test x$APP_MAN_DIR = x ; then
10709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10710 fi
10711
10712 if test x$LIB_MAN_SUFFIX = x ; then
10713 LIB_MAN_SUFFIX=3
10714 fi
10715 if test x$LIB_MAN_DIR = x ; then
10716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10717 fi
10718
10719 if test x$FILE_MAN_SUFFIX = x ; then
10720 case $host_os in
10721 # Solaris 2.0 - 11 use SysV man page sections
10722 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10723 *) FILE_MAN_SUFFIX=5 ;;
10724 esac
10725 fi
10726 if test x$FILE_MAN_DIR = x ; then
10727 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10728 fi
10729
10730 if test x$MISC_MAN_SUFFIX = x ; then
10731 case $host_os in
10732 # Solaris 2.0 - 11 use SysV man page sections
10733 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10734 *) MISC_MAN_SUFFIX=7 ;;
10735 esac
10736 fi
10737 if test x$MISC_MAN_DIR = x ; then
10738 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10739 fi
10740
10741 if test x$DRIVER_MAN_SUFFIX = x ; then
10742 case $host_os in
10743 # Solaris 2.0 - 11 use SysV man page sections
10744 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10745 *) DRIVER_MAN_SUFFIX=4 ;;
10746 esac
10747 fi
10748 if test x$DRIVER_MAN_DIR = x ; then
10749 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10750 fi
10751
10752 if test x$ADMIN_MAN_SUFFIX = x ; then
10753 case $host_os in
10754 # Solaris 2.0 - 11 use SysV man page sections
10755 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10756 *) ADMIN_MAN_SUFFIX=8 ;;
10757 esac
10758 fi
10759 if test x$ADMIN_MAN_DIR = x ; then
10760 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10761 fi
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 XORG_MAN_PAGE="X Version 11"
10778
10779 MAN_SUBSTS="\
10780 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10781 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10782 -e 's|__xservername__|Xorg|g' \
10783 -e 's|__xconfigfile__|xorg.conf|g' \
10784 -e 's|__projectroot__|\$(prefix)|g' \
10785 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10786 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10787 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10788 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10789 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10790 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10791 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10792
10793
10794
10795 # Check whether --enable-silent-rules was given.
10796 if test "${enable_silent_rules+set}" = set; then :
10797 enableval=$enable_silent_rules;
10798 fi
10799
10800 case $enable_silent_rules in # (((
10801 yes) AM_DEFAULT_VERBOSITY=0;;
10802 no) AM_DEFAULT_VERBOSITY=1;;
10803 *) AM_DEFAULT_VERBOSITY=0;;
10804 esac
10805 am_make=${MAKE-make}
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10808 if ${am_cv_make_support_nested_variables+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 if $as_echo 'TRUE=$(BAR$(V))
10812 BAR0=false
10813 BAR1=true
10814 V=1
10815 am__doit:
10816 @$(TRUE)
10817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10818 am_cv_make_support_nested_variables=yes
10819 else
10820 am_cv_make_support_nested_variables=no
10821 fi
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10825 if test $am_cv_make_support_nested_variables = yes; then
10826 AM_V='$(V)'
10827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10828 else
10829 AM_V=$AM_DEFAULT_VERBOSITY
10830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10831 fi
10832 AM_BACKSLASH='\'
10833
10834
10835
10836 for ac_prog in 'bison -y' byacc
10837 do
10838 # Extract the first word of "$ac_prog", so it can be a program name with args.
10839 set dummy $ac_prog; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_prog_YACC+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test -n "$YACC"; then
10846 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10847 else
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10850 do
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10855 ac_cv_prog_YACC="$ac_prog"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 break 2
10858 fi
10859 done
10860 done
10861 IFS=$as_save_IFS
10862
10863 fi
10864 fi
10865 YACC=$ac_cv_prog_YACC
10866 if test -n "$YACC"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10868 $as_echo "$YACC" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872 fi
10873
10874
10875 test -n "$YACC" && break
10876 done
10877 test -n "$YACC" || YACC="yacc"
10878
10879 # Extract the first word of "$YACC", so it can be a program name with args.
10880 set dummy $YACC; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_YACC_INST+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 case $YACC_INST in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10889 ;;
10890 *)
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902 done
10903 done
10904 IFS=$as_save_IFS
10905
10906 ;;
10907 esac
10908 fi
10909 YACC_INST=$ac_cv_path_YACC_INST
10910 if test -n "$YACC_INST"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10912 $as_echo "$YACC_INST" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917
10918
10919 if test ! -f "$srcdir/gram.c"; then
10920 if test -z "$YACC_INST"; then
10921 as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10922 fi
10923 fi
10924 for ac_prog in flex lex
10925 do
10926 # Extract the first word of "$ac_prog", so it can be a program name with args.
10927 set dummy $ac_prog; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if ${ac_cv_prog_LEX+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if test -n "$LEX"; then
10934 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10935 else
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10938 do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_LEX="$ac_prog"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947 done
10948 done
10949 IFS=$as_save_IFS
10950
10951 fi
10952 fi
10953 LEX=$ac_cv_prog_LEX
10954 if test -n "$LEX"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10956 $as_echo "$LEX" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961
10962
10963 test -n "$LEX" && break
10964 done
10965 test -n "$LEX" || LEX=":"
10966
10967 if test "x$LEX" != "x:"; then
10968 cat >conftest.l <<_ACEOF
10969 %%
10970 a { ECHO; }
10971 b { REJECT; }
10972 c { yymore (); }
10973 d { yyless (1); }
10974 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
10975 yyless ((input () != 0)); }
10976 f { unput (yytext[0]); }
10977 . { BEGIN INITIAL; }
10978 %%
10979 #ifdef YYTEXT_POINTER
10980 extern char *yytext;
10981 #endif
10982 int
10983 main (void)
10984 {
10985 return ! yylex () + ! yywrap ();
10986 }
10987 _ACEOF
10988 { { ac_try="$LEX conftest.l"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10994 $as_echo "$ac_try_echo"; } >&5
10995 (eval "$LEX conftest.l") 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; }
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11000 $as_echo_n "checking lex output file root... " >&6; }
11001 if ${ac_cv_prog_lex_root+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004
11005 if test -f lex.yy.c; then
11006 ac_cv_prog_lex_root=lex.yy
11007 elif test -f lexyy.c; then
11008 ac_cv_prog_lex_root=lexyy
11009 else
11010 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11011 fi
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11014 $as_echo "$ac_cv_prog_lex_root" >&6; }
11015 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11016
11017 if test -z "${LEXLIB+set}"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11019 $as_echo_n "checking lex library... " >&6; }
11020 if ${ac_cv_lib_lex+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023
11024 ac_save_LIBS=$LIBS
11025 ac_cv_lib_lex='none needed'
11026 for ac_lib in '' -lfl -ll; do
11027 LIBS="$ac_lib $ac_save_LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 `cat $LEX_OUTPUT_ROOT.c`
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_lex=$ac_lib
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 test "$ac_cv_lib_lex" != 'none needed' && break
11038 done
11039 LIBS=$ac_save_LIBS
11040
11041 fi
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11043 $as_echo "$ac_cv_lib_lex" >&6; }
11044 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11045 fi
11046
11047
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11049 $as_echo_n "checking whether yytext is a pointer... " >&6; }
11050 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 # POSIX says lex can declare yytext either as a pointer or an array; the
11054 # default is implementation-dependent. Figure out which it is, since
11055 # not all implementations provide the %pointer and %array declarations.
11056 ac_cv_prog_lex_yytext_pointer=no
11057 ac_save_LIBS=$LIBS
11058 LIBS="$LEXLIB $ac_save_LIBS"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061
11062 #define YYTEXT_POINTER 1
11063 `cat $LEX_OUTPUT_ROOT.c`
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_prog_lex_yytext_pointer=yes
11067 fi
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_save_LIBS
11071
11072 fi
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11074 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11075 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11076
11077 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11078
11079 fi
11080 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11081
11082 fi
11083
11084 for ac_func in mkstemp
11085 do :
11086 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11087 if test "x$ac_cv_func_mkstemp" = xyes; then :
11088 cat >>confdefs.h <<_ACEOF
11089 #define HAVE_MKSTEMP 1
11090 _ACEOF
11091
11092 fi
11093 done
11094
11095
11096 # Checks for pkg-config packages
11097
11098 pkg_failed=no
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5
11100 $as_echo_n "checking for TWM... " >&6; }
11101
11102 if test -n "$TWM_CFLAGS"; then
11103 pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11104 elif test -n "$PKG_CONFIG"; then
11105 if test -n "$PKG_CONFIG" && \
11106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11107 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11108 ac_status=$?
11109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11110 test $ac_status = 0; }; then
11111 pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11112 test "x$?" != "x0" && pkg_failed=yes
11113 else
11114 pkg_failed=yes
11115 fi
11116 else
11117 pkg_failed=untried
11118 fi
11119 if test -n "$TWM_LIBS"; then
11120 pkg_cv_TWM_LIBS="$TWM_LIBS"
11121 elif test -n "$PKG_CONFIG"; then
11122 if test -n "$PKG_CONFIG" && \
11123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11124 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11125 ac_status=$?
11126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127 test $ac_status = 0; }; then
11128 pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11129 test "x$?" != "x0" && pkg_failed=yes
11130 else
11131 pkg_failed=yes
11132 fi
11133 else
11134 pkg_failed=untried
11135 fi
11136
11137
11138
11139 if test $pkg_failed = yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142
11143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11144 _pkg_short_errors_supported=yes
11145 else
11146 _pkg_short_errors_supported=no
11147 fi
11148 if test $_pkg_short_errors_supported = yes; then
11149 TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11150 else
11151 TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11152 fi
11153 # Put the nasty error message in config.log where it belongs
11154 echo "$TWM_PKG_ERRORS" >&5
11155
11156 as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11157
11158 $TWM_PKG_ERRORS
11159
11160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11161 installed software in a non-standard prefix.
11162
11163 Alternatively, you may set the environment variables TWM_CFLAGS
11164 and TWM_LIBS to avoid the need to call pkg-config.
11165 See the pkg-config man page for more details." "$LINENO" 5
11166 elif test $pkg_failed = untried; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11171 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11172 is in your PATH or set the PKG_CONFIG environment variable to the full
11173 path to pkg-config.
11174
11175 Alternatively, you may set the environment variables TWM_CFLAGS
11176 and TWM_LIBS to avoid the need to call pkg-config.
11177 See the pkg-config man page for more details.
11178
11179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11180 See \`config.log' for more details" "$LINENO" 5; }
11181 else
11182 TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11183 TWM_LIBS=$pkg_cv_TWM_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186
11187 fi
11188
11189 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11190
11191 cat >confcache <<\_ACEOF
11192 # This file is a shell script that caches the results of configure
11193 # tests run on this system so they can be shared between configure
11194 # scripts and configure runs, see configure's option --config-cache.
11195 # It is not useful on other systems. If it contains results you don't
11196 # want to keep, you may remove or edit it.
11197 #
11198 # config.status only pays attention to the cache file if you give it
11199 # the --recheck option to rerun configure.
11200 #
11201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11203 # following values.
11204
11205 _ACEOF
11206
11207 # The following way of writing the cache mishandles newlines in values,
11208 # but we know of no workaround that is simple, portable, and efficient.
11209 # So, we kill variables containing newlines.
11210 # Ultrix sh set writes to stderr and can't be redirected directly,
11211 # and sets the high bit in the cache file unless we assign to the vars.
11212 (
11213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11214 eval ac_val=\$$ac_var
11215 case $ac_val in #(
11216 *${as_nl}*)
11217 case $ac_var in #(
11218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11220 esac
11221 case $ac_var in #(
11222 _ | IFS | as_nl) ;; #(
11223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11224 *) { eval $ac_var=; unset $ac_var;} ;;
11225 esac ;;
11226 esac
11227 done
11228
11229 (set) 2>&1 |
11230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11231 *${as_nl}ac_space=\ *)
11232 # `set' does not quote correctly, so add quotes: double-quote
11233 # substitution turns \\\\ into \\, and sed turns \\ into \.
11234 sed -n \
11235 "s/'/'\\\\''/g;
11236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11237 ;; #(
11238 *)
11239 # `set' quotes correctly as required by POSIX, so do not add quotes.
11240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11241 ;;
11242 esac |
11243 sort
11244 ) |
11245 sed '
11246 /^ac_cv_env_/b end
11247 t clear
11248 :clear
11249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11250 t end
11251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11252 :end' >>confcache
11253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11254 if test -w "$cache_file"; then
11255 if test "x$cache_file" != "x/dev/null"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11257 $as_echo "$as_me: updating cache $cache_file" >&6;}
11258 if test ! -f "$cache_file" || test -h "$cache_file"; then
11259 cat confcache >"$cache_file"
11260 else
11261 case $cache_file in #(
11262 */* | ?:*)
11263 mv -f confcache "$cache_file"$$ &&
11264 mv -f "$cache_file"$$ "$cache_file" ;; #(
11265 *)
11266 mv -f confcache "$cache_file" ;;
11267 esac
11268 fi
11269 fi
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11273 fi
11274 fi
11275 rm -f confcache
11276
11277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11278 # Let make expand exec_prefix.
11279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11280
11281 DEFS=-DHAVE_CONFIG_H
11282
11283 ac_libobjs=
11284 ac_ltlibobjs=
11285 U=
11286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11287 # 1. Remove the extension, and $U if already installed.
11288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11291 # will be set to the directory where LIBOBJS objects are built.
11292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11294 done
11295 LIBOBJS=$ac_libobjs
11296
11297 LTLIBOBJS=$ac_ltlibobjs
11298
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11301 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11302 if test -n "$am_sleep_pid"; then
11303 # Hide warnings about reused PIDs.
11304 wait $am_sleep_pid 2>/dev/null
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11307 $as_echo "done" >&6; }
11308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11309 as_fn_error $? "conditional \"AMDEP\" was never defined.
11310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11311 fi
11312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11315 fi
11316 if test -n "$EXEEXT"; then
11317 am__EXEEXT_TRUE=
11318 am__EXEEXT_FALSE='#'
11319 else
11320 am__EXEEXT_TRUE='#'
11321 am__EXEEXT_FALSE=
11322 fi
11323
11324
11325 : "${CONFIG_STATUS=./config.status}"
11326 ac_write_fail=0
11327 ac_clean_files_save=$ac_clean_files
11328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11330 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11331 as_write_fail=0
11332 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11333 #! $SHELL
11334 # Generated by $as_me.
11335 # Run this file to recreate the current configuration.
11336 # Compiler output produced by configure, useful for debugging
11337 # configure, is in config.log if it exists.
11338
11339 debug=false
11340 ac_cs_recheck=false
11341 ac_cs_silent=false
11342
11343 SHELL=\${CONFIG_SHELL-$SHELL}
11344 export SHELL
11345 _ASEOF
11346 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11347 ## -------------------- ##
11348 ## M4sh Initialization. ##
11349 ## -------------------- ##
11350
11351 # Be more Bourne compatible
11352 DUALCASE=1; export DUALCASE # for MKS sh
11353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11354 emulate sh
11355 NULLCMD=:
11356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11357 # is contrary to our usage. Disable this feature.
11358 alias -g '${1+"$@"}'='"$@"'
11359 setopt NO_GLOB_SUBST
11360 else
11361 case `(set -o) 2>/dev/null` in #(
11362 *posix*) :
11363 set -o posix ;; #(
11364 *) :
11365 ;;
11366 esac
11367 fi
11368
11369
11370 as_nl='
11371 '
11372 export as_nl
11373 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11374 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11377 # Prefer a ksh shell builtin over an external printf program on Solaris,
11378 # but without wasting forks for bash or zsh.
11379 if test -z "$BASH_VERSION$ZSH_VERSION" \
11380 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11381 as_echo='print -r --'
11382 as_echo_n='print -rn --'
11383 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11384 as_echo='printf %s\n'
11385 as_echo_n='printf %s'
11386 else
11387 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11388 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11389 as_echo_n='/usr/ucb/echo -n'
11390 else
11391 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11392 as_echo_n_body='eval
11393 arg=$1;
11394 case $arg in #(
11395 *"$as_nl"*)
11396 expr "X$arg" : "X\\(.*\\)$as_nl";
11397 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11398 esac;
11399 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11400 '
11401 export as_echo_n_body
11402 as_echo_n='sh -c $as_echo_n_body as_echo'
11403 fi
11404 export as_echo_body
11405 as_echo='sh -c $as_echo_body as_echo'
11406 fi
11407
11408 # The user is always right.
11409 if test "${PATH_SEPARATOR+set}" != set; then
11410 PATH_SEPARATOR=:
11411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11412 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11413 PATH_SEPARATOR=';'
11414 }
11415 fi
11416
11417
11418 # IFS
11419 # We need space, tab and new line, in precisely that order. Quoting is
11420 # there to prevent editors from complaining about space-tab.
11421 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11422 # splitting by setting IFS to empty value.)
11423 IFS=" "" $as_nl"
11424
11425 # Find who we are. Look in the path if we contain no directory separator.
11426 as_myself=
11427 case $0 in #((
11428 *[\\/]* ) as_myself=$0 ;;
11429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11431 do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11435 done
11436 IFS=$as_save_IFS
11437
11438 ;;
11439 esac
11440 # We did not find ourselves, most probably we were run as `sh COMMAND'
11441 # in which case we are not to be found in the path.
11442 if test "x$as_myself" = x; then
11443 as_myself=$0
11444 fi
11445 if test ! -f "$as_myself"; then
11446 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11447 exit 1
11448 fi
11449
11450 # Unset variables that we do not need and which cause bugs (e.g. in
11451 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11452 # suppresses any "Segmentation fault" message there. '((' could
11453 # trigger a bug in pdksh 5.2.14.
11454 for as_var in BASH_ENV ENV MAIL MAILPATH
11455 do eval test x\${$as_var+set} = xset \
11456 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11457 done
11458 PS1='$ '
11459 PS2='> '
11460 PS4='+ '
11461
11462 # NLS nuisances.
11463 LC_ALL=C
11464 export LC_ALL
11465 LANGUAGE=C
11466 export LANGUAGE
11467
11468 # CDPATH.
11469 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11470
11471
11472 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11473 # ----------------------------------------
11474 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11475 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11476 # script with STATUS, using 1 if that was 0.
11477 as_fn_error ()
11478 {
11479 as_status=$1; test $as_status -eq 0 && as_status=1
11480 if test "$4"; then
11481 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11482 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11483 fi
11484 $as_echo "$as_me: error: $2" >&2
11485 as_fn_exit $as_status
11486 } # as_fn_error
11487
11488
11489 # as_fn_set_status STATUS
11490 # -----------------------
11491 # Set $? to STATUS, without forking.
11492 as_fn_set_status ()
11493 {
11494 return $1
11495 } # as_fn_set_status
11496
11497 # as_fn_exit STATUS
11498 # -----------------
11499 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11500 as_fn_exit ()
11501 {
11502 set +e
11503 as_fn_set_status $1
11504 exit $1
11505 } # as_fn_exit
11506
11507 # as_fn_unset VAR
11508 # ---------------
11509 # Portably unset VAR.
11510 as_fn_unset ()
11511 {
11512 { eval $1=; unset $1;}
11513 }
11514 as_unset=as_fn_unset
11515 # as_fn_append VAR VALUE
11516 # ----------------------
11517 # Append the text in VALUE to the end of the definition contained in VAR. Take
11518 # advantage of any shell optimizations that allow amortized linear growth over
11519 # repeated appends, instead of the typical quadratic growth present in naive
11520 # implementations.
11521 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11522 eval 'as_fn_append ()
11523 {
11524 eval $1+=\$2
11525 }'
11526 else
11527 as_fn_append ()
11528 {
11529 eval $1=\$$1\$2
11530 }
11531 fi # as_fn_append
11532
11533 # as_fn_arith ARG...
11534 # ------------------
11535 # Perform arithmetic evaluation on the ARGs, and store the result in the
11536 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11537 # must be portable across $(()) and expr.
11538 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11539 eval 'as_fn_arith ()
11540 {
11541 as_val=$(( $* ))
11542 }'
11543 else
11544 as_fn_arith ()
11545 {
11546 as_val=`expr "$@" || test $? -eq 1`
11547 }
11548 fi # as_fn_arith
11549
11550
11551 if expr a : '\(a\)' >/dev/null 2>&1 &&
11552 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11553 as_expr=expr
11554 else
11555 as_expr=false
11556 fi
11557
11558 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11559 as_basename=basename
11560 else
11561 as_basename=false
11562 fi
11563
11564 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11565 as_dirname=dirname
11566 else
11567 as_dirname=false
11568 fi
11569
11570 as_me=`$as_basename -- "$0" ||
11571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11572 X"$0" : 'X\(//\)$' \| \
11573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11574 $as_echo X/"$0" |
11575 sed '/^.*\/\([^/][^/]*\)\/*$/{
11576 s//\1/
11577 q
11578 }
11579 /^X\/\(\/\/\)$/{
11580 s//\1/
11581 q
11582 }
11583 /^X\/\(\/\).*/{
11584 s//\1/
11585 q
11586 }
11587 s/.*/./; q'`
11588
11589 # Avoid depending upon Character Ranges.
11590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11593 as_cr_digits='0123456789'
11594 as_cr_alnum=$as_cr_Letters$as_cr_digits
11595
11596 ECHO_C= ECHO_N= ECHO_T=
11597 case `echo -n x` in #(((((
11598 -n*)
11599 case `echo 'xy\c'` in
11600 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11601 xy) ECHO_C='\c';;
11602 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11603 ECHO_T=' ';;
11604 esac;;
11605 *)
11606 ECHO_N='-n';;
11607 esac
11608
11609 rm -f conf$$ conf$$.exe conf$$.file
11610 if test -d conf$$.dir; then
11611 rm -f conf$$.dir/conf$$.file
11612 else
11613 rm -f conf$$.dir
11614 mkdir conf$$.dir 2>/dev/null
11615 fi
11616 if (echo >conf$$.file) 2>/dev/null; then
11617 if ln -s conf$$.file conf$$ 2>/dev/null; then
11618 as_ln_s='ln -s'
11619 # ... but there are two gotchas:
11620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11622 # In both cases, we have to default to `cp -pR'.
11623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11624 as_ln_s='cp -pR'
11625 elif ln conf$$.file conf$$ 2>/dev/null; then
11626 as_ln_s=ln
11627 else
11628 as_ln_s='cp -pR'
11629 fi
11630 else
11631 as_ln_s='cp -pR'
11632 fi
11633 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11634 rmdir conf$$.dir 2>/dev/null
11635
11636
11637 # as_fn_mkdir_p
11638 # -------------
11639 # Create "$as_dir" as a directory, including parents if necessary.
11640 as_fn_mkdir_p ()
11641 {
11642
11643 case $as_dir in #(
11644 -*) as_dir=./$as_dir;;
11645 esac
11646 test -d "$as_dir" || eval $as_mkdir_p || {
11647 as_dirs=
11648 while :; do
11649 case $as_dir in #(
11650 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11651 *) as_qdir=$as_dir;;
11652 esac
11653 as_dirs="'$as_qdir' $as_dirs"
11654 as_dir=`$as_dirname -- "$as_dir" ||
11655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11656 X"$as_dir" : 'X\(//\)[^/]' \| \
11657 X"$as_dir" : 'X\(//\)$' \| \
11658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11659 $as_echo X"$as_dir" |
11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11661 s//\1/
11662 q
11663 }
11664 /^X\(\/\/\)[^/].*/{
11665 s//\1/
11666 q
11667 }
11668 /^X\(\/\/\)$/{
11669 s//\1/
11670 q
11671 }
11672 /^X\(\/\).*/{
11673 s//\1/
11674 q
11675 }
11676 s/.*/./; q'`
11677 test -d "$as_dir" && break
11678 done
11679 test -z "$as_dirs" || eval "mkdir $as_dirs"
11680 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11681
11682
11683 } # as_fn_mkdir_p
11684 if mkdir -p . 2>/dev/null; then
11685 as_mkdir_p='mkdir -p "$as_dir"'
11686 else
11687 test -d ./-p && rmdir ./-p
11688 as_mkdir_p=false
11689 fi
11690
11691
11692 # as_fn_executable_p FILE
11693 # -----------------------
11694 # Test if FILE is an executable regular file.
11695 as_fn_executable_p ()
11696 {
11697 test -f "$1" && test -x "$1"
11698 } # as_fn_executable_p
11699 as_test_x='test -x'
11700 as_executable_p=as_fn_executable_p
11701
11702 # Sed expression to map a string onto a valid CPP name.
11703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11704
11705 # Sed expression to map a string onto a valid variable name.
11706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11707
11708
11709 exec 6>&1
11710 ## ----------------------------------- ##
11711 ## Main body of $CONFIG_STATUS script. ##
11712 ## ----------------------------------- ##
11713 _ASEOF
11714 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11715
11716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11717 # Save the log message, to keep $0 and so on meaningful, and to
11718 # report actual input values of CONFIG_FILES etc. instead of their
11719 # values after options handling.
11720 ac_log="
11721 This file was extended by twm $as_me 1.0.10, which was
11722 generated by GNU Autoconf 2.69. Invocation command line was
11723
11724 CONFIG_FILES = $CONFIG_FILES
11725 CONFIG_HEADERS = $CONFIG_HEADERS
11726 CONFIG_LINKS = $CONFIG_LINKS
11727 CONFIG_COMMANDS = $CONFIG_COMMANDS
11728 $ $0 $@
11729
11730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11731 "
11732
11733 _ACEOF
11734
11735 case $ac_config_files in *"
11736 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11737 esac
11738
11739 case $ac_config_headers in *"
11740 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11741 esac
11742
11743
11744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11745 # Files that config.status was made for.
11746 config_files="$ac_config_files"
11747 config_headers="$ac_config_headers"
11748 config_commands="$ac_config_commands"
11749
11750 _ACEOF
11751
11752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11753 ac_cs_usage="\
11754 \`$as_me' instantiates files and other configuration actions
11755 from templates according to the current configuration. Unless the files
11756 and actions are specified as TAGs, all are instantiated by default.
11757
11758 Usage: $0 [OPTION]... [TAG]...
11759
11760 -h, --help print this help, then exit
11761 -V, --version print version number and configuration settings, then exit
11762 --config print configuration, then exit
11763 -q, --quiet, --silent
11764 do not print progress messages
11765 -d, --debug don't remove temporary files
11766 --recheck update $as_me by reconfiguring in the same conditions
11767 --file=FILE[:TEMPLATE]
11768 instantiate the configuration file FILE
11769 --header=FILE[:TEMPLATE]
11770 instantiate the configuration header FILE
11771
11772 Configuration files:
11773 $config_files
11774
11775 Configuration headers:
11776 $config_headers
11777
11778 Configuration commands:
11779 $config_commands
11780
11781 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11782
11783 _ACEOF
11784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11786 ac_cs_version="\\
11787 twm config.status 1.0.10
11788 configured by $0, generated by GNU Autoconf 2.69,
11789 with options \\"\$ac_cs_config\\"
11790
11791 Copyright (C) 2012 Free Software Foundation, Inc.
11792 This config.status script is free software; the Free Software Foundation
11793 gives unlimited permission to copy, distribute and modify it."
11794
11795 ac_pwd='$ac_pwd'
11796 srcdir='$srcdir'
11797 INSTALL='$INSTALL'
11798 MKDIR_P='$MKDIR_P'
11799 AWK='$AWK'
11800 test -n "\$AWK" || AWK=awk
11801 _ACEOF
11802
11803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11804 # The default lists apply if the user does not specify any file.
11805 ac_need_defaults=:
11806 while test $# != 0
11807 do
11808 case $1 in
11809 --*=?*)
11810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11812 ac_shift=:
11813 ;;
11814 --*=)
11815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11816 ac_optarg=
11817 ac_shift=:
11818 ;;
11819 *)
11820 ac_option=$1
11821 ac_optarg=$2
11822 ac_shift=shift
11823 ;;
11824 esac
11825
11826 case $ac_option in
11827 # Handling of the options.
11828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11829 ac_cs_recheck=: ;;
11830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11831 $as_echo "$ac_cs_version"; exit ;;
11832 --config | --confi | --conf | --con | --co | --c )
11833 $as_echo "$ac_cs_config"; exit ;;
11834 --debug | --debu | --deb | --de | --d | -d )
11835 debug=: ;;
11836 --file | --fil | --fi | --f )
11837 $ac_shift
11838 case $ac_optarg in
11839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11840 '') as_fn_error $? "missing file argument" ;;
11841 esac
11842 as_fn_append CONFIG_FILES " '$ac_optarg'"
11843 ac_need_defaults=false;;
11844 --header | --heade | --head | --hea )
11845 $ac_shift
11846 case $ac_optarg in
11847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11848 esac
11849 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11850 ac_need_defaults=false;;
11851 --he | --h)
11852 # Conflict between --help and --header
11853 as_fn_error $? "ambiguous option: \`$1'
11854 Try \`$0 --help' for more information.";;
11855 --help | --hel | -h )
11856 $as_echo "$ac_cs_usage"; exit ;;
11857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11859 ac_cs_silent=: ;;
11860
11861 # This is an error.
11862 -*) as_fn_error $? "unrecognized option: \`$1'
11863 Try \`$0 --help' for more information." ;;
11864
11865 *) as_fn_append ac_config_targets " $1"
11866 ac_need_defaults=false ;;
11867
11868 esac
11869 shift
11870 done
11871
11872 ac_configure_extra_args=
11873
11874 if $ac_cs_silent; then
11875 exec 6>/dev/null
11876 ac_configure_extra_args="$ac_configure_extra_args --silent"
11877 fi
11878
11879 _ACEOF
11880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11881 if \$ac_cs_recheck; then
11882 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11883 shift
11884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11885 CONFIG_SHELL='$SHELL'
11886 export CONFIG_SHELL
11887 exec "\$@"
11888 fi
11889
11890 _ACEOF
11891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892 exec 5>>config.log
11893 {
11894 echo
11895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11896 ## Running $as_me. ##
11897 _ASBOX
11898 $as_echo "$ac_log"
11899 } >&5
11900
11901 _ACEOF
11902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11903 #
11904 # INIT-COMMANDS
11905 #
11906 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11907
11908 _ACEOF
11909
11910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11911
11912 # Handling of arguments.
11913 for ac_config_target in $ac_config_targets
11914 do
11915 case $ac_config_target in
11916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11919 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11921
11922 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11923 esac
11924 done
11925
11926
11927 # If the user did not use the arguments to specify the items to instantiate,
11928 # then the envvar interface is used. Set only those that are not.
11929 # We use the long form for the default assignment because of an extremely
11930 # bizarre bug on SunOS 4.1.3.
11931 if $ac_need_defaults; then
11932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11935 fi
11936
11937 # Have a temporary directory for convenience. Make it in the build tree
11938 # simply because there is no reason against having it here, and in addition,
11939 # creating and moving files from /tmp can sometimes cause problems.
11940 # Hook for its removal unless debugging.
11941 # Note that there is a small window in which the directory will not be cleaned:
11942 # after its creation but before its name has been assigned to `$tmp'.
11943 $debug ||
11944 {
11945 tmp= ac_tmp=
11946 trap 'exit_status=$?
11947 : "${ac_tmp:=$tmp}"
11948 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11949 ' 0
11950 trap 'as_fn_exit 1' 1 2 13 15
11951 }
11952 # Create a (secure) tmp directory for tmp files.
11953
11954 {
11955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11956 test -d "$tmp"
11957 } ||
11958 {
11959 tmp=./conf$$-$RANDOM
11960 (umask 077 && mkdir "$tmp")
11961 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11962 ac_tmp=$tmp
11963
11964 # Set up the scripts for CONFIG_FILES section.
11965 # No need to generate them if there are no CONFIG_FILES.
11966 # This happens for instance with `./config.status config.h'.
11967 if test -n "$CONFIG_FILES"; then
11968
11969
11970 ac_cr=`echo X | tr X '\015'`
11971 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11972 # But we know of no other shell where ac_cr would be empty at this
11973 # point, so we can use a bashism as a fallback.
11974 if test "x$ac_cr" = x; then
11975 eval ac_cr=\$\'\\r\'
11976 fi
11977 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11978 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11979 ac_cs_awk_cr='\\r'
11980 else
11981 ac_cs_awk_cr=$ac_cr
11982 fi
11983
11984 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11985 _ACEOF
11986
11987
11988 {
11989 echo "cat >conf$$subs.awk <<_ACEOF" &&
11990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11991 echo "_ACEOF"
11992 } >conf$$subs.sh ||
11993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11995 ac_delim='%!_!# '
11996 for ac_last_try in false false false false false :; do
11997 . ./conf$$subs.sh ||
11998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11999
12000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12001 if test $ac_delim_n = $ac_delim_num; then
12002 break
12003 elif $ac_last_try; then
12004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12005 else
12006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12007 fi
12008 done
12009 rm -f conf$$subs.sh
12010
12011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12012 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12013 _ACEOF
12014 sed -n '
12015 h
12016 s/^/S["/; s/!.*/"]=/
12017 p
12018 g
12019 s/^[^!]*!//
12020 :repl
12021 t repl
12022 s/'"$ac_delim"'$//
12023 t delim
12024 :nl
12025 h
12026 s/\(.\{148\}\)..*/\1/
12027 t more1
12028 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12029 p
12030 n
12031 b repl
12032 :more1
12033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12034 p
12035 g
12036 s/.\{148\}//
12037 t nl
12038 :delim
12039 h
12040 s/\(.\{148\}\)..*/\1/
12041 t more2
12042 s/["\\]/\\&/g; s/^/"/; s/$/"/
12043 p
12044 b
12045 :more2
12046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12047 p
12048 g
12049 s/.\{148\}//
12050 t delim
12051 ' <conf$$subs.awk | sed '
12052 /^[^""]/{
12053 N
12054 s/\n//
12055 }
12056 ' >>$CONFIG_STATUS || ac_write_fail=1
12057 rm -f conf$$subs.awk
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 _ACAWK
12060 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12061 for (key in S) S_is_set[key] = 1
12062 FS = ""
12063
12064 }
12065 {
12066 line = $ 0
12067 nfields = split(line, field, "@")
12068 substed = 0
12069 len = length(field[1])
12070 for (i = 2; i < nfields; i++) {
12071 key = field[i]
12072 keylen = length(key)
12073 if (S_is_set[key]) {
12074 value = S[key]
12075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12076 len += length(value) + length(field[++i])
12077 substed = 1
12078 } else
12079 len += 1 + keylen
12080 }
12081
12082 print line
12083 }
12084
12085 _ACAWK
12086 _ACEOF
12087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12090 else
12091 cat
12092 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12093 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12094 _ACEOF
12095
12096 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12097 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12098 # trailing colons and then remove the whole line if VPATH becomes empty
12099 # (actually we leave an empty line to preserve line numbers).
12100 if test "x$srcdir" = x.; then
12101 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12102 h
12103 s///
12104 s/^/:/
12105 s/[ ]*$/:/
12106 s/:\$(srcdir):/:/g
12107 s/:\${srcdir}:/:/g
12108 s/:@srcdir@:/:/g
12109 s/^:*//
12110 s/:*$//
12111 x
12112 s/\(=[ ]*\).*/\1/
12113 G
12114 s/\n//
12115 s/^[^=]*=[ ]*$//
12116 }'
12117 fi
12118
12119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12120 fi # test -n "$CONFIG_FILES"
12121
12122 # Set up the scripts for CONFIG_HEADERS section.
12123 # No need to generate them if there are no CONFIG_HEADERS.
12124 # This happens for instance with `./config.status Makefile'.
12125 if test -n "$CONFIG_HEADERS"; then
12126 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12127 BEGIN {
12128 _ACEOF
12129
12130 # Transform confdefs.h into an awk script `defines.awk', embedded as
12131 # here-document in config.status, that substitutes the proper values into
12132 # config.h.in to produce config.h.
12133
12134 # Create a delimiter string that does not exist in confdefs.h, to ease
12135 # handling of long lines.
12136 ac_delim='%!_!# '
12137 for ac_last_try in false false :; do
12138 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12139 if test -z "$ac_tt"; then
12140 break
12141 elif $ac_last_try; then
12142 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12143 else
12144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12145 fi
12146 done
12147
12148 # For the awk script, D is an array of macro values keyed by name,
12149 # likewise P contains macro parameters if any. Preserve backslash
12150 # newline sequences.
12151
12152 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12153 sed -n '
12154 s/.\{148\}/&'"$ac_delim"'/g
12155 t rset
12156 :rset
12157 s/^[ ]*#[ ]*define[ ][ ]*/ /
12158 t def
12159 d
12160 :def
12161 s/\\$//
12162 t bsnl
12163 s/["\\]/\\&/g
12164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12165 D["\1"]=" \3"/p
12166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12167 d
12168 :bsnl
12169 s/["\\]/\\&/g
12170 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12171 D["\1"]=" \3\\\\\\n"\\/p
12172 t cont
12173 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12174 t cont
12175 d
12176 :cont
12177 n
12178 s/.\{148\}/&'"$ac_delim"'/g
12179 t clear
12180 :clear
12181 s/\\$//
12182 t bsnlc
12183 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12184 d
12185 :bsnlc
12186 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12187 b cont
12188 ' <confdefs.h | sed '
12189 s/'"$ac_delim"'/"\\\
12190 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12191
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193 for (key in D) D_is_set[key] = 1
12194 FS = ""
12195 }
12196 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12197 line = \$ 0
12198 split(line, arg, " ")
12199 if (arg[1] == "#") {
12200 defundef = arg[2]
12201 mac1 = arg[3]
12202 } else {
12203 defundef = substr(arg[1], 2)
12204 mac1 = arg[2]
12205 }
12206 split(mac1, mac2, "(") #)
12207 macro = mac2[1]
12208 prefix = substr(line, 1, index(line, defundef) - 1)
12209 if (D_is_set[macro]) {
12210 # Preserve the white space surrounding the "#".
12211 print prefix "define", macro P[macro] D[macro]
12212 next
12213 } else {
12214 # Replace #undef with comments. This is necessary, for example,
12215 # in the case of _POSIX_SOURCE, which is predefined and required
12216 # on some systems where configure will not decide to define it.
12217 if (defundef == "undef") {
12218 print "/*", prefix defundef, macro, "*/"
12219 next
12220 }
12221 }
12222 }
12223 { print }
12224 _ACAWK
12225 _ACEOF
12226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12227 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12228 fi # test -n "$CONFIG_HEADERS"
12229
12230
12231 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12232 shift
12233 for ac_tag
12234 do
12235 case $ac_tag in
12236 :[FHLC]) ac_mode=$ac_tag; continue;;
12237 esac
12238 case $ac_mode$ac_tag in
12239 :[FHL]*:*);;
12240 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12241 :[FH]-) ac_tag=-:-;;
12242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12243 esac
12244 ac_save_IFS=$IFS
12245 IFS=:
12246 set x $ac_tag
12247 IFS=$ac_save_IFS
12248 shift
12249 ac_file=$1
12250 shift
12251
12252 case $ac_mode in
12253 :L) ac_source=$1;;
12254 :[FH])
12255 ac_file_inputs=
12256 for ac_f
12257 do
12258 case $ac_f in
12259 -) ac_f="$ac_tmp/stdin";;
12260 *) # Look for the file first in the build tree, then in the source tree
12261 # (if the path is not absolute). The absolute path cannot be DOS-style,
12262 # because $ac_f cannot contain `:'.
12263 test -f "$ac_f" ||
12264 case $ac_f in
12265 [\\/$]*) false;;
12266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12267 esac ||
12268 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12269 esac
12270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12271 as_fn_append ac_file_inputs " '$ac_f'"
12272 done
12273
12274 # Let's still pretend it is `configure' which instantiates (i.e., don't
12275 # use $as_me), people would be surprised to read:
12276 # /* config.h. Generated by config.status. */
12277 configure_input='Generated from '`
12278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12279 `' by configure.'
12280 if test x"$ac_file" != x-; then
12281 configure_input="$ac_file. $configure_input"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12283 $as_echo "$as_me: creating $ac_file" >&6;}
12284 fi
12285 # Neutralize special characters interpreted by sed in replacement strings.
12286 case $configure_input in #(
12287 *\&* | *\|* | *\\* )
12288 ac_sed_conf_input=`$as_echo "$configure_input" |
12289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12290 *) ac_sed_conf_input=$configure_input;;
12291 esac
12292
12293 case $ac_tag in
12294 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12296 esac
12297 ;;
12298 esac
12299
12300 ac_dir=`$as_dirname -- "$ac_file" ||
12301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12302 X"$ac_file" : 'X\(//\)[^/]' \| \
12303 X"$ac_file" : 'X\(//\)$' \| \
12304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12305 $as_echo X"$ac_file" |
12306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12307 s//\1/
12308 q
12309 }
12310 /^X\(\/\/\)[^/].*/{
12311 s//\1/
12312 q
12313 }
12314 /^X\(\/\/\)$/{
12315 s//\1/
12316 q
12317 }
12318 /^X\(\/\).*/{
12319 s//\1/
12320 q
12321 }
12322 s/.*/./; q'`
12323 as_dir="$ac_dir"; as_fn_mkdir_p
12324 ac_builddir=.
12325
12326 case "$ac_dir" in
12327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12328 *)
12329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12330 # A ".." for each directory in $ac_dir_suffix.
12331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12332 case $ac_top_builddir_sub in
12333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12335 esac ;;
12336 esac
12337 ac_abs_top_builddir=$ac_pwd
12338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12339 # for backward compatibility:
12340 ac_top_builddir=$ac_top_build_prefix
12341
12342 case $srcdir in
12343 .) # We are building in place.
12344 ac_srcdir=.
12345 ac_top_srcdir=$ac_top_builddir_sub
12346 ac_abs_top_srcdir=$ac_pwd ;;
12347 [\\/]* | ?:[\\/]* ) # Absolute name.
12348 ac_srcdir=$srcdir$ac_dir_suffix;
12349 ac_top_srcdir=$srcdir
12350 ac_abs_top_srcdir=$srcdir ;;
12351 *) # Relative name.
12352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12353 ac_top_srcdir=$ac_top_build_prefix$srcdir
12354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12355 esac
12356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12357
12358
12359 case $ac_mode in
12360 :F)
12361 #
12362 # CONFIG_FILE
12363 #
12364
12365 case $INSTALL in
12366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12368 esac
12369 ac_MKDIR_P=$MKDIR_P
12370 case $MKDIR_P in
12371 [\\/$]* | ?:[\\/]* ) ;;
12372 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12373 esac
12374 _ACEOF
12375
12376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12377 # If the template does not know about datarootdir, expand it.
12378 # FIXME: This hack should be removed a few years after 2.60.
12379 ac_datarootdir_hack=; ac_datarootdir_seen=
12380 ac_sed_dataroot='
12381 /datarootdir/ {
12382 p
12383 q
12384 }
12385 /@datadir@/p
12386 /@docdir@/p
12387 /@infodir@/p
12388 /@localedir@/p
12389 /@mandir@/p'
12390 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12391 *datarootdir*) ac_datarootdir_seen=yes;;
12392 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12394 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12395 _ACEOF
12396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12397 ac_datarootdir_hack='
12398 s&@datadir@&$datadir&g
12399 s&@docdir@&$docdir&g
12400 s&@infodir@&$infodir&g
12401 s&@localedir@&$localedir&g
12402 s&@mandir@&$mandir&g
12403 s&\\\${datarootdir}&$datarootdir&g' ;;
12404 esac
12405 _ACEOF
12406
12407 # Neutralize VPATH when `$srcdir' = `.'.
12408 # Shell code in configure.ac might set extrasub.
12409 # FIXME: do we really want to maintain this feature?
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 ac_sed_extra="$ac_vpsub
12412 $extrasub
12413 _ACEOF
12414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415 :t
12416 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12417 s|@configure_input@|$ac_sed_conf_input|;t t
12418 s&@top_builddir@&$ac_top_builddir_sub&;t t
12419 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12420 s&@srcdir@&$ac_srcdir&;t t
12421 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12422 s&@top_srcdir@&$ac_top_srcdir&;t t
12423 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12424 s&@builddir@&$ac_builddir&;t t
12425 s&@abs_builddir@&$ac_abs_builddir&;t t
12426 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12427 s&@INSTALL@&$ac_INSTALL&;t t
12428 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12429 $ac_datarootdir_hack
12430 "
12431 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12432 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12433
12434 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12435 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12437 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12439 which seems to be undefined. Please make sure it is defined" >&5
12440 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12441 which seems to be undefined. Please make sure it is defined" >&2;}
12442
12443 rm -f "$ac_tmp/stdin"
12444 case $ac_file in
12445 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12446 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12447 esac \
12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12449 ;;
12450 :H)
12451 #
12452 # CONFIG_HEADER
12453 #
12454 if test x"$ac_file" != x-; then
12455 {
12456 $as_echo "/* $configure_input */" \
12457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12458 } >"$ac_tmp/config.h" \
12459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12460 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12462 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12463 else
12464 rm -f "$ac_file"
12465 mv "$ac_tmp/config.h" "$ac_file" \
12466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12467 fi
12468 else
12469 $as_echo "/* $configure_input */" \
12470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12471 || as_fn_error $? "could not create -" "$LINENO" 5
12472 fi
12473 # Compute "$ac_file"'s index in $config_headers.
12474 _am_arg="$ac_file"
12475 _am_stamp_count=1
12476 for _am_header in $config_headers :; do
12477 case $_am_header in
12478 $_am_arg | $_am_arg:* )
12479 break ;;
12480 * )
12481 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12482 esac
12483 done
12484 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12485 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486 X"$_am_arg" : 'X\(//\)[^/]' \| \
12487 X"$_am_arg" : 'X\(//\)$' \| \
12488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12489 $as_echo X"$_am_arg" |
12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12491 s//\1/
12492 q
12493 }
12494 /^X\(\/\/\)[^/].*/{
12495 s//\1/
12496 q
12497 }
12498 /^X\(\/\/\)$/{
12499 s//\1/
12500 q
12501 }
12502 /^X\(\/\).*/{
12503 s//\1/
12504 q
12505 }
12506 s/.*/./; q'`/stamp-h$_am_stamp_count
12507 ;;
12508
12509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12510 $as_echo "$as_me: executing $ac_file commands" >&6;}
12511 ;;
12512 esac
12513
12514
12515 case $ac_file$ac_mode in
12516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12517 # Older Autoconf quotes --file arguments for eval, but not when files
12518 # are listed without --file. Let's play safe and only enable the eval
12519 # if we detect the quoting.
12520 case $CONFIG_FILES in
12521 *\'*) eval set x "$CONFIG_FILES" ;;
12522 *) set x $CONFIG_FILES ;;
12523 esac
12524 shift
12525 for mf
12526 do
12527 # Strip MF so we end up with the name of the file.
12528 mf=`echo "$mf" | sed -e 's/:.*$//'`
12529 # Check whether this is an Automake generated Makefile or not.
12530 # We used to match only the files named 'Makefile.in', but
12531 # some people rename them; so instead we look at the file content.
12532 # Grep'ing the first line is not enough: some people post-process
12533 # each Makefile.in and add a new line on top of each file to say so.
12534 # Grep'ing the whole file is not good either: AIX grep has a line
12535 # limit of 2048, but all sed's we know have understand at least 4000.
12536 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12537 dirpart=`$as_dirname -- "$mf" ||
12538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12539 X"$mf" : 'X\(//\)[^/]' \| \
12540 X"$mf" : 'X\(//\)$' \| \
12541 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12542 $as_echo X"$mf" |
12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12544 s//\1/
12545 q
12546 }
12547 /^X\(\/\/\)[^/].*/{
12548 s//\1/
12549 q
12550 }
12551 /^X\(\/\/\)$/{
12552 s//\1/
12553 q
12554 }
12555 /^X\(\/\).*/{
12556 s//\1/
12557 q
12558 }
12559 s/.*/./; q'`
12560 else
12561 continue
12562 fi
12563 # Extract the definition of DEPDIR, am__include, and am__quote
12564 # from the Makefile without running 'make'.
12565 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12566 test -z "$DEPDIR" && continue
12567 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12568 test -z "$am__include" && continue
12569 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12570 # Find all dependency output files, they are included files with
12571 # $(DEPDIR) in their names. We invoke sed twice because it is the
12572 # simplest approach to changing $(DEPDIR) to its actual value in the
12573 # expansion.
12574 for file in `sed -n "
12575 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12576 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12577 # Make sure the directory exists.
12578 test -f "$dirpart/$file" && continue
12579 fdir=`$as_dirname -- "$file" ||
12580 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581 X"$file" : 'X\(//\)[^/]' \| \
12582 X"$file" : 'X\(//\)$' \| \
12583 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12584 $as_echo X"$file" |
12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\(\/\/\)[^/].*/{
12590 s//\1/
12591 q
12592 }
12593 /^X\(\/\/\)$/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\).*/{
12598 s//\1/
12599 q
12600 }
12601 s/.*/./; q'`
12602 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12603 # echo "creating $dirpart/$file"
12604 echo '# dummy' > "$dirpart/$file"
12605 done
12606 done
12607 }
12608 ;;
12609
12610 esac
12611 done # for ac_tag
12612
12613
12614 as_fn_exit 0
12615 _ACEOF
12616 ac_clean_files=$ac_clean_files_save
12617
12618 test $ac_write_fail = 0 ||
12619 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12620
12621
12622 # configure is writing to config.log, and then calls config.status.
12623 # config.status does its own redirection, appending to config.log.
12624 # Unfortunately, on DOS this fails, as config.log is still kept open
12625 # by configure, so config.status won't be able to write to it; its
12626 # output is simply discarded. So we exec the FD to /dev/null,
12627 # effectively closing config.log, so it can be properly (re)opened and
12628 # appended to by config.status. When coming back to configure, we
12629 # need to make the FD available again.
12630 if test "$no_create" != yes; then
12631 ac_cs_success=:
12632 ac_config_status_args=
12633 test "$silent" = yes &&
12634 ac_config_status_args="$ac_config_status_args --quiet"
12635 exec 5>/dev/null
12636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12637 exec 5>>config.log
12638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12639 # would make configure fail if this is the last instruction.
12640 $ac_cs_success || as_fn_exit 1
12641 fi
12642 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12644 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12645 fi
12646
12647