configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for twm 1.0.12.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/twm/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='twm'
583 PACKAGE_TARNAME='twm'
584 PACKAGE_VERSION='1.0.12'
585 PACKAGE_STRING='twm 1.0.12'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/twm/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 XRANDR_LIBS
631 XRANDR_CFLAGS
632 TWM_LIBS
633 TWM_CFLAGS
634 LEXLIB
635 LEX_OUTPUT_ROOT
636 LEX
637 YACC_INST
638 YFLAGS
639 YACC
640 MAN_SUBSTS
641 XORG_MAN_PAGE
642 ADMIN_MAN_DIR
643 DRIVER_MAN_DIR
644 MISC_MAN_DIR
645 FILE_MAN_DIR
646 LIB_MAN_DIR
647 APP_MAN_DIR
648 ADMIN_MAN_SUFFIX
649 DRIVER_MAN_SUFFIX
650 MISC_MAN_SUFFIX
651 FILE_MAN_SUFFIX
652 LIB_MAN_SUFFIX
653 APP_MAN_SUFFIX
654 SED
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 INSTALL_CMD
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 CHANGELOG_CMD
668 STRICT_CFLAGS
669 CWARNFLAGS
670 BASE_CFLAGS
671 AM_BACKSLASH
672 AM_DEFAULT_VERBOSITY
673 AM_DEFAULT_V
674 AM_V
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 EGREP
709 GREP
710 CPP
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_dependency_tracking
760 enable_silent_rules
761 enable_selective_werror
762 enable_strict_compilation
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 YACC
777 YFLAGS
778 TWM_CFLAGS
779 TWM_LIBS
780 XRANDR_CFLAGS
781 XRANDR_LIBS'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287 else
1288 ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures twm 1.0.12 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/twm]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1376
1377 cat <<\_ACEOF
1378
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of twm 1.0.12:";;
1393 esac
1394 cat <<\_ACEOF
1395
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-silent-rules less verbose build output (undo: "make V=1")
1405 --disable-silent-rules verbose build output (undo: "make V=0")
1406 --disable-selective-werror
1407 Turn off selective compiler errors. (default:
1408 enabled)
1409 --enable-strict-compilation
1410 Enable all warnings from compiler and make them
1411 errors (default: disabled)
1412
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422 PKG_CONFIG path to pkg-config utility
1423 PKG_CONFIG_PATH
1424 directories to add to pkg-config's search path
1425 PKG_CONFIG_LIBDIR
1426 path overriding pkg-config's built-in search path
1427 YACC The `Yet Another Compiler Compiler' implementation to use.
1428 Defaults to the first program found out of: `bison -y', `byacc',
1429 `yacc'.
1430 YFLAGS The list of arguments that will be passed by default to $YACC.
1431 This script will default YFLAGS to the empty string to avoid a
1432 default value of `-d' given by some make applications.
1433 TWM_CFLAGS C compiler flags for TWM, overriding pkg-config
1434 TWM_LIBS linker flags for TWM, overriding pkg-config
1435 XRANDR_CFLAGS
1436 C compiler flags for XRANDR, overriding pkg-config
1437 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 twm configure 1.0.12
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555 } # ac_fn_c_try_compile
1556
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_cpp ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i && {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_cpp
1593
1594 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597 # the include files in INCLUDES and setting the cache variable VAR
1598 # accordingly.
1599 ac_fn_c_check_header_mongrel ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if eval \${$3+:} false; then :
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607 fi
1608 eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1611 else
1612 # Is the header compilable?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614 $as_echo_n "checking $2 usability... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 #include <$2>
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_header_compiler=yes
1622 else
1623 ac_header_compiler=no
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627 $as_echo "$ac_header_compiler" >&6; }
1628
1629 # Is the header present?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631 $as_echo_n "checking $2 presence... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_cpp "$LINENO"; then :
1637 ac_header_preproc=yes
1638 else
1639 ac_header_preproc=no
1640 fi
1641 rm -f conftest.err conftest.i conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643 $as_echo "$ac_header_preproc" >&6; }
1644
1645 # So? What about this header?
1646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1647 yes:no: )
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 ;;
1653 no:yes:* )
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1657 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1661 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ( $as_echo "## ----------------------------------------------------------------- ##
1665 ## Report this to https://gitlab.freedesktop.org/xorg/app/twm/issues ##
1666 ## ----------------------------------------------------------------- ##"
1667 ) | sed "s/^/$as_me: WARNING: /" >&2
1668 ;;
1669 esac
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 eval "$3=\$ac_header_compiler"
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_mongrel
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 $4
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745 eval "$3=yes"
1746 else
1747 eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1759 # ---------------------------------------------
1760 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1761 # accordingly.
1762 ac_fn_c_check_decl ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 as_decl_name=`echo $2|sed 's/ *(.*//'`
1766 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1768 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 int
1776 main ()
1777 {
1778 #ifndef $as_decl_name
1779 #ifdef __cplusplus
1780 (void) $as_decl_use;
1781 #else
1782 (void) $as_decl_name;
1783 #endif
1784 #endif
1785
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_decl
1803
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_link ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 test -x conftest$ac_exeext
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_link
1849
1850 # ac_fn_c_check_func LINENO FUNC VAR
1851 # ----------------------------------
1852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1853 ac_fn_c_check_func ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860 else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1865 #define $2 innocuous_$2
1866
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $2 (); below.
1869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870 <limits.h> exists even on freestanding compilers. */
1871
1872 #ifdef __STDC__
1873 # include <limits.h>
1874 #else
1875 # include <assert.h>
1876 #endif
1877
1878 #undef $2
1879
1880 /* Override any GCC internal prototype to avoid an error.
1881 Use char because int might match the return type of a GCC
1882 builtin and then its argument prototype would still apply. */
1883 #ifdef __cplusplus
1884 extern "C"
1885 #endif
1886 char $2 ();
1887 /* The GNU C library defines this for functions which it implements
1888 to always fail with ENOSYS. Some functions are actually named
1889 something starting with __ and the normal name is an alias. */
1890 #if defined __stub_$2 || defined __stub___$2
1891 choke me
1892 #endif
1893
1894 int
1895 main ()
1896 {
1897 return $2 ();
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_link "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext \
1908 conftest$ac_exeext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_func
1916 cat >config.log <<_ACEOF
1917 This file contains any messages produced by compilers while
1918 running configure, to aid debugging if configure makes a mistake.
1919
1920 It was created by twm $as_me 1.0.12, which was
1921 generated by GNU Autoconf 2.69. Invocation command line was
1922
1923 $ $0 $@
1924
1925 _ACEOF
1926 exec 5>>config.log
1927 {
1928 cat <<_ASUNAME
1929 ## --------- ##
1930 ## Platform. ##
1931 ## --------- ##
1932
1933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941
1942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949
1950 _ASUNAME
1951
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 $as_echo "PATH: $as_dir"
1958 done
1959 IFS=$as_save_IFS
1960
1961 } >&5
1962
1963 cat >&5 <<_ACEOF
1964
1965
1966 ## ----------- ##
1967 ## Core tests. ##
1968 ## ----------- ##
1969
1970 _ACEOF
1971
1972
1973 # Keep a trace of the command line.
1974 # Strip out --no-create and --no-recursion so they do not pile up.
1975 # Strip out --silent because we don't want to record it for future runs.
1976 # Also quote any args containing shell meta-characters.
1977 # Make two passes to allow for proper duplicate-argument suppression.
1978 ac_configure_args=
1979 ac_configure_args0=
1980 ac_configure_args1=
1981 ac_must_keep_next=false
1982 for ac_pass in 1 2
1983 do
1984 for ac_arg
1985 do
1986 case $ac_arg in
1987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989 | -silent | --silent | --silen | --sile | --sil)
1990 continue ;;
1991 *\'*)
1992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 esac
1994 case $ac_pass in
1995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 2)
1997 as_fn_append ac_configure_args1 " '$ac_arg'"
1998 if test $ac_must_keep_next = true; then
1999 ac_must_keep_next=false # Got value, back to normal.
2000 else
2001 case $ac_arg in
2002 *=* | --config-cache | -C | -disable-* | --disable-* \
2003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005 | -with-* | --with-* | -without-* | --without-* | --x)
2006 case "$ac_configure_args0 " in
2007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008 esac
2009 ;;
2010 -* ) ac_must_keep_next=true ;;
2011 esac
2012 fi
2013 as_fn_append ac_configure_args " '$ac_arg'"
2014 ;;
2015 esac
2016 done
2017 done
2018 { ac_configure_args0=; unset ac_configure_args0;}
2019 { ac_configure_args1=; unset ac_configure_args1;}
2020
2021 # When interrupted or exit'd, cleanup temporary files, and complete
2022 # config.log. We remove comments because anyway the quotes in there
2023 # would cause problems or look ugly.
2024 # WARNING: Use '\'' to represent an apostrophe within the trap.
2025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2026 trap 'exit_status=$?
2027 # Save into config.log some information that might help in debugging.
2028 {
2029 echo
2030
2031 $as_echo "## ---------------- ##
2032 ## Cache variables. ##
2033 ## ---------------- ##"
2034 echo
2035 # The following way of writing the cache mishandles newlines in values,
2036 (
2037 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in #(
2040 *${as_nl}*)
2041 case $ac_var in #(
2042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044 esac
2045 case $ac_var in #(
2046 _ | IFS | as_nl) ;; #(
2047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2048 *) { eval $ac_var=; unset $ac_var;} ;;
2049 esac ;;
2050 esac
2051 done
2052 (set) 2>&1 |
2053 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2054 *${as_nl}ac_space=\ *)
2055 sed -n \
2056 "s/'\''/'\''\\\\'\'''\''/g;
2057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058 ;; #(
2059 *)
2060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2061 ;;
2062 esac |
2063 sort
2064 )
2065 echo
2066
2067 $as_echo "## ----------------- ##
2068 ## Output variables. ##
2069 ## ----------------- ##"
2070 echo
2071 for ac_var in $ac_subst_vars
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080
2081 if test -n "$ac_subst_files"; then
2082 $as_echo "## ------------------- ##
2083 ## File substitutions. ##
2084 ## ------------------- ##"
2085 echo
2086 for ac_var in $ac_subst_files
2087 do
2088 eval ac_val=\$$ac_var
2089 case $ac_val in
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 esac
2092 $as_echo "$ac_var='\''$ac_val'\''"
2093 done | sort
2094 echo
2095 fi
2096
2097 if test -s confdefs.h; then
2098 $as_echo "## ----------- ##
2099 ## confdefs.h. ##
2100 ## ----------- ##"
2101 echo
2102 cat confdefs.h
2103 echo
2104 fi
2105 test "$ac_signal" != 0 &&
2106 $as_echo "$as_me: caught signal $ac_signal"
2107 $as_echo "$as_me: exit $exit_status"
2108 } >&5
2109 rm -f core *.core core.conftest.* &&
2110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111 exit $exit_status
2112 ' 0
2113 for ac_signal in 1 2 13 15; do
2114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2115 done
2116 ac_signal=0
2117
2118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2119 rm -f -r conftest* confdefs.h
2120
2121 $as_echo "/* confdefs.h */" > confdefs.h
2122
2123 # Predefined preprocessor variables.
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_NAME "$PACKAGE_NAME"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_STRING "$PACKAGE_STRING"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_URL "$PACKAGE_URL"
2147 _ACEOF
2148
2149
2150 # Let the site file select an alternate cache file if it wants to.
2151 # Prefer an explicitly selected file to automatically selected ones.
2152 ac_site_file1=NONE
2153 ac_site_file2=NONE
2154 if test -n "$CONFIG_SITE"; then
2155 # We do not want a PATH search for config.site.
2156 case $CONFIG_SITE in #((
2157 -*) ac_site_file1=./$CONFIG_SITE;;
2158 */*) ac_site_file1=$CONFIG_SITE;;
2159 *) ac_site_file1=./$CONFIG_SITE;;
2160 esac
2161 elif test "x$prefix" != xNONE; then
2162 ac_site_file1=$prefix/share/config.site
2163 ac_site_file2=$prefix/etc/config.site
2164 else
2165 ac_site_file1=$ac_default_prefix/share/config.site
2166 ac_site_file2=$ac_default_prefix/etc/config.site
2167 fi
2168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 do
2170 test "x$ac_site_file" = xNONE && continue
2171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2174 sed 's/^/| /' "$ac_site_file" >&5
2175 . "$ac_site_file" \
2176 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178 as_fn_error $? "failed to load site script $ac_site_file
2179 See \`config.log' for more details" "$LINENO" 5; }
2180 fi
2181 done
2182
2183 if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special files
2185 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2186 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 case $cache_file in
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
2192 esac
2193 fi
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196 $as_echo "$as_me: creating cache $cache_file" >&6;}
2197 >$cache_file
2198 fi
2199
2200 # Check that the precious variables saved in the cache have kept the same
2201 # value.
2202 ac_cache_corrupted=false
2203 for ac_var in $ac_precious_vars; do
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
2208 case $ac_old_set,$ac_new_set in
2209 set,)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212 ac_cache_corrupted=: ;;
2213 ,set)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,);;
2218 *)
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2231 fi
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247 esac
2248 fi
2249 done
2250 if $ac_cache_corrupted; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 fi
2257 ## -------------------- ##
2258 ## Main body of script. ##
2259 ## -------------------- ##
2260
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
2268
2269 ac_config_headers="$ac_config_headers config.h"
2270
2271 ac_aux_dir=
2272 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2273 if test -f "$ac_dir/install-sh"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/install-sh -c"
2276 break
2277 elif test -f "$ac_dir/install.sh"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install.sh -c"
2280 break
2281 elif test -f "$ac_dir/shtool"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/shtool install -c"
2284 break
2285 fi
2286 done
2287 if test -z "$ac_aux_dir"; then
2288 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2289 fi
2290
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
2299
2300 # Expand $ac_aux_dir to an absolute path.
2301 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if ${ac_cv_prog_CC+:} false; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345
2346 fi
2347 if test -z "$ac_cv_prog_CC"; then
2348 ac_ct_CC=$CC
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350 set dummy gcc; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_ac_ct_CC="gcc"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377 if test -n "$ac_ct_CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2379 $as_echo "$ac_ct_CC" >&6; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385 if test "x$ac_ct_CC" = x; then
2386 CC=""
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 CC=$ac_ct_CC
2395 fi
2396 else
2397 CC="$ac_cv_prog_CC"
2398 fi
2399
2400 if test -z "$CC"; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}cc; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_CC+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_prog_CC="${ac_tool_prefix}cc"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432 $as_echo "$CC" >&6; }
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 fi
2441 if test -z "$CC"; then
2442 # Extract the first word of "cc", so it can be a program name with args.
2443 set dummy cc; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_CC+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 ac_prog_rejected=no
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2461 ac_prog_rejected=yes
2462 continue
2463 fi
2464 ac_cv_prog_CC="cc"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 if test $ac_prog_rejected = yes; then
2473 # We found a bogon in the path, so make sure we never use it.
2474 set dummy $ac_cv_prog_CC
2475 shift
2476 if test $# != 0; then
2477 # We chose a different compiler from the bogus one.
2478 # However, it has the same basename, so the bogon will be chosen
2479 # first if we set CC to just the basename; use the full file name.
2480 shift
2481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482 fi
2483 fi
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 for ac_prog in cl.exe
2500 do
2501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if ${ac_cv_prog_CC+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531 $as_echo "$CC" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538 test -n "$CC" && break
2539 done
2540 fi
2541 if test -z "$CC"; then
2542 ac_ct_CC=$CC
2543 for ac_prog in cl.exe
2544 do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_CC="$ac_prog"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575 $as_echo "$ac_ct_CC" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581
2582 test -n "$ac_ct_CC" && break
2583 done
2584
2585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589 yes:)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592 ac_tool_warned=yes ;;
2593 esac
2594 CC=$ac_ct_CC
2595 fi
2596 fi
2597
2598 fi
2599
2600
2601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "no acceptable C compiler found in \$PATH
2604 See \`config.log' for more details" "$LINENO" 5; }
2605
2606 # Provide some information about the compiler.
2607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2608 set X $ac_compile
2609 ac_compiler=$2
2610 for ac_option in --version -v -V -qversion; do
2611 { { ac_try="$ac_compiler $ac_option >&5"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2619 ac_status=$?
2620 if test -s conftest.err; then
2621 sed '10a\
2622 ... rest of stderr output deleted ...
2623 10q' conftest.err >conftest.er1
2624 cat conftest.er1 >&5
2625 fi
2626 rm -f conftest.er1 conftest.err
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628 test $ac_status = 0; }
2629 done
2630
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2633
2634 int
2635 main ()
2636 {
2637
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 ac_clean_files_save=$ac_clean_files
2643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2644 # Try to create an executable without -o first, disregard a.out.
2645 # It will help us diagnose broken compilers, and finding out an intuition
2646 # of exeext.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648 $as_echo_n "checking whether the C compiler works... " >&6; }
2649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651 # The possible output files:
2652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654 ac_rmfiles=
2655 for ac_file in $ac_files
2656 do
2657 case $ac_file in
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 esac
2661 done
2662 rm -f $ac_rmfiles
2663
2664 if { { ac_try="$ac_link_default"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670 $as_echo "$ac_try_echo"; } >&5
2671 (eval "$ac_link_default") 2>&5
2672 ac_status=$?
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; }; then :
2675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2678 # so that the user can short-circuit this test for compilers unknown to
2679 # Autoconf.
2680 for ac_file in $ac_files ''
2681 do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2685 ;;
2686 [ab].out )
2687 # We found the default executable, but exeext='' is most
2688 # certainly right.
2689 break;;
2690 *.* )
2691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692 then :; else
2693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 fi
2695 # We set ac_cv_exeext here because the later test for it is not
2696 # safe: cross compilers may not add the suffix if given an `-o'
2697 # argument, so we may need to know it at that point already.
2698 # Even if this section looks crufty: it has the advantage of
2699 # actually working.
2700 break;;
2701 * )
2702 break;;
2703 esac
2704 done
2705 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707 else
2708 ac_file=''
2709 fi
2710 if test -z "$ac_file"; then :
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 $as_echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 as_fn_error 77 "C compiler cannot create executables
2719 See \`config.log' for more details" "$LINENO" 5; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2725 $as_echo_n "checking for C compiler default output file name... " >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2727 $as_echo "$ac_file" >&6; }
2728 ac_exeext=$ac_cv_exeext
2729
2730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2731 ac_clean_files=$ac_clean_files_save
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2733 $as_echo_n "checking for suffix of executables... " >&6; }
2734 if { { ac_try="$ac_link"
2735 case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738 esac
2739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740 $as_echo "$ac_try_echo"; } >&5
2741 (eval "$ac_link") 2>&5
2742 ac_status=$?
2743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; }; then :
2745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2748 # `rm'.
2749 for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754 break;;
2755 * ) break;;
2756 esac
2757 done
2758 else
2759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2762 See \`config.log' for more details" "$LINENO" 5; }
2763 fi
2764 rm -f conftest conftest$ac_cv_exeext
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2766 $as_echo "$ac_cv_exeext" >&6; }
2767
2768 rm -f conftest.$ac_ext
2769 EXEEXT=$ac_cv_exeext
2770 ac_exeext=$EXEEXT
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2773 #include <stdio.h>
2774 int
2775 main ()
2776 {
2777 FILE *f = fopen ("conftest.out", "w");
2778 return ferror (f) || fclose (f) != 0;
2779
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 ac_clean_files="$ac_clean_files conftest.out"
2785 # Check that the compiler produces executables we can run. If not, either
2786 # the compiler is broken, or we cross compile.
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788 $as_echo_n "checking whether we are cross compiling... " >&6; }
2789 if test "$cross_compiling" != yes; then
2790 { { ac_try="$ac_link"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }
2801 if { ac_try='./conftest$ac_cv_exeext'
2802 { { case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_try") 2>&5
2809 ac_status=$?
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; }; then
2812 cross_compiling=no
2813 else
2814 if test "$cross_compiling" = maybe; then
2815 cross_compiling=yes
2816 else
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details" "$LINENO" 5; }
2822 fi
2823 fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2826 $as_echo "$cross_compiling" >&6; }
2827
2828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2829 ac_clean_files=$ac_clean_files_save
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2831 $as_echo_n "checking for suffix of object files... " >&6; }
2832 if ${ac_cv_objext+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2837
2838 int
2839 main ()
2840 {
2841
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 rm -f conftest.o conftest.obj
2847 if { { ac_try="$ac_compile"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_compile") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 for ac_file in conftest.o conftest.obj conftest.*; do
2859 test -f "$ac_file" || continue;
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2863 break;;
2864 esac
2865 done
2866 else
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error $? "cannot compute suffix of object files: cannot compile
2873 See \`config.log' for more details" "$LINENO" 5; }
2874 fi
2875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876 fi
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2878 $as_echo "$ac_cv_objext" >&6; }
2879 OBJEXT=$ac_cv_objext
2880 ac_objext=$OBJEXT
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2883 if ${ac_cv_c_compiler_gnu+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888
2889 int
2890 main ()
2891 {
2892 #ifndef __GNUC__
2893 choke me
2894 #endif
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_compiler_gnu=yes
2902 else
2903 ac_compiler_gnu=no
2904 fi
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2911 if test $ac_compiler_gnu = yes; then
2912 GCC=yes
2913 else
2914 GCC=
2915 fi
2916 ac_test_CFLAGS=${CFLAGS+set}
2917 ac_save_CFLAGS=$CFLAGS
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2920 if ${ac_cv_prog_cc_g+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 ac_save_c_werror_flag=$ac_c_werror_flag
2924 ac_c_werror_flag=yes
2925 ac_cv_prog_cc_g=no
2926 CFLAGS="-g"
2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928 /* end confdefs.h. */
2929
2930 int
2931 main ()
2932 {
2933
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_c_try_compile "$LINENO"; then :
2939 ac_cv_prog_cc_g=yes
2940 else
2941 CFLAGS=""
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944
2945 int
2946 main ()
2947 {
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954
2955 else
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2957 CFLAGS="-g"
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2960
2961 int
2962 main ()
2963 {
2964
2965 ;
2966 return 0;
2967 }
2968 _ACEOF
2969 if ac_fn_c_try_compile "$LINENO"; then :
2970 ac_cv_prog_cc_g=yes
2971 fi
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 fi
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 fi
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2980 $as_echo "$ac_cv_prog_cc_g" >&6; }
2981 if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983 elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989 else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998 if ${ac_cv_prog_cc_c89+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 ac_cv_prog_cc_c89=no
3002 ac_save_CC=$CC
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005 #include <stdarg.h>
3006 #include <stdio.h>
3007 struct stat;
3008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009 struct buf { int x; };
3010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011 static char *e (p, i)
3012 char **p;
3013 int i;
3014 {
3015 return p[i];
3016 }
3017 static char *f (char * (*g) (char **, int), char **p, ...)
3018 {
3019 char *s;
3020 va_list v;
3021 va_start (v,p);
3022 s = g (p, va_arg (v,int));
3023 va_end (v);
3024 return s;
3025 }
3026
3027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3028 function prototypes and stuff, but not '\xHH' hex character constants.
3029 These don't provoke an error unfortunately, instead are silently treated
3030 as 'x'. The following induces an error, until -std is added to get
3031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3032 array size at least. It's necessary to write '\x00'==0 to get something
3033 that's true only with -std. */
3034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035
3036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037 inside strings and character constants. */
3038 #define FOO(x) 'x'
3039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040
3041 int test (int i, double x);
3042 struct s1 {int (*f) (int a);};
3043 struct s2 {int (*f) (double a);};
3044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045 int argc;
3046 char **argv;
3047 int
3048 main ()
3049 {
3050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057 do
3058 CC="$ac_save_CC $ac_arg"
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060 ac_cv_prog_cc_c89=$ac_arg
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext
3063 test "x$ac_cv_prog_cc_c89" != "xno" && break
3064 done
3065 rm -f conftest.$ac_ext
3066 CC=$ac_save_CC
3067
3068 fi
3069 # AC_CACHE_VAL
3070 case "x$ac_cv_prog_cc_c89" in
3071 x)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3073 $as_echo "none needed" >&6; } ;;
3074 xno)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3076 $as_echo "unsupported" >&6; } ;;
3077 *)
3078 CC="$CC $ac_cv_prog_cc_c89"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3081 esac
3082 if test "x$ac_cv_prog_cc_c89" != xno; then :
3083
3084 fi
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3099 if ${am_cv_prog_cc_c_o+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3104
3105 int
3106 main ()
3107 {
3108
3109 ;
3110 return 0;
3111 }
3112 _ACEOF
3113 # Make sure it works both with $CC and with simple cc.
3114 # Following AC_PROG_CC_C_O, we do the test twice because some
3115 # compilers refuse to overwrite an existing .o file with -o,
3116 # though they will create one.
3117 am_cv_prog_cc_c_o=yes
3118 for am_i in 1 2; do
3119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } \
3124 && test -f conftest2.$ac_objext; then
3125 : OK
3126 else
3127 am_cv_prog_cc_c_o=no
3128 break
3129 fi
3130 done
3131 rm -f core conftest*
3132 unset am_i
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3136 if test "$am_cv_prog_cc_c_o" != yes; then
3137 # Losing compiler, so override with the script.
3138 # FIXME: It is wrong to rewrite CC.
3139 # But if we don't then we get into trouble of one sort or another.
3140 # A longer-term fix would be to have automake use am__CC in this case,
3141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3142 CC="$am_aux_dir/compile $CC"
3143 fi
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3159 # On Suns, sometimes $CPP names a directory.
3160 if test -n "$CPP" && test -d "$CPP"; then
3161 CPP=
3162 fi
3163 if test -z "$CPP"; then
3164 if ${ac_cv_prog_CPP+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 # Double quotes because CPP needs to be expanded
3168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3169 do
3170 ac_preproc_ok=false
3171 for ac_c_preproc_warn_flag in '' yes
3172 do
3173 # Use a header file that comes with gcc, so configuring glibc
3174 # with a fresh cross-compiler works.
3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176 # <limits.h> exists even on freestanding compilers.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181 #ifdef __STDC__
3182 # include <limits.h>
3183 #else
3184 # include <assert.h>
3185 #endif
3186 Syntax error
3187 _ACEOF
3188 if ac_fn_c_try_cpp "$LINENO"; then :
3189
3190 else
3191 # Broken: fails on valid input.
3192 continue
3193 fi
3194 rm -f conftest.err conftest.i conftest.$ac_ext
3195
3196 # OK, works on sane cases. Now check whether nonexistent headers
3197 # can be detected and how.
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3200 #include <ac_nonexistent.h>
3201 _ACEOF
3202 if ac_fn_c_try_cpp "$LINENO"; then :
3203 # Broken: success on invalid input.
3204 continue
3205 else
3206 # Passes both tests.
3207 ac_preproc_ok=:
3208 break
3209 fi
3210 rm -f conftest.err conftest.i conftest.$ac_ext
3211
3212 done
3213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3214 rm -f conftest.i conftest.err conftest.$ac_ext
3215 if $ac_preproc_ok; then :
3216 break
3217 fi
3218
3219 done
3220 ac_cv_prog_CPP=$CPP
3221
3222 fi
3223 CPP=$ac_cv_prog_CPP
3224 else
3225 ac_cv_prog_CPP=$CPP
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3228 $as_echo "$CPP" >&6; }
3229 ac_preproc_ok=false
3230 for ac_c_preproc_warn_flag in '' yes
3231 do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240 #ifdef __STDC__
3241 # include <limits.h>
3242 #else
3243 # include <assert.h>
3244 #endif
3245 Syntax error
3246 _ACEOF
3247 if ac_fn_c_try_cpp "$LINENO"; then :
3248
3249 else
3250 # Broken: fails on valid input.
3251 continue
3252 fi
3253 rm -f conftest.err conftest.i conftest.$ac_ext
3254
3255 # OK, works on sane cases. Now check whether nonexistent headers
3256 # can be detected and how.
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259 #include <ac_nonexistent.h>
3260 _ACEOF
3261 if ac_fn_c_try_cpp "$LINENO"; then :
3262 # Broken: success on invalid input.
3263 continue
3264 else
3265 # Passes both tests.
3266 ac_preproc_ok=:
3267 break
3268 fi
3269 rm -f conftest.err conftest.i conftest.$ac_ext
3270
3271 done
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.i conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then :
3275
3276 else
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 fi
3282
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3291 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3292 if ${ac_cv_path_GREP+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -z "$GREP"; then
3296 ac_path_GREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in grep ggrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 as_fn_executable_p "$ac_path_GREP" || continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312 *)
3313 ac_count=0
3314 $as_echo_n 0123456789 >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 $as_echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 as_fn_arith $ac_count + 1 && ac_count=$as_val
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3334
3335 $ac_path_GREP_found && break 3
3336 done
3337 done
3338 done
3339 IFS=$as_save_IFS
3340 if test -z "$ac_cv_path_GREP"; then
3341 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3342 fi
3343 else
3344 ac_cv_path_GREP=$GREP
3345 fi
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3349 $as_echo "$ac_cv_path_GREP" >&6; }
3350 GREP="$ac_cv_path_GREP"
3351
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3354 $as_echo_n "checking for egrep... " >&6; }
3355 if ${ac_cv_path_EGREP+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3359 then ac_cv_path_EGREP="$GREP -E"
3360 else
3361 if test -z "$EGREP"; then
3362 ac_path_EGREP_found=false
3363 # Loop through the user's path and test for each of PROGNAME-LIST
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_prog in egrep; do
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372 as_fn_executable_p "$ac_path_EGREP" || continue
3373 # Check for GNU ac_path_EGREP and select it if it is found.
3374 # Check for GNU $ac_path_EGREP
3375 case `"$ac_path_EGREP" --version 2>&1` in
3376 *GNU*)
3377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378 *)
3379 ac_count=0
3380 $as_echo_n 0123456789 >"conftest.in"
3381 while :
3382 do
3383 cat "conftest.in" "conftest.in" >"conftest.tmp"
3384 mv "conftest.tmp" "conftest.in"
3385 cp "conftest.in" "conftest.nl"
3386 $as_echo 'EGREP' >> "conftest.nl"
3387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389 as_fn_arith $ac_count + 1 && ac_count=$as_val
3390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391 # Best one so far, save it but keep looking for a better one
3392 ac_cv_path_EGREP="$ac_path_EGREP"
3393 ac_path_EGREP_max=$ac_count
3394 fi
3395 # 10*(2^10) chars as input seems more than enough
3396 test $ac_count -gt 10 && break
3397 done
3398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399 esac
3400
3401 $ac_path_EGREP_found && break 3
3402 done
3403 done
3404 done
3405 IFS=$as_save_IFS
3406 if test -z "$ac_cv_path_EGREP"; then
3407 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3408 fi
3409 else
3410 ac_cv_path_EGREP=$EGREP
3411 fi
3412
3413 fi
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3416 $as_echo "$ac_cv_path_EGREP" >&6; }
3417 EGREP="$ac_cv_path_EGREP"
3418
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3421 $as_echo_n "checking for ANSI C header files... " >&6; }
3422 if ${ac_cv_header_stdc+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #include <stdlib.h>
3428 #include <stdarg.h>
3429 #include <string.h>
3430 #include <float.h>
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_cv_header_stdc=yes
3442 else
3443 ac_cv_header_stdc=no
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446
3447 if test $ac_cv_header_stdc = yes; then
3448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451 #include <string.h>
3452
3453 _ACEOF
3454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 $EGREP "memchr" >/dev/null 2>&1; then :
3456
3457 else
3458 ac_cv_header_stdc=no
3459 fi
3460 rm -f conftest*
3461
3462 fi
3463
3464 if test $ac_cv_header_stdc = yes; then
3465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <stdlib.h>
3469
3470 _ACEOF
3471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472 $EGREP "free" >/dev/null 2>&1; then :
3473
3474 else
3475 ac_cv_header_stdc=no
3476 fi
3477 rm -f conftest*
3478
3479 fi
3480
3481 if test $ac_cv_header_stdc = yes; then
3482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3483 if test "$cross_compiling" = yes; then :
3484 :
3485 else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #include <ctype.h>
3489 #include <stdlib.h>
3490 #if ((' ' & 0x0FF) == 0x020)
3491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3493 #else
3494 # define ISLOWER(c) \
3495 (('a' <= (c) && (c) <= 'i') \
3496 || ('j' <= (c) && (c) <= 'r') \
3497 || ('s' <= (c) && (c) <= 'z'))
3498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3499 #endif
3500
3501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3502 int
3503 main ()
3504 {
3505 int i;
3506 for (i = 0; i < 256; i++)
3507 if (XOR (islower (i), ISLOWER (i))
3508 || toupper (i) != TOUPPER (i))
3509 return 2;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_run "$LINENO"; then :
3514
3515 else
3516 ac_cv_header_stdc=no
3517 fi
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3519 conftest.$ac_objext conftest.beam conftest.$ac_ext
3520 fi
3521
3522 fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3525 $as_echo "$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3527
3528 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3529
3530 fi
3531
3532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3534 inttypes.h stdint.h unistd.h
3535 do :
3536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3538 "
3539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3540 cat >>confdefs.h <<_ACEOF
3541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542 _ACEOF
3543
3544 fi
3545
3546 done
3547
3548
3549
3550 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3551 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3552 MINIX=yes
3553 else
3554 MINIX=
3555 fi
3556
3557
3558 if test "$MINIX" = yes; then
3559
3560 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3561
3562
3563 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3564
3565
3566 $as_echo "#define _MINIX 1" >>confdefs.h
3567
3568 fi
3569
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3572 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3573 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 # define __EXTENSIONS__ 1
3580 $ac_includes_default
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_safe_to_define___extensions__=yes
3591 else
3592 ac_cv_safe_to_define___extensions__=no
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3597 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3598 test $ac_cv_safe_to_define___extensions__ = yes &&
3599 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3600
3601 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3602
3603 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3604
3605 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3606
3607 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3608
3609
3610
3611 # Initialize Automake
3612 am__api_version='1.15'
3613
3614 # Find a good install program. We prefer a C program (faster),
3615 # so one script is as good as another. But avoid the broken or
3616 # incompatible versions:
3617 # SysV /etc/install, /usr/sbin/install
3618 # SunOS /usr/etc/install
3619 # IRIX /sbin/install
3620 # AIX /bin/install
3621 # AmigaOS /C/install, which installs bootblocks on floppy discs
3622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625 # OS/2's system install, which has a completely different semantic
3626 # ./install, which can be erroneously created by make from ./install.sh.
3627 # Reject install programs that cannot install multiple files.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3629 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3630 if test -z "$INSTALL"; then
3631 if ${ac_cv_path_install+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 # Account for people who put trailing slashes in PATH elements.
3640 case $as_dir/ in #((
3641 ./ | .// | /[cC]/* | \
3642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3643 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3644 /usr/ucb/* ) ;;
3645 *)
3646 # OSF1 and SCO ODT 3.0 have their own names for install.
3647 # Don't use installbsd from OSF since it installs stuff as root
3648 # by default.
3649 for ac_prog in ginstall scoinst install; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3652 if test $ac_prog = install &&
3653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654 # AIX install. It has an incompatible calling convention.
3655 :
3656 elif test $ac_prog = install &&
3657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # program-specific install script used by HP pwplus--don't use.
3659 :
3660 else
3661 rm -rf conftest.one conftest.two conftest.dir
3662 echo one > conftest.one
3663 echo two > conftest.two
3664 mkdir conftest.dir
3665 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3666 test -s conftest.one && test -s conftest.two &&
3667 test -s conftest.dir/conftest.one &&
3668 test -s conftest.dir/conftest.two
3669 then
3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671 break 3
3672 fi
3673 fi
3674 fi
3675 done
3676 done
3677 ;;
3678 esac
3679
3680 done
3681 IFS=$as_save_IFS
3682
3683 rm -rf conftest.one conftest.two conftest.dir
3684
3685 fi
3686 if test "${ac_cv_path_install+set}" = set; then
3687 INSTALL=$ac_cv_path_install
3688 else
3689 # As a last resort, use the slow shell script. Don't cache a
3690 # value for INSTALL within a source directory, because that will
3691 # break other packages using the cache if that directory is
3692 # removed, or if the value is a relative name.
3693 INSTALL=$ac_install_sh
3694 fi
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3697 $as_echo "$INSTALL" >&6; }
3698
3699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3700 # It thinks the first close brace ends the variable substitution.
3701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702
3703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704
3705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3708 $as_echo_n "checking whether build environment is sane... " >&6; }
3709 # Reject unsafe characters in $srcdir or the absolute working directory
3710 # name. Accept space and tab only in the latter.
3711 am_lf='
3712 '
3713 case `pwd` in
3714 *[\\\"\#\$\&\'\`$am_lf]*)
3715 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3716 esac
3717 case $srcdir in
3718 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3719 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3720 esac
3721
3722 # Do 'set' in a subshell so we don't clobber the current shell's
3723 # arguments. Must try -L first in case configure is actually a
3724 # symlink; some systems play weird games with the mod time of symlinks
3725 # (eg FreeBSD returns the mod time of the symlink's containing
3726 # directory).
3727 if (
3728 am_has_slept=no
3729 for am_try in 1 2; do
3730 echo "timestamp, slept: $am_has_slept" > conftest.file
3731 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3732 if test "$*" = "X"; then
3733 # -L didn't work.
3734 set X `ls -t "$srcdir/configure" conftest.file`
3735 fi
3736 if test "$*" != "X $srcdir/configure conftest.file" \
3737 && test "$*" != "X conftest.file $srcdir/configure"; then
3738
3739 # If neither matched, then we have a broken ls. This can happen
3740 # if, for instance, CONFIG_SHELL is bash and it inherits a
3741 # broken ls alias from the environment. This has actually
3742 # happened. Such a system could not be considered "sane".
3743 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3744 alias in your environment" "$LINENO" 5
3745 fi
3746 if test "$2" = conftest.file || test $am_try -eq 2; then
3747 break
3748 fi
3749 # Just in case.
3750 sleep 1
3751 am_has_slept=yes
3752 done
3753 test "$2" = conftest.file
3754 )
3755 then
3756 # Ok.
3757 :
3758 else
3759 as_fn_error $? "newly created file is older than distributed files!
3760 Check your system clock" "$LINENO" 5
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763 $as_echo "yes" >&6; }
3764 # If we didn't sleep, we still need to ensure time stamps of config.status and
3765 # generated files are strictly newer.
3766 am_sleep_pid=
3767 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3768 ( sleep 1 ) &
3769 am_sleep_pid=$!
3770 fi
3771
3772 rm -f conftest.file
3773
3774 test "$program_prefix" != NONE &&
3775 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3776 # Use a double $ so make ignores it.
3777 test "$program_suffix" != NONE &&
3778 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3779 # Double any \ or $.
3780 # By default was `s,x,x', remove it if useless.
3781 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3782 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3783
3784 if test x"${MISSING+set}" != xset; then
3785 case $am_aux_dir in
3786 *\ * | *\ *)
3787 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3788 *)
3789 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3790 esac
3791 fi
3792 # Use eval to expand $SHELL
3793 if eval "$MISSING --is-lightweight"; then
3794 am_missing_run="$MISSING "
3795 else
3796 am_missing_run=
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3798 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3799 fi
3800
3801 if test x"${install_sh+set}" != xset; then
3802 case $am_aux_dir in
3803 *\ * | *\ *)
3804 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3805 *)
3806 install_sh="\${SHELL} $am_aux_dir/install-sh"
3807 esac
3808 fi
3809
3810 # Installed binaries are usually stripped using 'strip' when the user
3811 # run "make install-strip". However 'strip' might not be the right
3812 # tool to use in cross-compilation environments, therefore Automake
3813 # will honor the 'STRIP' environment variable to overrule this program.
3814 if test "$cross_compiling" != no; then
3815 if test -n "$ac_tool_prefix"; then
3816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}strip; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_STRIP+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if test -n "$STRIP"; then
3824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837 done
3838 done
3839 IFS=$as_save_IFS
3840
3841 fi
3842 fi
3843 STRIP=$ac_cv_prog_STRIP
3844 if test -n "$STRIP"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3846 $as_echo "$STRIP" >&6; }
3847 else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3851
3852
3853 fi
3854 if test -z "$ac_cv_prog_STRIP"; then
3855 ac_ct_STRIP=$STRIP
3856 # Extract the first word of "strip", so it can be a program name with args.
3857 set dummy strip; ac_word=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 if test -n "$ac_ct_STRIP"; then
3864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_ac_ct_STRIP="strip"
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 fi
3882 fi
3883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3884 if test -n "$ac_ct_STRIP"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3886 $as_echo "$ac_ct_STRIP" >&6; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 fi
3891
3892 if test "x$ac_ct_STRIP" = x; then
3893 STRIP=":"
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901 STRIP=$ac_ct_STRIP
3902 fi
3903 else
3904 STRIP="$ac_cv_prog_STRIP"
3905 fi
3906
3907 fi
3908 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3911 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3912 if test -z "$MKDIR_P"; then
3913 if ${ac_cv_path_mkdir+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in mkdir gmkdir; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3924 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3925 'mkdir (GNU coreutils) '* | \
3926 'mkdir (coreutils) '* | \
3927 'mkdir (fileutils) '4.1*)
3928 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3929 break 3;;
3930 esac
3931 done
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937
3938 test -d ./--version && rmdir ./--version
3939 if test "${ac_cv_path_mkdir+set}" = set; then
3940 MKDIR_P="$ac_cv_path_mkdir -p"
3941 else
3942 # As a last resort, use the slow shell script. Don't cache a
3943 # value for MKDIR_P within a source directory, because that will
3944 # break other packages using the cache if that directory is
3945 # removed, or if the value is a relative name.
3946 MKDIR_P="$ac_install_sh -d"
3947 fi
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3950 $as_echo "$MKDIR_P" >&6; }
3951
3952 for ac_prog in gawk mawk nawk awk
3953 do
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_AWK+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$AWK"; then
3962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_AWK="$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 AWK=$ac_cv_prog_AWK
3982 if test -n "$AWK"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3984 $as_echo "$AWK" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991 test -n "$AWK" && break
3992 done
3993
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3996 set x ${MAKE-make}
3997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3998 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 cat >conftest.make <<\_ACEOF
4002 SHELL = /bin/sh
4003 all:
4004 @echo '@@@%%%=$(MAKE)=@@@%%%'
4005 _ACEOF
4006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4008 *@@@%%%=?*=@@@%%%*)
4009 eval ac_cv_prog_make_${ac_make}_set=yes;;
4010 *)
4011 eval ac_cv_prog_make_${ac_make}_set=no;;
4012 esac
4013 rm -f conftest.make
4014 fi
4015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017 $as_echo "yes" >&6; }
4018 SET_MAKE=
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 SET_MAKE="MAKE=${MAKE-make}"
4023 fi
4024
4025 rm -rf .tst 2>/dev/null
4026 mkdir .tst 2>/dev/null
4027 if test -d .tst; then
4028 am__leading_dot=.
4029 else
4030 am__leading_dot=_
4031 fi
4032 rmdir .tst 2>/dev/null
4033
4034 DEPDIR="${am__leading_dot}deps"
4035
4036 ac_config_commands="$ac_config_commands depfiles"
4037
4038
4039 am_make=${MAKE-make}
4040 cat > confinc << 'END'
4041 am__doit:
4042 @echo this is the am__doit target
4043 .PHONY: am__doit
4044 END
4045 # If we don't find an include directive, just comment out the code.
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4047 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4048 am__include="#"
4049 am__quote=
4050 _am_result=none
4051 # First try GNU make style include.
4052 echo "include confinc" > confmf
4053 # Ignore all kinds of additional output from 'make'.
4054 case `$am_make -s -f confmf 2> /dev/null` in #(
4055 *the\ am__doit\ target*)
4056 am__include=include
4057 am__quote=
4058 _am_result=GNU
4059 ;;
4060 esac
4061 # Now try BSD make style include.
4062 if test "$am__include" = "#"; then
4063 echo '.include "confinc"' > confmf
4064 case `$am_make -s -f confmf 2> /dev/null` in #(
4065 *the\ am__doit\ target*)
4066 am__include=.include
4067 am__quote="\""
4068 _am_result=BSD
4069 ;;
4070 esac
4071 fi
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4075 $as_echo "$_am_result" >&6; }
4076 rm -f confinc confmf
4077
4078 # Check whether --enable-dependency-tracking was given.
4079 if test "${enable_dependency_tracking+set}" = set; then :
4080 enableval=$enable_dependency_tracking;
4081 fi
4082
4083 if test "x$enable_dependency_tracking" != xno; then
4084 am_depcomp="$ac_aux_dir/depcomp"
4085 AMDEPBACKSLASH='\'
4086 am__nodep='_no'
4087 fi
4088 if test "x$enable_dependency_tracking" != xno; then
4089 AMDEP_TRUE=
4090 AMDEP_FALSE='#'
4091 else
4092 AMDEP_TRUE='#'
4093 AMDEP_FALSE=
4094 fi
4095
4096
4097 # Check whether --enable-silent-rules was given.
4098 if test "${enable_silent_rules+set}" = set; then :
4099 enableval=$enable_silent_rules;
4100 fi
4101
4102 case $enable_silent_rules in # (((
4103 yes) AM_DEFAULT_VERBOSITY=0;;
4104 no) AM_DEFAULT_VERBOSITY=1;;
4105 *) AM_DEFAULT_VERBOSITY=1;;
4106 esac
4107 am_make=${MAKE-make}
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4109 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4110 if ${am_cv_make_support_nested_variables+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if $as_echo 'TRUE=$(BAR$(V))
4114 BAR0=false
4115 BAR1=true
4116 V=1
4117 am__doit:
4118 @$(TRUE)
4119 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4120 am_cv_make_support_nested_variables=yes
4121 else
4122 am_cv_make_support_nested_variables=no
4123 fi
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4126 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4127 if test $am_cv_make_support_nested_variables = yes; then
4128 AM_V='$(V)'
4129 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4130 else
4131 AM_V=$AM_DEFAULT_VERBOSITY
4132 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4133 fi
4134 AM_BACKSLASH='\'
4135
4136 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4137 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4138 # is not polluted with repeated "-I."
4139 am__isrc=' -I$(srcdir)'
4140 # test to see if srcdir already configured
4141 if test -f $srcdir/config.status; then
4142 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4143 fi
4144 fi
4145
4146 # test whether we have cygpath
4147 if test -z "$CYGPATH_W"; then
4148 if (cygpath --version) >/dev/null 2>/dev/null; then
4149 CYGPATH_W='cygpath -w'
4150 else
4151 CYGPATH_W=echo
4152 fi
4153 fi
4154
4155
4156 # Define the identity of the package.
4157 PACKAGE='twm'
4158 VERSION='1.0.12'
4159
4160
4161 cat >>confdefs.h <<_ACEOF
4162 #define PACKAGE "$PACKAGE"
4163 _ACEOF
4164
4165
4166 cat >>confdefs.h <<_ACEOF
4167 #define VERSION "$VERSION"
4168 _ACEOF
4169
4170 # Some tools Automake needs.
4171
4172 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4173
4174
4175 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4176
4177
4178 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4179
4180
4181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4182
4183
4184 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4185
4186 # For better backward compatibility. To be removed once Automake 1.9.x
4187 # dies out for good. For more background, see:
4188 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4189 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4190 mkdir_p='$(MKDIR_P)'
4191
4192 # We need awk for the "check" target (and possibly the TAP driver). The
4193 # system "awk" is bad on some platforms.
4194 # Always define AMTAR for backward compatibility. Yes, it's still used
4195 # in the wild :-( We should find a proper way to deprecate it ...
4196 AMTAR='$${TAR-tar}'
4197
4198
4199 # We'll loop over all known methods to create a tar archive until one works.
4200 _am_tools='gnutar pax cpio none'
4201
4202 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4203
4204
4205
4206
4207
4208 depcc="$CC" am_compiler_list=
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4211 $as_echo_n "checking dependency style of $depcc... " >&6; }
4212 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4216 # We make a subdir and do the tests there. Otherwise we can end up
4217 # making bogus files that we don't know about and never remove. For
4218 # instance it was reported that on HP-UX the gcc test will end up
4219 # making a dummy file named 'D' -- because '-MD' means "put the output
4220 # in D".
4221 rm -rf conftest.dir
4222 mkdir conftest.dir
4223 # Copy depcomp to subdir because otherwise we won't find it if we're
4224 # using a relative directory.
4225 cp "$am_depcomp" conftest.dir
4226 cd conftest.dir
4227 # We will build objects and dependencies in a subdirectory because
4228 # it helps to detect inapplicable dependency modes. For instance
4229 # both Tru64's cc and ICC support -MD to output dependencies as a
4230 # side effect of compilation, but ICC will put the dependencies in
4231 # the current directory while Tru64 will put them in the object
4232 # directory.
4233 mkdir sub
4234
4235 am_cv_CC_dependencies_compiler_type=none
4236 if test "$am_compiler_list" = ""; then
4237 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4238 fi
4239 am__universal=false
4240 case " $depcc " in #(
4241 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4242 esac
4243
4244 for depmode in $am_compiler_list; do
4245 # Setup a source with many dependencies, because some compilers
4246 # like to wrap large dependency lists on column 80 (with \), and
4247 # we should not choose a depcomp mode which is confused by this.
4248 #
4249 # We need to recreate these files for each test, as the compiler may
4250 # overwrite some of them when testing with obscure command lines.
4251 # This happens at least with the AIX C compiler.
4252 : > sub/conftest.c
4253 for i in 1 2 3 4 5 6; do
4254 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4255 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4256 # Solaris 10 /bin/sh.
4257 echo '/* dummy */' > sub/conftst$i.h
4258 done
4259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4260
4261 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4262 # mode. It turns out that the SunPro C++ compiler does not properly
4263 # handle '-M -o', and we need to detect this. Also, some Intel
4264 # versions had trouble with output in subdirs.
4265 am__obj=sub/conftest.${OBJEXT-o}
4266 am__minus_obj="-o $am__obj"
4267 case $depmode in
4268 gcc)
4269 # This depmode causes a compiler race in universal mode.
4270 test "$am__universal" = false || continue
4271 ;;
4272 nosideeffect)
4273 # After this tag, mechanisms are not by side-effect, so they'll
4274 # only be used when explicitly requested.
4275 if test "x$enable_dependency_tracking" = xyes; then
4276 continue
4277 else
4278 break
4279 fi
4280 ;;
4281 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4282 # This compiler won't grok '-c -o', but also, the minuso test has
4283 # not run yet. These depmodes are late enough in the game, and
4284 # so weak that their functioning should not be impacted.
4285 am__obj=conftest.${OBJEXT-o}
4286 am__minus_obj=
4287 ;;
4288 none) break ;;
4289 esac
4290 if depmode=$depmode \
4291 source=sub/conftest.c object=$am__obj \
4292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4293 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4294 >/dev/null 2>conftest.err &&
4295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4299 # icc doesn't choke on unknown options, it will just issue warnings
4300 # or remarks (even with -Werror). So we grep stderr for any message
4301 # that says an option was ignored or not supported.
4302 # When given -MP, icc 7.0 and 7.1 complain thusly:
4303 # icc: Command line warning: ignoring option '-M'; no argument required
4304 # The diagnosis changed in icc 8.0:
4305 # icc: Command line remark: option '-MP' not supported
4306 if (grep 'ignoring option' conftest.err ||
4307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4308 am_cv_CC_dependencies_compiler_type=$depmode
4309 break
4310 fi
4311 fi
4312 done
4313
4314 cd ..
4315 rm -rf conftest.dir
4316 else
4317 am_cv_CC_dependencies_compiler_type=none
4318 fi
4319
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4322 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4324
4325 if
4326 test "x$enable_dependency_tracking" != xno \
4327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4328 am__fastdepCC_TRUE=
4329 am__fastdepCC_FALSE='#'
4330 else
4331 am__fastdepCC_TRUE='#'
4332 am__fastdepCC_FALSE=
4333 fi
4334
4335
4336
4337 # POSIX will say in a future version that running "rm -f" with no argument
4338 # is OK; and we want to be able to make that assumption in our Makefile
4339 # recipes. So use an aggressive probe to check that the usage we want is
4340 # actually supported "in the wild" to an acceptable degree.
4341 # See automake bug#10828.
4342 # To make any issue more visible, cause the running configure to be aborted
4343 # by default if the 'rm' program in use doesn't match our expectations; the
4344 # user can still override this though.
4345 if rm -f && rm -fr && rm -rf; then : OK; else
4346 cat >&2 <<'END'
4347 Oops!
4348
4349 Your 'rm' program seems unable to run without file operands specified
4350 on the command line, even when the '-f' option is present. This is contrary
4351 to the behaviour of most rm programs out there, and not conforming with
4352 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4353
4354 Please tell bug-automake@gnu.org about your system, including the value
4355 of your $PATH and any error possibly output before this message. This
4356 can help us improve future automake versions.
4357
4358 END
4359 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4360 echo 'Configuration will proceed anyway, since you have set the' >&2
4361 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4362 echo >&2
4363 else
4364 cat >&2 <<'END'
4365 Aborting the configuration process, to ensure you take notice of the issue.
4366
4367 You can download and install GNU coreutils to get an 'rm' implementation
4368 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4369
4370 If you want to complete the configuration process using your problematic
4371 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4372 to "yes", and re-run configure.
4373
4374 END
4375 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4376 fi
4377 fi
4378
4379
4380 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4393 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4394 if ${ac_cv_prog_cc_c99+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 ac_cv_prog_cc_c99=no
4398 ac_save_CC=$CC
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <stdarg.h>
4402 #include <stdbool.h>
4403 #include <stdlib.h>
4404 #include <wchar.h>
4405 #include <stdio.h>
4406
4407 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4408 #define debug(...) fprintf (stderr, __VA_ARGS__)
4409 #define showlist(...) puts (#__VA_ARGS__)
4410 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4411 static void
4412 test_varargs_macros (void)
4413 {
4414 int x = 1234;
4415 int y = 5678;
4416 debug ("Flag");
4417 debug ("X = %d\n", x);
4418 showlist (The first, second, and third items.);
4419 report (x>y, "x is %d but y is %d", x, y);
4420 }
4421
4422 // Check long long types.
4423 #define BIG64 18446744073709551615ull
4424 #define BIG32 4294967295ul
4425 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4426 #if !BIG_OK
4427 your preprocessor is broken;
4428 #endif
4429 #if BIG_OK
4430 #else
4431 your preprocessor is broken;
4432 #endif
4433 static long long int bignum = -9223372036854775807LL;
4434 static unsigned long long int ubignum = BIG64;
4435
4436 struct incomplete_array
4437 {
4438 int datasize;
4439 double data[];
4440 };
4441
4442 struct named_init {
4443 int number;
4444 const wchar_t *name;
4445 double average;
4446 };
4447
4448 typedef const char *ccp;
4449
4450 static inline int
4451 test_restrict (ccp restrict text)
4452 {
4453 // See if C++-style comments work.
4454 // Iterate through items via the restricted pointer.
4455 // Also check for declarations in for loops.
4456 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4457 continue;
4458 return 0;
4459 }
4460
4461 // Check varargs and va_copy.
4462 static void
4463 test_varargs (const char *format, ...)
4464 {
4465 va_list args;
4466 va_start (args, format);
4467 va_list args_copy;
4468 va_copy (args_copy, args);
4469
4470 const char *str;
4471 int number;
4472 float fnumber;
4473
4474 while (*format)
4475 {
4476 switch (*format++)
4477 {
4478 case 's': // string
4479 str = va_arg (args_copy, const char *);
4480 break;
4481 case 'd': // int
4482 number = va_arg (args_copy, int);
4483 break;
4484 case 'f': // float
4485 fnumber = va_arg (args_copy, double);
4486 break;
4487 default:
4488 break;
4489 }
4490 }
4491 va_end (args_copy);
4492 va_end (args);
4493 }
4494
4495 int
4496 main ()
4497 {
4498
4499 // Check bool.
4500 _Bool success = false;
4501
4502 // Check restrict.
4503 if (test_restrict ("String literal") == 0)
4504 success = true;
4505 char *restrict newvar = "Another string";
4506
4507 // Check varargs.
4508 test_varargs ("s, d' f .", "string", 65, 34.234);
4509 test_varargs_macros ();
4510
4511 // Check flexible array members.
4512 struct incomplete_array *ia =
4513 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4514 ia->datasize = 10;
4515 for (int i = 0; i < ia->datasize; ++i)
4516 ia->data[i] = i * 1.234;
4517
4518 // Check named initializers.
4519 struct named_init ni = {
4520 .number = 34,
4521 .name = L"Test wide string",
4522 .average = 543.34343,
4523 };
4524
4525 ni.number = 58;
4526
4527 int dynamic_array[ni.number];
4528 dynamic_array[ni.number - 1] = 543;
4529
4530 // work around unused variable warnings
4531 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4532 || dynamic_array[ni.number - 1] != 543);
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4539 do
4540 CC="$ac_save_CC $ac_arg"
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_c99=$ac_arg
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext
4545 test "x$ac_cv_prog_cc_c99" != "xno" && break
4546 done
4547 rm -f conftest.$ac_ext
4548 CC=$ac_save_CC
4549
4550 fi
4551 # AC_CACHE_VAL
4552 case "x$ac_cv_prog_cc_c99" in
4553 x)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4555 $as_echo "none needed" >&6; } ;;
4556 xno)
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4558 $as_echo "unsupported" >&6; } ;;
4559 *)
4560 CC="$CC $ac_cv_prog_cc_c99"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4562 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4563 esac
4564 if test "x$ac_cv_prog_cc_c99" != xno; then :
4565
4566 fi
4567
4568
4569
4570
4571
4572
4573 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4574 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4575 CLANGCC="yes"
4576 else
4577 CLANGCC="no"
4578 fi
4579
4580 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4581 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4582 INTELCC="yes"
4583 else
4584 INTELCC="no"
4585 fi
4586
4587 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4588 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4589 SUNCC="yes"
4590 else
4591 SUNCC="no"
4592 fi
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 case $PKG_CONFIG in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4614 ;;
4615 *)
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 ;;
4632 esac
4633 fi
4634 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4635 if test -n "$PKG_CONFIG"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4637 $as_echo "$PKG_CONFIG" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_path_PKG_CONFIG"; then
4646 ac_pt_PKG_CONFIG=$PKG_CONFIG
4647 # Extract the first word of "pkg-config", so it can be a program name with args.
4648 set dummy pkg-config; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 case $ac_pt_PKG_CONFIG in
4655 [\\/]* | ?:[\\/]*)
4656 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4657 ;;
4658 *)
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 ;;
4675 esac
4676 fi
4677 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678 if test -n "$ac_pt_PKG_CONFIG"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686 if test "x$ac_pt_PKG_CONFIG" = x; then
4687 PKG_CONFIG=""
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695 PKG_CONFIG=$ac_pt_PKG_CONFIG
4696 fi
4697 else
4698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699 fi
4700
4701 fi
4702 if test -n "$PKG_CONFIG"; then
4703 _pkg_min_version=0.9.0
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 $as_echo "yes" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 PKG_CONFIG=""
4713 fi
4714 fi
4715 # Make sure we can run config.sub.
4716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720 $as_echo_n "checking build system type... " >&6; }
4721 if ${ac_cv_build+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_build_alias=$build_alias
4725 test "x$ac_build_alias" = x &&
4726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4727 test "x$ac_build_alias" = x &&
4728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4731
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734 $as_echo "$ac_cv_build" >&6; }
4735 case $ac_cv_build in
4736 *-*-*) ;;
4737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4738 esac
4739 build=$ac_cv_build
4740 ac_save_IFS=$IFS; IFS='-'
4741 set x $ac_cv_build
4742 shift
4743 build_cpu=$1
4744 build_vendor=$2
4745 shift; shift
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4748 build_os=$*
4749 IFS=$ac_save_IFS
4750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754 $as_echo_n "checking host system type... " >&6; }
4755 if ${ac_cv_host+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test "x$host_alias" = x; then
4759 ac_cv_host=$ac_cv_build
4760 else
4761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4763 fi
4764
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767 $as_echo "$ac_cv_host" >&6; }
4768 case $ac_cv_host in
4769 *-*-*) ;;
4770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4771 esac
4772 host=$ac_cv_host
4773 ac_save_IFS=$IFS; IFS='-'
4774 set x $ac_cv_host
4775 shift
4776 host_cpu=$1
4777 host_vendor=$2
4778 shift; shift
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4781 host_os=$*
4782 IFS=$ac_save_IFS
4783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4784
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4787 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4788 if ${ac_cv_path_SED+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4792 for ac_i in 1 2 3 4 5 6 7; do
4793 ac_script="$ac_script$as_nl$ac_script"
4794 done
4795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4796 { ac_script=; unset ac_script;}
4797 if test -z "$SED"; then
4798 ac_path_SED_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_prog in sed gsed; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4808 as_fn_executable_p "$ac_path_SED" || continue
4809 # Check for GNU ac_path_SED and select it if it is found.
4810 # Check for GNU $ac_path_SED
4811 case `"$ac_path_SED" --version 2>&1` in
4812 *GNU*)
4813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4814 *)
4815 ac_count=0
4816 $as_echo_n 0123456789 >"conftest.in"
4817 while :
4818 do
4819 cat "conftest.in" "conftest.in" >"conftest.tmp"
4820 mv "conftest.tmp" "conftest.in"
4821 cp "conftest.in" "conftest.nl"
4822 $as_echo '' >> "conftest.nl"
4823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825 as_fn_arith $ac_count + 1 && ac_count=$as_val
4826 if test $ac_count -gt ${ac_path_SED_max-0}; then
4827 # Best one so far, save it but keep looking for a better one
4828 ac_cv_path_SED="$ac_path_SED"
4829 ac_path_SED_max=$ac_count
4830 fi
4831 # 10*(2^10) chars as input seems more than enough
4832 test $ac_count -gt 10 && break
4833 done
4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 esac
4836
4837 $ac_path_SED_found && break 3
4838 done
4839 done
4840 done
4841 IFS=$as_save_IFS
4842 if test -z "$ac_cv_path_SED"; then
4843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4844 fi
4845 else
4846 ac_cv_path_SED=$SED
4847 fi
4848
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4851 $as_echo "$ac_cv_path_SED" >&6; }
4852 SED="$ac_cv_path_SED"
4853 rm -f conftest.sed
4854
4855
4856
4857
4858
4859
4860 # Check whether --enable-selective-werror was given.
4861 if test "${enable_selective_werror+set}" = set; then :
4862 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4863 else
4864 SELECTIVE_WERROR=yes
4865 fi
4866
4867
4868
4869
4870
4871 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4872 if test "x$SUNCC" = "xyes"; then
4873 BASE_CFLAGS="-v"
4874 else
4875 BASE_CFLAGS=""
4876 fi
4877
4878 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 xorg_testset_save_CFLAGS="$CFLAGS"
4893
4894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 int i;
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 xorg_cv_cc_flag_unknown_warning_option=yes
4907 else
4908 xorg_cv_cc_flag_unknown_warning_option=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4915 CFLAGS="$xorg_testset_save_CFLAGS"
4916 fi
4917
4918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921 fi
4922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 int i;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 xorg_cv_cc_flag_unused_command_line_argument=yes
4934 else
4935 xorg_cv_cc_flag_unused_command_line_argument=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943 fi
4944
4945 found="no"
4946
4947 if test $found = "no" ; then
4948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950 fi
4951
4952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954 fi
4955
4956 CFLAGS="$CFLAGS -Wall"
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4959 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4960 cacheid=xorg_cv_cc_flag__Wall
4961 if eval \${$cacheid+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4966 int i;
4967 int
4968 main ()
4969 {
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_link "$LINENO"; then :
4976 eval $cacheid=yes
4977 else
4978 eval $cacheid=no
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext \
4981 conftest$ac_exeext conftest.$ac_ext
4982 fi
4983
4984
4985 CFLAGS="$xorg_testset_save_CFLAGS"
4986
4987 eval supported=\$$cacheid
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4989 $as_echo "$supported" >&6; }
4990 if test "$supported" = "yes" ; then
4991 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4992 found="yes"
4993 fi
4994 fi
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 xorg_testset_save_CFLAGS="$CFLAGS"
5011
5012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 int i;
5022 _ACEOF
5023 if ac_fn_c_try_compile "$LINENO"; then :
5024 xorg_cv_cc_flag_unknown_warning_option=yes
5025 else
5026 xorg_cv_cc_flag_unknown_warning_option=no
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5033 CFLAGS="$xorg_testset_save_CFLAGS"
5034 fi
5035
5036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039 fi
5040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 int i;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 xorg_cv_cc_flag_unused_command_line_argument=yes
5052 else
5053 xorg_cv_cc_flag_unused_command_line_argument=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5061 fi
5062
5063 found="no"
5064
5065 if test $found = "no" ; then
5066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068 fi
5069
5070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5072 fi
5073
5074 CFLAGS="$CFLAGS -Wpointer-arith"
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5077 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5078 cacheid=xorg_cv_cc_flag__Wpointer_arith
5079 if eval \${$cacheid+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 int i;
5085 int
5086 main ()
5087 {
5088
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_link "$LINENO"; then :
5094 eval $cacheid=yes
5095 else
5096 eval $cacheid=no
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100 fi
5101
5102
5103 CFLAGS="$xorg_testset_save_CFLAGS"
5104
5105 eval supported=\$$cacheid
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5107 $as_echo "$supported" >&6; }
5108 if test "$supported" = "yes" ; then
5109 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5110 found="yes"
5111 fi
5112 fi
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 xorg_testset_save_CFLAGS="$CFLAGS"
5129
5130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5133 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5134 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 xorg_cv_cc_flag_unknown_warning_option=yes
5143 else
5144 xorg_cv_cc_flag_unknown_warning_option=no
5145 fi
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5149 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5151 CFLAGS="$xorg_testset_save_CFLAGS"
5152 fi
5153
5154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157 fi
5158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5160 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5161 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 int i;
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 xorg_cv_cc_flag_unused_command_line_argument=yes
5170 else
5171 xorg_cv_cc_flag_unused_command_line_argument=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5176 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179 fi
5180
5181 found="no"
5182
5183 if test $found = "no" ; then
5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186 fi
5187
5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190 fi
5191
5192 CFLAGS="$CFLAGS -Wmissing-declarations"
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5195 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5196 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5197 if eval \${$cacheid+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int i;
5203 int
5204 main ()
5205 {
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"; then :
5212 eval $cacheid=yes
5213 else
5214 eval $cacheid=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218 fi
5219
5220
5221 CFLAGS="$xorg_testset_save_CFLAGS"
5222
5223 eval supported=\$$cacheid
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225 $as_echo "$supported" >&6; }
5226 if test "$supported" = "yes" ; then
5227 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5228 found="yes"
5229 fi
5230 fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 xorg_testset_save_CFLAGS="$CFLAGS"
5247
5248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5251 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5252 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 int i;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 xorg_cv_cc_flag_unknown_warning_option=yes
5261 else
5262 xorg_cv_cc_flag_unknown_warning_option=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5267 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270 fi
5271
5272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275 fi
5276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5278 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5279 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 int i;
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 xorg_cv_cc_flag_unused_command_line_argument=yes
5288 else
5289 xorg_cv_cc_flag_unused_command_line_argument=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 found="no"
5300
5301 if test $found = "no" ; then
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 fi
5309
5310 CFLAGS="$CFLAGS -Wformat=2"
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5313 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5314 cacheid=xorg_cv_cc_flag__Wformat_2
5315 if eval \${$cacheid+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 int i;
5321 int
5322 main ()
5323 {
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_link "$LINENO"; then :
5330 eval $cacheid=yes
5331 else
5332 eval $cacheid=no
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext \
5335 conftest$ac_exeext conftest.$ac_ext
5336 fi
5337
5338
5339 CFLAGS="$xorg_testset_save_CFLAGS"
5340
5341 eval supported=\$$cacheid
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5343 $as_echo "$supported" >&6; }
5344 if test "$supported" = "yes" ; then
5345 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5346 found="yes"
5347 fi
5348 fi
5349
5350 if test $found = "no" ; then
5351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353 fi
5354
5355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357 fi
5358
5359 CFLAGS="$CFLAGS -Wformat"
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5362 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5363 cacheid=xorg_cv_cc_flag__Wformat
5364 if eval \${$cacheid+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 int i;
5370 int
5371 main ()
5372 {
5373
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_link "$LINENO"; then :
5379 eval $cacheid=yes
5380 else
5381 eval $cacheid=no
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
5385 fi
5386
5387
5388 CFLAGS="$xorg_testset_save_CFLAGS"
5389
5390 eval supported=\$$cacheid
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5392 $as_echo "$supported" >&6; }
5393 if test "$supported" = "yes" ; then
5394 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5395 found="yes"
5396 fi
5397 fi
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 xorg_testset_save_CFLAGS="$CFLAGS"
5416
5417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5420 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5421 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int i;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 xorg_cv_cc_flag_unknown_warning_option=yes
5430 else
5431 xorg_cv_cc_flag_unknown_warning_option=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5436 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5438 CFLAGS="$xorg_testset_save_CFLAGS"
5439 fi
5440
5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444 fi
5445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5447 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5448 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 int i;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 xorg_cv_cc_flag_unused_command_line_argument=yes
5457 else
5458 xorg_cv_cc_flag_unused_command_line_argument=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5463 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466 fi
5467
5468 found="no"
5469
5470 if test $found = "no" ; then
5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473 fi
5474
5475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5477 fi
5478
5479 CFLAGS="$CFLAGS -Wstrict-prototypes"
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5482 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5483 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5484 if eval \${$cacheid+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 int i;
5490 int
5491 main ()
5492 {
5493
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_link "$LINENO"; then :
5499 eval $cacheid=yes
5500 else
5501 eval $cacheid=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 fi
5506
5507
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510 eval supported=\$$cacheid
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512 $as_echo "$supported" >&6; }
5513 if test "$supported" = "yes" ; then
5514 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5515 found="yes"
5516 fi
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 xorg_cv_cc_flag_unknown_warning_option=yes
5548 else
5549 xorg_cv_cc_flag_unknown_warning_option=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5554 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5556 CFLAGS="$xorg_testset_save_CFLAGS"
5557 fi
5558
5559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562 fi
5563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5565 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5566 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 xorg_cv_cc_flag_unused_command_line_argument=yes
5575 else
5576 xorg_cv_cc_flag_unused_command_line_argument=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5581 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584 fi
5585
5586 found="no"
5587
5588 if test $found = "no" ; then
5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5591 fi
5592
5593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595 fi
5596
5597 CFLAGS="$CFLAGS -Wmissing-prototypes"
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5600 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5601 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5602 if eval \${$cacheid+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_link "$LINENO"; then :
5617 eval $cacheid=yes
5618 else
5619 eval $cacheid=no
5620 fi
5621 rm -f core conftest.err conftest.$ac_objext \
5622 conftest$ac_exeext conftest.$ac_ext
5623 fi
5624
5625
5626 CFLAGS="$xorg_testset_save_CFLAGS"
5627
5628 eval supported=\$$cacheid
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5630 $as_echo "$supported" >&6; }
5631 if test "$supported" = "yes" ; then
5632 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5633 found="yes"
5634 fi
5635 fi
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651 xorg_testset_save_CFLAGS="$CFLAGS"
5652
5653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5657 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 int i;
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 xorg_cv_cc_flag_unknown_warning_option=yes
5666 else
5667 xorg_cv_cc_flag_unknown_warning_option=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5672 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5674 CFLAGS="$xorg_testset_save_CFLAGS"
5675 fi
5676
5677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680 fi
5681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5684 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 xorg_cv_cc_flag_unused_command_line_argument=yes
5693 else
5694 xorg_cv_cc_flag_unused_command_line_argument=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5699 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702 fi
5703
5704 found="no"
5705
5706 if test $found = "no" ; then
5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709 fi
5710
5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5713 fi
5714
5715 CFLAGS="$CFLAGS -Wnested-externs"
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5718 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5719 cacheid=xorg_cv_cc_flag__Wnested_externs
5720 if eval \${$cacheid+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 int i;
5726 int
5727 main ()
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 eval $cacheid=yes
5736 else
5737 eval $cacheid=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741 fi
5742
5743
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745
5746 eval supported=\$$cacheid
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5748 $as_echo "$supported" >&6; }
5749 if test "$supported" = "yes" ; then
5750 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5751 found="yes"
5752 fi
5753 fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 xorg_testset_save_CFLAGS="$CFLAGS"
5770
5771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5774 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5775 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"; then :
5783 xorg_cv_cc_flag_unknown_warning_option=yes
5784 else
5785 xorg_cv_cc_flag_unknown_warning_option=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5790 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5792 CFLAGS="$xorg_testset_save_CFLAGS"
5793 fi
5794
5795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798 fi
5799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5801 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5802 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 int i;
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 xorg_cv_cc_flag_unused_command_line_argument=yes
5811 else
5812 xorg_cv_cc_flag_unused_command_line_argument=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5817 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5819 CFLAGS="$xorg_testset_save_CFLAGS"
5820 fi
5821
5822 found="no"
5823
5824 if test $found = "no" ; then
5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827 fi
5828
5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831 fi
5832
5833 CFLAGS="$CFLAGS -Wbad-function-cast"
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5836 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5837 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5838 if eval \${$cacheid+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_link "$LINENO"; then :
5853 eval $cacheid=yes
5854 else
5855 eval $cacheid=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 fi
5860
5861
5862 CFLAGS="$xorg_testset_save_CFLAGS"
5863
5864 eval supported=\$$cacheid
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5866 $as_echo "$supported" >&6; }
5867 if test "$supported" = "yes" ; then
5868 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5869 found="yes"
5870 fi
5871 fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 xorg_testset_save_CFLAGS="$CFLAGS"
5888
5889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 xorg_cv_cc_flag_unknown_warning_option=yes
5902 else
5903 xorg_cv_cc_flag_unknown_warning_option=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5908 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911 fi
5912
5913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916 fi
5917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5919 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5920 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int i;
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 xorg_cv_cc_flag_unused_command_line_argument=yes
5929 else
5930 xorg_cv_cc_flag_unused_command_line_argument=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5935 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5937 CFLAGS="$xorg_testset_save_CFLAGS"
5938 fi
5939
5940 found="no"
5941
5942 if test $found = "no" ; then
5943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945 fi
5946
5947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949 fi
5950
5951 CFLAGS="$CFLAGS -Wold-style-definition"
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5954 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5955 cacheid=xorg_cv_cc_flag__Wold_style_definition
5956 if eval \${$cacheid+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 int i;
5962 int
5963 main ()
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 eval $cacheid=yes
5972 else
5973 eval $cacheid=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5977 fi
5978
5979
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981
5982 eval supported=\$$cacheid
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984 $as_echo "$supported" >&6; }
5985 if test "$supported" = "yes" ; then
5986 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5987 found="yes"
5988 fi
5989 fi
5990
5991 if test $found = "no" ; then
5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 fi
5995
5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998 fi
5999
6000 CFLAGS="$CFLAGS -fd"
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6003 $as_echo_n "checking if $CC supports -fd... " >&6; }
6004 cacheid=xorg_cv_cc_flag__fd
6005 if eval \${$cacheid+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 int
6012 main ()
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"; then :
6020 eval $cacheid=yes
6021 else
6022 eval $cacheid=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6026 fi
6027
6028
6029 CFLAGS="$xorg_testset_save_CFLAGS"
6030
6031 eval supported=\$$cacheid
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6033 $as_echo "$supported" >&6; }
6034 if test "$supported" = "yes" ; then
6035 BASE_CFLAGS="$BASE_CFLAGS -fd"
6036 found="yes"
6037 fi
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 xorg_testset_save_CFLAGS="$CFLAGS"
6055
6056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6059 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6060 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 int i;
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068 xorg_cv_cc_flag_unknown_warning_option=yes
6069 else
6070 xorg_cv_cc_flag_unknown_warning_option=no
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6075 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6077 CFLAGS="$xorg_testset_save_CFLAGS"
6078 fi
6079
6080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083 fi
6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6086 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6087 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 xorg_cv_cc_flag_unused_command_line_argument=yes
6096 else
6097 xorg_cv_cc_flag_unused_command_line_argument=no
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6102 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6105 fi
6106
6107 found="no"
6108
6109 if test $found = "no" ; then
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 fi
6113
6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116 fi
6117
6118 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6121 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6122 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6123 if eval \${$cacheid+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 int i;
6129 int
6130 main ()
6131 {
6132
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_link "$LINENO"; then :
6138 eval $cacheid=yes
6139 else
6140 eval $cacheid=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 fi
6145
6146
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6148
6149 eval supported=\$$cacheid
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151 $as_echo "$supported" >&6; }
6152 if test "$supported" = "yes" ; then
6153 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6154 found="yes"
6155 fi
6156 fi
6157
6158
6159
6160
6161
6162 # This chunk adds additional warnings that could catch undesired effects.
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 xorg_testset_save_CFLAGS="$CFLAGS"
6177
6178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 int i;
6188 _ACEOF
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 xorg_cv_cc_flag_unknown_warning_option=yes
6191 else
6192 xorg_cv_cc_flag_unknown_warning_option=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6199 CFLAGS="$xorg_testset_save_CFLAGS"
6200 fi
6201
6202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205 fi
6206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 xorg_cv_cc_flag_unused_command_line_argument=yes
6218 else
6219 xorg_cv_cc_flag_unused_command_line_argument=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227 fi
6228
6229 found="no"
6230
6231 if test $found = "no" ; then
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 fi
6235
6236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238 fi
6239
6240 CFLAGS="$CFLAGS -Wunused"
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6243 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6244 cacheid=xorg_cv_cc_flag__Wunused
6245 if eval \${$cacheid+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_link "$LINENO"; then :
6260 eval $cacheid=yes
6261 else
6262 eval $cacheid=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6266 fi
6267
6268
6269 CFLAGS="$xorg_testset_save_CFLAGS"
6270
6271 eval supported=\$$cacheid
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6273 $as_echo "$supported" >&6; }
6274 if test "$supported" = "yes" ; then
6275 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6276 found="yes"
6277 fi
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294 xorg_testset_save_CFLAGS="$CFLAGS"
6295
6296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 int i;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 xorg_cv_cc_flag_unknown_warning_option=yes
6309 else
6310 xorg_cv_cc_flag_unknown_warning_option=no
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6317 CFLAGS="$xorg_testset_save_CFLAGS"
6318 fi
6319
6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323 fi
6324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 xorg_cv_cc_flag_unused_command_line_argument=yes
6336 else
6337 xorg_cv_cc_flag_unused_command_line_argument=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345 fi
6346
6347 found="no"
6348
6349 if test $found = "no" ; then
6350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352 fi
6353
6354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356 fi
6357
6358 CFLAGS="$CFLAGS -Wuninitialized"
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6361 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6362 cacheid=xorg_cv_cc_flag__Wuninitialized
6363 if eval \${$cacheid+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 int i;
6369 int
6370 main ()
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 eval $cacheid=yes
6379 else
6380 eval $cacheid=no
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 fi
6385
6386
6387 CFLAGS="$xorg_testset_save_CFLAGS"
6388
6389 eval supported=\$$cacheid
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6391 $as_echo "$supported" >&6; }
6392 if test "$supported" = "yes" ; then
6393 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6394 found="yes"
6395 fi
6396 fi
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 xorg_testset_save_CFLAGS="$CFLAGS"
6413
6414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6417 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6418 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426 xorg_cv_cc_flag_unknown_warning_option=yes
6427 else
6428 xorg_cv_cc_flag_unknown_warning_option=no
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6433 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6435 CFLAGS="$xorg_testset_save_CFLAGS"
6436 fi
6437
6438 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441 fi
6442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6444 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6445 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 xorg_cv_cc_flag_unused_command_line_argument=yes
6454 else
6455 xorg_cv_cc_flag_unused_command_line_argument=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6460 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6462 CFLAGS="$xorg_testset_save_CFLAGS"
6463 fi
6464
6465 found="no"
6466
6467 if test $found = "no" ; then
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 fi
6471
6472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6474 fi
6475
6476 CFLAGS="$CFLAGS -Wshadow"
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6479 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6480 cacheid=xorg_cv_cc_flag__Wshadow
6481 if eval \${$cacheid+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 int i;
6487 int
6488 main ()
6489 {
6490
6491 ;
6492 return 0;
6493 }
6494 _ACEOF
6495 if ac_fn_c_try_link "$LINENO"; then :
6496 eval $cacheid=yes
6497 else
6498 eval $cacheid=no
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext \
6501 conftest$ac_exeext conftest.$ac_ext
6502 fi
6503
6504
6505 CFLAGS="$xorg_testset_save_CFLAGS"
6506
6507 eval supported=\$$cacheid
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6509 $as_echo "$supported" >&6; }
6510 if test "$supported" = "yes" ; then
6511 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6512 found="yes"
6513 fi
6514 fi
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530 xorg_testset_save_CFLAGS="$CFLAGS"
6531
6532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6535 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6536 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 xorg_cv_cc_flag_unknown_warning_option=yes
6545 else
6546 xorg_cv_cc_flag_unknown_warning_option=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6551 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554 fi
6555
6556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559 fi
6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6562 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6563 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 xorg_cv_cc_flag_unused_command_line_argument=yes
6572 else
6573 xorg_cv_cc_flag_unused_command_line_argument=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6578 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581 fi
6582
6583 found="no"
6584
6585 if test $found = "no" ; then
6586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 fi
6589
6590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592 fi
6593
6594 CFLAGS="$CFLAGS -Wmissing-noreturn"
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6597 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6598 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6599 if eval \${$cacheid+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int i;
6605 int
6606 main ()
6607 {
6608
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 if ac_fn_c_try_link "$LINENO"; then :
6614 eval $cacheid=yes
6615 else
6616 eval $cacheid=no
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext \
6619 conftest$ac_exeext conftest.$ac_ext
6620 fi
6621
6622
6623 CFLAGS="$xorg_testset_save_CFLAGS"
6624
6625 eval supported=\$$cacheid
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6627 $as_echo "$supported" >&6; }
6628 if test "$supported" = "yes" ; then
6629 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6630 found="yes"
6631 fi
6632 fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648 xorg_testset_save_CFLAGS="$CFLAGS"
6649
6650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 xorg_cv_cc_flag_unknown_warning_option=yes
6663 else
6664 xorg_cv_cc_flag_unknown_warning_option=no
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6671 CFLAGS="$xorg_testset_save_CFLAGS"
6672 fi
6673
6674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677 fi
6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 xorg_cv_cc_flag_unused_command_line_argument=yes
6690 else
6691 xorg_cv_cc_flag_unused_command_line_argument=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 found="no"
6702
6703 if test $found = "no" ; then
6704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706 fi
6707
6708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710 fi
6711
6712 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6715 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6716 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6717 if eval \${$cacheid+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 int i;
6723 int
6724 main ()
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 if ac_fn_c_try_link "$LINENO"; then :
6732 eval $cacheid=yes
6733 else
6734 eval $cacheid=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 fi
6739
6740
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743 eval supported=\$$cacheid
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745 $as_echo "$supported" >&6; }
6746 if test "$supported" = "yes" ; then
6747 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6748 found="yes"
6749 fi
6750 fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 xorg_cv_cc_flag_unknown_warning_option=yes
6781 else
6782 xorg_cv_cc_flag_unknown_warning_option=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6789 CFLAGS="$xorg_testset_save_CFLAGS"
6790 fi
6791
6792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 fi
6796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 xorg_cv_cc_flag_unused_command_line_argument=yes
6808 else
6809 xorg_cv_cc_flag_unused_command_line_argument=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 found="no"
6820
6821 if test $found = "no" ; then
6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824 fi
6825
6826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828 fi
6829
6830 CFLAGS="$CFLAGS -Wredundant-decls"
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6833 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6834 cacheid=xorg_cv_cc_flag__Wredundant_decls
6835 if eval \${$cacheid+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 int
6842 main ()
6843 {
6844
6845 ;
6846 return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_link "$LINENO"; then :
6850 eval $cacheid=yes
6851 else
6852 eval $cacheid=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 fi
6857
6858
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6860
6861 eval supported=\$$cacheid
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6863 $as_echo "$supported" >&6; }
6864 if test "$supported" = "yes" ; then
6865 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6866 found="yes"
6867 fi
6868 fi
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 xorg_testset_save_CFLAGS="$CFLAGS"
6885
6886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6889 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6890 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 xorg_cv_cc_flag_unknown_warning_option=yes
6899 else
6900 xorg_cv_cc_flag_unknown_warning_option=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6905 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6907 CFLAGS="$xorg_testset_save_CFLAGS"
6908 fi
6909
6910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6913 fi
6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6916 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6917 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 int i;
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 xorg_cv_cc_flag_unused_command_line_argument=yes
6926 else
6927 xorg_cv_cc_flag_unused_command_line_argument=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6932 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6934 CFLAGS="$xorg_testset_save_CFLAGS"
6935 fi
6936
6937 found="no"
6938
6939 if test $found = "no" ; then
6940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942 fi
6943
6944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946 fi
6947
6948 CFLAGS="$CFLAGS -Wlogical-op"
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6951 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6952 cacheid=xorg_cv_cc_flag__Wlogical_op
6953 if eval \${$cacheid+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 int i;
6959 int
6960 main ()
6961 {
6962
6963 ;
6964 return 0;
6965 }
6966 _ACEOF
6967 if ac_fn_c_try_link "$LINENO"; then :
6968 eval $cacheid=yes
6969 else
6970 eval $cacheid=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 fi
6975
6976
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6978
6979 eval supported=\$$cacheid
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6981 $as_echo "$supported" >&6; }
6982 if test "$supported" = "yes" ; then
6983 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6984 found="yes"
6985 fi
6986 fi
6987
6988
6989
6990 # These are currently disabled because they are noisy. They will be enabled
6991 # in the future once the codebase is sufficiently modernized to silence
6992 # them. For now, I don't want them to drown out the other warnings.
6993 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6994 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6995 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6996
6997 # Turn some warnings into errors, so we don't accidently get successful builds
6998 # when there are problems that should be fixed.
6999
7000 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 xorg_cv_cc_flag_unknown_warning_option=yes
7029 else
7030 xorg_cv_cc_flag_unknown_warning_option=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7037 CFLAGS="$xorg_testset_save_CFLAGS"
7038 fi
7039
7040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 fi
7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 xorg_cv_cc_flag_unused_command_line_argument=yes
7056 else
7057 xorg_cv_cc_flag_unused_command_line_argument=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7064 CFLAGS="$xorg_testset_save_CFLAGS"
7065 fi
7066
7067 found="no"
7068
7069 if test $found = "no" ; then
7070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072 fi
7073
7074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076 fi
7077
7078 CFLAGS="$CFLAGS -Werror=implicit"
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7081 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7082 cacheid=xorg_cv_cc_flag__Werror_implicit
7083 if eval \${$cacheid+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int i;
7089 int
7090 main ()
7091 {
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098 eval $cacheid=yes
7099 else
7100 eval $cacheid=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 fi
7105
7106
7107 CFLAGS="$xorg_testset_save_CFLAGS"
7108
7109 eval supported=\$$cacheid
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7111 $as_echo "$supported" >&6; }
7112 if test "$supported" = "yes" ; then
7113 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7114 found="yes"
7115 fi
7116 fi
7117
7118 if test $found = "no" ; then
7119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121 fi
7122
7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7125 fi
7126
7127 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7130 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7131 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7132 if eval \${$cacheid+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int i;
7138 int
7139 main ()
7140 {
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_link "$LINENO"; then :
7147 eval $cacheid=yes
7148 else
7149 eval $cacheid=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext \
7152 conftest$ac_exeext conftest.$ac_ext
7153 fi
7154
7155
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158 eval supported=\$$cacheid
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160 $as_echo "$supported" >&6; }
7161 if test "$supported" = "yes" ; then
7162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7163 found="yes"
7164 fi
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 xorg_testset_save_CFLAGS="$CFLAGS"
7182
7183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 xorg_cv_cc_flag_unknown_warning_option=yes
7196 else
7197 xorg_cv_cc_flag_unknown_warning_option=no
7198 fi
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7204 CFLAGS="$xorg_testset_save_CFLAGS"
7205 fi
7206
7207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210 fi
7211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 xorg_cv_cc_flag_unused_command_line_argument=yes
7223 else
7224 xorg_cv_cc_flag_unused_command_line_argument=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7231 CFLAGS="$xorg_testset_save_CFLAGS"
7232 fi
7233
7234 found="no"
7235
7236 if test $found = "no" ; then
7237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239 fi
7240
7241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7243 fi
7244
7245 CFLAGS="$CFLAGS -Werror=nonnull"
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7248 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7249 cacheid=xorg_cv_cc_flag__Werror_nonnull
7250 if eval \${$cacheid+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 int i;
7256 int
7257 main ()
7258 {
7259
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 if ac_fn_c_try_link "$LINENO"; then :
7265 eval $cacheid=yes
7266 else
7267 eval $cacheid=no
7268 fi
7269 rm -f core conftest.err conftest.$ac_objext \
7270 conftest$ac_exeext conftest.$ac_ext
7271 fi
7272
7273
7274 CFLAGS="$xorg_testset_save_CFLAGS"
7275
7276 eval supported=\$$cacheid
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7278 $as_echo "$supported" >&6; }
7279 if test "$supported" = "yes" ; then
7280 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7281 found="yes"
7282 fi
7283 fi
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299 xorg_testset_save_CFLAGS="$CFLAGS"
7300
7301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 xorg_cv_cc_flag_unknown_warning_option=yes
7314 else
7315 xorg_cv_cc_flag_unknown_warning_option=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7322 CFLAGS="$xorg_testset_save_CFLAGS"
7323 fi
7324
7325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328 fi
7329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 xorg_cv_cc_flag_unused_command_line_argument=yes
7341 else
7342 xorg_cv_cc_flag_unused_command_line_argument=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350 fi
7351
7352 found="no"
7353
7354 if test $found = "no" ; then
7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357 fi
7358
7359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7361 fi
7362
7363 CFLAGS="$CFLAGS -Werror=init-self"
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7366 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7367 cacheid=xorg_cv_cc_flag__Werror_init_self
7368 if eval \${$cacheid+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 int i;
7374 int
7375 main ()
7376 {
7377
7378 ;
7379 return 0;
7380 }
7381 _ACEOF
7382 if ac_fn_c_try_link "$LINENO"; then :
7383 eval $cacheid=yes
7384 else
7385 eval $cacheid=no
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389 fi
7390
7391
7392 CFLAGS="$xorg_testset_save_CFLAGS"
7393
7394 eval supported=\$$cacheid
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7396 $as_echo "$supported" >&6; }
7397 if test "$supported" = "yes" ; then
7398 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7399 found="yes"
7400 fi
7401 fi
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 xorg_testset_save_CFLAGS="$CFLAGS"
7418
7419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 xorg_cv_cc_flag_unknown_warning_option=yes
7432 else
7433 xorg_cv_cc_flag_unknown_warning_option=no
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441 fi
7442
7443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446 fi
7447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 int i;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 xorg_cv_cc_flag_unused_command_line_argument=yes
7459 else
7460 xorg_cv_cc_flag_unused_command_line_argument=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468 fi
7469
7470 found="no"
7471
7472 if test $found = "no" ; then
7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475 fi
7476
7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7479 fi
7480
7481 CFLAGS="$CFLAGS -Werror=main"
7482
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7484 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7485 cacheid=xorg_cv_cc_flag__Werror_main
7486 if eval \${$cacheid+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 int i;
7492 int
7493 main ()
7494 {
7495
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 eval $cacheid=yes
7502 else
7503 eval $cacheid=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 fi
7508
7509
7510 CFLAGS="$xorg_testset_save_CFLAGS"
7511
7512 eval supported=\$$cacheid
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7514 $as_echo "$supported" >&6; }
7515 if test "$supported" = "yes" ; then
7516 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7517 found="yes"
7518 fi
7519 fi
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 xorg_testset_save_CFLAGS="$CFLAGS"
7536
7537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 int i;
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"; then :
7549 xorg_cv_cc_flag_unknown_warning_option=yes
7550 else
7551 xorg_cv_cc_flag_unknown_warning_option=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7558 CFLAGS="$xorg_testset_save_CFLAGS"
7559 fi
7560
7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564 fi
7565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 xorg_cv_cc_flag_unused_command_line_argument=yes
7577 else
7578 xorg_cv_cc_flag_unused_command_line_argument=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586 fi
7587
7588 found="no"
7589
7590 if test $found = "no" ; then
7591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 fi
7594
7595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597 fi
7598
7599 CFLAGS="$CFLAGS -Werror=missing-braces"
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7602 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7603 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7604 if eval \${$cacheid+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 int i;
7610 int
7611 main ()
7612 {
7613
7614 ;
7615 return 0;
7616 }
7617 _ACEOF
7618 if ac_fn_c_try_link "$LINENO"; then :
7619 eval $cacheid=yes
7620 else
7621 eval $cacheid=no
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 fi
7626
7627
7628 CFLAGS="$xorg_testset_save_CFLAGS"
7629
7630 eval supported=\$$cacheid
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7632 $as_echo "$supported" >&6; }
7633 if test "$supported" = "yes" ; then
7634 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7635 found="yes"
7636 fi
7637 fi
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653 xorg_testset_save_CFLAGS="$CFLAGS"
7654
7655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 xorg_cv_cc_flag_unknown_warning_option=yes
7668 else
7669 xorg_cv_cc_flag_unknown_warning_option=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7676 CFLAGS="$xorg_testset_save_CFLAGS"
7677 fi
7678
7679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682 fi
7683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 int i;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 xorg_cv_cc_flag_unused_command_line_argument=yes
7695 else
7696 xorg_cv_cc_flag_unused_command_line_argument=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 found="no"
7707
7708 if test $found = "no" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715 fi
7716
7717 CFLAGS="$CFLAGS -Werror=sequence-point"
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7720 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7721 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7722 if eval \${$cacheid+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 int i;
7728 int
7729 main ()
7730 {
7731
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 eval $cacheid=yes
7738 else
7739 eval $cacheid=no
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 fi
7744
7745
7746 CFLAGS="$xorg_testset_save_CFLAGS"
7747
7748 eval supported=\$$cacheid
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7750 $as_echo "$supported" >&6; }
7751 if test "$supported" = "yes" ; then
7752 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7753 found="yes"
7754 fi
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 xorg_testset_save_CFLAGS="$CFLAGS"
7772
7773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 xorg_cv_cc_flag_unknown_warning_option=yes
7786 else
7787 xorg_cv_cc_flag_unknown_warning_option=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 xorg_cv_cc_flag_unused_command_line_argument=yes
7813 else
7814 xorg_cv_cc_flag_unused_command_line_argument=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822 fi
7823
7824 found="no"
7825
7826 if test $found = "no" ; then
7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829 fi
7830
7831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833 fi
7834
7835 CFLAGS="$CFLAGS -Werror=return-type"
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7838 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7839 cacheid=xorg_cv_cc_flag__Werror_return_type
7840 if eval \${$cacheid+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int i;
7846 int
7847 main ()
7848 {
7849
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 eval $cacheid=yes
7856 else
7857 eval $cacheid=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 fi
7862
7863
7864 CFLAGS="$xorg_testset_save_CFLAGS"
7865
7866 eval supported=\$$cacheid
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7868 $as_echo "$supported" >&6; }
7869 if test "$supported" = "yes" ; then
7870 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7871 found="yes"
7872 fi
7873 fi
7874
7875 if test $found = "no" ; then
7876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878 fi
7879
7880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7882 fi
7883
7884 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7887 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7888 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7889 if eval \${$cacheid+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 int i;
7895 int
7896 main ()
7897 {
7898
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 eval $cacheid=yes
7905 else
7906 eval $cacheid=no
7907 fi
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 fi
7911
7912
7913 CFLAGS="$xorg_testset_save_CFLAGS"
7914
7915 eval supported=\$$cacheid
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7917 $as_echo "$supported" >&6; }
7918 if test "$supported" = "yes" ; then
7919 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7920 found="yes"
7921 fi
7922 fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 xorg_testset_save_CFLAGS="$CFLAGS"
7939
7940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"; then :
7952 xorg_cv_cc_flag_unknown_warning_option=yes
7953 else
7954 xorg_cv_cc_flag_unknown_warning_option=no
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7961 CFLAGS="$xorg_testset_save_CFLAGS"
7962 fi
7963
7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967 fi
7968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int i;
7977 _ACEOF
7978 if ac_fn_c_try_compile "$LINENO"; then :
7979 xorg_cv_cc_flag_unused_command_line_argument=yes
7980 else
7981 xorg_cv_cc_flag_unused_command_line_argument=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7988 CFLAGS="$xorg_testset_save_CFLAGS"
7989 fi
7990
7991 found="no"
7992
7993 if test $found = "no" ; then
7994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996 fi
7997
7998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8000 fi
8001
8002 CFLAGS="$CFLAGS -Werror=trigraphs"
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8005 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8006 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8007 if eval \${$cacheid+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 int i;
8013 int
8014 main ()
8015 {
8016
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 eval $cacheid=yes
8023 else
8024 eval $cacheid=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 fi
8029
8030
8031 CFLAGS="$xorg_testset_save_CFLAGS"
8032
8033 eval supported=\$$cacheid
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8035 $as_echo "$supported" >&6; }
8036 if test "$supported" = "yes" ; then
8037 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8038 found="yes"
8039 fi
8040 fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 xorg_testset_save_CFLAGS="$CFLAGS"
8057
8058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 xorg_cv_cc_flag_unknown_warning_option=yes
8071 else
8072 xorg_cv_cc_flag_unknown_warning_option=no
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8079 CFLAGS="$xorg_testset_save_CFLAGS"
8080 fi
8081
8082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085 fi
8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 xorg_cv_cc_flag_unused_command_line_argument=yes
8098 else
8099 xorg_cv_cc_flag_unused_command_line_argument=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107 fi
8108
8109 found="no"
8110
8111 if test $found = "no" ; then
8112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114 fi
8115
8116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 fi
8119
8120 CFLAGS="$CFLAGS -Werror=array-bounds"
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8123 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8124 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8125 if eval \${$cacheid+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 int i;
8131 int
8132 main ()
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_link "$LINENO"; then :
8140 eval $cacheid=yes
8141 else
8142 eval $cacheid=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 fi
8147
8148
8149 CFLAGS="$xorg_testset_save_CFLAGS"
8150
8151 eval supported=\$$cacheid
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8153 $as_echo "$supported" >&6; }
8154 if test "$supported" = "yes" ; then
8155 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8156 found="yes"
8157 fi
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174 xorg_testset_save_CFLAGS="$CFLAGS"
8175
8176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 xorg_cv_cc_flag_unknown_warning_option=yes
8189 else
8190 xorg_cv_cc_flag_unknown_warning_option=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8197 CFLAGS="$xorg_testset_save_CFLAGS"
8198 fi
8199
8200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203 fi
8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 int i;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 xorg_cv_cc_flag_unused_command_line_argument=yes
8216 else
8217 xorg_cv_cc_flag_unused_command_line_argument=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225 fi
8226
8227 found="no"
8228
8229 if test $found = "no" ; then
8230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232 fi
8233
8234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236 fi
8237
8238 CFLAGS="$CFLAGS -Werror=write-strings"
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8241 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8242 cacheid=xorg_cv_cc_flag__Werror_write_strings
8243 if eval \${$cacheid+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 int i;
8249 int
8250 main ()
8251 {
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 eval $cacheid=yes
8259 else
8260 eval $cacheid=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 fi
8265
8266
8267 CFLAGS="$xorg_testset_save_CFLAGS"
8268
8269 eval supported=\$$cacheid
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8271 $as_echo "$supported" >&6; }
8272 if test "$supported" = "yes" ; then
8273 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8274 found="yes"
8275 fi
8276 fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292 xorg_testset_save_CFLAGS="$CFLAGS"
8293
8294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 int i;
8304 _ACEOF
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306 xorg_cv_cc_flag_unknown_warning_option=yes
8307 else
8308 xorg_cv_cc_flag_unknown_warning_option=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8315 CFLAGS="$xorg_testset_save_CFLAGS"
8316 fi
8317
8318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 xorg_cv_cc_flag_unused_command_line_argument=yes
8334 else
8335 xorg_cv_cc_flag_unused_command_line_argument=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8342 CFLAGS="$xorg_testset_save_CFLAGS"
8343 fi
8344
8345 found="no"
8346
8347 if test $found = "no" ; then
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354 fi
8355
8356 CFLAGS="$CFLAGS -Werror=address"
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8359 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8360 cacheid=xorg_cv_cc_flag__Werror_address
8361 if eval \${$cacheid+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int i;
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 eval $cacheid=yes
8377 else
8378 eval $cacheid=no
8379 fi
8380 rm -f core conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 fi
8383
8384
8385 CFLAGS="$xorg_testset_save_CFLAGS"
8386
8387 eval supported=\$$cacheid
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8389 $as_echo "$supported" >&6; }
8390 if test "$supported" = "yes" ; then
8391 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8392 found="yes"
8393 fi
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410 xorg_testset_save_CFLAGS="$CFLAGS"
8411
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 _ACEOF
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 xorg_cv_cc_flag_unknown_warning_option=yes
8425 else
8426 xorg_cv_cc_flag_unknown_warning_option=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434 fi
8435
8436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 xorg_cv_cc_flag_unused_command_line_argument=yes
8452 else
8453 xorg_cv_cc_flag_unused_command_line_argument=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8460 CFLAGS="$xorg_testset_save_CFLAGS"
8461 fi
8462
8463 found="no"
8464
8465 if test $found = "no" ; then
8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468 fi
8469
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8472 fi
8473
8474 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8475
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8477 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8478 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8479 if eval \${$cacheid+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 int i;
8485 int
8486 main ()
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 eval $cacheid=yes
8495 else
8496 eval $cacheid=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 fi
8501
8502
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505 eval supported=\$$cacheid
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507 $as_echo "$supported" >&6; }
8508 if test "$supported" = "yes" ; then
8509 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8510 found="yes"
8511 fi
8512 fi
8513
8514 if test $found = "no" ; then
8515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517 fi
8518
8519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521 fi
8522
8523 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8524
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8526 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8527 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8528 if eval \${$cacheid+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 int
8535 main ()
8536 {
8537
8538 ;
8539 return 0;
8540 }
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 eval $cacheid=yes
8544 else
8545 eval $cacheid=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 fi
8550
8551
8552 CFLAGS="$xorg_testset_save_CFLAGS"
8553
8554 eval supported=\$$cacheid
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8556 $as_echo "$supported" >&6; }
8557 if test "$supported" = "yes" ; then
8558 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8559 found="yes"
8560 fi
8561 fi
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 xorg_testset_save_CFLAGS="$CFLAGS"
8578
8579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 int i;
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 xorg_cv_cc_flag_unknown_warning_option=yes
8592 else
8593 xorg_cv_cc_flag_unknown_warning_option=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601 fi
8602
8603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 fi
8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 xorg_cv_cc_flag_unused_command_line_argument=yes
8619 else
8620 xorg_cv_cc_flag_unused_command_line_argument=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 found="no"
8631
8632 if test $found = "no" ; then
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 fi
8636
8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8639 fi
8640
8641 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8644 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8645 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8646 if eval \${$cacheid+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 int
8653 main ()
8654 {
8655
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 eval $cacheid=yes
8662 else
8663 eval $cacheid=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 fi
8668
8669
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671
8672 eval supported=\$$cacheid
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8674 $as_echo "$supported" >&6; }
8675 if test "$supported" = "yes" ; then
8676 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8677 found="yes"
8678 fi
8679 fi
8680
8681 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8682 else
8683 { $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
8684 $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;}
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 xorg_testset_save_CFLAGS="$CFLAGS"
8699
8700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8703 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8704 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 xorg_cv_cc_flag_unknown_warning_option=yes
8713 else
8714 xorg_cv_cc_flag_unknown_warning_option=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8719 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8721 CFLAGS="$xorg_testset_save_CFLAGS"
8722 fi
8723
8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727 fi
8728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8730 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8731 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 xorg_cv_cc_flag_unused_command_line_argument=yes
8740 else
8741 xorg_cv_cc_flag_unused_command_line_argument=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8746 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749 fi
8750
8751 found="no"
8752
8753 if test $found = "no" ; then
8754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756 fi
8757
8758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8760 fi
8761
8762 CFLAGS="$CFLAGS -Wimplicit"
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8765 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8766 cacheid=xorg_cv_cc_flag__Wimplicit
8767 if eval \${$cacheid+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772 int i;
8773 int
8774 main ()
8775 {
8776
8777 ;
8778 return 0;
8779 }
8780 _ACEOF
8781 if ac_fn_c_try_link "$LINENO"; then :
8782 eval $cacheid=yes
8783 else
8784 eval $cacheid=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789
8790
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8792
8793 eval supported=\$$cacheid
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8795 $as_echo "$supported" >&6; }
8796 if test "$supported" = "yes" ; then
8797 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8798 found="yes"
8799 fi
8800 fi
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816 xorg_testset_save_CFLAGS="$CFLAGS"
8817
8818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8821 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8822 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 int i;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 xorg_cv_cc_flag_unknown_warning_option=yes
8831 else
8832 xorg_cv_cc_flag_unknown_warning_option=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8837 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840 fi
8841
8842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845 fi
8846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8848 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8849 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 xorg_cv_cc_flag_unused_command_line_argument=yes
8858 else
8859 xorg_cv_cc_flag_unused_command_line_argument=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8864 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867 fi
8868
8869 found="no"
8870
8871 if test $found = "no" ; then
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 fi
8875
8876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8878 fi
8879
8880 CFLAGS="$CFLAGS -Wnonnull"
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8883 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8884 cacheid=xorg_cv_cc_flag__Wnonnull
8885 if eval \${$cacheid+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 int i;
8891 int
8892 main ()
8893 {
8894
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 eval $cacheid=yes
8901 else
8902 eval $cacheid=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 fi
8907
8908
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910
8911 eval supported=\$$cacheid
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8913 $as_echo "$supported" >&6; }
8914 if test "$supported" = "yes" ; then
8915 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8916 found="yes"
8917 fi
8918 fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934 xorg_testset_save_CFLAGS="$CFLAGS"
8935
8936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8939 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8940 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 xorg_cv_cc_flag_unknown_warning_option=yes
8949 else
8950 xorg_cv_cc_flag_unknown_warning_option=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8955 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8957 CFLAGS="$xorg_testset_save_CFLAGS"
8958 fi
8959
8960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963 fi
8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8966 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8967 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 int i;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 xorg_cv_cc_flag_unused_command_line_argument=yes
8976 else
8977 xorg_cv_cc_flag_unused_command_line_argument=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8982 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 found="no"
8988
8989 if test $found = "no" ; then
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 fi
8993
8994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996 fi
8997
8998 CFLAGS="$CFLAGS -Winit-self"
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9001 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9002 cacheid=xorg_cv_cc_flag__Winit_self
9003 if eval \${$cacheid+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 int i;
9009 int
9010 main ()
9011 {
9012
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 if ac_fn_c_try_link "$LINENO"; then :
9018 eval $cacheid=yes
9019 else
9020 eval $cacheid=no
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 fi
9025
9026
9027 CFLAGS="$xorg_testset_save_CFLAGS"
9028
9029 eval supported=\$$cacheid
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9031 $as_echo "$supported" >&6; }
9032 if test "$supported" = "yes" ; then
9033 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9034 found="yes"
9035 fi
9036 fi
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052 xorg_testset_save_CFLAGS="$CFLAGS"
9053
9054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9058 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063 int i;
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9066 xorg_cv_cc_flag_unknown_warning_option=yes
9067 else
9068 xorg_cv_cc_flag_unknown_warning_option=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9075 CFLAGS="$xorg_testset_save_CFLAGS"
9076 fi
9077
9078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081 fi
9082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"; then :
9093 xorg_cv_cc_flag_unused_command_line_argument=yes
9094 else
9095 xorg_cv_cc_flag_unused_command_line_argument=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 found="no"
9106
9107 if test $found = "no" ; then
9108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110 fi
9111
9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9114 fi
9115
9116 CFLAGS="$CFLAGS -Wmain"
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9119 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9120 cacheid=xorg_cv_cc_flag__Wmain
9121 if eval \${$cacheid+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 int i;
9127 int
9128 main ()
9129 {
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_link "$LINENO"; then :
9136 eval $cacheid=yes
9137 else
9138 eval $cacheid=no
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 fi
9143
9144
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146
9147 eval supported=\$$cacheid
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9149 $as_echo "$supported" >&6; }
9150 if test "$supported" = "yes" ; then
9151 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9152 found="yes"
9153 fi
9154 fi
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 xorg_testset_save_CFLAGS="$CFLAGS"
9171
9172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 int i;
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"; then :
9184 xorg_cv_cc_flag_unknown_warning_option=yes
9185 else
9186 xorg_cv_cc_flag_unknown_warning_option=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9193 CFLAGS="$xorg_testset_save_CFLAGS"
9194 fi
9195
9196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199 fi
9200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 _ACEOF
9210 if ac_fn_c_try_compile "$LINENO"; then :
9211 xorg_cv_cc_flag_unused_command_line_argument=yes
9212 else
9213 xorg_cv_cc_flag_unused_command_line_argument=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 found="no"
9224
9225 if test $found = "no" ; then
9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228 fi
9229
9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232 fi
9233
9234 CFLAGS="$CFLAGS -Wmissing-braces"
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9237 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9238 cacheid=xorg_cv_cc_flag__Wmissing_braces
9239 if eval \${$cacheid+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 int i;
9245 int
9246 main ()
9247 {
9248
9249 ;
9250 return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_c_try_link "$LINENO"; then :
9254 eval $cacheid=yes
9255 else
9256 eval $cacheid=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 fi
9261
9262
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264
9265 eval supported=\$$cacheid
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9267 $as_echo "$supported" >&6; }
9268 if test "$supported" = "yes" ; then
9269 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9270 found="yes"
9271 fi
9272 fi
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288 xorg_testset_save_CFLAGS="$CFLAGS"
9289
9290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 int i;
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 xorg_cv_cc_flag_unknown_warning_option=yes
9303 else
9304 xorg_cv_cc_flag_unknown_warning_option=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312 fi
9313
9314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317 fi
9318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 xorg_cv_cc_flag_unused_command_line_argument=yes
9330 else
9331 xorg_cv_cc_flag_unused_command_line_argument=no
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339 fi
9340
9341 found="no"
9342
9343 if test $found = "no" ; then
9344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346 fi
9347
9348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9350 fi
9351
9352 CFLAGS="$CFLAGS -Wsequence-point"
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9355 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9356 cacheid=xorg_cv_cc_flag__Wsequence_point
9357 if eval \${$cacheid+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 int i;
9363 int
9364 main ()
9365 {
9366
9367 ;
9368 return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 eval $cacheid=yes
9373 else
9374 eval $cacheid=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 fi
9379
9380
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382
9383 eval supported=\$$cacheid
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9385 $as_echo "$supported" >&6; }
9386 if test "$supported" = "yes" ; then
9387 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9388 found="yes"
9389 fi
9390 fi
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406 xorg_testset_save_CFLAGS="$CFLAGS"
9407
9408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 int i;
9418 _ACEOF
9419 if ac_fn_c_try_compile "$LINENO"; then :
9420 xorg_cv_cc_flag_unknown_warning_option=yes
9421 else
9422 xorg_cv_cc_flag_unknown_warning_option=no
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430 fi
9431
9432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435 fi
9436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 int i;
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 xorg_cv_cc_flag_unused_command_line_argument=yes
9448 else
9449 xorg_cv_cc_flag_unused_command_line_argument=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457 fi
9458
9459 found="no"
9460
9461 if test $found = "no" ; then
9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464 fi
9465
9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9468 fi
9469
9470 CFLAGS="$CFLAGS -Wreturn-type"
9471
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9473 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9474 cacheid=xorg_cv_cc_flag__Wreturn_type
9475 if eval \${$cacheid+:} false; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 int i;
9481 int
9482 main ()
9483 {
9484
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 eval $cacheid=yes
9491 else
9492 eval $cacheid=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 fi
9497
9498
9499 CFLAGS="$xorg_testset_save_CFLAGS"
9500
9501 eval supported=\$$cacheid
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9503 $as_echo "$supported" >&6; }
9504 if test "$supported" = "yes" ; then
9505 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9506 found="yes"
9507 fi
9508 fi
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 xorg_testset_save_CFLAGS="$CFLAGS"
9525
9526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 int i;
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 xorg_cv_cc_flag_unknown_warning_option=yes
9539 else
9540 xorg_cv_cc_flag_unknown_warning_option=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553 fi
9554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"; then :
9565 xorg_cv_cc_flag_unused_command_line_argument=yes
9566 else
9567 xorg_cv_cc_flag_unused_command_line_argument=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575 fi
9576
9577 found="no"
9578
9579 if test $found = "no" ; then
9580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582 fi
9583
9584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9586 fi
9587
9588 CFLAGS="$CFLAGS -Wtrigraphs"
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9591 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9592 cacheid=xorg_cv_cc_flag__Wtrigraphs
9593 if eval \${$cacheid+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 int i;
9599 int
9600 main ()
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608 eval $cacheid=yes
9609 else
9610 eval $cacheid=no
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 fi
9615
9616
9617 CFLAGS="$xorg_testset_save_CFLAGS"
9618
9619 eval supported=\$$cacheid
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9621 $as_echo "$supported" >&6; }
9622 if test "$supported" = "yes" ; then
9623 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9624 found="yes"
9625 fi
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642 xorg_testset_save_CFLAGS="$CFLAGS"
9643
9644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 int i;
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 xorg_cv_cc_flag_unknown_warning_option=yes
9657 else
9658 xorg_cv_cc_flag_unknown_warning_option=no
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666 fi
9667
9668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671 fi
9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 int i;
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 xorg_cv_cc_flag_unused_command_line_argument=yes
9684 else
9685 xorg_cv_cc_flag_unused_command_line_argument=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9692 CFLAGS="$xorg_testset_save_CFLAGS"
9693 fi
9694
9695 found="no"
9696
9697 if test $found = "no" ; then
9698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700 fi
9701
9702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9704 fi
9705
9706 CFLAGS="$CFLAGS -Warray-bounds"
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9709 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9710 cacheid=xorg_cv_cc_flag__Warray_bounds
9711 if eval \${$cacheid+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 int i;
9717 int
9718 main ()
9719 {
9720
9721 ;
9722 return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_link "$LINENO"; then :
9726 eval $cacheid=yes
9727 else
9728 eval $cacheid=no
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 fi
9733
9734
9735 CFLAGS="$xorg_testset_save_CFLAGS"
9736
9737 eval supported=\$$cacheid
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9739 $as_echo "$supported" >&6; }
9740 if test "$supported" = "yes" ; then
9741 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9742 found="yes"
9743 fi
9744 fi
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760 xorg_testset_save_CFLAGS="$CFLAGS"
9761
9762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int i;
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 xorg_cv_cc_flag_unknown_warning_option=yes
9775 else
9776 xorg_cv_cc_flag_unknown_warning_option=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9783 CFLAGS="$xorg_testset_save_CFLAGS"
9784 fi
9785
9786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789 fi
9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"; then :
9801 xorg_cv_cc_flag_unused_command_line_argument=yes
9802 else
9803 xorg_cv_cc_flag_unused_command_line_argument=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811 fi
9812
9813 found="no"
9814
9815 if test $found = "no" ; then
9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818 fi
9819
9820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9822 fi
9823
9824 CFLAGS="$CFLAGS -Wwrite-strings"
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9827 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9828 cacheid=xorg_cv_cc_flag__Wwrite_strings
9829 if eval \${$cacheid+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 int i;
9835 int
9836 main ()
9837 {
9838
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844 eval $cacheid=yes
9845 else
9846 eval $cacheid=no
9847 fi
9848 rm -f core conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 fi
9851
9852
9853 CFLAGS="$xorg_testset_save_CFLAGS"
9854
9855 eval supported=\$$cacheid
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9857 $as_echo "$supported" >&6; }
9858 if test "$supported" = "yes" ; then
9859 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9860 found="yes"
9861 fi
9862 fi
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878 xorg_testset_save_CFLAGS="$CFLAGS"
9879
9880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"; then :
9892 xorg_cv_cc_flag_unknown_warning_option=yes
9893 else
9894 xorg_cv_cc_flag_unknown_warning_option=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9901 CFLAGS="$xorg_testset_save_CFLAGS"
9902 fi
9903
9904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9907 fi
9908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int i;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 xorg_cv_cc_flag_unused_command_line_argument=yes
9920 else
9921 xorg_cv_cc_flag_unused_command_line_argument=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929 fi
9930
9931 found="no"
9932
9933 if test $found = "no" ; then
9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936 fi
9937
9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9940 fi
9941
9942 CFLAGS="$CFLAGS -Waddress"
9943
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9945 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9946 cacheid=xorg_cv_cc_flag__Waddress
9947 if eval \${$cacheid+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 int
9954 main ()
9955 {
9956
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_link "$LINENO"; then :
9962 eval $cacheid=yes
9963 else
9964 eval $cacheid=no
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 fi
9969
9970
9971 CFLAGS="$xorg_testset_save_CFLAGS"
9972
9973 eval supported=\$$cacheid
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9975 $as_echo "$supported" >&6; }
9976 if test "$supported" = "yes" ; then
9977 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9978 found="yes"
9979 fi
9980 fi
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996 xorg_testset_save_CFLAGS="$CFLAGS"
9997
9998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int i;
10008 _ACEOF
10009 if ac_fn_c_try_compile "$LINENO"; then :
10010 xorg_cv_cc_flag_unknown_warning_option=yes
10011 else
10012 xorg_cv_cc_flag_unknown_warning_option=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10019 CFLAGS="$xorg_testset_save_CFLAGS"
10020 fi
10021
10022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10025 fi
10026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 if ac_fn_c_try_compile "$LINENO"; then :
10037 xorg_cv_cc_flag_unused_command_line_argument=yes
10038 else
10039 xorg_cv_cc_flag_unused_command_line_argument=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042 fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10046 CFLAGS="$xorg_testset_save_CFLAGS"
10047 fi
10048
10049 found="no"
10050
10051 if test $found = "no" ; then
10052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054 fi
10055
10056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10058 fi
10059
10060 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10063 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10064 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10065 if eval \${$cacheid+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 int i;
10071 int
10072 main ()
10073 {
10074
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 eval $cacheid=yes
10081 else
10082 eval $cacheid=no
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 fi
10087
10088
10089 CFLAGS="$xorg_testset_save_CFLAGS"
10090
10091 eval supported=\$$cacheid
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10093 $as_echo "$supported" >&6; }
10094 if test "$supported" = "yes" ; then
10095 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10096 found="yes"
10097 fi
10098 fi
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114 xorg_testset_save_CFLAGS="$CFLAGS"
10115
10116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10119 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10120 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 _ACEOF
10127 if ac_fn_c_try_compile "$LINENO"; then :
10128 xorg_cv_cc_flag_unknown_warning_option=yes
10129 else
10130 xorg_cv_cc_flag_unknown_warning_option=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10135 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138 fi
10139
10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143 fi
10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10146 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10147 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int i;
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"; then :
10155 xorg_cv_cc_flag_unused_command_line_argument=yes
10156 else
10157 xorg_cv_cc_flag_unused_command_line_argument=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10162 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10164 CFLAGS="$xorg_testset_save_CFLAGS"
10165 fi
10166
10167 found="no"
10168
10169 if test $found = "no" ; then
10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172 fi
10173
10174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10176 fi
10177
10178 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10179
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10181 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10182 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10183 if eval \${$cacheid+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188 int i;
10189 int
10190 main ()
10191 {
10192
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_c_try_link "$LINENO"; then :
10198 eval $cacheid=yes
10199 else
10200 eval $cacheid=no
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 fi
10205
10206
10207 CFLAGS="$xorg_testset_save_CFLAGS"
10208
10209 eval supported=\$$cacheid
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10211 $as_echo "$supported" >&6; }
10212 if test "$supported" = "yes" ; then
10213 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10214 found="yes"
10215 fi
10216 fi
10217
10218
10219 fi
10220
10221
10222
10223
10224
10225
10226
10227 CWARNFLAGS="$BASE_CFLAGS"
10228 if test "x$GCC" = xyes ; then
10229 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238
10239 # Check whether --enable-strict-compilation was given.
10240 if test "${enable_strict_compilation+set}" = set; then :
10241 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10242 else
10243 STRICT_COMPILE=no
10244 fi
10245
10246
10247
10248
10249
10250
10251 STRICT_CFLAGS=""
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int i;
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279 xorg_cv_cc_flag_unknown_warning_option=yes
10280 else
10281 xorg_cv_cc_flag_unknown_warning_option=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289 fi
10290
10291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 fi
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 int i;
10304 _ACEOF
10305 if ac_fn_c_try_compile "$LINENO"; then :
10306 xorg_cv_cc_flag_unused_command_line_argument=yes
10307 else
10308 xorg_cv_cc_flag_unused_command_line_argument=no
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10315 CFLAGS="$xorg_testset_save_CFLAGS"
10316 fi
10317
10318 found="no"
10319
10320 if test $found = "no" ; then
10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323 fi
10324
10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10327 fi
10328
10329 CFLAGS="$CFLAGS -pedantic"
10330
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10332 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10333 cacheid=xorg_cv_cc_flag__pedantic
10334 if eval \${$cacheid+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 int i;
10340 int
10341 main ()
10342 {
10343
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 eval $cacheid=yes
10350 else
10351 eval $cacheid=no
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 fi
10356
10357
10358 CFLAGS="$xorg_testset_save_CFLAGS"
10359
10360 eval supported=\$$cacheid
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10362 $as_echo "$supported" >&6; }
10363 if test "$supported" = "yes" ; then
10364 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10365 found="yes"
10366 fi
10367 fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383 xorg_testset_save_CFLAGS="$CFLAGS"
10384
10385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int i;
10395 _ACEOF
10396 if ac_fn_c_try_compile "$LINENO"; then :
10397 xorg_cv_cc_flag_unknown_warning_option=yes
10398 else
10399 xorg_cv_cc_flag_unknown_warning_option=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407 fi
10408
10409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412 fi
10413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10421 int i;
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424 xorg_cv_cc_flag_unused_command_line_argument=yes
10425 else
10426 xorg_cv_cc_flag_unused_command_line_argument=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10433 CFLAGS="$xorg_testset_save_CFLAGS"
10434 fi
10435
10436 found="no"
10437
10438 if test $found = "no" ; then
10439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441 fi
10442
10443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445 fi
10446
10447 CFLAGS="$CFLAGS -Werror"
10448
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10450 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10451 cacheid=xorg_cv_cc_flag__Werror
10452 if eval \${$cacheid+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 int i;
10458 int
10459 main ()
10460 {
10461
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 eval $cacheid=yes
10468 else
10469 eval $cacheid=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 fi
10474
10475
10476 CFLAGS="$xorg_testset_save_CFLAGS"
10477
10478 eval supported=\$$cacheid
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10480 $as_echo "$supported" >&6; }
10481 if test "$supported" = "yes" ; then
10482 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10483 found="yes"
10484 fi
10485 fi
10486
10487 if test $found = "no" ; then
10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490 fi
10491
10492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10494 fi
10495
10496 CFLAGS="$CFLAGS -errwarn"
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10499 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10500 cacheid=xorg_cv_cc_flag__errwarn
10501 if eval \${$cacheid+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int i;
10507 int
10508 main ()
10509 {
10510
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 eval $cacheid=yes
10517 else
10518 eval $cacheid=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 fi
10523
10524
10525 CFLAGS="$xorg_testset_save_CFLAGS"
10526
10527 eval supported=\$$cacheid
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10529 $as_echo "$supported" >&6; }
10530 if test "$supported" = "yes" ; then
10531 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10532 found="yes"
10533 fi
10534 fi
10535
10536
10537
10538 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10539 # activate it with -Werror, so we add it here explicitly.
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 xorg_testset_save_CFLAGS="$CFLAGS"
10554
10555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 int i;
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"; then :
10567 xorg_cv_cc_flag_unknown_warning_option=yes
10568 else
10569 xorg_cv_cc_flag_unknown_warning_option=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 fi
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10576 CFLAGS="$xorg_testset_save_CFLAGS"
10577 fi
10578
10579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10582 fi
10583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 int i;
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594 xorg_cv_cc_flag_unused_command_line_argument=yes
10595 else
10596 xorg_cv_cc_flag_unused_command_line_argument=no
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10603 CFLAGS="$xorg_testset_save_CFLAGS"
10604 fi
10605
10606 found="no"
10607
10608 if test $found = "no" ; then
10609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611 fi
10612
10613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10615 fi
10616
10617 CFLAGS="$CFLAGS -Werror=attributes"
10618
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10620 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10621 cacheid=xorg_cv_cc_flag__Werror_attributes
10622 if eval \${$cacheid+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 int i;
10628 int
10629 main ()
10630 {
10631
10632 ;
10633 return 0;
10634 }
10635 _ACEOF
10636 if ac_fn_c_try_link "$LINENO"; then :
10637 eval $cacheid=yes
10638 else
10639 eval $cacheid=no
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 fi
10644
10645
10646 CFLAGS="$xorg_testset_save_CFLAGS"
10647
10648 eval supported=\$$cacheid
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10650 $as_echo "$supported" >&6; }
10651 if test "$supported" = "yes" ; then
10652 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10653 found="yes"
10654 fi
10655 fi
10656
10657
10658
10659 if test "x$STRICT_COMPILE" = "xyes"; then
10660 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10661 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10662 fi
10663
10664
10665
10666
10667
10668
10669 cat >>confdefs.h <<_ACEOF
10670 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10671 _ACEOF
10672
10673 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10674 if test "x$PVM" = "x"; then
10675 PVM="0"
10676 fi
10677
10678 cat >>confdefs.h <<_ACEOF
10679 #define PACKAGE_VERSION_MINOR $PVM
10680 _ACEOF
10681
10682 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10683 if test "x$PVP" = "x"; then
10684 PVP="0"
10685 fi
10686
10687 cat >>confdefs.h <<_ACEOF
10688 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10689 _ACEOF
10690
10691
10692
10693 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10694 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10695 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10696 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10697
10698
10699
10700
10701 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10702 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10703 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10704 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10705 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10706
10707
10708
10709
10710
10711
10712 if test x$APP_MAN_SUFFIX = x ; then
10713 APP_MAN_SUFFIX=1
10714 fi
10715 if test x$APP_MAN_DIR = x ; then
10716 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10717 fi
10718
10719 if test x$LIB_MAN_SUFFIX = x ; then
10720 LIB_MAN_SUFFIX=3
10721 fi
10722 if test x$LIB_MAN_DIR = x ; then
10723 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10724 fi
10725
10726 if test x$FILE_MAN_SUFFIX = x ; then
10727 case $host_os in
10728 # Solaris 2.0 - 11 use SysV man page sections
10729 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10730 *) FILE_MAN_SUFFIX=5 ;;
10731 esac
10732 fi
10733 if test x$FILE_MAN_DIR = x ; then
10734 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10735 fi
10736
10737 if test x$MISC_MAN_SUFFIX = x ; then
10738 case $host_os in
10739 # Solaris 2.0 - 11 use SysV man page sections
10740 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10741 *) MISC_MAN_SUFFIX=7 ;;
10742 esac
10743 fi
10744 if test x$MISC_MAN_DIR = x ; then
10745 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10746 fi
10747
10748 if test x$DRIVER_MAN_SUFFIX = x ; then
10749 case $host_os in
10750 # Solaris 2.0 - 11 use SysV man page sections
10751 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10752 *) DRIVER_MAN_SUFFIX=4 ;;
10753 esac
10754 fi
10755 if test x$DRIVER_MAN_DIR = x ; then
10756 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10757 fi
10758
10759 if test x$ADMIN_MAN_SUFFIX = x ; then
10760 case $host_os in
10761 # Solaris 2.0 - 11 use SysV man page sections
10762 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10763 *) ADMIN_MAN_SUFFIX=8 ;;
10764 esac
10765 fi
10766 if test x$ADMIN_MAN_DIR = x ; then
10767 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10768 fi
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 XORG_MAN_PAGE="X Version 11"
10785
10786 MAN_SUBSTS="\
10787 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10788 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10789 -e 's|__xservername__|Xorg|g' \
10790 -e 's|__xconfigfile__|xorg.conf|g' \
10791 -e 's|__projectroot__|\$(prefix)|g' \
10792 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10793 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10794 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10795 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10796 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10797 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10798 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10799
10800
10801
10802 # Check whether --enable-silent-rules was given.
10803 if test "${enable_silent_rules+set}" = set; then :
10804 enableval=$enable_silent_rules;
10805 fi
10806
10807 case $enable_silent_rules in # (((
10808 yes) AM_DEFAULT_VERBOSITY=0;;
10809 no) AM_DEFAULT_VERBOSITY=1;;
10810 *) AM_DEFAULT_VERBOSITY=0;;
10811 esac
10812 am_make=${MAKE-make}
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10814 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10815 if ${am_cv_make_support_nested_variables+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 if $as_echo 'TRUE=$(BAR$(V))
10819 BAR0=false
10820 BAR1=true
10821 V=1
10822 am__doit:
10823 @$(TRUE)
10824 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10825 am_cv_make_support_nested_variables=yes
10826 else
10827 am_cv_make_support_nested_variables=no
10828 fi
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10831 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10832 if test $am_cv_make_support_nested_variables = yes; then
10833 AM_V='$(V)'
10834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10835 else
10836 AM_V=$AM_DEFAULT_VERBOSITY
10837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10838 fi
10839 AM_BACKSLASH='\'
10840
10841
10842
10843 for ac_prog in 'bison -y' byacc
10844 do
10845 # Extract the first word of "$ac_prog", so it can be a program name with args.
10846 set dummy $ac_prog; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if ${ac_cv_prog_YACC+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 if test -n "$YACC"; then
10853 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10854 else
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10862 ac_cv_prog_YACC="$ac_prog"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866 done
10867 done
10868 IFS=$as_save_IFS
10869
10870 fi
10871 fi
10872 YACC=$ac_cv_prog_YACC
10873 if test -n "$YACC"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10875 $as_echo "$YACC" >&6; }
10876 else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10879 fi
10880
10881
10882 test -n "$YACC" && break
10883 done
10884 test -n "$YACC" || YACC="yacc"
10885
10886 # Extract the first word of "$YACC", so it can be a program name with args.
10887 set dummy $YACC; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_path_YACC_INST+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 case $YACC_INST in
10894 [\\/]* | ?:[\\/]*)
10895 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10896 ;;
10897 *)
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10905 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10908 fi
10909 done
10910 done
10911 IFS=$as_save_IFS
10912
10913 ;;
10914 esac
10915 fi
10916 YACC_INST=$ac_cv_path_YACC_INST
10917 if test -n "$YACC_INST"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10919 $as_echo "$YACC_INST" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 fi
10924
10925
10926 if test ! -f "$srcdir/gram.c"; then
10927 if test -z "$YACC_INST"; then
10928 as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10929 fi
10930 fi
10931 for ac_prog in flex lex
10932 do
10933 # Extract the first word of "$ac_prog", so it can be a program name with args.
10934 set dummy $ac_prog; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_prog_LEX+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$LEX"; then
10941 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_LEX="$ac_prog"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954 done
10955 done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 LEX=$ac_cv_prog_LEX
10961 if test -n "$LEX"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10963 $as_echo "$LEX" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 test -n "$LEX" && break
10971 done
10972 test -n "$LEX" || LEX=":"
10973
10974 if test "x$LEX" != "x:"; then
10975 cat >conftest.l <<_ACEOF
10976 %%
10977 a { ECHO; }
10978 b { REJECT; }
10979 c { yymore (); }
10980 d { yyless (1); }
10981 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
10982 yyless ((input () != 0)); }
10983 f { unput (yytext[0]); }
10984 . { BEGIN INITIAL; }
10985 %%
10986 #ifdef YYTEXT_POINTER
10987 extern char *yytext;
10988 #endif
10989 int
10990 main (void)
10991 {
10992 return ! yylex () + ! yywrap ();
10993 }
10994 _ACEOF
10995 { { ac_try="$LEX conftest.l"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11001 $as_echo "$ac_try_echo"; } >&5
11002 (eval "$LEX conftest.l") 2>&5
11003 ac_status=$?
11004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005 test $ac_status = 0; }
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11007 $as_echo_n "checking lex output file root... " >&6; }
11008 if ${ac_cv_prog_lex_root+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011
11012 if test -f lex.yy.c; then
11013 ac_cv_prog_lex_root=lex.yy
11014 elif test -f lexyy.c; then
11015 ac_cv_prog_lex_root=lexyy
11016 else
11017 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11018 fi
11019 fi
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11021 $as_echo "$ac_cv_prog_lex_root" >&6; }
11022 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11023
11024 if test -z "${LEXLIB+set}"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11026 $as_echo_n "checking lex library... " >&6; }
11027 if ${ac_cv_lib_lex+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030
11031 ac_save_LIBS=$LIBS
11032 ac_cv_lib_lex='none needed'
11033 for ac_lib in '' -lfl -ll; do
11034 LIBS="$ac_lib $ac_save_LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 `cat $LEX_OUTPUT_ROOT.c`
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_lex=$ac_lib
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 test "$ac_cv_lib_lex" != 'none needed' && break
11045 done
11046 LIBS=$ac_save_LIBS
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11050 $as_echo "$ac_cv_lib_lex" >&6; }
11051 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11052 fi
11053
11054
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11056 $as_echo_n "checking whether yytext is a pointer... " >&6; }
11057 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 # POSIX says lex can declare yytext either as a pointer or an array; the
11061 # default is implementation-dependent. Figure out which it is, since
11062 # not all implementations provide the %pointer and %array declarations.
11063 ac_cv_prog_lex_yytext_pointer=no
11064 ac_save_LIBS=$LIBS
11065 LIBS="$LEXLIB $ac_save_LIBS"
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068
11069 #define YYTEXT_POINTER 1
11070 `cat $LEX_OUTPUT_ROOT.c`
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 ac_cv_prog_lex_yytext_pointer=yes
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_save_LIBS
11078
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11081 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11082 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11083
11084 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11085
11086 fi
11087 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11088
11089 fi
11090
11091 for ac_func in mkstemp
11092 do :
11093 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11094 if test "x$ac_cv_func_mkstemp" = xyes; then :
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_MKSTEMP 1
11097 _ACEOF
11098
11099 fi
11100 done
11101
11102
11103 # Checks for pkg-config packages
11104
11105 pkg_failed=no
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5
11107 $as_echo_n "checking for TWM... " >&6; }
11108
11109 if test -n "$TWM_CFLAGS"; then
11110 pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11111 elif test -n "$PKG_CONFIG"; then
11112 if test -n "$PKG_CONFIG" && \
11113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11114 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11115 ac_status=$?
11116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117 test $ac_status = 0; }; then
11118 pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11119 test "x$?" != "x0" && pkg_failed=yes
11120 else
11121 pkg_failed=yes
11122 fi
11123 else
11124 pkg_failed=untried
11125 fi
11126 if test -n "$TWM_LIBS"; then
11127 pkg_cv_TWM_LIBS="$TWM_LIBS"
11128 elif test -n "$PKG_CONFIG"; then
11129 if test -n "$PKG_CONFIG" && \
11130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11131 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11132 ac_status=$?
11133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134 test $ac_status = 0; }; then
11135 pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11136 test "x$?" != "x0" && pkg_failed=yes
11137 else
11138 pkg_failed=yes
11139 fi
11140 else
11141 pkg_failed=untried
11142 fi
11143
11144
11145
11146 if test $pkg_failed = yes; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149
11150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11151 _pkg_short_errors_supported=yes
11152 else
11153 _pkg_short_errors_supported=no
11154 fi
11155 if test $_pkg_short_errors_supported = yes; then
11156 TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11157 else
11158 TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11159 fi
11160 # Put the nasty error message in config.log where it belongs
11161 echo "$TWM_PKG_ERRORS" >&5
11162
11163 as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11164
11165 $TWM_PKG_ERRORS
11166
11167 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11168 installed software in a non-standard prefix.
11169
11170 Alternatively, you may set the environment variables TWM_CFLAGS
11171 and TWM_LIBS to avoid the need to call pkg-config.
11172 See the pkg-config man page for more details." "$LINENO" 5
11173 elif test $pkg_failed = untried; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11178 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11179 is in your PATH or set the PKG_CONFIG environment variable to the full
11180 path to pkg-config.
11181
11182 Alternatively, you may set the environment variables TWM_CFLAGS
11183 and TWM_LIBS to avoid the need to call pkg-config.
11184 See the pkg-config man page for more details.
11185
11186 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11187 See \`config.log' for more details" "$LINENO" 5; }
11188 else
11189 TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11190 TWM_LIBS=$pkg_cv_TWM_LIBS
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11193
11194 fi
11195
11196 pkg_failed=no
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
11198 $as_echo_n "checking for XRANDR... " >&6; }
11199
11200 if test -n "$XRANDR_CFLAGS"; then
11201 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
11202 elif test -n "$PKG_CONFIG"; then
11203 if test -n "$PKG_CONFIG" && \
11204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11205 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11206 ac_status=$?
11207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11208 test $ac_status = 0; }; then
11209 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
11210 test "x$?" != "x0" && pkg_failed=yes
11211 else
11212 pkg_failed=yes
11213 fi
11214 else
11215 pkg_failed=untried
11216 fi
11217 if test -n "$XRANDR_LIBS"; then
11218 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
11219 elif test -n "$PKG_CONFIG"; then
11220 if test -n "$PKG_CONFIG" && \
11221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11222 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11223 ac_status=$?
11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; }; then
11226 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
11227 test "x$?" != "x0" && pkg_failed=yes
11228 else
11229 pkg_failed=yes
11230 fi
11231 else
11232 pkg_failed=untried
11233 fi
11234
11235
11236
11237 if test $pkg_failed = yes; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240
11241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11242 _pkg_short_errors_supported=yes
11243 else
11244 _pkg_short_errors_supported=no
11245 fi
11246 if test $_pkg_short_errors_supported = yes; then
11247 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
11248 else
11249 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
11250 fi
11251 # Put the nasty error message in config.log where it belongs
11252 echo "$XRANDR_PKG_ERRORS" >&5
11253
11254 have_xrandr=no
11255 elif test $pkg_failed = untried; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 have_xrandr=no
11259 else
11260 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
11261 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264 have_xrandr=yes
11265 fi
11266 if test "$have_xrandr" = yes; then
11267
11268 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
11269
11270 fi
11271
11272 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11273
11274 cat >confcache <<\_ACEOF
11275 # This file is a shell script that caches the results of configure
11276 # tests run on this system so they can be shared between configure
11277 # scripts and configure runs, see configure's option --config-cache.
11278 # It is not useful on other systems. If it contains results you don't
11279 # want to keep, you may remove or edit it.
11280 #
11281 # config.status only pays attention to the cache file if you give it
11282 # the --recheck option to rerun configure.
11283 #
11284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11286 # following values.
11287
11288 _ACEOF
11289
11290 # The following way of writing the cache mishandles newlines in values,
11291 # but we know of no workaround that is simple, portable, and efficient.
11292 # So, we kill variables containing newlines.
11293 # Ultrix sh set writes to stderr and can't be redirected directly,
11294 # and sets the high bit in the cache file unless we assign to the vars.
11295 (
11296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11297 eval ac_val=\$$ac_var
11298 case $ac_val in #(
11299 *${as_nl}*)
11300 case $ac_var in #(
11301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11303 esac
11304 case $ac_var in #(
11305 _ | IFS | as_nl) ;; #(
11306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11307 *) { eval $ac_var=; unset $ac_var;} ;;
11308 esac ;;
11309 esac
11310 done
11311
11312 (set) 2>&1 |
11313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11314 *${as_nl}ac_space=\ *)
11315 # `set' does not quote correctly, so add quotes: double-quote
11316 # substitution turns \\\\ into \\, and sed turns \\ into \.
11317 sed -n \
11318 "s/'/'\\\\''/g;
11319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11320 ;; #(
11321 *)
11322 # `set' quotes correctly as required by POSIX, so do not add quotes.
11323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11324 ;;
11325 esac |
11326 sort
11327 ) |
11328 sed '
11329 /^ac_cv_env_/b end
11330 t clear
11331 :clear
11332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11333 t end
11334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11335 :end' >>confcache
11336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11337 if test -w "$cache_file"; then
11338 if test "x$cache_file" != "x/dev/null"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11340 $as_echo "$as_me: updating cache $cache_file" >&6;}
11341 if test ! -f "$cache_file" || test -h "$cache_file"; then
11342 cat confcache >"$cache_file"
11343 else
11344 case $cache_file in #(
11345 */* | ?:*)
11346 mv -f confcache "$cache_file"$$ &&
11347 mv -f "$cache_file"$$ "$cache_file" ;; #(
11348 *)
11349 mv -f confcache "$cache_file" ;;
11350 esac
11351 fi
11352 fi
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11355 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11356 fi
11357 fi
11358 rm -f confcache
11359
11360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11361 # Let make expand exec_prefix.
11362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11363
11364 DEFS=-DHAVE_CONFIG_H
11365
11366 ac_libobjs=
11367 ac_ltlibobjs=
11368 U=
11369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11370 # 1. Remove the extension, and $U if already installed.
11371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11374 # will be set to the directory where LIBOBJS objects are built.
11375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11377 done
11378 LIBOBJS=$ac_libobjs
11379
11380 LTLIBOBJS=$ac_ltlibobjs
11381
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11384 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11385 if test -n "$am_sleep_pid"; then
11386 # Hide warnings about reused PIDs.
11387 wait $am_sleep_pid 2>/dev/null
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11390 $as_echo "done" >&6; }
11391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11392 as_fn_error $? "conditional \"AMDEP\" was never defined.
11393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11394 fi
11395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11396 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11398 fi
11399 if test -n "$EXEEXT"; then
11400 am__EXEEXT_TRUE=
11401 am__EXEEXT_FALSE='#'
11402 else
11403 am__EXEEXT_TRUE='#'
11404 am__EXEEXT_FALSE=
11405 fi
11406
11407
11408 : "${CONFIG_STATUS=./config.status}"
11409 ac_write_fail=0
11410 ac_clean_files_save=$ac_clean_files
11411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11414 as_write_fail=0
11415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11416 #! $SHELL
11417 # Generated by $as_me.
11418 # Run this file to recreate the current configuration.
11419 # Compiler output produced by configure, useful for debugging
11420 # configure, is in config.log if it exists.
11421
11422 debug=false
11423 ac_cs_recheck=false
11424 ac_cs_silent=false
11425
11426 SHELL=\${CONFIG_SHELL-$SHELL}
11427 export SHELL
11428 _ASEOF
11429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11430 ## -------------------- ##
11431 ## M4sh Initialization. ##
11432 ## -------------------- ##
11433
11434 # Be more Bourne compatible
11435 DUALCASE=1; export DUALCASE # for MKS sh
11436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11437 emulate sh
11438 NULLCMD=:
11439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11440 # is contrary to our usage. Disable this feature.
11441 alias -g '${1+"$@"}'='"$@"'
11442 setopt NO_GLOB_SUBST
11443 else
11444 case `(set -o) 2>/dev/null` in #(
11445 *posix*) :
11446 set -o posix ;; #(
11447 *) :
11448 ;;
11449 esac
11450 fi
11451
11452
11453 as_nl='
11454 '
11455 export as_nl
11456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11460 # Prefer a ksh shell builtin over an external printf program on Solaris,
11461 # but without wasting forks for bash or zsh.
11462 if test -z "$BASH_VERSION$ZSH_VERSION" \
11463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11464 as_echo='print -r --'
11465 as_echo_n='print -rn --'
11466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11467 as_echo='printf %s\n'
11468 as_echo_n='printf %s'
11469 else
11470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11472 as_echo_n='/usr/ucb/echo -n'
11473 else
11474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11475 as_echo_n_body='eval
11476 arg=$1;
11477 case $arg in #(
11478 *"$as_nl"*)
11479 expr "X$arg" : "X\\(.*\\)$as_nl";
11480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11481 esac;
11482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11483 '
11484 export as_echo_n_body
11485 as_echo_n='sh -c $as_echo_n_body as_echo'
11486 fi
11487 export as_echo_body
11488 as_echo='sh -c $as_echo_body as_echo'
11489 fi
11490
11491 # The user is always right.
11492 if test "${PATH_SEPARATOR+set}" != set; then
11493 PATH_SEPARATOR=:
11494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11496 PATH_SEPARATOR=';'
11497 }
11498 fi
11499
11500
11501 # IFS
11502 # We need space, tab and new line, in precisely that order. Quoting is
11503 # there to prevent editors from complaining about space-tab.
11504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505 # splitting by setting IFS to empty value.)
11506 IFS=" "" $as_nl"
11507
11508 # Find who we are. Look in the path if we contain no directory separator.
11509 as_myself=
11510 case $0 in #((
11511 *[\\/]* ) as_myself=$0 ;;
11512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11518 done
11519 IFS=$as_save_IFS
11520
11521 ;;
11522 esac
11523 # We did not find ourselves, most probably we were run as `sh COMMAND'
11524 # in which case we are not to be found in the path.
11525 if test "x$as_myself" = x; then
11526 as_myself=$0
11527 fi
11528 if test ! -f "$as_myself"; then
11529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11530 exit 1
11531 fi
11532
11533 # Unset variables that we do not need and which cause bugs (e.g. in
11534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11535 # suppresses any "Segmentation fault" message there. '((' could
11536 # trigger a bug in pdksh 5.2.14.
11537 for as_var in BASH_ENV ENV MAIL MAILPATH
11538 do eval test x\${$as_var+set} = xset \
11539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11540 done
11541 PS1='$ '
11542 PS2='> '
11543 PS4='+ '
11544
11545 # NLS nuisances.
11546 LC_ALL=C
11547 export LC_ALL
11548 LANGUAGE=C
11549 export LANGUAGE
11550
11551 # CDPATH.
11552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11553
11554
11555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11556 # ----------------------------------------
11557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11559 # script with STATUS, using 1 if that was 0.
11560 as_fn_error ()
11561 {
11562 as_status=$1; test $as_status -eq 0 && as_status=1
11563 if test "$4"; then
11564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11566 fi
11567 $as_echo "$as_me: error: $2" >&2
11568 as_fn_exit $as_status
11569 } # as_fn_error
11570
11571
11572 # as_fn_set_status STATUS
11573 # -----------------------
11574 # Set $? to STATUS, without forking.
11575 as_fn_set_status ()
11576 {
11577 return $1
11578 } # as_fn_set_status
11579
11580 # as_fn_exit STATUS
11581 # -----------------
11582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11583 as_fn_exit ()
11584 {
11585 set +e
11586 as_fn_set_status $1
11587 exit $1
11588 } # as_fn_exit
11589
11590 # as_fn_unset VAR
11591 # ---------------
11592 # Portably unset VAR.
11593 as_fn_unset ()
11594 {
11595 { eval $1=; unset $1;}
11596 }
11597 as_unset=as_fn_unset
11598 # as_fn_append VAR VALUE
11599 # ----------------------
11600 # Append the text in VALUE to the end of the definition contained in VAR. Take
11601 # advantage of any shell optimizations that allow amortized linear growth over
11602 # repeated appends, instead of the typical quadratic growth present in naive
11603 # implementations.
11604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11605 eval 'as_fn_append ()
11606 {
11607 eval $1+=\$2
11608 }'
11609 else
11610 as_fn_append ()
11611 {
11612 eval $1=\$$1\$2
11613 }
11614 fi # as_fn_append
11615
11616 # as_fn_arith ARG...
11617 # ------------------
11618 # Perform arithmetic evaluation on the ARGs, and store the result in the
11619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11620 # must be portable across $(()) and expr.
11621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11622 eval 'as_fn_arith ()
11623 {
11624 as_val=$(( $* ))
11625 }'
11626 else
11627 as_fn_arith ()
11628 {
11629 as_val=`expr "$@" || test $? -eq 1`
11630 }
11631 fi # as_fn_arith
11632
11633
11634 if expr a : '\(a\)' >/dev/null 2>&1 &&
11635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11636 as_expr=expr
11637 else
11638 as_expr=false
11639 fi
11640
11641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11642 as_basename=basename
11643 else
11644 as_basename=false
11645 fi
11646
11647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11648 as_dirname=dirname
11649 else
11650 as_dirname=false
11651 fi
11652
11653 as_me=`$as_basename -- "$0" ||
11654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11655 X"$0" : 'X\(//\)$' \| \
11656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11657 $as_echo X/"$0" |
11658 sed '/^.*\/\([^/][^/]*\)\/*$/{
11659 s//\1/
11660 q
11661 }
11662 /^X\/\(\/\/\)$/{
11663 s//\1/
11664 q
11665 }
11666 /^X\/\(\/\).*/{
11667 s//\1/
11668 q
11669 }
11670 s/.*/./; q'`
11671
11672 # Avoid depending upon Character Ranges.
11673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11676 as_cr_digits='0123456789'
11677 as_cr_alnum=$as_cr_Letters$as_cr_digits
11678
11679 ECHO_C= ECHO_N= ECHO_T=
11680 case `echo -n x` in #(((((
11681 -n*)
11682 case `echo 'xy\c'` in
11683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11684 xy) ECHO_C='\c';;
11685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11686 ECHO_T=' ';;
11687 esac;;
11688 *)
11689 ECHO_N='-n';;
11690 esac
11691
11692 rm -f conf$$ conf$$.exe conf$$.file
11693 if test -d conf$$.dir; then
11694 rm -f conf$$.dir/conf$$.file
11695 else
11696 rm -f conf$$.dir
11697 mkdir conf$$.dir 2>/dev/null
11698 fi
11699 if (echo >conf$$.file) 2>/dev/null; then
11700 if ln -s conf$$.file conf$$ 2>/dev/null; then
11701 as_ln_s='ln -s'
11702 # ... but there are two gotchas:
11703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11705 # In both cases, we have to default to `cp -pR'.
11706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11707 as_ln_s='cp -pR'
11708 elif ln conf$$.file conf$$ 2>/dev/null; then
11709 as_ln_s=ln
11710 else
11711 as_ln_s='cp -pR'
11712 fi
11713 else
11714 as_ln_s='cp -pR'
11715 fi
11716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11717 rmdir conf$$.dir 2>/dev/null
11718
11719
11720 # as_fn_mkdir_p
11721 # -------------
11722 # Create "$as_dir" as a directory, including parents if necessary.
11723 as_fn_mkdir_p ()
11724 {
11725
11726 case $as_dir in #(
11727 -*) as_dir=./$as_dir;;
11728 esac
11729 test -d "$as_dir" || eval $as_mkdir_p || {
11730 as_dirs=
11731 while :; do
11732 case $as_dir in #(
11733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11734 *) as_qdir=$as_dir;;
11735 esac
11736 as_dirs="'$as_qdir' $as_dirs"
11737 as_dir=`$as_dirname -- "$as_dir" ||
11738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11739 X"$as_dir" : 'X\(//\)[^/]' \| \
11740 X"$as_dir" : 'X\(//\)$' \| \
11741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11742 $as_echo X"$as_dir" |
11743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11744 s//\1/
11745 q
11746 }
11747 /^X\(\/\/\)[^/].*/{
11748 s//\1/
11749 q
11750 }
11751 /^X\(\/\/\)$/{
11752 s//\1/
11753 q
11754 }
11755 /^X\(\/\).*/{
11756 s//\1/
11757 q
11758 }
11759 s/.*/./; q'`
11760 test -d "$as_dir" && break
11761 done
11762 test -z "$as_dirs" || eval "mkdir $as_dirs"
11763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11764
11765
11766 } # as_fn_mkdir_p
11767 if mkdir -p . 2>/dev/null; then
11768 as_mkdir_p='mkdir -p "$as_dir"'
11769 else
11770 test -d ./-p && rmdir ./-p
11771 as_mkdir_p=false
11772 fi
11773
11774
11775 # as_fn_executable_p FILE
11776 # -----------------------
11777 # Test if FILE is an executable regular file.
11778 as_fn_executable_p ()
11779 {
11780 test -f "$1" && test -x "$1"
11781 } # as_fn_executable_p
11782 as_test_x='test -x'
11783 as_executable_p=as_fn_executable_p
11784
11785 # Sed expression to map a string onto a valid CPP name.
11786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11787
11788 # Sed expression to map a string onto a valid variable name.
11789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11790
11791
11792 exec 6>&1
11793 ## ----------------------------------- ##
11794 ## Main body of $CONFIG_STATUS script. ##
11795 ## ----------------------------------- ##
11796 _ASEOF
11797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11798
11799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800 # Save the log message, to keep $0 and so on meaningful, and to
11801 # report actual input values of CONFIG_FILES etc. instead of their
11802 # values after options handling.
11803 ac_log="
11804 This file was extended by twm $as_me 1.0.12, which was
11805 generated by GNU Autoconf 2.69. Invocation command line was
11806
11807 CONFIG_FILES = $CONFIG_FILES
11808 CONFIG_HEADERS = $CONFIG_HEADERS
11809 CONFIG_LINKS = $CONFIG_LINKS
11810 CONFIG_COMMANDS = $CONFIG_COMMANDS
11811 $ $0 $@
11812
11813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11814 "
11815
11816 _ACEOF
11817
11818 case $ac_config_files in *"
11819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11820 esac
11821
11822 case $ac_config_headers in *"
11823 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11824 esac
11825
11826
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 # Files that config.status was made for.
11829 config_files="$ac_config_files"
11830 config_headers="$ac_config_headers"
11831 config_commands="$ac_config_commands"
11832
11833 _ACEOF
11834
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836 ac_cs_usage="\
11837 \`$as_me' instantiates files and other configuration actions
11838 from templates according to the current configuration. Unless the files
11839 and actions are specified as TAGs, all are instantiated by default.
11840
11841 Usage: $0 [OPTION]... [TAG]...
11842
11843 -h, --help print this help, then exit
11844 -V, --version print version number and configuration settings, then exit
11845 --config print configuration, then exit
11846 -q, --quiet, --silent
11847 do not print progress messages
11848 -d, --debug don't remove temporary files
11849 --recheck update $as_me by reconfiguring in the same conditions
11850 --file=FILE[:TEMPLATE]
11851 instantiate the configuration file FILE
11852 --header=FILE[:TEMPLATE]
11853 instantiate the configuration header FILE
11854
11855 Configuration files:
11856 $config_files
11857
11858 Configuration headers:
11859 $config_headers
11860
11861 Configuration commands:
11862 $config_commands
11863
11864 Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>."
11865
11866 _ACEOF
11867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11868 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11869 ac_cs_version="\\
11870 twm config.status 1.0.12
11871 configured by $0, generated by GNU Autoconf 2.69,
11872 with options \\"\$ac_cs_config\\"
11873
11874 Copyright (C) 2012 Free Software Foundation, Inc.
11875 This config.status script is free software; the Free Software Foundation
11876 gives unlimited permission to copy, distribute and modify it."
11877
11878 ac_pwd='$ac_pwd'
11879 srcdir='$srcdir'
11880 INSTALL='$INSTALL'
11881 MKDIR_P='$MKDIR_P'
11882 AWK='$AWK'
11883 test -n "\$AWK" || AWK=awk
11884 _ACEOF
11885
11886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11887 # The default lists apply if the user does not specify any file.
11888 ac_need_defaults=:
11889 while test $# != 0
11890 do
11891 case $1 in
11892 --*=?*)
11893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11895 ac_shift=:
11896 ;;
11897 --*=)
11898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11899 ac_optarg=
11900 ac_shift=:
11901 ;;
11902 *)
11903 ac_option=$1
11904 ac_optarg=$2
11905 ac_shift=shift
11906 ;;
11907 esac
11908
11909 case $ac_option in
11910 # Handling of the options.
11911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11912 ac_cs_recheck=: ;;
11913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11914 $as_echo "$ac_cs_version"; exit ;;
11915 --config | --confi | --conf | --con | --co | --c )
11916 $as_echo "$ac_cs_config"; exit ;;
11917 --debug | --debu | --deb | --de | --d | -d )
11918 debug=: ;;
11919 --file | --fil | --fi | --f )
11920 $ac_shift
11921 case $ac_optarg in
11922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11923 '') as_fn_error $? "missing file argument" ;;
11924 esac
11925 as_fn_append CONFIG_FILES " '$ac_optarg'"
11926 ac_need_defaults=false;;
11927 --header | --heade | --head | --hea )
11928 $ac_shift
11929 case $ac_optarg in
11930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11931 esac
11932 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11933 ac_need_defaults=false;;
11934 --he | --h)
11935 # Conflict between --help and --header
11936 as_fn_error $? "ambiguous option: \`$1'
11937 Try \`$0 --help' for more information.";;
11938 --help | --hel | -h )
11939 $as_echo "$ac_cs_usage"; exit ;;
11940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11942 ac_cs_silent=: ;;
11943
11944 # This is an error.
11945 -*) as_fn_error $? "unrecognized option: \`$1'
11946 Try \`$0 --help' for more information." ;;
11947
11948 *) as_fn_append ac_config_targets " $1"
11949 ac_need_defaults=false ;;
11950
11951 esac
11952 shift
11953 done
11954
11955 ac_configure_extra_args=
11956
11957 if $ac_cs_silent; then
11958 exec 6>/dev/null
11959 ac_configure_extra_args="$ac_configure_extra_args --silent"
11960 fi
11961
11962 _ACEOF
11963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964 if \$ac_cs_recheck; then
11965 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11966 shift
11967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11968 CONFIG_SHELL='$SHELL'
11969 export CONFIG_SHELL
11970 exec "\$@"
11971 fi
11972
11973 _ACEOF
11974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975 exec 5>>config.log
11976 {
11977 echo
11978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11979 ## Running $as_me. ##
11980 _ASBOX
11981 $as_echo "$ac_log"
11982 } >&5
11983
11984 _ACEOF
11985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986 #
11987 # INIT-COMMANDS
11988 #
11989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11990
11991 _ACEOF
11992
11993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994
11995 # Handling of arguments.
11996 for ac_config_target in $ac_config_targets
11997 do
11998 case $ac_config_target in
11999 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12000 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12001 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12002 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12003 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12004
12005 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12006 esac
12007 done
12008
12009
12010 # If the user did not use the arguments to specify the items to instantiate,
12011 # then the envvar interface is used. Set only those that are not.
12012 # We use the long form for the default assignment because of an extremely
12013 # bizarre bug on SunOS 4.1.3.
12014 if $ac_need_defaults; then
12015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12018 fi
12019
12020 # Have a temporary directory for convenience. Make it in the build tree
12021 # simply because there is no reason against having it here, and in addition,
12022 # creating and moving files from /tmp can sometimes cause problems.
12023 # Hook for its removal unless debugging.
12024 # Note that there is a small window in which the directory will not be cleaned:
12025 # after its creation but before its name has been assigned to `$tmp'.
12026 $debug ||
12027 {
12028 tmp= ac_tmp=
12029 trap 'exit_status=$?
12030 : "${ac_tmp:=$tmp}"
12031 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12032 ' 0
12033 trap 'as_fn_exit 1' 1 2 13 15
12034 }
12035 # Create a (secure) tmp directory for tmp files.
12036
12037 {
12038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12039 test -d "$tmp"
12040 } ||
12041 {
12042 tmp=./conf$$-$RANDOM
12043 (umask 077 && mkdir "$tmp")
12044 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12045 ac_tmp=$tmp
12046
12047 # Set up the scripts for CONFIG_FILES section.
12048 # No need to generate them if there are no CONFIG_FILES.
12049 # This happens for instance with `./config.status config.h'.
12050 if test -n "$CONFIG_FILES"; then
12051
12052
12053 ac_cr=`echo X | tr X '\015'`
12054 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12055 # But we know of no other shell where ac_cr would be empty at this
12056 # point, so we can use a bashism as a fallback.
12057 if test "x$ac_cr" = x; then
12058 eval ac_cr=\$\'\\r\'
12059 fi
12060 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12061 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12062 ac_cs_awk_cr='\\r'
12063 else
12064 ac_cs_awk_cr=$ac_cr
12065 fi
12066
12067 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12068 _ACEOF
12069
12070
12071 {
12072 echo "cat >conf$$subs.awk <<_ACEOF" &&
12073 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12074 echo "_ACEOF"
12075 } >conf$$subs.sh ||
12076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12077 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12078 ac_delim='%!_!# '
12079 for ac_last_try in false false false false false :; do
12080 . ./conf$$subs.sh ||
12081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12082
12083 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12084 if test $ac_delim_n = $ac_delim_num; then
12085 break
12086 elif $ac_last_try; then
12087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12088 else
12089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12090 fi
12091 done
12092 rm -f conf$$subs.sh
12093
12094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12095 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12096 _ACEOF
12097 sed -n '
12098 h
12099 s/^/S["/; s/!.*/"]=/
12100 p
12101 g
12102 s/^[^!]*!//
12103 :repl
12104 t repl
12105 s/'"$ac_delim"'$//
12106 t delim
12107 :nl
12108 h
12109 s/\(.\{148\}\)..*/\1/
12110 t more1
12111 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12112 p
12113 n
12114 b repl
12115 :more1
12116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12117 p
12118 g
12119 s/.\{148\}//
12120 t nl
12121 :delim
12122 h
12123 s/\(.\{148\}\)..*/\1/
12124 t more2
12125 s/["\\]/\\&/g; s/^/"/; s/$/"/
12126 p
12127 b
12128 :more2
12129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12130 p
12131 g
12132 s/.\{148\}//
12133 t delim
12134 ' <conf$$subs.awk | sed '
12135 /^[^""]/{
12136 N
12137 s/\n//
12138 }
12139 ' >>$CONFIG_STATUS || ac_write_fail=1
12140 rm -f conf$$subs.awk
12141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 _ACAWK
12143 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12144 for (key in S) S_is_set[key] = 1
12145 FS = ""
12146
12147 }
12148 {
12149 line = $ 0
12150 nfields = split(line, field, "@")
12151 substed = 0
12152 len = length(field[1])
12153 for (i = 2; i < nfields; i++) {
12154 key = field[i]
12155 keylen = length(key)
12156 if (S_is_set[key]) {
12157 value = S[key]
12158 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12159 len += length(value) + length(field[++i])
12160 substed = 1
12161 } else
12162 len += 1 + keylen
12163 }
12164
12165 print line
12166 }
12167
12168 _ACAWK
12169 _ACEOF
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12172 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12173 else
12174 cat
12175 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12176 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12177 _ACEOF
12178
12179 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12180 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12181 # trailing colons and then remove the whole line if VPATH becomes empty
12182 # (actually we leave an empty line to preserve line numbers).
12183 if test "x$srcdir" = x.; then
12184 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12185 h
12186 s///
12187 s/^/:/
12188 s/[ ]*$/:/
12189 s/:\$(srcdir):/:/g
12190 s/:\${srcdir}:/:/g
12191 s/:@srcdir@:/:/g
12192 s/^:*//
12193 s/:*$//
12194 x
12195 s/\(=[ ]*\).*/\1/
12196 G
12197 s/\n//
12198 s/^[^=]*=[ ]*$//
12199 }'
12200 fi
12201
12202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12203 fi # test -n "$CONFIG_FILES"
12204
12205 # Set up the scripts for CONFIG_HEADERS section.
12206 # No need to generate them if there are no CONFIG_HEADERS.
12207 # This happens for instance with `./config.status Makefile'.
12208 if test -n "$CONFIG_HEADERS"; then
12209 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12210 BEGIN {
12211 _ACEOF
12212
12213 # Transform confdefs.h into an awk script `defines.awk', embedded as
12214 # here-document in config.status, that substitutes the proper values into
12215 # config.h.in to produce config.h.
12216
12217 # Create a delimiter string that does not exist in confdefs.h, to ease
12218 # handling of long lines.
12219 ac_delim='%!_!# '
12220 for ac_last_try in false false :; do
12221 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12222 if test -z "$ac_tt"; then
12223 break
12224 elif $ac_last_try; then
12225 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12226 else
12227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12228 fi
12229 done
12230
12231 # For the awk script, D is an array of macro values keyed by name,
12232 # likewise P contains macro parameters if any. Preserve backslash
12233 # newline sequences.
12234
12235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12236 sed -n '
12237 s/.\{148\}/&'"$ac_delim"'/g
12238 t rset
12239 :rset
12240 s/^[ ]*#[ ]*define[ ][ ]*/ /
12241 t def
12242 d
12243 :def
12244 s/\\$//
12245 t bsnl
12246 s/["\\]/\\&/g
12247 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12248 D["\1"]=" \3"/p
12249 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12250 d
12251 :bsnl
12252 s/["\\]/\\&/g
12253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12254 D["\1"]=" \3\\\\\\n"\\/p
12255 t cont
12256 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12257 t cont
12258 d
12259 :cont
12260 n
12261 s/.\{148\}/&'"$ac_delim"'/g
12262 t clear
12263 :clear
12264 s/\\$//
12265 t bsnlc
12266 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12267 d
12268 :bsnlc
12269 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12270 b cont
12271 ' <confdefs.h | sed '
12272 s/'"$ac_delim"'/"\\\
12273 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12274
12275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12276 for (key in D) D_is_set[key] = 1
12277 FS = ""
12278 }
12279 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12280 line = \$ 0
12281 split(line, arg, " ")
12282 if (arg[1] == "#") {
12283 defundef = arg[2]
12284 mac1 = arg[3]
12285 } else {
12286 defundef = substr(arg[1], 2)
12287 mac1 = arg[2]
12288 }
12289 split(mac1, mac2, "(") #)
12290 macro = mac2[1]
12291 prefix = substr(line, 1, index(line, defundef) - 1)
12292 if (D_is_set[macro]) {
12293 # Preserve the white space surrounding the "#".
12294 print prefix "define", macro P[macro] D[macro]
12295 next
12296 } else {
12297 # Replace #undef with comments. This is necessary, for example,
12298 # in the case of _POSIX_SOURCE, which is predefined and required
12299 # on some systems where configure will not decide to define it.
12300 if (defundef == "undef") {
12301 print "/*", prefix defundef, macro, "*/"
12302 next
12303 }
12304 }
12305 }
12306 { print }
12307 _ACAWK
12308 _ACEOF
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12311 fi # test -n "$CONFIG_HEADERS"
12312
12313
12314 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12315 shift
12316 for ac_tag
12317 do
12318 case $ac_tag in
12319 :[FHLC]) ac_mode=$ac_tag; continue;;
12320 esac
12321 case $ac_mode$ac_tag in
12322 :[FHL]*:*);;
12323 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12324 :[FH]-) ac_tag=-:-;;
12325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12326 esac
12327 ac_save_IFS=$IFS
12328 IFS=:
12329 set x $ac_tag
12330 IFS=$ac_save_IFS
12331 shift
12332 ac_file=$1
12333 shift
12334
12335 case $ac_mode in
12336 :L) ac_source=$1;;
12337 :[FH])
12338 ac_file_inputs=
12339 for ac_f
12340 do
12341 case $ac_f in
12342 -) ac_f="$ac_tmp/stdin";;
12343 *) # Look for the file first in the build tree, then in the source tree
12344 # (if the path is not absolute). The absolute path cannot be DOS-style,
12345 # because $ac_f cannot contain `:'.
12346 test -f "$ac_f" ||
12347 case $ac_f in
12348 [\\/$]*) false;;
12349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12350 esac ||
12351 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12352 esac
12353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12354 as_fn_append ac_file_inputs " '$ac_f'"
12355 done
12356
12357 # Let's still pretend it is `configure' which instantiates (i.e., don't
12358 # use $as_me), people would be surprised to read:
12359 # /* config.h. Generated by config.status. */
12360 configure_input='Generated from '`
12361 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12362 `' by configure.'
12363 if test x"$ac_file" != x-; then
12364 configure_input="$ac_file. $configure_input"
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12366 $as_echo "$as_me: creating $ac_file" >&6;}
12367 fi
12368 # Neutralize special characters interpreted by sed in replacement strings.
12369 case $configure_input in #(
12370 *\&* | *\|* | *\\* )
12371 ac_sed_conf_input=`$as_echo "$configure_input" |
12372 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12373 *) ac_sed_conf_input=$configure_input;;
12374 esac
12375
12376 case $ac_tag in
12377 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12379 esac
12380 ;;
12381 esac
12382
12383 ac_dir=`$as_dirname -- "$ac_file" ||
12384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12385 X"$ac_file" : 'X\(//\)[^/]' \| \
12386 X"$ac_file" : 'X\(//\)$' \| \
12387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12388 $as_echo X"$ac_file" |
12389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12390 s//\1/
12391 q
12392 }
12393 /^X\(\/\/\)[^/].*/{
12394 s//\1/
12395 q
12396 }
12397 /^X\(\/\/\)$/{
12398 s//\1/
12399 q
12400 }
12401 /^X\(\/\).*/{
12402 s//\1/
12403 q
12404 }
12405 s/.*/./; q'`
12406 as_dir="$ac_dir"; as_fn_mkdir_p
12407 ac_builddir=.
12408
12409 case "$ac_dir" in
12410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12411 *)
12412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12413 # A ".." for each directory in $ac_dir_suffix.
12414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12415 case $ac_top_builddir_sub in
12416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12418 esac ;;
12419 esac
12420 ac_abs_top_builddir=$ac_pwd
12421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12422 # for backward compatibility:
12423 ac_top_builddir=$ac_top_build_prefix
12424
12425 case $srcdir in
12426 .) # We are building in place.
12427 ac_srcdir=.
12428 ac_top_srcdir=$ac_top_builddir_sub
12429 ac_abs_top_srcdir=$ac_pwd ;;
12430 [\\/]* | ?:[\\/]* ) # Absolute name.
12431 ac_srcdir=$srcdir$ac_dir_suffix;
12432 ac_top_srcdir=$srcdir
12433 ac_abs_top_srcdir=$srcdir ;;
12434 *) # Relative name.
12435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12436 ac_top_srcdir=$ac_top_build_prefix$srcdir
12437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12438 esac
12439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12440
12441
12442 case $ac_mode in
12443 :F)
12444 #
12445 # CONFIG_FILE
12446 #
12447
12448 case $INSTALL in
12449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12451 esac
12452 ac_MKDIR_P=$MKDIR_P
12453 case $MKDIR_P in
12454 [\\/$]* | ?:[\\/]* ) ;;
12455 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12456 esac
12457 _ACEOF
12458
12459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12460 # If the template does not know about datarootdir, expand it.
12461 # FIXME: This hack should be removed a few years after 2.60.
12462 ac_datarootdir_hack=; ac_datarootdir_seen=
12463 ac_sed_dataroot='
12464 /datarootdir/ {
12465 p
12466 q
12467 }
12468 /@datadir@/p
12469 /@docdir@/p
12470 /@infodir@/p
12471 /@localedir@/p
12472 /@mandir@/p'
12473 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12474 *datarootdir*) ac_datarootdir_seen=yes;;
12475 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12477 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12478 _ACEOF
12479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12480 ac_datarootdir_hack='
12481 s&@datadir@&$datadir&g
12482 s&@docdir@&$docdir&g
12483 s&@infodir@&$infodir&g
12484 s&@localedir@&$localedir&g
12485 s&@mandir@&$mandir&g
12486 s&\\\${datarootdir}&$datarootdir&g' ;;
12487 esac
12488 _ACEOF
12489
12490 # Neutralize VPATH when `$srcdir' = `.'.
12491 # Shell code in configure.ac might set extrasub.
12492 # FIXME: do we really want to maintain this feature?
12493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12494 ac_sed_extra="$ac_vpsub
12495 $extrasub
12496 _ACEOF
12497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498 :t
12499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12500 s|@configure_input@|$ac_sed_conf_input|;t t
12501 s&@top_builddir@&$ac_top_builddir_sub&;t t
12502 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12503 s&@srcdir@&$ac_srcdir&;t t
12504 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12505 s&@top_srcdir@&$ac_top_srcdir&;t t
12506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12507 s&@builddir@&$ac_builddir&;t t
12508 s&@abs_builddir@&$ac_abs_builddir&;t t
12509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12510 s&@INSTALL@&$ac_INSTALL&;t t
12511 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12512 $ac_datarootdir_hack
12513 "
12514 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12515 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12516
12517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12518 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12519 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12520 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12522 which seems to be undefined. Please make sure it is defined" >&5
12523 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12524 which seems to be undefined. Please make sure it is defined" >&2;}
12525
12526 rm -f "$ac_tmp/stdin"
12527 case $ac_file in
12528 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12529 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12530 esac \
12531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12532 ;;
12533 :H)
12534 #
12535 # CONFIG_HEADER
12536 #
12537 if test x"$ac_file" != x-; then
12538 {
12539 $as_echo "/* $configure_input */" \
12540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12541 } >"$ac_tmp/config.h" \
12542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12545 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12546 else
12547 rm -f "$ac_file"
12548 mv "$ac_tmp/config.h" "$ac_file" \
12549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12550 fi
12551 else
12552 $as_echo "/* $configure_input */" \
12553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12554 || as_fn_error $? "could not create -" "$LINENO" 5
12555 fi
12556 # Compute "$ac_file"'s index in $config_headers.
12557 _am_arg="$ac_file"
12558 _am_stamp_count=1
12559 for _am_header in $config_headers :; do
12560 case $_am_header in
12561 $_am_arg | $_am_arg:* )
12562 break ;;
12563 * )
12564 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12565 esac
12566 done
12567 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12568 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12569 X"$_am_arg" : 'X\(//\)[^/]' \| \
12570 X"$_am_arg" : 'X\(//\)$' \| \
12571 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12572 $as_echo X"$_am_arg" |
12573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12574 s//\1/
12575 q
12576 }
12577 /^X\(\/\/\)[^/].*/{
12578 s//\1/
12579 q
12580 }
12581 /^X\(\/\/\)$/{
12582 s//\1/
12583 q
12584 }
12585 /^X\(\/\).*/{
12586 s//\1/
12587 q
12588 }
12589 s/.*/./; q'`/stamp-h$_am_stamp_count
12590 ;;
12591
12592 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12593 $as_echo "$as_me: executing $ac_file commands" >&6;}
12594 ;;
12595 esac
12596
12597
12598 case $ac_file$ac_mode in
12599 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12600 # Older Autoconf quotes --file arguments for eval, but not when files
12601 # are listed without --file. Let's play safe and only enable the eval
12602 # if we detect the quoting.
12603 case $CONFIG_FILES in
12604 *\'*) eval set x "$CONFIG_FILES" ;;
12605 *) set x $CONFIG_FILES ;;
12606 esac
12607 shift
12608 for mf
12609 do
12610 # Strip MF so we end up with the name of the file.
12611 mf=`echo "$mf" | sed -e 's/:.*$//'`
12612 # Check whether this is an Automake generated Makefile or not.
12613 # We used to match only the files named 'Makefile.in', but
12614 # some people rename them; so instead we look at the file content.
12615 # Grep'ing the first line is not enough: some people post-process
12616 # each Makefile.in and add a new line on top of each file to say so.
12617 # Grep'ing the whole file is not good either: AIX grep has a line
12618 # limit of 2048, but all sed's we know have understand at least 4000.
12619 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12620 dirpart=`$as_dirname -- "$mf" ||
12621 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622 X"$mf" : 'X\(//\)[^/]' \| \
12623 X"$mf" : 'X\(//\)$' \| \
12624 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12625 $as_echo X"$mf" |
12626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12627 s//\1/
12628 q
12629 }
12630 /^X\(\/\/\)[^/].*/{
12631 s//\1/
12632 q
12633 }
12634 /^X\(\/\/\)$/{
12635 s//\1/
12636 q
12637 }
12638 /^X\(\/\).*/{
12639 s//\1/
12640 q
12641 }
12642 s/.*/./; q'`
12643 else
12644 continue
12645 fi
12646 # Extract the definition of DEPDIR, am__include, and am__quote
12647 # from the Makefile without running 'make'.
12648 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12649 test -z "$DEPDIR" && continue
12650 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12651 test -z "$am__include" && continue
12652 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12653 # Find all dependency output files, they are included files with
12654 # $(DEPDIR) in their names. We invoke sed twice because it is the
12655 # simplest approach to changing $(DEPDIR) to its actual value in the
12656 # expansion.
12657 for file in `sed -n "
12658 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12659 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12660 # Make sure the directory exists.
12661 test -f "$dirpart/$file" && continue
12662 fdir=`$as_dirname -- "$file" ||
12663 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12664 X"$file" : 'X\(//\)[^/]' \| \
12665 X"$file" : 'X\(//\)$' \| \
12666 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12667 $as_echo X"$file" |
12668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12669 s//\1/
12670 q
12671 }
12672 /^X\(\/\/\)[^/].*/{
12673 s//\1/
12674 q
12675 }
12676 /^X\(\/\/\)$/{
12677 s//\1/
12678 q
12679 }
12680 /^X\(\/\).*/{
12681 s//\1/
12682 q
12683 }
12684 s/.*/./; q'`
12685 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12686 # echo "creating $dirpart/$file"
12687 echo '# dummy' > "$dirpart/$file"
12688 done
12689 done
12690 }
12691 ;;
12692
12693 esac
12694 done # for ac_tag
12695
12696
12697 as_fn_exit 0
12698 _ACEOF
12699 ac_clean_files=$ac_clean_files_save
12700
12701 test $ac_write_fail = 0 ||
12702 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12703
12704
12705 # configure is writing to config.log, and then calls config.status.
12706 # config.status does its own redirection, appending to config.log.
12707 # Unfortunately, on DOS this fails, as config.log is still kept open
12708 # by configure, so config.status won't be able to write to it; its
12709 # output is simply discarded. So we exec the FD to /dev/null,
12710 # effectively closing config.log, so it can be properly (re)opened and
12711 # appended to by config.status. When coming back to configure, we
12712 # need to make the FD available again.
12713 if test "$no_create" != yes; then
12714 ac_cs_success=:
12715 ac_config_status_args=
12716 test "$silent" = yes &&
12717 ac_config_status_args="$ac_config_status_args --quiet"
12718 exec 5>/dev/null
12719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12720 exec 5>>config.log
12721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12722 # would make configure fail if this is the last instruction.
12723 $ac_cs_success || as_fn_exit 1
12724 fi
12725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12728 fi
12729
12730